On Sun, Nov 8, 2009 at 10:07 AM, Jürgen Spitzmüller <sp...@lyx.org> wrote: > You're right, we cannot be sure it will be ready. But the chances are not bad > that it will. It depends on how difficult the integration of multiple > converter chains in the exportableFormats() / getReachable() methods, and it > essentially depends on my free time and energy. What is for sure, however, is > that warming up this discussion again and again will not help getting it ready > either ;-)
What I don't understand (and I am sure I am not alone in this) is why not go for the easy solution now, just for branch. This would solve the problem for 1.6.x while leaving the field open for the good long-term solution for 1.7. Attached is a patch which does just that, and it can be applied instead of the previous one agains branch. Leaving the problem unsolved in 1.6.x just waiting for 1.7 is just going to disappoint users for no good reason. That is probably why the discussion tends to come up again and again, as unsolved businesses tend to do -- this time it was actually Richard who brought it up in a private mail. Alex.
Index: lib/configure.py =================================================================== --- lib/configure.py (revisión: 31897) +++ lib/configure.py (copia de trabajo) @@ -249,11 +249,13 @@ def checkModule(module): ''' Check for a Python module, return the status ''' - msg = 'checking for "' + module + ' module"... ' + print 'checking for "' + module + ' module"... ', try: __import__(module) + print "yes" return True except ImportError: + print "no" return False @@ -334,7 +336,11 @@ addToRC(r'\Format dvi2 dvi DraftDVI "" "" "" "vector"') # checkViewer('an HTML previewer', ['firefox', 'mozilla file://$$p$$i', 'netscape'], - rc_entry = [r'\Format html html HTML H "%%" "" "document"']) + rc_entry = [r'''\Format htmlelyxer html "HTML (eLyXer)" H "%%" "" "document" +\Format htmlhevea html "HTML (hevea)" H "%%" "" "document" +\Format htmltex4ht html "HTML (TeX4ht)" H "%%" "" "document" +\Format htmltth html "HTML (TTH)" H "%%" "" "document" +\Format htmll2h html "HTML (LaTeX2HTML)" H "%%" "" "document"''']) # checkViewer('Noteedit', ['noteedit'], rc_entry = [r'\Format noteedit not Noteedit "" "%%" "%%" "vector"']) @@ -401,27 +407,39 @@ # eLyXer: search as a Python module and then as an executable (elyxer.py, elyxer) elyxerfound = checkModule('elyxer') if elyxerfound: - addToRC(r'''\converter lyx html "python -m elyxer --directory $$r $$i $$o" ""''') + addToRC(r'''\converter lyx htmlelyxer "python -m elyxer --directory $$r $$i $$o" ""''') else: path, elyxer = checkProg('a LyX -> HTML converter', ['elyxer.py', 'elyxer'], - rc_entry = [ r'\converter lyx html "python -tt elyxer.py --directory $$r $$i $$o" ""' ]) + rc_entry = [ r'\converter lyx htmlelyxer "%% --directory $$r $$i $$o" ""' ]) if elyxer.find('elyxer') >= 0: elyxerfound = True - if elyxerfound: - addToRC(r'''\copier html "python -tt $$s/scripts/ext_copy.py -e html,png,jpg,jpeg,css $$i $$o"''') - else: - # 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"''') + addToRC(r'''\copier htmlelyxer "python -tt $$s/scripts/ext_copy.py -e html,png,jpg,jpeg,css $$i $$o"''') + # Other HTML converters # On SuSE the scripts have a .sh suffix, and on debian they are in /usr/share/tex4ht/ + path, htmlconv = checkProg('TeX4HT LaTeX -> HTML converter', ['htlatex $$i', 'htlatex.sh $$i', \ + '/usr/share/tex4ht/htlatex $$i'], + rc_entry = [ r'\converter latex htmltex4ht "%%" "needaux"' ]) + if htmlconv.find('htlatex') >= 0: + addToRC(r'''\copier htmltex4ht "python -tt $$s/scripts/ext_copy.py -e html,png,css $$i $$o"''') + + path, htmlconv = checkProg('Hevea LaTeX -> HTML converter', ['hevea -s $$i'], \ + rc_entry = [ r'\converter latex htmlhevea "%%" "needaux"' ]) + if htmlconv.find('hevea') >= 0: + addToRC(r'''\copier htmlhevea "python -tt $$s/scripts/ext_copy.py $$i $$o"''') + + path, htmlconv = checkProg('TTH LaTeX -> HTML converter', ['tth -t -e2 -L$$b < $$i > $$o'], \ + rc_entry = [ r'\converter latex htmltth "%%" "needaux"' ]) + if htmlconv.find('tth') >= 0: + addToRC(r'''\copier htmltth "python -tt $$s/scripts/ext_copy.py $$i $$o"''') + + path, htmlconv = checkProg('LaTeX2HTML LaTeX -> HTML converter', ['latex2html -no_subdir -split 0 -show_section_numbers $$i'], \ + rc_entry = [ r'\converter latex htmll2h "%%" "needaux"' ]) + if htmlconv == 'latex2html': + addToRC(r'''\copier htmll2h "python -tt $$s/scripts/ext_copy.py -e html,png,css $$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'"],