X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fconfigure.py;h=43073e901d92b04088943b49d047bde989413c16;hb=7545698380fa4d0203109d340404574c20aad1bc;hp=47d1034f3383e8f8088be44aadc6ae2d2878f5b7;hpb=9d4ffac7fbc06893e79a19097ae1b5c762d830e0;p=lyx.git diff --git a/lib/configure.py b/lib/configure.py index 47d1034f33..43073e901d 100644 --- a/lib/configure.py +++ b/lib/configure.py @@ -1006,11 +1006,16 @@ def checkConverterEntries(): checkProg('DocBook converter -> PDF (docbook)', ['pandoc -f docbook -t latex --latex-engine=lualatex --toc -o $$o $$i'], rc_entry = [ r'\converter docbook5 pdf9 "%%" ""' ]) # + xpath, xslt_sheet = checkProg('XSLT stylesheets for ePub', ['chunk.xsl'], '', ['/usr/share/xml/docbook/stylesheet/docbook-xsl-ns/epub3']) + if xslt_sheet == 'chunk.xsl': + xpath = '/usr/share/xml/docbook/stylesheet/docbook-xsl-ns' + else: + xpath = 'none' global java if xsltproc != '': - addToRC('\\converter docbook5 epub "python $$s/scripts/docbook2epub.py none \\"' + xsltproc + '\\" $$i $$o" ""') + addToRC('\\converter docbook5 epub "python $$s/scripts/docbook2epub.py none none \\"' + xsltproc + '\\" ' + xpath + ' $$i $$r $$o" ""') elif java != '': - addToRC('\\converter docbook5 epub "python $$s/scripts/docbook2epub.py \\"' + java + '\\" none $$i $$o" ""') + addToRC('\\converter docbook5 epub "python $$s/scripts/docbook2epub.py \\"' + java + '\\" none none ' + xpath + ' $$i $$r $$o" ""') # checkProg('a MS Word Office Open XML converter -> LaTeX', ['pandoc -s -f docx -o $$o -t latex $$i'], rc_entry = [ r'\converter word2 latex "%%" ""' ]) @@ -1939,7 +1944,7 @@ if __name__ == '__main__': lyx_check_config = True lyx_kpsewhich = True outfile = 'lyxrc.defaults' - lyxrc_fileformat = 34 + lyxrc_fileformat = 36 rc_entries = '' lyx_keep_temps = False version_suffix = ''