mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Search for external xslt stylesheets.
Tested with debian's docbook-xsl-ns (1.79.1)
This commit is contained in:
parent
2ba8ebab67
commit
19a9387f72
@ -1006,9 +1006,14 @@ 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 none \\"' + xsltproc + '\\" none $$i $$o" ""')
|
||||
addToRC('\\converter docbook5 epub "python $$s/scripts/docbook2epub.py none none \\"' + xsltproc + '\\" ' + xpath + ' $$i $$o" ""')
|
||||
elif java != '':
|
||||
addToRC('\\converter docbook5 epub "python $$s/scripts/docbook2epub.py \\"' + java + '\\" none none none $$i $$o" ""')
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user