source: trunk/doc/manuals/html/many/bibopa.sh.html @ 354

Last change on this file since 354 was 354, checked in by pinsard, 10 years ago

fix thanks to coding rules; typo

File size: 15.0 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6<meta name="generator" content="Docutils 0.6: http://docutils.sourceforge.net/" />
7<title></title>
8<style type="text/css">
9
10/*
11:Author: David Goodger (goodger@python.org)
12:Id: $Id: html4css1.css 5631 2008-08-24 13:01:23Z goodger $
13:Copyright: This stylesheet has been placed in the public domain.
14
15Default cascading style sheet for the HTML output of Docutils.
16
17See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
18customize this style sheet.
19*/
20
21/* used to remove borders from tables and images */
22.borderless, table.borderless td, table.borderless th {
23  border: 0 }
24
25table.borderless td, table.borderless th {
26  /* Override padding for "table.docutils td" with "! important".
27     The right padding separates the table cells. */
28  padding: 0 0.5em 0 0 ! important }
29
30.first {
31  /* Override more specific margin styles with "! important". */
32  margin-top: 0 ! important }
33
34.last, .with-subtitle {
35  margin-bottom: 0 ! important }
36
37.hidden {
38  display: none }
39
40a.toc-backref {
41  text-decoration: none ;
42  color: black }
43
44blockquote.epigraph {
45  margin: 2em 5em ; }
46
47dl.docutils dd {
48  margin-bottom: 0.5em }
49
50/* Uncomment (and remove this text!) to get bold-faced definition list terms
51dl.docutils dt {
52  font-weight: bold }
53*/
54
55div.abstract {
56  margin: 2em 5em }
57
58div.abstract p.topic-title {
59  font-weight: bold ;
60  text-align: center }
61
62div.admonition, div.attention, div.caution, div.danger, div.error,
63div.hint, div.important, div.note, div.tip, div.warning {
64  margin: 2em ;
65  border: medium outset ;
66  padding: 1em }
67
68div.admonition p.admonition-title, div.hint p.admonition-title,
69div.important p.admonition-title, div.note p.admonition-title,
70div.tip p.admonition-title {
71  font-weight: bold ;
72  font-family: sans-serif }
73
74div.attention p.admonition-title, div.caution p.admonition-title,
75div.danger p.admonition-title, div.error p.admonition-title,
76div.warning p.admonition-title {
77  color: red ;
78  font-weight: bold ;
79  font-family: sans-serif }
80
81/* Uncomment (and remove this text!) to get reduced vertical space in
82   compound paragraphs.
83div.compound .compound-first, div.compound .compound-middle {
84  margin-bottom: 0.5em }
85
86div.compound .compound-last, div.compound .compound-middle {
87  margin-top: 0.5em }
88*/
89
90div.dedication {
91  margin: 2em 5em ;
92  text-align: center ;
93  font-style: italic }
94
95div.dedication p.topic-title {
96  font-weight: bold ;
97  font-style: normal }
98
99div.figure {
100  margin-left: 2em ;
101  margin-right: 2em }
102
103div.footer, div.header {
104  clear: both;
105  font-size: smaller }
106
107div.line-block {
108  display: block ;
109  margin-top: 1em ;
110  margin-bottom: 1em }
111
112div.line-block div.line-block {
113  margin-top: 0 ;
114  margin-bottom: 0 ;
115  margin-left: 1.5em }
116
117div.sidebar {
118  margin: 0 0 0.5em 1em ;
119  border: medium outset ;
120  padding: 1em ;
121  background-color: #ffffee ;
122  width: 40% ;
123  float: right ;
124  clear: right }
125
126div.sidebar p.rubric {
127  font-family: sans-serif ;
128  font-size: medium }
129
130div.system-messages {
131  margin: 5em }
132
133div.system-messages h1 {
134  color: red }
135
136div.system-message {
137  border: medium outset ;
138  padding: 1em }
139
140div.system-message p.system-message-title {
141  color: red ;
142  font-weight: bold }
143
144div.topic {
145  margin: 2em }
146
147h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
148h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
149  margin-top: 0.4em }
150
151h1.title {
152  text-align: center }
153
154h2.subtitle {
155  text-align: center }
156
157hr.docutils {
158  width: 75% }
159
160img.align-left {
161  clear: left }
162
163img.align-right {
164  clear: right }
165
166ol.simple, ul.simple {
167  margin-bottom: 1em }
168
169ol.arabic {
170  list-style: decimal }
171
172ol.loweralpha {
173  list-style: lower-alpha }
174
175ol.upperalpha {
176  list-style: upper-alpha }
177
178ol.lowerroman {
179  list-style: lower-roman }
180
181ol.upperroman {
182  list-style: upper-roman }
183
184p.attribution {
185  text-align: right ;
186  margin-left: 50% }
187
188p.caption {
189  font-style: italic }
190
191p.credits {
192  font-style: italic ;
193  font-size: smaller }
194
195p.label {
196  white-space: nowrap }
197
198p.rubric {
199  font-weight: bold ;
200  font-size: larger ;
201  color: maroon ;
202  text-align: center }
203
204p.sidebar-title {
205  font-family: sans-serif ;
206  font-weight: bold ;
207  font-size: larger }
208
209p.sidebar-subtitle {
210  font-family: sans-serif ;
211  font-weight: bold }
212
213p.topic-title {
214  font-weight: bold }
215
216pre.address {
217  margin-bottom: 0 ;
218  margin-top: 0 ;
219  font: inherit }
220
221pre.literal-block, pre.doctest-block {
222  margin-left: 2em ;
223  margin-right: 2em }
224
225span.classifier {
226  font-family: sans-serif ;
227  font-style: oblique }
228
229span.classifier-delimiter {
230  font-family: sans-serif ;
231  font-weight: bold }
232
233span.interpreted {
234  font-family: sans-serif }
235
236span.option {
237  white-space: nowrap }
238
239span.pre {
240  white-space: pre }
241
242span.problematic {
243  color: red }
244
245span.section-subtitle {
246  /* font-size relative to parent (h1..h6 element) */
247  font-size: 80% }
248
249table.citation {
250  border-left: solid 1px gray;
251  margin-left: 1px }
252
253table.docinfo {
254  margin: 2em 4em }
255
256table.docutils {
257  margin-top: 0.5em ;
258  margin-bottom: 0.5em }
259
260table.footnote {
261  border-left: solid 1px black;
262  margin-left: 1px }
263
264table.docutils td, table.docutils th,
265table.docinfo td, table.docinfo th {
266  padding-left: 0.5em ;
267  padding-right: 0.5em ;
268  vertical-align: top }
269
270table.docutils th.field-name, table.docinfo th.docinfo-name {
271  font-weight: bold ;
272  text-align: left ;
273  white-space: nowrap ;
274  padding-left: 0 }
275
276h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
277h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
278  font-size: 100% }
279
280ul.auto-toc {
281  list-style-type: none }
282
283</style>
284</head>
285<body>
286<div class="document">
287
288
289<div class="section" id="name">
290<h1>NAME</h1>
291<p>bibopa.sh - transform a bibliography file in DocBook 5 format</p>
292</div>
293<div class="section" id="synopsys">
294<h1>SYNOPSYS</h1>
295<pre class="literal-block">
296$ bibopa.sh -i filein -t type -o order -p project -l lang
297</pre>
298</div>
299<div class="section" id="description">
300<h1>DESCRIPTION</h1>
301<p>Each entry in the same input file must follows the same order for authors
302except the first one.</p>
303<p>With <tt class="docutils literal"><span class="pre">fs</span></tt> in option order you will correctly process raw entry with
304firstname and surname in this order for authors except the first one.</p>
305<p>If raw entry uses surname and firstname order, you should use <tt class="docutils literal"><span class="pre">sf</span></tt>.</p>
306<pre class="literal-block">
307Behera, S. K., J. Luo, S. Masson, S. Rao, S. Gualdi, P. Delecluse, A.
308Navarra and T. Yamagata, 2004 : Paramount Impact of the Indian Ocean
309Dipole on the East African Short Rains: A CGCM Study, J. Climate, In
310press.
311</pre>
312<p>donnerait</p>
313<pre class="literal-block">
314&lt;biblioentry xml:id=&quot;behara2004&quot;&gt;
315&lt;authorgroup&gt;
316&lt;author&gt;&lt;surname&gt;Behera&lt;/surname&gt; &lt;firstname&gt;S. K.&lt;/firstname&gt; &lt;/author&gt;
317&lt;author&gt;&lt;firstname&gt;J.&lt;/firstname&gt; &lt;surname&gt;Luo&lt;/surname&gt;&lt;/author&gt;
318&lt;author&gt;&lt;firstname&gt;S.&lt;/firstname&gt; &lt;surname&gt;Masson&lt;/surname&gt;&lt;/author&gt;
319&lt;author&gt;&lt;firstname&gt;S.&lt;/firstname&gt; &lt;surname&gt;Rao&lt;/surname&gt;&lt;/author&gt;
320&lt;author&gt;&lt;firstname&gt;S.&lt;/firstname&gt; &lt;surname&gt;Gualdi&lt;/surname&gt;&lt;/author&gt;
321&lt;author&gt;&lt;firstname&gt;P.&lt;/firstname&gt; &lt;surname&gt;Delecluse&lt;/surname&gt;&lt;/author&gt;
322&lt;author&gt;&lt;firstname&gt;A.&lt;/firstname&gt; &lt;surname&gt;Navara&lt;/surname&gt;&lt;/author&gt;
323&lt;author&gt;&lt;firstname&gt;T.&lt;/firstname&gt; &lt;surname&gt;Yamagata&lt;/surname&gt;&lt;/author&gt;
324&lt;/authorgroup&gt;
325&lt;date&gt;2004&lt;/date&gt;
326&lt;title&gt;Paramount Impact of the Indian Ocean Dipole on the East African
327Short Rains: A CGCM Study&lt;/title&gt;
328&lt;publishername&gt;J. Climate&lt;/publishername&gt;
329&lt;biblioid class=&quot;doi&quot;&gt;doi&lt;/biblioid&gt;
330&lt;bibliomisc role=&quot;pseudoref&quot;&gt;In press.&lt;/bibliomisc&gt;
331&lt;bibliomisc role=&quot;internalref&quot;&gt;from
332http://www.lodyc.jussieu.fr/~opatlod/NEMO_v1/6_Menu/2_page/index.html
3332007-03-29T16:24:31Z fplod by hand&lt;/bibliomisc&gt;
334&lt;/biblioentry&gt;
335</pre>
336<pre class="literal-block">
337&#64;book{MetReiCoh2004 ,
338   author    = {Michael Metcalf and
339           John Reid and Malcolm Cohen},
340   title     = {Fortran 95/2003 explained},
341   year      = {2004},
342   publisher = {Oxford University Press},
343   edition   = {Third},
344   ISBN      = {0-19-852693-8},
345   pages = {434}
346}
347</pre>
348<p>donnerait</p>
349<pre class="literal-block">
350&lt;biblioentry xml:id=&quot;MetReiCoh2004&quot;&gt;
351&lt;authorgroup&gt;
352&lt;author&gt;&lt;firstname&gt;Michael&lt;/firstname&gt; &lt;surname&gt;Metcalf&lt;/surname&gt;&lt;/author&gt;
353&lt;author&gt;&lt;firstname&gt;John&lt;/firstname&gt; &lt;surname&gt;Reid&lt;/surname&gt;&lt;/author&gt;
354&lt;author&gt;&lt;firstname&gt;Malcolm&lt;/firstname&gt; &lt;surname&gt;Cohen&lt;/surname&gt;&lt;/author&gt;
355&lt;/authorgroup&gt;
356&lt;date&gt;2004}&lt;/date&gt;
357&lt;title&gt;Fortran 95/2003 explained&lt;/title&gt;
358&lt;publisher&gt;&lt;publishername&gt;Oxford University Press&lt;/publishername&gt;&lt;/publisher&gt;
359&lt;biblioid class=&quot;isbn&quot;&gt;0-19-852693-8&lt;/biblioid&gt;
360&lt;pagenums&gt;434&lt;/pagenums&gt;
361&lt;edition&gt;Third&lt;/edition&gt;
362</pre>
363</div>
364<div class="section" id="examples">
365<h1>EXAMPLES</h1>
366<p>To transform the NEMO bibliography file in raw format:</p>
367<pre class="literal-block">
368$ ./bibopa.sh -p birefnemo -i data/biball.txt -t raw
369</pre>
370<p>To transform a bibliography file in mailbody format:</p>
371<pre class="literal-block">
372$ ./bibopa.sh -p bibrefnemo -i data/mail2007-05-10T09:01:56Z -t mailbody
373</pre>
374<p>To transform a bibliography file in bibtex format in french:</p>
375<pre class="literal-block">
376$ ./bibopa.sh -p polyfortran -i data/petitpolyfp.bib -t bibtex -l fr
377</pre>
378<p>To transform the SUPERBIB demo bibliography file in raw format:</p>
379<pre class="literal-block">
380$ ./bibopa.sh -p demo1 -i data/bibdemo1.txt -t raw -l fr
381</pre>
382</div>
383<div class="section" id="see-also">
384<h1>SEE ALSO</h1>
385<p><a class="reference external" href="mailtouser.sh.html">mailtouser.sh</a></p>
386</div>
387<div class="section" id="files">
388<h1>FILES</h1>
389<div class="section" id="original-location">
390<h2>original location</h2>
391<p>/usr/home/fplod/incas/bibnemo/src/bibnemomaf/bibopa.sh sur cerbere.locean-ipsl.upmc.fr</p>
392</div>
393</div>
394<div class="section" id="todo">
395<h1>TODO</h1>
396<p>gestion des comments</p>
397<p>gestion des id existants (cf à la fin)</p>
398<p>option debug</p>
399<p>should use iconv instead of recode
400for portability issue but not found yet the &quot;flat&quot; functionality in
401iconv</p>
402<p>write something in the logfile !</p>
403</div>
404<div class="section" id="evolutions">
405<h1>EVOLUTIONS</h1>
406<p>$Id: bibopa.sh 80 2008-10-30 09:10:11Z pinsard $</p>
407<ul class="simple">
408<li>fplod 2009-01-15T10:36:18Z aedon.locean-ipsl.upmc.fr (Darwin)<ul>
409<li>add description of <tt class="docutils literal"><span class="pre">-o</span></tt> option</li>
410<li>add journal &quot;PNAS&quot;</li>
411<li>add journal &quot;Lettre PIGB-PMRC&quot;</li>
412</ul>
413</li>
414<li>fplod 2009-01-14T15:27:48Z aedon.locean-ipsl.upmc.fr (Darwin)<ul>
415<li>add journal &quot;Water Resources Research&quot;</li>
416<li>add journal &quot;Climate Research&quot;</li>
417<li>add conf &quot;Colloque du GIS « Climat-Environnement-Sociétés »&quot;</li>
418<li>add journal &quot;Agricultural and Forest Meteorology&quot;</li>
419<li>add conf &quot;VIIth IAHS Scientific Assembly&quot;</li>
420<li>add conf &quot;AGU fall Meeting&quot;</li>
421<li>add journal &quot;Phil. Trans. Roy. Soc. B&quot;</li>
422<li>add journal &quot;Phil. Trans. Roy. Soc. B&quot;</li>
423<li>add conf &quot;4th Alexander Von Humboldt International Conference&quot;</li>
424<li>add journal/conf &quot;??&quot; (Should not be used too much !)</li>
425<li>add journal &quot;Nature Geosciences&quot;</li>
426<li>add journal &quot;International Journal of Climatology&quot;</li>
427<li>add journal &quot;Journal of Hydrology&quot;</li>
428<li>add journal &quot;Revue de l'Énergie&quot;</li>
429<li>add journal &quot;Clim. Res.&quot;</li>
430<li>add journal &quot;Hydrol. Earth Sys. Sci.&quot;</li>
431<li>add journal &quot;Ambio&quot;</li>
432<li>add journal &quot;Theoretical and applied climatology&quot;</li>
433<li>add journal &quot;Remote Sensing of Environnement&quot;</li>
434</ul>
435</li>
436<li>fplod 2008-10-28T11:40:19Z aedon.locean-ipsl.upmc.fr (Darwin)<ul>
437<li>add journal &quot;Progress In Oceanography&quot;</li>
438<li>add journal &quot;Climatic Change&quot;</li>
439<li>add journal &quot;Ocean Dynamics&quot;</li>
440<li>add journal &quot;Phil. Trans. Roy. Soc. A&quot;</li>
441<li>add journal &quot;Izvestiya Atmospheric and Oceanic Physics&quot;</li>
442<li>add journal &quot;Journal of Hydrometeorology&quot;</li>
443<li>add journal &quot;Remote Sensing of Environment&quot;</li>
444<li>add journal &quot;Oceanology&quot;</li>
445<li>add journal &quot;Water Resour. Res.&quot;</li>
446<li>add journal &quot;Advances in Atmospheric Sciences&quot;</li>
447<li>add journal &quot;Quaternary Science Reviews&quot;</li>
448<li>replace &quot;Elsevier Oceanography Series&quot; by &quot;Elsevier Oceanographic Series&quot;</li>
449<li>bug fix : unclosed date tag</li>
450<li>trouble with flat conversion for id building ...</li>
451<li>remove interactivity at then end (allowing redirection of stderr and
452stdout)</li>
453<li>strip blank lines</li>
454<li>bug fix : counting nb of occurences of &quot;,&quot; technique ... to be improved</li>
455</ul>
456</li>
457<li>fplod 2008-09-16T15:19:59Z aedon.locean-ipsl.upmc.fr (Darwin)<ul>
458<li>comments in ReStructured Text</li>
459</ul>
460</li>
461<li>fplod 2008-05-16T10:33:16Z aedon.locean-ipsl.upmc.fr (Darwin)<ul>
462<li>add parameter -o for firstname/surname order in bibtex file</li>
463</ul>
464</li>
465<li>fplod 2008-05-15T15:15:04Z aedon.locean-ipsl.upmc.fr (Darwin)<ul>
466<li>new way of processing bibtex file : external/bibtex2xml.py</li>
467</ul>
468</li>
469<li>fplod 2008-04-30T07:11:58Z aedon.locean-ipsl.upmc.fr (Darwin)<ul>
470<li>chgt for dbk5 out</li>
471<li>xmlto 0.0.18 does'nt like this docbook release. remove</li>
472<li>usage of xml (xmlstarlet) for validation</li>
473<li>bug fix</li>
474<li>add journal names from demo1</li>
475<li>fplod 2008-03-12T16:11:07Z aedon.locean-ipsl.upmc.fr (Darwin)</li>
476<li>add -p option (to overide bibrefnemo in file name and id)</li>
477<li>add -l option by default en</li>
478</ul>
479</li>
480<li>fplod 2008-03-11T11:25:27Z aedon.locean-ipsl.upmc.fr (Darwin)<ul>
481<li>add bibtex entry (not finished)++</li>
482</ul>
483</li>
484<li>fplod 2007-06-20T17:18:02Z aedon.locean-ipsl.upmc.fr (Darwin)<ul>
485<li>&lt;bibliomisc role=&quot;id&quot;&gt; replace by &lt;biblioid class=&quot;doi&quot;&gt;</li>
486</ul>
487</li>
488<li>smasson 2007-06-07T16:43:42Z arete.locean-ipsl.upmc.fr (Darwin)<ul>
489<li>Add journals</li>
490</ul>
491</li>
492<li>fplod 2007-05-10T09:17:09Z aedon.locean-ipsl.upmc.fr (Darwin)<ul>
493<li>derniÚres touches</li>
494</ul>
495</li>
496<li>fplod 2007-04-25T10:59:49Z cerbere.locean-ipsl.upmc.fr (Linux)<ul>
497<li>add a filein parameter and an option for mailbody</li>
498<li>comments (line begininig with #) are now possible</li>
499</ul>
500</li>
501<li>Sebastien Masson avril 2007<ul>
502<li>creation</li>
503</ul>
504</li>
505</ul>
506</div>
507</div>
508</body>
509</html>
Note: See TracBrowser for help on using the repository browser.