Skip to content

v1.24

Latest

Choose a tag to compare

@github-actions github-actions released this 19 Sep 14:00
5deef7b

New

dpunkt_V05 template — targets dpunkt's accessibility (BFSG) template dpunkt_V05.dotm. It renames nearly every custom style of dpunkt_2019, so the two are not interchangeable, and it uses one listing style per programming language (Listing Java, Listing Python, …) picked from the language on the code fence.

Index entries become Word XE fields. Where a template asks for them through the new index_entries setting, {i: ...} entries are converted to the fields Word builds an index from. dpunkt_V05 is the only template asking for them so far; every other template drops entries as before. The Markua index syntax is supported as spec.txt §11.24 defines it — quoted or bare terms, levels separated by !, the \! \| \{ \} \\ escapes, inline emphasis carried into the field, code spans dropped, |see and |seealso references, and entries sitting in a larger attribute list.

--no-language-listings — puts every listing in the template's standard listing style instead of the one for its language, for publishers who ask for one listing style throughout. In the GitHub Action it is the new no-language-listings input.

Changed

Numbered-list styles follow an item's position, not the number written in the manuscript. Markdown lets every item read 1., and many manuscripts are written that way; those lists previously got the first-item style throughout. Items numbered 10. or higher matched no rule at all and stayed raw Markdown. Both are fixed, for every template.

Fixed

These affect all templates, not only the new one:

  • An index entry carrying a |see or |seealso reference nests another {i:...} inside itself, which the pattern recognising an entry did not account for — so those entries left markup like "} in the finished book.
  • An escaped brace inside a term, and an entry sitting beside other attributes ({id: #myid, i: "blah"}), were not recognised as entries either, and were printed verbatim.
  • A numbered list next to an empty-style div could take it for a list continuation, in templates that define no BL_CON style.

Upgrading

action.yml gained the no-language-listings input, so pin @v1.24 to reach it:

- uses: hschwentner/fatpub@v1.24
  with:
    template: dpunkt_V05
    in: manuscript/book.txt
    out: out/book-dpunkt_V05.md

Word needs an INDEX field somewhere in the document to build an index from the XE fields; that still has to be added by hand.

Thanks to @nilshartmann for #1.

Full Changelog: v1.23...v1.24