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

sile-typesetter / sile / 9304060604

30 May 2024 02:07PM UTC coverage: 74.124% (-0.6%) from 74.707%
9304060604

push

github

alerque
style: Reformat Lua with stylua

8104 of 11995 new or added lines in 184 files covered. (67.56%)

15 existing lines in 11 files now uncovered.

12444 of 16788 relevant lines covered (74.12%)

7175.1 hits per line

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

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

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