Fix: ambiguous description for epub3_page_progression_direction conf value.

This commit is contained in:
shimizukawa 2016-02-22 10:17:17 +09:00
parent d38b3ff2a0
commit 905cbd09ed
2 changed files with 7 additions and 3 deletions

View File

@ -1387,8 +1387,12 @@ the `Dublin Core metadata <http://dublincore.org/>`_.
.. confval:: epub3_page_progression_direction
The global direction in which the content flows.
Allowed values are ltr (left-to-right), rtl (right-to-left) and default.
The default value is ``'ltr'``.
Allowed values are ``'ltr'`` (left-to-right), ``'rtl'`` (right-to-left) and
``'default'``. The default value is ``'ltr'``.
When the ``'default'`` value is specified, the Author is expressing no
preference and the Reading System may chose the rendering direction. This
value must be assumed when the attribute is not specified.
.. versionadded:: 1.4

View File

@ -120,7 +120,7 @@ class Epub3Builder(EpubBuilder):
metadata['description'] = self.esc(self.config.epub3_description)
metadata['contributor'] = self.esc(self.config.epub3_contributor)
metadata['page_progression_direction'] = self.esc(
self.config.epub3_page_progression_direction)
self.config.epub3_page_progression_direction) or 'default'
return metadata
def new_navlist(self, node, level):