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

sile-typesetter / sile / 14684598788

26 Apr 2025 07:55PM UTC coverage: 29.023% (-36.3%) from 65.328%
14684598788

push

github

alerque
test(fonts): Update test to work on new ICU instead of old

5840 of 20122 relevant lines covered (29.02%)

379.34 hits per line

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

0.0
/languages/am/init.lua
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

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