bibopa.sh - transform a bibliography file in DocBook 5 format
$ bibopa.sh -i filein -t type -o order -p project -l lang
Each entry in the same input file must follows the same order for authors except the first one.
With fs in option order you will correctly process raw entry with firstname and surname in this order for authors except the first one.
If raw entry uses surname and firstname order, you should use sf.
Behera, S. K., J. Luo, S. Masson, S. Rao, S. Gualdi, P. Delecluse, A. Navarra and T. Yamagata, 2004 : Paramount Impact of the Indian Ocean Dipole on the East African Short Rains: A CGCM Study, J. Climate, In press.
donnerait
<biblioentry xml:id="behara2004"> <authorgroup> <author><surname>Behera</surname> <firstname>S. K.</firstname> </author> <author><firstname>J.</firstname> <surname>Luo</surname></author> <author><firstname>S.</firstname> <surname>Masson</surname></author> <author><firstname>S.</firstname> <surname>Rao</surname></author> <author><firstname>S.</firstname> <surname>Gualdi</surname></author> <author><firstname>P.</firstname> <surname>Delecluse</surname></author> <author><firstname>A.</firstname> <surname>Navara</surname></author> <author><firstname>T.</firstname> <surname>Yamagata</surname></author> </authorgroup> <date>2004</date> <title>Paramount Impact of the Indian Ocean Dipole on the East African Short Rains: A CGCM Study</title> <publishername>J. Climate</publishername> <biblioid class="doi">doi</biblioid> <bibliomisc role="pseudoref">In press.</bibliomisc> <bibliomisc role="internalref">from http://www.lodyc.jussieu.fr/~opatlod/NEMO_v1/6_Menu/2_page/index.html 2007-03-29T16:24:31Z fplod by hand</bibliomisc> </biblioentry>
@book{MetReiCoh2004 , author = {Michael Metcalf and John Reid and Malcolm Cohen}, title = {Fortran 95/2003 explained}, year = {2004}, publisher = {Oxford University Press}, edition = {Third}, ISBN = {0-19-852693-8}, pages = {434} }
donnerait
<biblioentry xml:id="MetReiCoh2004"> <authorgroup> <author><firstname>Michael</firstname> <surname>Metcalf</surname></author> <author><firstname>John</firstname> <surname>Reid</surname></author> <author><firstname>Malcolm</firstname> <surname>Cohen</surname></author> </authorgroup> <date>2004}</date> <title>Fortran 95/2003 explained</title> <publisher><publishername>Oxford University Press</publishername></publisher> <biblioid class="isbn">0-19-852693-8</biblioid> <pagenums>434</pagenums> <edition>Third</edition>
To transform the NEMO bibliography file in raw format:
$ ./bibopa.sh -p birefnemo -i data/biball.txt -t raw
To transform a bibliography file in mailbody format:
$ ./bibopa.sh -p bibrefnemo -i data/mail2007-05-10T09:01:56Z -t mailbody
To transform a bibliography file in bibtex format in french:
$ ./bibopa.sh -p polyfortran -i data/petitpolyfp.bib -t bibtex -l fr
To transform the SUPERBIB demo bibliography file in raw format:
$ ./bibopa.sh -p demo1 -i data/bibdemo1.txt -t raw -l fr
/usr/home/fplod/incas/bibnemo/src/bibnemomaf/bibopa.sh sur cerbere.locean-ipsl.upmc.fr
gestion des comments
gestion des id existants (cf à la fin)
option debug
should use iconv instead of recode for portability issue but not found yet the "flat" fonctionnality in iconv
write something in the logfile !
$Id: bibopa.sh 80 2008-10-30 09:10:11Z pinsard $