Changeset 66 for trunk/bibopa.sh


Ignore:
Timestamp:
05/14/08 17:35:50 (16 years ago)
Author:
pinsard
Message:

implemenation of xml to bibtex transformation (superbib02_txt.xsl). reverse is not yet correctly done

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bibopa.sh

    r65 r66  
    417417# strip comments 
    418418fileraw_strict=/tmp/$(basename ${fileraw})_strict 
    419 grep -v "^#" ${fileraw} > ${fileraw_strict} 
     419grep -v "^#" ${fileraw} | grep -v "^%" > ${fileraw_strict} 
    420420totlines=$( wc -l ${fileraw_strict} | awk '{print $1}' ) 
    421421l=1 
     
    435435     # before the last , 
    436436       auths=${tmp%,*}, 
    437      # replace "and" by "," 
     437     # replace " and " by "," 
    438438       auths=$( echo "${auths}" | sed -e "s/ and /,/g" ) 
     439     # replace " et " by "," 
     440       auths=$( echo "${auths}" | sed -e "s/ et /,/g" ) 
    439441     # after the last , 
    440442       year=${tmp##*,} 
     
    712714          pag=${endline##*,} 
    713715          pag=$( cleanname "${pag}" ) 
    714 #set  
     716#set 
    715717#read a 
    716718          cat <<EOF >> ${fileou} 
     
    736738      ;; 
    737739      10) 
    738           publishername=${endline%%Editors,*}  
     740          publishername=${endline%%Editors,*} 
    739741          publishername="${publishername} Editors" 
    740742          publishername=$( cleanname "${publishername}" ) 
     
    771773EOF 
    772774      unset isbn 
    773       unset agu  
     775      unset agu 
    774776      unset pag 
    775777      unset publishername 
     
    800802  unset title 
    801803  unset vol 
    802   unset year  
     804  unset year 
    803805  unset pag 
    804806  l=$(( ${l} + 1 )) 
Note: See TracChangeset for help on using the changeset viewer.