isodoc 3.7.31 → 3.7.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a8e4d4a5a156cf057d376be69d387cbb1fe9eb28755a8b12f2338c04862db883
4
- data.tar.gz: 6406530cb1dc50b3e376aeb7a45206abeae9a79e174d8e74bcf49a36d45425e9
3
+ metadata.gz: 9dadaf4c7dfbe8b3b5aacd73b1ee4e51135fa339261928389e2012e9d22b6f7e
4
+ data.tar.gz: 65d80ff4f8aa0e732f272df33635fbd471fa294f41a3e8373b80bb876d4074ce
5
5
  SHA512:
6
- metadata.gz: aa47f282a796bf6fba8798b16e15710f66bb753c6b40afbabeea7d42a309a7e869a52b4edb50ae164aaee4b682e20ec28f0164877579083dae05ad66b2652af7
7
- data.tar.gz: 9b17b032e45a84487d2f28a3e02a62ad84f34eb5ac7e18d5fd391d49a63518254318d3c4784345db0958ad142abad4f1990d507cd95d77bd0469e0a3b59dfb75
6
+ metadata.gz: ca9c75f96c4940a3db247cbacc3c93ec241280a3567026992d6d3b846f219b54ed6667840696d831ba639f8cd1782315df6cd295c999ee84e566561a9e3203c0
7
+ data.tar.gz: 913e58120d98ca726f4200584fbd8264506fa31514bbc919422107be4dd3cec56abd2c0db16253c8763715a7e8538f9573b8e38d215cc050efa87b50e62190f8
@@ -36,4 +36,59 @@ sourcecode .nb, sourcecode .bp {
36
36
  sourcecode .nt {
37
37
  color: #0000FF;
38
38
  }
39
+ /* Rouge 5 lexer token classes beyond the original Rouge 4-era set.
40
+ Grouped as in the reference theme at https://rouge.jneen.ca/css/theme.css;
41
+ colors reuse the palette above. Only color, font-style, font-weight and
42
+ background-color are used, as those are the properties the PDF stylesheet
43
+ maps to XSL-FO (metanorma#base.standard.xsl, mode="css" allow-list). */
44
+ sourcecode .err {
45
+ color: #FEFEEC;
46
+ background-color: #CC0000;
47
+ }
48
+ sourcecode .esc {
49
+ color: #009C00;
50
+ }
51
+ sourcecode .m, sourcecode .mb, sourcecode .mf, sourcecode .mh, sourcecode .mi, sourcecode .il, sourcecode .mo, sourcecode .mx, sourcecode .l {
52
+ color: #C34E00;
53
+ }
54
+ sourcecode .dl {
55
+ color: #009C00;
56
+ }
57
+ sourcecode .n, sourcecode .na, sourcecode .nc, sourcecode .nd, sourcecode .ne, sourcecode .nf, sourcecode .fm, sourcecode .ni, sourcecode .nl, sourcecode .nn, sourcecode .no, sourcecode .nx, sourcecode .py, sourcecode .nv, sourcecode .vc, sourcecode .vg, sourcecode .vi, sourcecode .vm {
58
+ color: #007575;
59
+ }
60
+ sourcecode .o, sourcecode .ow {
61
+ font-weight: bold;
62
+ }
63
+ sourcecode .p, sourcecode .pi, sourcecode .g, sourcecode .x {
64
+ color: #444444;
65
+ }
66
+ sourcecode .ge {
67
+ font-style: italic;
68
+ }
69
+ sourcecode .ges {
70
+ font-weight: bold;
71
+ font-style: italic;
72
+ }
73
+ sourcecode .gs {
74
+ font-weight: bold;
75
+ }
76
+ sourcecode .gh, sourcecode .gu, sourcecode .gp {
77
+ font-weight: bold;
78
+ color: #C34E00;
79
+ }
80
+ sourcecode .gd {
81
+ color: #FF0000;
82
+ }
83
+ sourcecode .gi {
84
+ color: #009C00;
85
+ }
86
+ sourcecode .gl, sourcecode .go, sourcecode .gt {
87
+ color: #808080;
88
+ }
89
+ sourcecode .gr {
90
+ font-weight: bold;
91
+ font-style: italic;
92
+ color: #FF0000;
93
+ }
39
94
 
@@ -95,7 +95,18 @@ module IsoDoc
95
95
  firstex["language"] == secondex["language"] &&
96
96
  !orig_first.at(ns("./pronunciation | ./grammar | ./graphical-symbol")) &&
97
97
  !orig_second.at(ns("./pronunciation | ./grammar | ./graphical-symbol")) &&
98
- orig_first.name == "preferred" && orig_second.name == "preferred"
98
+ orig_first.name == "preferred" && orig_second.name == "preferred" &&
99
+ !abbreviated?(firstex) && !abbreviated?(secondex)
100
+ end
101
+
102
+ # An abbreviated designation (expression carrying abbreviation-type,
103
+ # ISO 10241-1's abbreviation sense - e.g. "IT" for "standard
104
+ # tolerance") renders on its own line under the term per the ISO/IEC
105
+ # Directives, Part 2 term-entry layout; it never merges into the
106
+ # term's line with the synonym separator.
107
+ def abbreviated?(expression)
108
+ expression.is_a?(Nokogiri::XML::Element) &&
109
+ !expression.at(ns("./abbreviation-type")).nil?
99
110
  end
100
111
 
101
112
  def merge_preferred_eligible_prep(first, second)
@@ -1,3 +1,3 @@
1
1
  module IsoDoc
2
- VERSION = "3.7.31".freeze
2
+ VERSION = "3.7.33".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isodoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.31
4
+ version: 3.7.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-12-01 00:00:00.000000000 Z
11
+ date: 2026-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64