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

sile-typesetter / sile / 11645631468

02 Nov 2024 08:31PM UTC coverage: 66.687% (-2.7%) from 69.34%
11645631468

Pull #2072

github

alerque
refactor(cli): Redo option parsing enabled by mlua v0.10 scopes
Pull Request #2072: Setup Lua module for exporting Rust functions to Lua

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

476 existing lines in 28 files now uncovered.

12087 of 18125 relevant lines covered (66.69%)

5249.73 hits per line

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

0.0
/languages/am/init.lua
UNCOV
1
SILE.settings:declare({
×
2
   parameter = "languages.am.justification",
3
   type = "string",
4
   default = "left",
5
   help = "Justification method for Ethiopic word separators: left or centered",
6
})
7

UNCOV
8
SILE.nodeMakers.am = pl.class(SILE.nodeMakers.unicode)
×
UNCOV
9
function SILE.nodeMakers.am:iterator (items)
×
UNCOV
10
   local ics = SILE.settings:get("document.letterspaceglue")
×
UNCOV
11
   local style = SILE.settings:get("languages.am.justification")
×
UNCOV
12
   return coroutine.wrap(function ()
×
UNCOV
13
      for i = 1, #items do
×
UNCOV
14
         local item = items[i]
×
UNCOV
15
         local char = items[i].text
×
UNCOV
16
         local cp = SU.codepoint(char)
×
UNCOV
17
         if cp == 0x1361 then -- ETHIOPIC WORDSPACE
×
UNCOV
18
            if style == "centered" then
×
UNCOV
19
               self:makeToken()
×
UNCOV
20
               self:makeGlue(item)
×
21
            end
UNCOV
22
            self:addToken(char, item)
×
UNCOV
23
            self:makeToken()
×
UNCOV
24
            self:makeGlue(item)
×
UNCOV
25
         elseif cp == 0x1362 then -- ETHIOPIC FULL STOP
×
UNCOV
26
            if style == "centered" then
×
UNCOV
27
               self:makeToken()
×
UNCOV
28
               self:makeGlue(item)
×
29
            end
UNCOV
30
            self:addToken(char, item)
×
UNCOV
31
            self:makeToken()
×
UNCOV
32
            self:makeGlue(item)
×
UNCOV
33
            self:makePenalty() -- This is cheating. We should really make double width glue
×
UNCOV
34
            self:makeGlue(item)
×
35
         else
UNCOV
36
            self:dealWith(items[i])
×
37
         end
38
      end
UNCOV
39
      if ics then
×
40
         self:makeLetterSpaceGlue()
×
41
      end
UNCOV
42
      self:makeToken()
×
43
   end)
44
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