Differences

This shows you the differences between two versions of the page.

Link to this comparison view

bkchem_to_odf_conversion [2007/10/23 07:11]
beda
bkchem_to_odf_conversion [2024/05/02 08:09] (current)
Line 1: Line 1:
 ===== BKChem to ODF conversion batch script ===== ===== BKChem to ODF conversion batch script =====
  
-The {{svg2odg.py|following simple script}} takes all files or directories given as arguments and converts them to the corresponding ODF Draw (.odg) files. In case a directory is given, it tries to convert all SVG files in that directory.+^Name  | svg2odg.py  | 
 +^BKChem version  | **0.12.0_pre4** and higher  | 
 +^Category  | file conversion  | 
 +^Source  | {{svg2odg.py}}  | 
 +^Run as  | ''bkchem -b svg2odg.py [filenames]'' | 
 + 
 + 
 +This simple script takes all files given as arguments and converts them to the corresponding ODF Draw (.odg) files. In case a directory is given, it tries to convert all SVG files in that directory.
  
 To run the script you just need to enter the following on the command line: To run the script you just need to enter the following on the command line:
Line 33: Line 40:
     convert_file( arg)     convert_file( arg)
   else:   else:
-    print "%s is neither a file nor a directory, skipping" +    print "%s is neither a file nor a directory, skipping"  % arg
 </code> </code>

Navigation
Personal Tools