Releases: sile-typesetter/sile
v0.15.5
Summary of Improvements
This is a relatively minor maintenance release. Thanks again to ongoing work by @Omikhleia, support for bibtex format bibliographies is improving. Date and author parsing and rendering has been improved. Support for CSL is still brewing in the bibliography project.
Additionally the --quiet
flag now correctly suppresses all parts of warning messages for cleaner output when you don't want to debug your project. Even more behind the scenes, the entire code base has also been spell-checked, with hundreds of words in comments, code, and documentation being corrected.
New Features
- packages: Support biblatex date field and improve date formatting (5169d67)
Bug Fixes
- build: Fix distribution of unit tests clean up dist file list (00abf9b)
- classes: Make document state available during class's post init (71336b9)
- cli: Suppress trace info in quiet for warnings but do show errors (e12dcc9)
- packages: Parse and split all bibtex name fields (e3a7dc1), closes #2052
- packages: Use non-breakable space in bibTeX name splitting, not tilde (f4ea4ed)
v0.15.4
Summary of Improvements
The dust finally settled on the big v0.15.0 release. This patch does include a few more build system touch ups affecting the source tarball that made in require automake when it didn't really need it. But the impetus for this release is actually new features and typesetter bug fixes.
On the language front, @jodros has jumped in with some more domain expertise and Portuguese should now fully support hyphenation of Brazilian locale specific patterns. Additionally we fixed two bugs in the localization system. The locale set for Fluent localizations now properly tracks the document language at any given moment whether set by a font or even a Latin interjection in a bibliography.
Speaking of bibliographies, @Omikhleia is in the middle of a deep overhaul of our bibliography handling. This release has a number of features and bug fixes that lay some groundwork for better parsing and handling bibtex files. More fixes and features are also in progress and even ready for testing. If you have any interest in bibliographies feel free to review ongoing issues and PRs in the bibliography cleanup project.
New Features
- build: Add a developer target to test build dist without automake (7bdaf16)
- languages: Add Brazilian Portuguese specific hyphenation points (895c575)
- packages: Biblatex data inheritance and field mapping (646e3a4)
- packages: Support
@string
syntax in bibTeX bibliography (63083ad), closes #2051 - packages: Support
@xdata
entry type and xdata field in bibTeX bibliography (ca906f0) - packages: Support crossref field in bibTeX bibliography (c4ae919), closes #2021
- tooling: Add developer target to build Rust API docs (384fa46)
Bug Fixes
- build: Avoid building sile binaries if not using them (bbde8e6)
- build: Avoid the perceived need for an extra automake cycle in dist tarball (f634a60)
- build: Do not distribute main man page, requires Rust tooling (26a6346)
- build: Don't distribute distfiles list with configure option specific output (b9d95fd)
- build: Flag transitive dependency on Git if not using system LuaRocks (ea2d501)
- languages: Always set Fluent locale when setting
document.language
(283fdc3) - packages: Correct handling of ampersands and tildes in bibtex (aaa613f), closes #2050 #1860
- packages: Ignore
@preamble
in bibTeX bibliography (742a0c4), closes #2051
v0.15.3
Summary of Improvements
This release fixes a regression in v0.15.0 involving 3rd party modules. We were not referencing the LUA_PATH
(and LUA_CPATH
) environment variables at run time, only at build time. This made it unreasonably difficult to install and use 3rd party modules to a user's $HOME
directory and use them in SILE. We were finding modules installed at the system level or locally to a project, but other trees were not being seen.
With this fix, installing modules via luarocks --local install
should be a viable workflow again. Before running SILE, make it aware of these modules with eval $(luarocks --local path)
. The same goes for any arbitrary luarocks --tree
locations.
Bug Fixes
- core: Allow LUA_PATH env var to take effect at runtime (e573c2d)
v0.15.2
Summary of Improvements
The big v0.15.0 release had some rough edges. But we mentioned that in the v0.15.1 release notes already. The truth is we fumbled some of the sources in the source tarball again. Here is to being able to build cleanly from the source tarball again.
Bug Fixes
- build: Bundle all assets in source distribution (5198641)
v0.15.1
Summary of Improvements
The big v0.15.0 release had some rough edges. First the source tarball was missing a vendored source file needed to build against some Lua versions. This did not affect building from Git sources, but made downstream distro packaging difficult. Additionally the now completely removed legacy package manager was still asking for Git as a run time dependency, which is now obsolete.
Also the big changes to the way SIL sources are parsed revealed several order bugs in the book class. These were visible even in the SILE manual as a regression in the way indentation was (not) suppressed after chapters and sections. This was all cleaned up and hopefully paragraph handling is a bit more logical now. Note that per the breaking changes in v0.15.0 custom implementations of these functions will need to be adapted the same way.
Bug Fixes
v0.15.0
Summary of Improvements
In the works for over a year with over 500 commits and 100 issues closed, please welcome the biggest single release in SILE history. This is the big “Rewrite it in Rust”! Caveat lector. In truth this is a big release but it is not a rewrite. All the typesetting internals of SILE are still written in Lua and 100% user modifiable at runtime. From an end user or 3rd party module developer standpoint little has changed. However SILE itself is now a compiled Rust application that includes its own Lua interpreter. The build process can (optionally) embed all the Lua and other resources files that makeup SILE and its dependencies in a single binary. This opens the door for improvements such as being able to leverage Rust libraries (including exposing their functions to Lua), write some parts of core functions in Rust for performance or preference, write modules in languages other than Lua or C, package SILE for platforms where Lua is not easy to get running, and much more.
The language change mostly affects building and packaging SILE itself. Once running, relatively little has changed with the way SILE interacts with documents. That being said quite a number of default settings have been changed. See the Usage section of these release notes and the retrograde
module documentation for tips on how to transition smoothly.
For a transition period, the Lua based CLI is still available as sile-lua
. This may be useful for scripting environments that generate inputs and/or parse the output of SILE itself. These should be transitioned to the new Rust CLI sile
which has a few minor differences in argument handling and output message formatting. The Lua CLI will only be available for a limited number of future releases. Please do report any issues using the new CLI.
Extra thanks to @Omikhleia for lots contributions and input during the development cycle; and also to @ctrlcctrlv for generous sponsorships that enabled me to commit quite a bit more time to development.
Installation: For Anyone Installing From Packages
If you install SILE from your distro's package manager or other packaging, nothing about your process needs to change. Update via your system tools and enjoy.
Installation: For Distro Packagers and Source Installations
If you install from source or package SILE, the build command sequence is the same but there are new prerequisite dependencies. It now requires Rust tooling (cargo
, rustc
) as well as some more utilities (jq
) to be available at build time. No new dependencies are needed at run time. In fact it is now no longer necessary to use a Lua VM available at runtime for the new CLI. SILE brings its own Lua VM along. (The legacy sile-lua
CLI of course still uses Lua as before.) Optionally the build process can also be setup to embed all of its runtime dependencies in a single binary. See ./configure --enable-embedded-resources
and ./configure --enable-static
if you want to pursue the single binary route. Most users should use the defaults that install the Lua files and other assets separately as an easy reference for tinkering with and overriding them.
Another notable change is that the default Lua VM has been switched from whatever the system supplied to to LuaJIT. This has been an option for a while, but the default has been whatever the newest PUC Lua version was on the host system. LuaJIT is roughly equivalent to Lua 5.1 and doesn't have some small niceties from 5.4, but it is much much faster. Some of the differences are papered over since SILE depends on and provides the compat53 library compatibility layer. Of course build time SILE can still be configured to used any version of Lua of your choice. This can be used to match compatibility with 3rd party modules or other system components.
Usage
A number of command behaviours and default settings have been changed. This will likely cause documents to render with a different flow. It will also break support for some 3rd party modules which will need to be updated to match. Many (but not all) of the changes can be temporarily disabled to cause as few changes when rendering old documents as possible. A new module called retrograde
can be loaded at run time that will reset defaults and even revert some commands and functions to their previous behavior. A target argument can be passed for the version of SILE your document was designed for. Any default setting changes and as much other functionality as practical that may have changed since that release will be reverted.
$ sile -u 'packages.retrograde[target=v0.14.17]' <INPUTS>
Since the Lua VM version used by default is different, you may need to reinstall 3rd party modules with a matching Lua version. You can first query SILE to understand what version of Lua it is using. With that information you can specify the Lua version you want when you install modules as LuaRocks to match. As a demonstration we'll install a Markdown input module in a project-local directory where SILE will find it without extra path configuration, then use it to render a PDF file:
$ sile -q -e 'print(SILE.lua_version); os.exit()'
5.1
$ luarocks --lua-version 5.1 --tree lua_modules install markdown.sile
[…]
$ echo 'Test *Markdown* rendering.' > test.md
$ sile -u inputters.markdown test.md
[…]
Without further ado, here is the nitty–gritty.
⚠ BREAKING CHANGES
-
packages: Lists now respect the input document spacing and normal settings with regard to paragraphs breaks before, after, and inside lists. This is place of overriding the paragraph skip settings to match the list item spacing setting and always forcing paragraph breaks before and after lists.
-
classes: Hitherto SILE has cleared the current.parindent setting as soon as it used it at the beginning of a paragraph. With this release, the setting is not being cleared until a paragraph is explicitly ended. This will not have an affect on many documents, but could completely blow up layout code that implicitly relied on the effect. Normal paragraphs (e.g. separated by a blank line in the input) and any use cases that explicitly called far ending a paragraph (e.g. by calling
\par
) will be unaffected. But anywhere a paragraph break was simulated by adding vertical space, the indentation will not be applied the next start of a line. This means that calling any variant of\skip
inline in a paragraph will result in content beginning on a new line without using the parindent setting.Fixing this change in behaviour requires either explicitly resetting the current.parindent setting after it is initially used or explicitly ending a paragraph before or after placing a vertical skip.
-
inputters: Input documents using the SIL language will now retain whitespace more consistently. Whitespace following environment blocks is no longer swallowed in differently than space following command syntax. Consecutive line breaks in the input will consistently trigger new paragraphs no matter what they follow.
Note that this change cannot be patched over via the retrograde package settings because by the time your document could specify what packages to load or settings to set, the input document has already been parsed. To achieve the same rendering results where environments could be ended leaving any amount of blank lines and still joined to the following content as part of the same paragraphs, you will need to remove the extraneous whitespace.
-
core: Several top level instance creators of various names have been re-organized under SILE.types.
Specifically SILE.color, SILE.measurement, and SILE.length have the same names, just under SILE.types.. Additionally SILE.nodefactory is now SILE.types.node and SILE.units is not SILE.types.unit.
This brings a little bit of sanity to the naming schemes so that you can guess how to use something from the name, but it also makes room for 3rd party add ons to more easily extend or replace these functions. It also makes it easier to start substituting Rust bits where desired.
-
core: Use SILE.papersize() instead of SILE.paperSizeParser()
-
classes: The "center", "raggedleft" and "raggedright" environments formerly reset the margins (left or right skips), meaning they'd take the full frame width. They all cancelled the paragraph indent. The new behaviour honors the fixed part of the parent context's margins, meaning that if you have an environment playing with margins such as an epigraph or an indented quote, those margins are not lost. The raggedleft and raggedright environment also now no longer cancel the paragraph indent.
-
classes: The \script function was heavily overloaded to have many different functions at once and more targeted tools were introduced in SILE v0.14.0 To load 3rd party modules designed for use with SILE, use \use[module=...] instead of \script[src=...]. To run arbitrary Lua code inline use \lua{}; Lua code may be provided inline or externally via either a require= option to load a regular (non-SILE) Lua module using the Lua module path or src= option to load a file by file path.
-
core: For ... reasons ... the default width of spaces in SILE has been a highly opinionated and non-standard 1.2 spaces. While it can be argued that this makes some fonts and some documents look better, it is a very strange thing to have as a global default. Unfortunately setting it back to a more conventional 1 space is a major change and will cause many/most documents to re–flow.
The old default can be recovered either in documents with:
\set[parameter=shaper.spaceenlargementfactor,value=1.2,makedefault=true]
...or even from the CLI when rendering a document:
$ sile -e 'SILE.settings:set("shaper.spaceenlargementfactor", 1.2, true)' `...
v0.14.17
Summary of Improvements
The "big v0.15" is still brewing, but we keep coming up with little improvements that easily fit in the v0.14 series. It turns out the special hyphenation handling we added to Polish (for explicitly hyphenated words) is used by quite a few languages. At this time we've applied it by default to Croatian, Czech, Portuguese, Slovak. and Spanish. Thanks to @Omikhleia for much of the research on this as well as @jodros, @DavidLRowe, @jakubkaczor, and @tomas-vl for domain expertise.
Additionally João contributed an option for columns command to more easily set up column frames with balancing turned on or off.
Features
- languages: Enable explicit hyphen repetition handling in Croatian (c29545d)
- languages: Enable explicit hyphen repetition handling in Czech (b05d621)
- languages: Enable explicit hyphen repetition handling in Portuguese (2a58d96)
- languages: Enable explicit hyphen repetition handling in Slovak (82640b0)
- languages: Enable explicit hyphen repetition handling in Spanish (8db7f23)
- packages: Add balancing option to makecolums command (#1950) (b5ce8e6)
v0.14.16
Summary of Improvements
If goofed up some of the merges involved in the release process for v0.14.15. This doesn't bring any user facing features or fixes, only a bit of refactoring intended to be in the last release. The main purpose is to straighten out the repository so the expected branch contains the release tags. Sorry for the noise.
Bug Fixes
- tooling: Re-merge so release tag is on master branch (e8eaf11)
v0.14.15
Summary of Improvements
In today's minor release we tinker with language support.
@Omikhleia contributed improvements to non-breaking space handling in French. He also setup handling of Catalan hyphenation at ela geminada and Polish hyphenation at existing hyphens. Turkish gained a new setting (on by default per the current Turkish Language Association guidelines) for handling hyphenation at apostrophes. The previous behaviour (used by some publisher style guides) is available by toggling off the new setting.
All languages gained an (on by default) setting that makes spaces after em-dashes at the start of paragraphs be fixed width. This is used in at least French and Turkish typography to typeset dialogue and the fixed spacing keeps everything lining up per expectations. Other languages may benefit as well, but also the feature can be disabled if flexible spacing is actually desired.
Details for each of these languages and their related settings are in the SILE manual.
Features
- languages: Accomodate alternate Turkish hyphenation guidelines at apostrophes (92904fc)
- typesetters: Support for speaker change introduced by em-dash (2afa4cb)
Bug Fixes
v0.14.14
Summary of Improvements
Merry Christmas!
Not this isn't the Rusty release you might want in your stocking. That is coming along nicely though, we're just including an abitioun rollup of breaking changes and going slow to do it right. You can preview the release notes or follow issues in the milestore for teasers. More notably there are already lots of ways to run the development release: Homebrew has --HEAD
support, Docker images are available, the Nix flake works, Arch Linux has VCS packages, and more. If you want to start putting it through the paces go ahead.
Until the cookies are fully baked, this minor release has a few goodies that are not breaking changes. @Omikhleia contributed some updates to the dropcaps
package to better handle fonts with descenders in their capitals. He also contributed some improvements to Unicode handling: soft hyphen and non-breaking spaces work as expected. SILE has perhaps more robust ways of defining custom hyphenation and glue nodes, but the Unicode handling is convenient is handy if you input content has such data anyway. For bonus points some CLI error messages have been dramatically improved to be more informative and less repetative.
Features
- cli: Change module load error to suggestion for how to install 3rd party modules (c280050)
- languages: U+00A0 non-breaking space must be stretchable by default (b769a63)
- typesetters: Support U+00AD soft hyphen as discretionary break (285507e)