mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
Compare commits
2 Commits
92b656c17b
...
1381e3e575
Author | SHA1 | Date | |
---|---|---|---|
|
1381e3e575 | ||
|
637ae9528f |
@ -49,20 +49,25 @@ class DocBookToEpub:
|
||||
self.script_folder = os.path.dirname(self.own_path) + '/../'
|
||||
|
||||
print('Generating ePub with the following parameters:')
|
||||
print(self.own_path)
|
||||
print(self.java_path)
|
||||
print(self.saxon_path)
|
||||
print(self.xsltproc_path)
|
||||
print(self.xslt_path)
|
||||
print(self.input)
|
||||
print(self.input_path)
|
||||
print(self.output)
|
||||
print(' own_path: %s' % self.own_path)
|
||||
print(' java_path: %s' % self.java_path)
|
||||
print(' saxon_path: %s' % self.saxon_path)
|
||||
print(' xsltproc_path: %s' % self.xsltproc_path)
|
||||
print(' xslt_path: %s' % self.xslt_path)
|
||||
print(' input: %s' % self.input)
|
||||
print(' input_path: %s' % self.input_path)
|
||||
print(' output: %s' % self.output)
|
||||
|
||||
# Precompute paths that will be used later.
|
||||
self.output_dir = tempfile.mkdtemp().replace('\\', '/')
|
||||
self.package_opf = self.output_dir + '/OEBPS/package.opf' # Does not exist yet,
|
||||
self.package_opf = self.output_dir + '/OEBPS/package.opf'
|
||||
print('Temporary output directory: %s' % self.output_dir)
|
||||
|
||||
os.mkdir(self.output_dir + '/OEBPS')
|
||||
os.mkdir(self.output_dir + '/OEBPS/images')
|
||||
os.mkdir(self.output_dir + '/META-INF')
|
||||
print('Created the folder structure')
|
||||
|
||||
if self.xslt_path is None:
|
||||
self.xslt = self.script_folder + 'docbook/epub3/chunk.xsl'
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user