isodoc-i18n 1.2.5 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/i18n/version.rb +1 -1
- data/lib/isodoc/i18n.rb +2 -2
- data/lib/isodoc/l10n.rb +1 -1
- data/lib/isodoc-yaml/i18n-en.yaml +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a493226eb1d3909813c072e6eb039bf942870364ea9169a7d87655e6c1b121d
|
4
|
+
data.tar.gz: 6d1a137d043f845ab789bb4f91566f4a591e2483290415cf148dd63e5b466763
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28532f1f816849958ebab11d5028ccf79fd0502f0e480b2208120724d8022c57a26008e5ee1d1e43a64e1ed7084b6a934ebe735d4c7f83f168655858ff9b1e19
|
7
|
+
data.tar.gz: 4e8c18209dc6f14af6872fc03dc600e309ad118cc91b554ab13ec45fc6223d4ff8120fb997d9bd67772a9d763a640552a0aaf955785a3ea39bffd4c140dfe4a8
|
data/lib/isodoc/i18n/version.rb
CHANGED
data/lib/isodoc/i18n.rb
CHANGED
@@ -63,8 +63,8 @@ module IsoDoc
|
|
63
63
|
end
|
64
64
|
|
65
65
|
def enum_comma
|
66
|
-
%w(Hans Hant).include?(@script) and return "
|
67
|
-
"
|
66
|
+
%w(Hans Hant).include?(@script) and return "<enum-comma>、</enum-comma>"
|
67
|
+
"<enum-comma>,</enum-comma> "
|
68
68
|
end
|
69
69
|
|
70
70
|
def cleanup_entities(text, is_xml: true)
|
data/lib/isodoc/l10n.rb
CHANGED
@@ -140,7 +140,7 @@ module IsoDoc
|
|
140
140
|
def l10n_fr1(text, prev, foll, locale)
|
141
141
|
text = l10n_gsub(text, prev, foll, [/[»›;?!]/, "\u202f\\0"],
|
142
142
|
[/\p{Alnum}$/, /^(\s|$)/])
|
143
|
-
text = l10n_gsub(text, prev, foll, [/[«‹]/, "\\0\u202f"], [/$/,
|
143
|
+
text = l10n_gsub(text, prev, foll, [/[«‹]/, "\\0\u202f"], [/$/, /^(?!\p{Zs})./])
|
144
144
|
colonsp = locale == "CH" ? "\u202f" : "\u00a0"
|
145
145
|
l10n_gsub(text, prev, foll, [":", "#{colonsp}\\0"],
|
146
146
|
[/\p{Alnum}$/, /^(\s|$)/])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isodoc-i18n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|