Commit Graph

34 Commits

Author SHA1 Message Date
Takeshi KOMIYA
000328f7fd test: Decode stdout and stderr of epubcheck 2020-07-18 16:38:22 +09:00
Takeshi KOMIYA
32b256dc2f Fix #7301: epub: duplicated node_ids are generated 2020-03-29 23:55:56 +09:00
Takeshi KOMIYA
7aa5584a47 Fix #7301: capital characters are not allowed for node_id 2020-03-29 23:55:56 +09:00
Takeshi KOMIYA
7bbf79c313 Fix #7301: Allow . and _ for node_id
In development of 3.0, Sphinx starts to obey to the rule of
"Identifier Normalization" of docutils.  This extends it to allow
dots(".") and underscores("_") for node identifier.

It allows Sphinx to generate node identifier from source string as
possible as it is (bacause dots and underscores are usually used in
many programming langauges).

This change will keep not to break hyperlinks as possible.
2020-03-22 16:39:00 +09:00
Takeshi KOMIYA
fbfaf41e83 std domain: Generate node_id for generic objects in the right way 2020-03-02 01:28:01 +09:00
Takeshi KOMIYA
4dd8b1022f test: Use read_text() and read_bytes() 2020-02-01 11:58:51 +09:00
Takeshi KOMIYA
93d659568d Fix #5070: epub: Wrong internal href fragment links 2019-10-20 14:32:08 +09:00
Takeshi KOMIYA
1ece29597e
Merge branch 'master' into simplify_conf.py 2019-02-16 21:25:21 +09:00
Takeshi KOMIYA
1a96f2b2cb Do test with docutils-0.12 2019-02-09 15:48:33 +09:00
Takeshi KOMIYA
d08903d9b9 quickstart: Simplify generated conf.py (EPUB) 2019-02-09 15:00:27 +09:00
Takeshi KOMIYA
b950480218 Fix #4611: epub: Show warning for duplicated ToC entries 2019-02-03 22:53:30 +09:00
Takeshi KOMIYA
46334a2b00 Use subprocess.run() instead of Popen()
Since python3.5, subprocess.run() has been introduced. It works a
wrapper of Popen, and it looks much simple and better. This uses it
instead of Popen to make our code simple.
2019-01-13 23:25:54 +09:00
Jon Dufresne
bade33c7e4 Remove unnecessary encoding cookie from Python source files
In Python 3, the default encoding of source files is utf-8. The encoding
cookie is now unnecessary and redundant so remove it. For more details,
see the docs:

https://docs.python.org/3/howto/unicode.html#the-string-type

> The default encoding for Python source code is UTF-8, so you can
> simply include a Unicode character in a string literal ...

Includes a fix for the flake8 header checks to stop expecting an
encoding cookie.
2018-12-16 12:22:12 -08:00
Takeshi KOMIYA
c6bd84a614 refactor: Remove u-prefix from strings 2018-12-16 21:28:51 +09:00
Jon Dufresne
490e4aed41 Remove unnecessary object from class definitions
In Python 3, all classes are new-style classes. The object in the
definition is redundant and unnecessary.
2018-09-11 07:07:01 -07:00
Takeshi KOMIYA
d1eecb1307 Merge branch '1.7' into 1.8 2018-09-09 19:22:35 +09:00
Takeshi KOMIYA
973986cfdb Add $DO_EPUBCHECK envvar as a workaround for #4611 2018-09-09 19:09:56 +09:00
Takeshi KOMIYA
aee5fd04d4 Fix #5348: download reference to remote file is not displayed 2018-08-26 22:25:35 +09:00
Takeshi KOMIYA
3d180f9385 Merge branch '1.7' 2018-06-21 23:23:30 +09:00
Takeshi KOMIYA
d7bf78f3ff Fix #5070: epub: Wrong internal href fragment links 2018-06-19 23:37:37 +09:00
Takeshi KOMIYA
bd2967f1d2 Add :confval:epub_css_files 2018-04-06 13:11:24 +09:00
Takeshi KOMIYA
cd08872cc0 Fix existence check for JRE was broken 2018-03-20 23:35:42 +09:00
Takeshi KOMIYA
9891924485 epub: Fix docTitle elements of toc.ncx is not escaped 2018-03-20 20:28:02 +09:00
Takeshi KOMIYA
11fa47769b Fix filename of epub (refs: #4611) 2018-03-07 10:53:01 +09:00
Takeshi KOMIYA
2523979d26 test: Run epubcheck as a testing 2018-02-19 00:27:45 +09:00
Takeshi KOMIYA
a9efb2517a Fix flake8 violations 2017-12-23 21:21:21 +09:00
Yoshiki Shibukawa
f0766ce4cd fix #3840: epub_uid should be XML Name 2017-06-30 23:37:32 +09:00
Dmitry Shachnev
edc7f30b9c Remove the custom smartypants code
Instead rely on docutils’ ‘smart_quotes’ option which is available
since docutils 0.10.

This adds support for internationalization: our code supported only
English quotes, while docutils code supports 27 different languages.

Closes #498, #580, #3345, #3472.
2017-04-25 14:17:13 +03:00
Yoshiki Shibukawa
229c5cfa3b Add warning messages for required EPUB3 metadata 2017-02-28 19:51:39 +09:00
Takeshi KOMIYA
4a72778e06 epub: Refactor around epub_writing_mode 2017-02-11 18:26:54 +09:00
Takeshi KOMIYA
bbd52dd347 epub: Do not count up tocid on creating nav.xhtml 2017-02-11 17:22:26 +09:00
Takeshi KOMIYA
a051fe2c6d epub: Add template for tox.ncx 2017-02-11 15:56:19 +09:00
Takeshi KOMIYA
fec760bf94 Add testcases for epub 2017-02-11 15:33:32 +09:00
Takeshi KOMIYA
201ae9c1ac epub: Use templates to generate EPUB files 2017-02-11 15:33:32 +09:00