• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sile-typesetter / sile / 9710003952

28 Jun 2024 08:24AM UTC coverage: 61.779% (-8.6%) from 70.4%
9710003952

push

github

alerque
chore(tooling): Update Git ignore list and sort for easier review

10631 of 17208 relevant lines covered (61.78%)

2071.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/core/globals.lua
1
--- Global library provisions.
2
-- @module globals
3
-- @alias _G
4

5
--- Penlight on-demand loader.
6
-- The Lua language adopts a "no batteries included" philosophy by providing a minimal standard library. Penlight is
7
-- a widely used set libraries for making it easier to work with common tasks. Loading SILE implies that the Penlight
8
-- on-demand module loader is available, allowing any Penlight functions to be accessed using the `pl` prefix. Consult
9
-- the [Penlight documentation](https://lunarmodules.github.io/Penlight/) for specifics of the utilities available.
10
_G.pl = require("pl.import_into")()
×
11

12
--- UTF-8 string library.
13
-- 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
14
-- UTF-8 safe `string` module but its feature set is underwhelming. This adds more functions and levels the playing
15
-- field no matter which Lua VM is being used. See [luautf8 docs](https://github.com/starwing/luautf8) for details.
16
_G.luautf8 = require("lua-utf8")
×
17

18
--- Fluent localization library.
19
-- For handling messages in various languages SILE provides an implementation of
20
-- [Project Fluent](https://projectfluent.org/)'s localization system (originally developed by Mozilla for use in
21
-- Firefox). This global is an instantiated interface to [fluent-lua](https://github.com/alerque/fluent-lua) pre-loaded
22
-- with resources for all the langugaes and regions SILE has support for.
23
_G.fluent = require("fluent")()
×
24

25
-- For developer testing only, usually in CI
26
if os.getenv("SILE_COVERAGE") then
×
27
   require("luacov")
×
28
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc