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

sile-typesetter / sile / 11826759401

13 Nov 2024 10:16PM UTC coverage: 61.013% (-2.4%) from 63.4%
11826759401

push

github

web-flow
Merge pull request #2165 from Omikhleia/feat-bevelled-fractions

feat(math): Support MathML bevelled fractions

7 of 38 new or added lines in 2 files covered. (18.42%)

581 existing lines in 28 files now uncovered.

11155 of 18283 relevant lines covered (61.01%)

2604.98 hits per line

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

0.0
/languages/ca/init.lua
UNCOV
1
SILE.nodeMakers.ca = pl.class({
×
2
   _base = SILE.nodeMakers.unicode,
3

4
   -- overridden properties from parent class
5
   quoteTypes = { qu = true }, -- split tokens at apostrophes &c.
6
})
7

UNCOV
8
local hyphens = require("languages.ca.hyphens-tex")
×
UNCOV
9
SILE.hyphenator.languages["ca"] = hyphens
×
10

UNCOV
11
SILE.hyphenator.languages["ca"].hyphenateSegments = function (node, segments, j)
×
12
   -- punt volat (middle dot) cancels when hyphenated
13
   -- Catalan typists may use a punt volat or precomposed characters.
14
   -- The shaper might behave differently depending on the font, so we need to
15
   -- be consistent here with the typist's choice.
UNCOV
16
   local hyphenChar = SILE.settings:get("font.hyphenchar")
×
17
   local replacement, hyphen
UNCOV
18
   if luautf8.find(segments[j], "ŀ$") then -- U+0140
×
UNCOV
19
      segments[j] = luautf8.sub(segments[j], 1, -2)
×
UNCOV
20
      replacement = SILE.shaper:createNnodes("ŀ", node.options)
×
UNCOV
21
      hyphen = SILE.shaper:createNnodes("l" .. hyphenChar, node.options)
×
UNCOV
22
   elseif luautf8.find(segments[j], "Ŀ$") then -- U+013F
×
23
      segments[j] = luautf8.sub(segments[j], 1, -2)
×
24
      replacement = SILE.shaper:createNnodes("Ŀ", node.options)
×
25
      hyphen = SILE.shaper:createNnodes("L" .. hyphenChar, node.options)
×
UNCOV
26
   elseif luautf8.find(segments[j], "l·$") then -- l + U+00B7
×
UNCOV
27
      segments[j] = luautf8.sub(segments[j], 1, -3)
×
UNCOV
28
      replacement = SILE.shaper:createNnodes("l·", node.options)
×
UNCOV
29
      hyphen = SILE.shaper:createNnodes("l" .. hyphenChar, node.options)
×
UNCOV
30
   elseif luautf8.find(segments[j], "L·$") then -- L + U+00B7
×
31
      segments[j] = luautf8.sub(segments[j], 1, -3)
×
32
      replacement = SILE.shaper:createNnodes("L·", node.options)
×
33
      hyphen = SILE.shaper:createNnodes("L" .. hyphenChar, node.options)
×
34
   else
UNCOV
35
      hyphen = SILE.shaper:createNnodes(hyphenChar, node.options)
×
36
   end
UNCOV
37
   local discretionary = SILE.types.node.discretionary({ replacement = replacement, prebreak = hyphen })
×
UNCOV
38
   return discretionary, segments
×
39
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