isodoc 3.7.31 → 3.7.32
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 +4 -4
- data/lib/isodoc/presentation_function/designations.rb +12 -1
- data/lib/isodoc/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 925b4ce91120fb5e574f411e4ce69c4553e8be148101b85937fccc52c87382ad
|
|
4
|
+
data.tar.gz: c879fb9893827e7ae2500294d0e95cd4bbbcf8a76d97d32e42525c41306958b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e0a33fc975ae6f1c23e176db103bf1fdd7235a9c5bd25cb7910d6ea6ce571e2ea6f03928d81ed9fc8fe5b92465aaf3ff10759f316b13e7b149a4548630b0563e
|
|
7
|
+
data.tar.gz: 4875fa9498a05621a7f947b96d6e7053560ebdd5e683423376d8265af50b1c57b884cd7226e70a144e508980ad3a1ac2f346a42de421c874e60f75a9914b135d
|
|
@@ -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)
|
data/lib/isodoc/version.rb
CHANGED