Thread: xml:lang
View Single Post
Old 04-25-2019, 05:47 AM   #5
tage fredheim
Member
tage fredheim began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Apr 2019
Device: edge
OK, how can that be achieved programmatically? Currently my programmatic interface is:

try:
self.utils.report.info("Konverterer fra XHTML til DOCX...")
process = self.utils.filesystem.run(["/usr/bin/ebook-convert",
html_file,
os.path.join(temp_docxdir, epub.identifier() + ".docx"),
"--no-chapters-in-toc",
"--toc-threshold=0",
"--docx-page-size=a4",
# "--linearize-tables",
"--extra-css=/home/statped/Dokumenter/produksjonssystem/produksjonssystem/extra.css",
"--embed-font-family=Verdana", # microsoft fonts must be installed (sudo apt-get install ttf-mscorefonts-installer)
"--docx-page-margin-top=42",
"--docx-page-margin-bottom=42",
"--docx-page-margin-left=70",
"--docx-page-margin-right=56",
"--base-font-size=13",
"--font-size-mapping=13,13,13,13,13,13,13,13"])
tage fredheim is offline   Reply With Quote