metanorma-jis 0.2.8 → 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: 805916e1d78e9a75cf4cb5b5b6d2a4f956a04dd273f9f982a1d58d1be5503eeb
4
- data.tar.gz: 8569904bc8848c719dc1b279bf29b40f827579d7db7001a892197f9a45406545
3
+ metadata.gz: 5802f552014937f59b4ac8509da44c12a6d1daba68d6c68ec4580701ef9629b9
4
+ data.tar.gz: 56027208cc4e320b533bb43e391ffb48104c81d9dc322e1279cf8a956d4a5a3e
5
5
  SHA512:
6
- metadata.gz: bfbe8da4df4ec511fde3e023c37d3a176ca2ca65aa697e77a36bcbab3c0189c7bba658ff113e0ad4a8f0a1f39061e6ba0b1e4b92d775d0e08c3af8d41744a504
7
- data.tar.gz: aa37192e6847b4f2865a21f32bb35ca35c1dbe4e8a1ac875c9207fb7755c4f8399a4cf6c2b8a353fd4013727fab7a117a4af60517241208bfef89a36d1084a99
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,12 +177,15 @@ table.rouge-line-table pre {
176
177
  overflow-x: visible;
177
178
  font-size: 100%; }
178
179
 
180
+ /* header § links */
179
181
  a.header {
180
182
  color: inherit;
181
183
  text-decoration: none; }
182
184
 
183
185
  a.header:hover {
184
- color: #a53221; }
186
+ color: #a53221 !important;
187
+ background: inherit;
188
+ box-shadow: none; }
185
189
 
186
190
  a.header:visited {
187
191
  color: inherit;
@@ -204,6 +208,11 @@ a.anchor::before {
204
208
  display: block;
205
209
  padding-top: .1em; }
206
210
 
211
+ a.anchor:hover {
212
+ color: #a53221;
213
+ background: inherit;
214
+ box-shadow: none; }
215
+
207
216
  h1 > a.anchor:hover,
208
217
  h2 > a.anchor:hover,
209
218
  h3 > a.anchor:hover,
@@ -1,3 +1,4 @@
1
+ @charset "UTF-8";
1
2
  /*
2
3
  0 CSS RESET
3
4
  */
@@ -176,12 +177,15 @@ table.rouge-line-table pre {
176
177
  overflow-x: visible;
177
178
  font-size: 100%; }
178
179
 
180
+ /* header § links */
179
181
  a.header {
180
182
  color: inherit;
181
183
  text-decoration: none; }
182
184
 
183
185
  a.header:hover {
184
- color: #a53221; }
186
+ color: #a53221 !important;
187
+ background: inherit;
188
+ box-shadow: none; }
185
189
 
186
190
  a.header:visited {
187
191
  color: inherit;
@@ -204,6 +208,11 @@ a.anchor::before {
204
208
  display: block;
205
209
  padding-top: .1em; }
206
210
 
211
+ a.anchor:hover {
212
+ color: #a53221;
213
+ background: inherit;
214
+ box-shadow: none; }
215
+
207
216
  h1 > a.anchor:hover,
208
217
  h2 > a.anchor:hover,
209
218
  h3 > a.anchor:hover,
@@ -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