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

sile-typesetter / sile / 9507147410

13 Jun 2024 09:40PM UTC coverage: 50.521% (-18.7%) from 69.177%
9507147410

push

github

web-flow
Merge pull request #2062 from alerque/plug-fluent-leak

Link document.language setting more closely with Fluent locale

15 of 15 new or added lines in 3 files covered. (100.0%)

3244 existing lines in 65 files now uncovered.

8586 of 16995 relevant lines covered (50.52%)

4659.09 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.
UNCOV
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.
UNCOV
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.
UNCOV
23
_G.fluent = require("fluent")()
×
24

25
-- For developer testing only, usually in CI
UNCOV
26
if os.getenv("SILE_COVERAGE") then
×
UNCOV
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