cargo crowbook 0.11.0

latest releases: 0.16.1, 0.16.0, 0.15.2...
7 years ago

Substantial changes in this release, the more important one being
support for parts!

  • Breaking changes: the API has undergone some breaking changes,
    hoping they will be the last ones for a while. API should now be
    more simple and consistent (?). This version contains also
    substantial options renaming (see below).
  • Crowbook now supports parts (above the "chapter" level), using the
    '@' character in the book configuration file.
  • Command-line interface:
    • Behaviour of --to should now be consistent for all output
      formats.
    • If --output is set to -, prints to stdout.
    • Conversely, if <BOOK> is set to -, reads from stdin.
    • Path specified by --output is now interpreted relatively to
      current directory (and not depending on where <BOOK> is or its
      options).
  • Rendering:
    • Chapters with no titles now have an empty title added (so it can
      at least display e.g. "Chapter X").
    • EPUB:
      • The toc.ncx file now displays links to "title" and (if set)
        "cover" (can be deactivated, see below).
      • The toc.ncx file now displays toc levels below chapter.
      • The table of contents is now displayed inline if
        rendering.inline_toc is set to true.
  • New options:
    • epub.toc.extras, set to true by default, will add links to the
      title and the cover (if it is set) in the table of contents.
    • epub.escape_nb_spaces, similar to html.escape_nb_spaces and
      set to false by default since at least Kobo reader don't seem to
      be able to understand the CSS to escape those nb spaces...
    • rendering.chapter.roman_numerals, if set to true, will display chapter
      numbers using roman numerals.
    • rendering.part.roman_numerals, if set to true (it is by
      default) will display part numbers using roman numerals.
    • rendering.part.template specifies the numbering scheme of parts.
    • rendering.part.reset_counter, if set to true (it is by
      default), resets chapter number to zero after a part.
  • Renamed options:
    • import_config renamed to import.
    • rendering.chapter_template renamed to rendering.chapter.template.
    • html_single.html renamed to html.standalone.template.
    • html_single.js renamed to html.standalone.js.
    • html_single.one_chapter renamed to html.standalone.one_chapter.
    • output.html_dir renamed to output.html.dir.
    • output.proofread.html_dir renamed to output.proofread.html.dir.
    • html_dir.index.html and html.dir.chapter.html have been merged
      and both renamed to html.dir.template.
    • tex.font_size renamed to tex.font.size.
  • Bugfixes:
    • EPUB:
      • Fix duplicate HTML escaping (resulting in e.g. "&" instead
        of "&").
    • HTML directory:
      • Fix panic when trying to generate html directory in "../xxx"
        (#23).
      • Fix "previous chapter" links that were not displayed when
        "html.header" was set.
    • HTML:
      • Fix the way initial letter is displayed if rendering.initials
        is true.
  • Internationalization:
    • Strings in generated Crowbook documents (such as "Table of
      contents", "Title", "Cover" and such) are now translated in spanish.

Don't miss a new crowbook release

NewReleases is sending notifications on new releases.