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

sile-typesetter / sile / 9409557472

07 Jun 2024 12:09AM UTC coverage: 69.448% (-4.5%) from 73.988%
9409557472

push

github

alerque
fix(build): Distribute vendored compat-5.3.c source file

12025 of 17315 relevant lines covered (69.45%)

6023.46 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 od-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
-- LuaJIT 5.1 and 5.2's `string` module only handle strings as bytes. Lua 5.3+ has a UTF-8 safe `string` module, but its
14
-- feature set is somewhat underwhelming. This module includes more functions and levels the playing field no matter
15
-- which Lua VM is being used. See [luautf8 docs](https://github.com/starwing/luautf8) for more details.
16
_G.luautf8 = require("lua-utf8")
×
17

18
--- Fluent localization library.
19
-- For handling messages in various languages SILE provides an implementation of [Project
20
-- Fluent](https://projectfluent.org/)'s localization system (originally developed by Mozilla for use in Firefox). This
21
-- global is an instantiated interface to [fluent-lua](https://github.com/alerque/fluent-lua) pre-loaded with resources
22
-- 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

© 2025 Coveralls, Inc