From: <gr...@us...> - 2003-02-14 07:04:16
|
wouldn't the graphics conversion be generally useful. i usually use pdflatex because it handles the web-graphics and latex would require me to supply different pictures for the html and the latex stuff. On Thu, 13 Feb 2003, Aahz wrote: > Update of /cvsroot/docutils/sandbox/aahz/OO > In directory sc8-pr-cvs1:/tmp/cvs-serv13399 > > Modified Files: > OOwriter.py publish.py > Added Files: > graphics_output.py > Log Message: > Add graphics_output.py > > > --- NEW FILE: graphics_output.py --- > import sys > import os > > SOURCE_EXT = '.fig' > > TypeList = { > 'eps': { > 'ext': '.eps', > 'cmd': 'fig2dev -L eps %s %s' > }, > 'pdf': { > 'ext': '.pdf', > 'cmd': 'fig2dev -L pdf %s %s' > } > } > > type = TypeList[sys.argv[1]] > SourceDir = sys.argv[2] > DestDir = sys.argv[3] > > for name in os.listdir(SourceDir): > base, ext = os.path.splitext(name) > if ext == SOURCE_EXT: > src = SourceDir + '/' + name > dest = DestDir + '/' + base + type['ext'] > cmd = type['cmd'] % (src, dest) > print cmd > os.system(cmd) > > Index: OOwriter.py > =================================================================== > RCS file: /cvsroot/docutils/sandbox/aahz/OO/OOwriter.py,v > retrieving revision 1.4 > retrieving revision 1.5 > diff -u -d -r1.4 -r1.5 > > Index: publish.py > =================================================================== > RCS file: /cvsroot/docutils/sandbox/aahz/OO/publish.py,v > retrieving revision 1.4 > retrieving revision 1.5 > diff -u -d -r1.4 -r1.5 > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > are you planning your Web Server Security? Click here to get a FREE > Thawte SSL guide and find the answers to all your SSL security issues. > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > _______________________________________________ > Docutils-checkins mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-checkins > -- BINGO: maintaining competitive momentum --- Engelbert Gruber -------+ SSG Fintl,Gruber,Lassnig / A6410 Telfs Untermarkt 9 / Tel. ++43-5262-64727 ----+ |