metanorma-jis 0.2.7 → 0.2.9

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: b368234d9277b29aa534c29eea939c9511d9151c7aa759fd9fbf819848c287c1
4
- data.tar.gz: b51cccd52045311c34869ec041b5fd18781e2c0b4c0e9c8312e7fc1748d3fc30
3
+ metadata.gz: 5802f552014937f59b4ac8509da44c12a6d1daba68d6c68ec4580701ef9629b9
4
+ data.tar.gz: 56027208cc4e320b533bb43e391ffb48104c81d9dc322e1279cf8a956d4a5a3e
5
5
  SHA512:
6
- metadata.gz: f1e43b3d65c7f723f2562e900a9f4b9dcc8304954d43b65db4fc7591e1949e2c0595965c00e8d2d6f5bd8ae478047501fc05ab7c0c9345e8e3bfb17235631d1b
7
- data.tar.gz: f20a68b53311de5a77a38838d4c7805ff0746f18c9fbf450693eed3c74f58bac0d870f573238cb91d4a90beee6022d6457bedb198b4b7aa7562833d5f25fdc35
6
+ metadata.gz: 9a922521b2270dcef779ad8fe7901e29bfed9e6d30e7b0035fd05023a8f0540f840ce5dcb23df380376e74c3cbbf571ab934788f53ad038a6d561359ba77f2c9
7
+ data.tar.gz: f013e980b0548dc9a2959b2857109f0d1a28742b3778d39982d5650478c088405a6c7813c6e07fe31691acd23679b8d4f9fb80aa740b1d3fa384d0322a7051b0
@@ -1,3 +1,4 @@
1
+ @charset "UTF-8";
1
2
  /*
2
3
  0 CSS RESET
3
4
  */
@@ -176,6 +177,58 @@ table.rouge-line-table pre {
176
177
  overflow-x: visible;
177
178
  font-size: 100%; }
178
179
 
180
+ /* header § links */
181
+ a.header {
182
+ color: inherit;
183
+ text-decoration: none; }
184
+
185
+ a.header:hover {
186
+ color: #a53221 !important;
187
+ background: inherit;
188
+ box-shadow: none; }
189
+
190
+ a.header:visited {
191
+ color: inherit;
192
+ text-decoration: none; }
193
+
194
+ a.anchor {
195
+ position: absolute;
196
+ z-index: 1001;
197
+ width: 1.5ex;
198
+ margin-left: -1.5ex;
199
+ display: block;
200
+ text-decoration: none !important;
201
+ visibility: hidden;
202
+ text-align: center;
203
+ font-weight: 400; }
204
+
205
+ a.anchor::before {
206
+ content: "\00A7";
207
+ font-size: .85em;
208
+ display: block;
209
+ padding-top: .1em; }
210
+
211
+ a.anchor:hover {
212
+ color: #a53221;
213
+ background: inherit;
214
+ box-shadow: none; }
215
+
216
+ h1 > a.anchor:hover,
217
+ h2 > a.anchor:hover,
218
+ h3 > a.anchor:hover,
219
+ h4 > a.anchor:hover,
220
+ h5 > a.anchor:hover,
221
+ h6 > a.anchor:hover,
222
+ .inline-header > a.anchor:hover,
223
+ h1:hover > a.anchor,
224
+ h2:hover > a.anchor,
225
+ h3:hover > a.anchor,
226
+ h4:hover > a.anchor,
227
+ h5:hover > a.anchor,
228
+ h6:hover > a.anchor,
229
+ .inline-header:hover > a.anchor {
230
+ visibility: visible; }
231
+
179
232
  #standard-band {
180
233
  background-color: #0AC442; }
181
234
 
@@ -1,3 +1,4 @@
1
+ @charset "UTF-8";
1
2
  /*
2
3
  0 CSS RESET
3
4
  */
@@ -176,6 +177,58 @@ table.rouge-line-table pre {
176
177
  overflow-x: visible;
177
178
  font-size: 100%; }
178
179
 
180
+ /* header § links */
181
+ a.header {
182
+ color: inherit;
183
+ text-decoration: none; }
184
+
185
+ a.header:hover {
186
+ color: #a53221 !important;
187
+ background: inherit;
188
+ box-shadow: none; }
189
+
190
+ a.header:visited {
191
+ color: inherit;
192
+ text-decoration: none; }
193
+
194
+ a.anchor {
195
+ position: absolute;
196
+ z-index: 1001;
197
+ width: 1.5ex;
198
+ margin-left: -1.5ex;
199
+ display: block;
200
+ text-decoration: none !important;
201
+ visibility: hidden;
202
+ text-align: center;
203
+ font-weight: 400; }
204
+
205
+ a.anchor::before {
206
+ content: "\00A7";
207
+ font-size: .85em;
208
+ display: block;
209
+ padding-top: .1em; }
210
+
211
+ a.anchor:hover {
212
+ color: #a53221;
213
+ background: inherit;
214
+ box-shadow: none; }
215
+
216
+ h1 > a.anchor:hover,
217
+ h2 > a.anchor:hover,
218
+ h3 > a.anchor:hover,
219
+ h4 > a.anchor:hover,
220
+ h5 > a.anchor:hover,
221
+ h6 > a.anchor:hover,
222
+ .inline-header > a.anchor:hover,
223
+ h1:hover > a.anchor,
224
+ h2:hover > a.anchor,
225
+ h3:hover > a.anchor,
226
+ h4:hover > a.anchor,
227
+ h5:hover > a.anchor,
228
+ h6:hover > a.anchor,
229
+ .inline-header:hover > a.anchor {
230
+ visibility: visible; }
231
+
179
232
  #standard-band {
180
233
  background-color: #0AC442; }
181
234
 
@@ -18,7 +18,7 @@ doctype_dict:
18
18
  technical-report: 標準報告書
19
19
  publicly-available-specification: Publicly Available Specification
20
20
  international-workshop-agreement: International Workshop Agreement
21
- guide: Guide
21
+ guide: ガイドブック
22
22
  amendment: 追補
23
23
  technical-corrigendum: Technical Corrigendum
24
24
  directive: Directive
@@ -4,14 +4,18 @@ require "twitter_cldr"
4
4
  module IsoDoc
5
5
  module JIS
6
6
  class I18n < IsoDoc::Iso::I18n
7
- def load_file(fname)
7
+ def jis_load_file(fname)
8
8
  f = File.join(File.dirname(__FILE__), fname)
9
9
  File.exist?(f) ? YAML.load_file(f) : {}
10
10
  end
11
11
 
12
12
  def load_yaml1(lang, script)
13
- y = load_file("i18n-#{yaml_lang(lang, script)}.yaml")
14
- y.empty? ? load_file("i18n-en.yaml").merge(super) : super.deep_merge(y)
13
+ y = jis_load_file("i18n-#{yaml_lang(lang, script)}.yaml")
14
+ if y.empty?
15
+ jis_load_file("i18n-en.yaml").merge(super)
16
+ else
17
+ super.deep_merge(y)
18
+ end
15
19
  end
16
20
 
17
21
  # use Japanese ordinals for era years
@@ -32,7 +36,7 @@ module IsoDoc
32
36
  era_yr = time.era_year.to_i.localize(:ja)
33
37
  .to_rbnf_s("SpelloutRules", "spellout-numbering-year")
34
38
  "#{time.strftime('%JN')}#{era_yr}年"
35
- rescue
39
+ rescue StandardError
36
40
  time.year.to_s
37
41
  end
38
42
  end