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

sile-typesetter / sile / 14844751993

05 May 2025 05:31PM UTC coverage: 59.865% (+27.8%) from 32.062%
14844751993

push

github

alerque
fix(packages): Fix package reload to not call for command reregistration unless asked

1 of 1 new or added line in 1 file covered. (100.0%)

88 existing lines in 14 files now uncovered.

12962 of 21652 relevant lines covered (59.87%)

4076.32 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

© 2025 Coveralls, Inc