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 +4 -4
- data/lib/isodoc/jis/html/style-human.css +10 -1
- data/lib/isodoc/jis/html/style-iso.css +10 -1
- data/lib/isodoc/jis/i18n-ja.yaml +1 -1
- data/lib/isodoc/jis/i18n.rb +8 -4
- data/lib/isodoc/jis/jis.international-standard.xsl +1274 -889
- data/lib/metanorma/jis/basicdoc.rng +840 -419
- data/lib/metanorma/jis/biblio.rng +26 -27
- data/lib/metanorma/jis/converter.rb +3 -5
- data/lib/metanorma/jis/isodoc.rng +351 -510
- data/lib/metanorma/jis/version.rb +1 -1
- 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: 5802f552014937f59b4ac8509da44c12a6d1daba68d6c68ec4580701ef9629b9
|
4
|
+
data.tar.gz: 56027208cc4e320b533bb43e391ffb48104c81d9dc322e1279cf8a956d4a5a3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
data/lib/isodoc/jis/i18n-ja.yaml
CHANGED
@@ -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:
|
21
|
+
guide: ガイドブック
|
22
22
|
amendment: 追補
|
23
23
|
technical-corrigendum: Technical Corrigendum
|
24
24
|
directive: Directive
|
data/lib/isodoc/jis/i18n.rb
CHANGED
@@ -4,14 +4,18 @@ require "twitter_cldr"
|
|
4
4
|
module IsoDoc
|
5
5
|
module JIS
|
6
6
|
class I18n < IsoDoc::Iso::I18n
|
7
|
-
def
|
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 =
|
14
|
-
y.empty?
|
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
|