Commit Graph

22 Commits

Author SHA1 Message Date
Thibaut Cuvelier
1381e3e575 docbook2epub: make the output of the parameters easier to read. 2024-11-11 23:50:43 +01:00
Thibaut Cuvelier
637ae9528f docbook2epub: create the OEBPS and META-INF folders that Saxon seems unable to create. 2024-11-11 23:46:27 +01:00
José Matos
04ecabef60 Update Python scripts to Python 3+
Remove support for Python 2

Use formatted strings where appropriated
2024-06-10 11:29:56 +01:00
Thibaut Cuvelier
b9f355fdb1 ePub: try harder to find image files. 2021-02-19 20:59:20 +01:00
Pavel Sanda
223e23bca4 * docbook2epub.py syntax 2021-02-12 23:01:45 +01:00
Thibaut Cuvelier
b1febf112d ePub: improve compatibility with Python 2. 2021-02-12 05:26:32 +01:00
Thibaut Cuvelier
7622292027 ePub: share a bit of code for parsing arguments. 2021-02-07 23:19:07 +01:00
Thibaut Cuvelier
f7beed1ee2 ePub: allow a user-specified Saxon. 2021-02-07 23:19:07 +01:00
Thibaut Cuvelier
bf976cb0ae ePub: use None instead of an empty string. 2021-02-07 20:52:50 +01:00
Thibaut Cuvelier
e95513c823 ePub: add argument for external DocBook XSLT. 2021-02-07 20:51:25 +01:00
Thibaut Cuvelier
d7d31ab512 ePub: restructure the script as a class.
This allows to share a little bit more code and to avoid functions with many arguments.
2021-02-07 20:47:24 +01:00
Thibaut Cuvelier
9d4ffac7fb ePub: detect and use xsltproc. 2021-02-07 20:33:06 +01:00
Thibaut Cuvelier
7f4782d51d ePub: copy images into the ePub archive. 2021-02-07 20:00:45 +01:00
Thibaut Cuvelier
b8a4408ca8 ePub: refactor script as a series of small functions. 2021-02-07 20:00:44 +01:00
Stephan Witt
f55efc6951 ePub: quote all path names of the command 2021-02-07 12:43:01 +01:00
Thibaut Cuvelier
0b50da7321 ePub: comment about subprocess.run instead of os.system to simplify code. 2021-02-07 06:35:42 +01:00
Thibaut Cuvelier
a8853743c5 ePub: update doc for running script. 2021-02-07 06:32:46 +01:00
Thibaut Cuvelier
3e745fabbe ePub: don't use glob.
Recursivity requires Python 3.5+.
2021-02-07 06:32:15 +01:00
Thibaut Cuvelier
6a99e88565 ePub: quote the command only on Windows. 2021-02-07 06:27:07 +01:00
Thibaut Cuvelier
4dcf3d56c2 ePub: remove commented line. 2021-02-07 06:23:21 +01:00
Thibaut Cuvelier
7472be428e ePub: fix argument handling in Python script. 2021-02-07 01:55:43 +01:00
Thibaut Cuvelier
9ad760db92 docbook2epub. 2021-02-05 16:07:43 +01:00