mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
configure.py: port r29905
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29913 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8b286036d1
commit
d3ff1d16e3
@ -452,14 +452,6 @@ def checkConverterEntries():
|
||||
checkProg('a Sweave -> LaTeX converter', ['R CMD Sweave $$i'],
|
||||
rc_entry = [r'''\converter sweave latex "%%" ""
|
||||
\converter sweave pdflatex "%%" ""'''])
|
||||
#
|
||||
path, elyx = checkProg('eLyXer converter', ['elyxer.py $$i $$o'],
|
||||
rc_entry = [ r'\converter lyx html2 "%%" ""' ] )
|
||||
if elyx.find('elyxer.py') >= 0 :
|
||||
addToRC(r'''\copier html2 "python -tt $$s/scripts/ext_copy.py -e html,png,css $$i $$o"''')
|
||||
checkViewer('an HTML previewer', ['firefox', 'mozilla file://$$p$$i', 'netscape'],
|
||||
rc_entry = [r'\Format html2 html "HTML (eLyXer)" e "%%" "" "document"'])
|
||||
|
||||
#
|
||||
checkProg('an HTML -> LaTeX converter', ['html2latex $$i', 'gnuhtml2latex $$i', \
|
||||
'htmltolatex -input $$i -output $$o', 'java -jar htmltolatex.jar -input $$i -output $$o'],
|
||||
@ -467,20 +459,26 @@ def checkConverterEntries():
|
||||
#
|
||||
checkProg('an MS Word -> LaTeX converter', ['wvCleanLatex $$i $$o'],
|
||||
rc_entry = [ r'\converter word latex "%%" ""' ])
|
||||
# On SuSE the scripts have a .sh suffix, and on debian they are in /usr/share/tex4ht/
|
||||
path, htmlconv = checkProg('a LaTeX -> HTML converter', ['htlatex $$i', 'htlatex.sh $$i', \
|
||||
'/usr/share/tex4ht/htlatex $$i', 'tth -t -e2 -L$$b < $$i > $$o', \
|
||||
'latex2html -no_subdir -split 0 -show_section_numbers $$i', 'hevea -s $$i'],
|
||||
rc_entry = [ r'\converter latex html "%%" "needaux"' ])
|
||||
if htmlconv.find('htlatex') >= 0 or htmlconv == 'latex2html':
|
||||
#
|
||||
path, elyxer = checkProg('a LyX -> HTML converter', ['elyxer.py $$i $$o'],
|
||||
rc_entry = [ r'\converter lyx html "%%" ""' ])
|
||||
if elyxer.find('elyxer.py') >= 0:
|
||||
addToRC(r'''\copier html "python -tt $$s/scripts/ext_copy.py -e html,png,css $$i $$o"''')
|
||||
else:
|
||||
addToRC(r'''\copier html "python -tt $$s/scripts/ext_copy.py $$i $$o"''')
|
||||
# On SuSE the scripts have a .sh suffix, and on debian they are in /usr/share/tex4ht/
|
||||
path, htmlconv = checkProg('a LaTeX -> HTML converter', ['htlatex $$i', 'htlatex.sh $$i', \
|
||||
'/usr/share/tex4ht/htlatex $$i', 'tth -t -e2 -L$$b < $$i > $$o', \
|
||||
'latex2html -no_subdir -split 0 -show_section_numbers $$i', 'hevea -s $$i'],
|
||||
rc_entry = [ r'\converter latex html "%%" "needaux"' ])
|
||||
if htmlconv.find('htlatex') >= 0 or htmlconv == 'latex2html':
|
||||
addToRC(r'''\copier html "python -tt $$s/scripts/ext_copy.py -e html,png,css $$i $$o"''')
|
||||
else:
|
||||
addToRC(r'''\copier html "python -tt $$s/scripts/ext_copy.py $$i $$o"''')
|
||||
|
||||
# On SuSE the scripts have a .sh suffix, and on debian they are in /usr/share/tex4ht/
|
||||
path, htmlconv = checkProg('a LaTeX -> MS Word converter', ["htlatex $$i 'html,word' 'symbol/!' '-cvalidate'", \
|
||||
"htlatex.sh $$i 'html,word' 'symbol/!' '-cvalidate'", \
|
||||
"/usr/share/tex4ht/htlatex $$i 'html,word' 'symbol/!' '-cvalidate'"],
|
||||
"/usr/share/tex4ht/htlatex $$i 'html,word' 'symbol/!' '-cvalidate'"],
|
||||
rc_entry = [ r'\converter latex wordhtml "%%" "needaux"' ])
|
||||
if htmlconv.find('htlatex') >= 0:
|
||||
addToRC(r'''\copier wordhtml "python -tt $$s/scripts/ext_copy.py -e html,png,css $$i $$o"''')
|
||||
|
Loading…
Reference in New Issue
Block a user