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

sile-typesetter / sile / 9304049654

30 May 2024 02:12PM UTC coverage: 60.021% (-14.7%) from 74.707%
9304049654

push

github

web-flow
Merge 1a26b4f22 into a1fd105f8

6743 of 12900 new or added lines in 186 files covered. (52.27%)

347 existing lines in 49 files now uncovered.

10311 of 17179 relevant lines covered (60.02%)

3307.34 hits per line

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

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