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

sile-typesetter / sile / 6915845768

18 Nov 2023 07:23PM UTC coverage: 63.161% (-5.6%) from 68.751%
6915845768

push

github

web-flow
Merge 0f5c09a66 into f64e235fa

9802 of 15519 relevant lines covered (63.16%)

2045.54 hits per line

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

0.0
/languages/am.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 self:makeLetterSpaceGlue() end
×
40
    self:makeToken()
×
41
  end)
42
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