This package for the SILE typesetting system provides ways to typeset superscripted or subscripted text properly, using real (i.e. based on OpênType font properties) or fake (scaled and raised) characters, with several tuning options.
As it names imply, it is not a general-purpose super/subscript package, but it operates on text:
- Detecting and using, when available, OpenType font features for “real” superscripts or subscripts;
- Scaling and raising (or lowering) characters in the “fake” case, with special provisions for digits and character weight.
In other words, it aims at providing a standardized way to get a “decent typographical” output for superscripted or subscripted text, with appropriate fallbacks.
This package require SILE v0.14.13 or upper.
Installation relies on the luarocks package manager.
To install the latest version, you may use the provided “rockspec”:
luarocks install textsubsuper.sile
(Refer to the SILE manual for more detailed 3rd-party package installation information.)
Examples are provided in the examples folder.
The in-code package documentation may also be useful. A readable version of the documentation is included in the User Manual for the resilient.sile collection of classes and packages.
All SILE-related code and samples in this repository are released under the MIT License, (c) 2021-2023 Omikhleia.