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

sile-typesetter / sile / 11574339945

29 Oct 2024 12:58PM UTC coverage: 34.309% (-33.9%) from 68.22%
11574339945

push

github

web-flow
Merge pull request #2142 from Omikhleia/fix-math-fraction-padding

fix(math): Fractions must have padding to avoid visual confusion

0 of 26 new or added lines in 1 file covered. (0.0%)

5779 existing lines in 69 files now uncovered.

6014 of 17529 relevant lines covered (34.31%)

4588.59 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