Skip to content

Omikhleia/textsubsuper.sile

Repository files navigation

textsubsuper.sile

license Luacheck Luarocks

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.

superscripts and subscripts

Installation

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.)

Usage

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.

License

All SILE-related code and samples in this repository are released under the MIT License, (c) 2021-2023 Omikhleia.

About

Real or fake superscripts and subscripts for the SILE typesetting system

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages