Skip to content

Release 0.5.5 (2024-07-13)

Latest
Compare
Choose a tag to compare
@brechtm brechtm released this 13 Jul 15:12

Install from PyPI - documentation

Documentation changes:

  • A showcase section was added to the manual to show examples of documents that can be produced by rinohtype.

New Features:

  • Add support for Hungarian language (PR #425 by Pablo Alexis Domínguez Grau)
  • Print alt text instead of error message when failing to render rst :image: directive (PR #410 by Timm638)
  • Support for Spanish section and admonition titles (PR #400 by María Andrea Vignau)
  • Enumerated list item labels now also respect the number_separator style property, enabling hierarchical list item labels (discussion #350).
  • Admonitions now have a 'custom_title_text' property that can be used to style generic admonitions. For example, this style definition applies to .. admonition:: Fun Fact:
    [fun fact admonition : Admonition(custom_title_text='Fun Fact')]
    base = admonition
    border_top = none
    border_bottom = none
    

Changed:

  • handling of localized strings and user-defined strings has been reworked
    • built-in (localized) strings are now indicated by a @ prefix, while user-defined strings have the $ prefix
    • built-in strings can be overridden, and user-defined strings can be set in a template configuration file in the [STRINGS] section (with prefix!)
  • "words" containing spaces (such as paths and URLs) can now be split before each forward slash for line wrapping (#188, #416)
  • Support for Python 3.7 was dropped (end-of-life in June 2023)
  • MyST replaces [recommonmark] (https://github.com/readthedocs/recommonmark) for Markdown support (issues #265 and #370)
  • The Article template has been overhauled. The title page and front matter parts have been removed and their contents are moved to the first content page. This makes the Article template more useful, since it was too similar to the Book template before.
  • Template options whose purpose can also be fulfilled by setting the hide
    style property to true have been removed. The corresponding style definitions are:
    • TitlePageTemplate.show_date: title page date
    • TitlePageTemplate.show_author: title page author
    • Article.table_of_contents: table of contents section

Fixed:

  • Embedding of PDF images produces by Graphviz 10+
  • Google Fonts downloading (google/fonts#7481)
  • Caption labels ("Figure", "Table", "Listing") were not localized
  • Rendering of tables with no body (#420, PR #422 by th0mr)
  • Hyphenation of the first word on a line (#188, #416)
  • AttributeError: 'ZeroWidthSpace' object has no attribute 'hyphenate' (#415, PR #417 by Jack Whitham)
  • Fix a Python 3.12 DeprecationWarning regarding utcfromtimestamp()
  • Sphinx frontend: support the desc_sig_space document node (#414)
  • Hyphenated word split across pages merges with the next word (#388)
  • Compatibility with importlib-metadata 6.0.0 (#389)
  • Document part templates were not retrieved recursively (#379 comment)
  • Listing the installed fonts in a PDF: rinoh --list-fonts <filename>
  • Crash on rendering a heading with an index entry annotation (#369)
  • Crash on encountering a fully-spanned table row (#369)
  • Crash on rendering a figure caption with the default style (#368)
  • Google Fonts fixes
    • Some fonts on Google Fonts have the 'otf' extension (instead of 'ttf'); also collect these.
    • Look recursively for font files in a Google Fonts directory (e.g. Asap fonts are now stored in a deeper directory).