Hi again, On Fri, Jan 21, 2011 at 1:47 AM, Pavel Sanda <sa...@lyx.org> wrote: >> Yes, it's exactly the same: XHTML for LyX "HTML" output and regular >> HTML 4.0 (--html) for importing in Word. > > i see. i find it little bit misleading that we call htlatex and elyxer > a LyX -> MS Word converter since they know nothing about word format. > shouldn't we call it "HTML (MS Word)" instead?
After some analysis, it makes sense to change the converter to "a LyX -> HTML (MS Word) converter", as the format is already "HTML (MS Word)". The sentence is only seen when reconfiguring, but anyway it seems clearer this way. > your patch is in. fight the rest with Uwe :) I have attached a new patch for trunk with a few modifications: * Your suggestion above, both for eLyXer and for htlatex: "a LyX -> HTML (MS Word) converter". * I have changed the logic somehow to make it clearer. * There was a bug when eLyXer was not found, which was silently fixed by baum in SVN (thanks BTW). Now elyxerfound is initialized at the beginning; even a novice like me will find it hard to break it again. I will attach a similar patch for branch in a separate mail (there are a few small changes). Alex.
Index: lib/configure.py =================================================================== --- lib/configure.py (revisión: 37304) +++ lib/configure.py (copia de trabajo) @@ -639,22 +639,19 @@ rc_entry = [ r'\converter word latex "%%" ""' ]) # eLyXer: search as an executable (elyxer.py, elyxer) + elyxerfound = False path, elyxer = checkProg('a LyX -> HTML converter', ['elyxer.py --directory $$r $$i $$o', 'elyxer --directory $$r $$i $$o'], rc_entry = [ r'\converter lyx html "%%" ""' ]) - path, elyxer = checkProg('a LyX -> MS Word converter', - ['elyxer.py --directory $$r $$i $$o', 'elyxer --html --directory $$r $$i $$o'], + path, elyxer = checkProg('a LyX -> HTML (MS Word) converter', + ['elyxer.py --html --directory $$r $$i $$o', 'elyxer --html --directory $$r $$i $$o'], rc_entry = [ r'\converter lyx wordhtml "%%" ""' ]) if elyxer.find('elyxer') >= 0: elyxerfound = True - else: - elyxerfound = False - - if elyxerfound: addToRC(r'''\copier html "python -tt $$s/scripts/ext_copy.py -e html,png,jpg,jpeg,css $$i $$o"''') addToRC(r'''\copier wordhtml "python -tt $$s/scripts/ext_copy.py -e html,png,jpg,jpeg,css $$i $$o"''') else: - # search for other converters than eLyXer + # search for HTML converters other than eLyXer # 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', \ @@ -664,7 +661,7 @@ 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"''') - path, htmlconv = checkProg('a LaTeX -> MS Word converter', ["htlatex $$i 'html,word' 'symbol/!' '-cvalidate'", \ + path, htmlconv = checkProg('a LaTeX -> HTML (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'"], rc_entry = [ r'\converter latex wordhtml "%%" "needaux"' ]) @@ -680,7 +677,7 @@ addToRC(r'\Format blog blog "LyXBlogger" "" "" "" "document"') addToRC(r'\converter xhtml blog "python -m lyxblogger $$i" ""') -# + # checkProg('an OpenOffice.org -> LaTeX converter', ['w2l -clean $$i'], rc_entry = [ r'\converter sxw latex "%%" ""' ]) #