Module globals
Global library provisions.
Fields
pl | Penlight on-demand loader. |
luautf8 | UTF-8 string library. |
fluent | Fluent localization library. |
Fields
- pl
- Penlight on-demand loader. The Lua language adopts a "no batteries included" philosophy by providing a minimal standard library. Penlight is a widely used set libraries for making it easier to work with common tasks. Loading SILE implies that the Penlight on-demand module loader is available, allowing any Penlight functions to be accessed using the pl prefix. Consult the Penlight documentation for specifics of the utilities available.
- luautf8
- UTF-8 string library. The standard string modules in LuaJIT as well as PUC Lua 5.1 and 5.2 only handle strings as bytes. Lua 5.3+ has a UTF-8 safe string module but its feature set is underwhelming. This adds more functions and levels the playing field no matter which Lua VM is being used. See luautf8 docs for details.
- fluent
- Fluent localization library. For handling messages in various languages SILE provides an implementation of Project Fluent's localization system (originally developed by Mozilla for use in Firefox). This global is an instantiated interface to fluent-lua pre-loaded with resources for all the languages and regions SILE has support for.