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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e52cf20205df07b323a3139ece748352624ba6db5c859fc75dab26712c6cace
4
- data.tar.gz: dcc5819254fc72018db7e646d4d2451389f5426f5178875bbd9298d13ea7afdc
3
+ metadata.gz: 6a493226eb1d3909813c072e6eb039bf942870364ea9169a7d87655e6c1b121d
4
+ data.tar.gz: 6d1a137d043f845ab789bb4f91566f4a591e2483290415cf148dd63e5b466763
5
5
  SHA512:
6
- metadata.gz: 8e15949b75cc4b7890a55ab8d23f8174dcd7e5dd6c7221f2fc57822a35a4ecad91a3f82cbf0f32494197d018a8c35043e9691687ab5462fe3beb583c23622315
7
- data.tar.gz: a7819bf3cdd153022c0b02b1ba5456b20d83b87b5fa1ae8aefe048be7877af890b2e21ea1dc3355618e2304a23b0740cce38f3bef9c1b0b47a43a343952327b2
6
+ metadata.gz: 28532f1f816849958ebab11d5028ccf79fd0502f0e480b2208120724d8022c57a26008e5ee1d1e43a64e1ed7084b6a934ebe735d4c7f83f168655858ff9b1e19
7
+ data.tar.gz: 4e8c18209dc6f14af6872fc03dc600e309ad118cc91b554ab13ec45fc6223d4ff8120fb997d9bd67772a9d763a640552a0aaf955785a3ea39bffd4c140dfe4a8
@@ -1,5 +1,5 @@
1
1
  module IsoDoc
2
2
  class I18n
3
- VERSION = "1.2.5".freeze
3
+ VERSION = "1.3.1".freeze
4
4
  end
5
5
  end
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|$)/])
@@ -1,4 +1,4 @@
1
1
  text: text
2
2
  at: at
3
- binary_and: "%1 and %2"
4
- multiple_and: "%1, and %2"
3
+ binary_and: "%1 <conn>and</conn> %2"
4
+ multiple_and: "%1<conn>, and</conn> %2"
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.2.5
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-30 00:00:00.000000000 Z
11
+ date: 2024-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities