relaton-render 1.4.0.pre.alpha.4 → 3.0.0.pre.alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/relaton/render/fields/date.rb +48 -0
- data/lib/relaton/render/fields/fields.rb +266 -0
- data/lib/relaton/render/general.rb +12 -0
- data/lib/relaton/render/legacy/citations.rb +178 -0
- data/lib/relaton/render/parse/parse.rb +152 -0
- data/lib/relaton/render/parse/parse_contributors.rb +184 -0
- data/lib/relaton/render/parse/parse_extract.rb +200 -0
- data/lib/relaton/render/parse/parse_id.rb +128 -0
- data/lib/relaton/render/template/hash_utils.rb +64 -0
- data/lib/relaton/render/template/liquid.rb +48 -0
- data/lib/relaton/render/template/subclasses.rb +123 -0
- data/lib/relaton/render/template/template.rb +230 -0
- data/lib/relaton/render/version.rb +1 -1
- data/lib/relaton-render.rb +14 -0
- data/relaton-render.gemspec +5 -0
- metadata +83 -12
- data/lib/isodoc/i18n.rb +0 -34
- data/lib/isodoc-yaml/i18n-ar.yaml +0 -62
- data/lib/isodoc-yaml/i18n-de.yaml +0 -61
- data/lib/isodoc-yaml/i18n-en.yaml +0 -57
- data/lib/isodoc-yaml/i18n-es.yaml +0 -65
- data/lib/isodoc-yaml/i18n-fr.yaml +0 -66
- data/lib/isodoc-yaml/i18n-ja.yaml +0 -58
- data/lib/isodoc-yaml/i18n-ru.yaml +0 -69
- data/lib/isodoc-yaml/i18n-zh-Hans.yaml +0 -59
- data/lib/isodoc-yaml/i18n-zh-Hant.yaml +0 -58
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
at_url: at
|
|
2
|
-
at_venue: at
|
|
3
|
-
at_institution: at
|
|
4
|
-
at_time: at
|
|
5
|
-
at_location: at
|
|
6
|
-
in_document: in
|
|
7
|
-
in_series: in
|
|
8
|
-
in_archive: in
|
|
9
|
-
and: and
|
|
10
|
-
author_and: and
|
|
11
|
-
updated: updated
|
|
12
|
-
viewed: viewed
|
|
13
|
-
version: version
|
|
14
|
-
also_pub_as: "Also published as: "
|
|
15
|
-
no_date: n.d.
|
|
16
|
-
no_place: n.p.
|
|
17
|
-
date_formats:
|
|
18
|
-
month_year: yMMMM
|
|
19
|
-
day_month_year: to_long_s
|
|
20
|
-
date_time: to_long_s
|
|
21
|
-
ordinal_keys: []
|
|
22
|
-
OrdinalRules: digits-ordinal
|
|
23
|
-
edition: edition
|
|
24
|
-
edition_ordinal: "{{ var1 | ordinal_num: '', '' }} edition"
|
|
25
|
-
edition_cardinal: "Edition {{ var1 }}"
|
|
26
|
-
draft: "draft %"
|
|
27
|
-
editor:
|
|
28
|
-
sg: ed.
|
|
29
|
-
pl: eds.
|
|
30
|
-
punct:
|
|
31
|
-
open-title: <em>
|
|
32
|
-
close-title: </em>
|
|
33
|
-
open-secondary-title:
|
|
34
|
-
close-secondary-title:
|
|
35
|
-
stage:
|
|
36
|
-
valid: Valid
|
|
37
|
-
withdrawn: Withdrawn
|
|
38
|
-
extent:
|
|
39
|
-
page:
|
|
40
|
-
sg: "p. %"
|
|
41
|
-
pl: "pp. %"
|
|
42
|
-
volume:
|
|
43
|
-
sg: "vol. %"
|
|
44
|
-
pl: "vols. %"
|
|
45
|
-
issue:
|
|
46
|
-
sg: "no. %"
|
|
47
|
-
pl: "nos. %"
|
|
48
|
-
size:
|
|
49
|
-
page:
|
|
50
|
-
sg: "% p."
|
|
51
|
-
pl: "% pp."
|
|
52
|
-
volume:
|
|
53
|
-
sg: "% vol."
|
|
54
|
-
pl: "% vols."
|
|
55
|
-
issue:
|
|
56
|
-
sg: "% no."
|
|
57
|
-
pl: "% nos."
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
at_url: en
|
|
2
|
-
at_venue: en
|
|
3
|
-
at_institution: en
|
|
4
|
-
at_time: a las
|
|
5
|
-
at_location: en
|
|
6
|
-
in_document: en
|
|
7
|
-
in_series: en
|
|
8
|
-
in_archive: en
|
|
9
|
-
and: y
|
|
10
|
-
author_and: y
|
|
11
|
-
updated: actualizado
|
|
12
|
-
viewed: visto
|
|
13
|
-
version: versión
|
|
14
|
-
also_pub_as: "También publicado como: "
|
|
15
|
-
no_date: s.f.
|
|
16
|
-
no_place: s.l.
|
|
17
|
-
date_formats:
|
|
18
|
-
month_year: yMMMM
|
|
19
|
-
day_month_year: to_long_s
|
|
20
|
-
date_time: to_long_s
|
|
21
|
-
ordinal_keys: [gender]
|
|
22
|
-
OrdinalRules:
|
|
23
|
-
m: digits-ordinal-masculine
|
|
24
|
-
f: digits-ordinal-feminine
|
|
25
|
-
edition_ordinal: "{{ var1 | ordinal_num: 'edition', '' }} ed."
|
|
26
|
-
edition_cardinal: "Ed. {{ var1 }}"
|
|
27
|
-
edition: edición
|
|
28
|
-
draft: "borrador %"
|
|
29
|
-
editor:
|
|
30
|
-
sg: ed.
|
|
31
|
-
pl: eds.
|
|
32
|
-
punct:
|
|
33
|
-
open-title: <em>
|
|
34
|
-
close-title: </em>
|
|
35
|
-
open-secondary-title:
|
|
36
|
-
close-secondary-title:
|
|
37
|
-
stage:
|
|
38
|
-
valid: Válido
|
|
39
|
-
withdrawn: Retirado
|
|
40
|
-
extent:
|
|
41
|
-
page:
|
|
42
|
-
sg: "pág. %"
|
|
43
|
-
pl: "págs. %"
|
|
44
|
-
volume:
|
|
45
|
-
sg: "vol. %"
|
|
46
|
-
pl: "vols. %"
|
|
47
|
-
issue:
|
|
48
|
-
sg: "núm. %"
|
|
49
|
-
pl: "núms. %"
|
|
50
|
-
size:
|
|
51
|
-
page:
|
|
52
|
-
sg: "% pág."
|
|
53
|
-
pl: "% págs."
|
|
54
|
-
volume:
|
|
55
|
-
sg: "% vol."
|
|
56
|
-
pl: "% vols."
|
|
57
|
-
issue:
|
|
58
|
-
sg: "% núm."
|
|
59
|
-
pl: "% núms."
|
|
60
|
-
|
|
61
|
-
inflection:
|
|
62
|
-
edición:
|
|
63
|
-
grammar:
|
|
64
|
-
gender: f
|
|
65
|
-
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
at_url: à
|
|
2
|
-
at_venue: lors de
|
|
3
|
-
at_institution: à
|
|
4
|
-
at_time: à
|
|
5
|
-
at_location: à
|
|
6
|
-
in_document: dans
|
|
7
|
-
in_series: dans
|
|
8
|
-
in_archive: dans
|
|
9
|
-
and: et
|
|
10
|
-
author_and: et
|
|
11
|
-
updated: mise à jour
|
|
12
|
-
viewed: vu
|
|
13
|
-
version: version
|
|
14
|
-
also_pub_as: "Également publié sous le titre : "
|
|
15
|
-
no_date: s.d.
|
|
16
|
-
no_place: s.l.
|
|
17
|
-
date_formats:
|
|
18
|
-
month_year: yMMMM
|
|
19
|
-
day_month_year: to_long_s
|
|
20
|
-
date_time: to_long_s
|
|
21
|
-
ordinal_keys: [gender,number]
|
|
22
|
-
OrdinalRules:
|
|
23
|
-
m.sg: digits-ordinal-masculine
|
|
24
|
-
f.sg: digits-ordinal-feminine
|
|
25
|
-
m.pl: digits-ordinal-masculine-plural
|
|
26
|
-
f.pl: digits-ordinal-feminine-plural
|
|
27
|
-
edition_ordinal: "{{ var1 | ordinal_num: 'edition', '' }} édition"
|
|
28
|
-
edition_cardinal: "Édition {{ var1 }}"
|
|
29
|
-
edition: édition
|
|
30
|
-
draft: "brouillon %"
|
|
31
|
-
editor:
|
|
32
|
-
sg: éd.
|
|
33
|
-
pl: éd.
|
|
34
|
-
punct:
|
|
35
|
-
open-title: <em>
|
|
36
|
-
close-title: </em>
|
|
37
|
-
open-secondary-title:
|
|
38
|
-
close-secondary-title:
|
|
39
|
-
stage:
|
|
40
|
-
valid: Valide
|
|
41
|
-
withdrawn: Retiré
|
|
42
|
-
extent:
|
|
43
|
-
page:
|
|
44
|
-
sg: "p. %"
|
|
45
|
-
pl: "p. %"
|
|
46
|
-
volume:
|
|
47
|
-
sg: "vol. %"
|
|
48
|
-
pl: "vol. %"
|
|
49
|
-
issue:
|
|
50
|
-
sg: "nᵒ %"
|
|
51
|
-
pl: "nᵒˢ %"
|
|
52
|
-
size:
|
|
53
|
-
page:
|
|
54
|
-
sg: "% p."
|
|
55
|
-
pl: "% p."
|
|
56
|
-
volume:
|
|
57
|
-
sg: "% vol."
|
|
58
|
-
pl: "% vol."
|
|
59
|
-
issue:
|
|
60
|
-
sg: "% nᵒ"
|
|
61
|
-
pl: "% nᵒˢ"
|
|
62
|
-
inflection:
|
|
63
|
-
édition:
|
|
64
|
-
grammar:
|
|
65
|
-
gender: f
|
|
66
|
-
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
at_url: より入手可能
|
|
2
|
-
at_venue: にて
|
|
3
|
-
at_institution: 所蔵
|
|
4
|
-
at_time: 時点で
|
|
5
|
-
at_location: 所在
|
|
6
|
-
in_document: 所載
|
|
7
|
-
in_series: 所収
|
|
8
|
-
in_archive: 所蔵
|
|
9
|
-
and: と
|
|
10
|
-
author_and: ","
|
|
11
|
-
updated: 更新しました
|
|
12
|
-
viewed: 参照
|
|
13
|
-
version:
|
|
14
|
-
also_pub_as: 次のようにも出版されています
|
|
15
|
-
no_date: 日付なし。
|
|
16
|
-
no_place: 出版地不明
|
|
17
|
-
date_formats:
|
|
18
|
-
month_year: yMMMM
|
|
19
|
-
day_month_year: to_long_s
|
|
20
|
-
date_time: to_long_s
|
|
21
|
-
ordinal_keys: []
|
|
22
|
-
OrdinalRules: digits-ordinal
|
|
23
|
-
edition: 版
|
|
24
|
-
edition_ordinal: "第{{ var1 }}版"
|
|
25
|
-
edition_cardinal: "第{{ var1 }}版"
|
|
26
|
-
draft: "下書き %"
|
|
27
|
-
editor:
|
|
28
|
-
sg: 編
|
|
29
|
-
pl: 編
|
|
30
|
-
punct:
|
|
31
|
-
open-title:
|
|
32
|
-
close-title:
|
|
33
|
-
open-secondary-title:
|
|
34
|
-
close-secondary-title:
|
|
35
|
-
biblio-terminator: "。"
|
|
36
|
-
stage:
|
|
37
|
-
valid: 有効です
|
|
38
|
-
withdrawn: 取り消されました
|
|
39
|
-
extent:
|
|
40
|
-
page:
|
|
41
|
-
sg: "%頁"
|
|
42
|
-
pl: "%頁"
|
|
43
|
-
volume:
|
|
44
|
-
sg: "巻%"
|
|
45
|
-
pl: "巻%"
|
|
46
|
-
issue:
|
|
47
|
-
sg: "%号"
|
|
48
|
-
pl: "%号"
|
|
49
|
-
size:
|
|
50
|
-
page:
|
|
51
|
-
sg: "%頁"
|
|
52
|
-
pl: "%頁"
|
|
53
|
-
volume:
|
|
54
|
-
sg: "巻%"
|
|
55
|
-
pl: "巻%"
|
|
56
|
-
issue:
|
|
57
|
-
sg: "%号"
|
|
58
|
-
pl: "%号"
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
at_url: доступно по
|
|
2
|
-
at_venue: на
|
|
3
|
-
at_institution: в
|
|
4
|
-
at_time: в
|
|
5
|
-
at_location: в
|
|
6
|
-
in_document: в
|
|
7
|
-
in_series: в
|
|
8
|
-
in_archive: в
|
|
9
|
-
and: и
|
|
10
|
-
author_and: и
|
|
11
|
-
updated: обновлен
|
|
12
|
-
viewed: просмотрено
|
|
13
|
-
version: версия
|
|
14
|
-
also_pub_as: "Также опубликовано как: "
|
|
15
|
-
no_date: б.г.
|
|
16
|
-
no_place: б.м.
|
|
17
|
-
date_formats:
|
|
18
|
-
month_year: yMMMM
|
|
19
|
-
day_month_year: to_long_s
|
|
20
|
-
date_time: to_long_s
|
|
21
|
-
ordinal_keys: [gender,number]
|
|
22
|
-
SpelloutRules:
|
|
23
|
-
m.sg: spellout-ordinal-masculine
|
|
24
|
-
f.sg: spellout-ordinal-feminine
|
|
25
|
-
n.sg: spellout-ordinal-neuter
|
|
26
|
-
m.pl: spellout-ordinal-plural
|
|
27
|
-
f.pl: spellout-ordinal-plural
|
|
28
|
-
n.pl: spellout-ordinal-plural
|
|
29
|
-
edition_ordinal: "{{ var1 | ordinal_word: 'edition', '' }} издание"
|
|
30
|
-
edition_cardinal: "Издание {{ var1 }}"
|
|
31
|
-
edition: издание
|
|
32
|
-
draft: "проект %"
|
|
33
|
-
editor:
|
|
34
|
-
sg: изд.
|
|
35
|
-
pl: изд.
|
|
36
|
-
punct:
|
|
37
|
-
open-title: <em>
|
|
38
|
-
close-title: </em>
|
|
39
|
-
open-secondary-title:
|
|
40
|
-
close-secondary-title:
|
|
41
|
-
stage:
|
|
42
|
-
valid: Действительный
|
|
43
|
-
withdrawn: Снято
|
|
44
|
-
extent:
|
|
45
|
-
page:
|
|
46
|
-
sg: "стр. %"
|
|
47
|
-
pl: "стр. %"
|
|
48
|
-
volume:
|
|
49
|
-
sg: "т. %"
|
|
50
|
-
pl: "тт. %"
|
|
51
|
-
issue:
|
|
52
|
-
sg: "шт. %"
|
|
53
|
-
pl: "шт. %"
|
|
54
|
-
|
|
55
|
-
size:
|
|
56
|
-
page:
|
|
57
|
-
sg: "% стр."
|
|
58
|
-
pl: "% стр."
|
|
59
|
-
volume:
|
|
60
|
-
sg: "% т."
|
|
61
|
-
pl: "% тт."
|
|
62
|
-
issue:
|
|
63
|
-
sg: "% шт."
|
|
64
|
-
pl: "% шт."
|
|
65
|
-
inflection:
|
|
66
|
-
издание:
|
|
67
|
-
grammar:
|
|
68
|
-
gender: n
|
|
69
|
-
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
at_url: 可访问
|
|
2
|
-
at_venue: 于
|
|
3
|
-
at_institution: 收藏于
|
|
4
|
-
at_time: 于
|
|
5
|
-
at_location: 位于
|
|
6
|
-
in_document: 载于
|
|
7
|
-
in_series: 收录于
|
|
8
|
-
in_archive: 藏于
|
|
9
|
-
and: 和
|
|
10
|
-
author_and: 和
|
|
11
|
-
updated: 更新
|
|
12
|
-
viewed: 阅
|
|
13
|
-
version: 版本
|
|
14
|
-
also_pub_as: "还发布为:"
|
|
15
|
-
no_date: 无日期
|
|
16
|
-
no_place: 无出版地
|
|
17
|
-
date_formats:
|
|
18
|
-
month_year: yMMMM
|
|
19
|
-
day_month_year: to_long_s
|
|
20
|
-
date_time: to_long_s
|
|
21
|
-
ordinal_keys: []
|
|
22
|
-
OrdinalRules: digits-ordinal
|
|
23
|
-
SpelloutRules: spellout-ordinal
|
|
24
|
-
edition_ordinal: "第{{ var1 | ordinal_num: '', '' }}版"
|
|
25
|
-
edition_cardinal: "第{{ var1 }}版"
|
|
26
|
-
edition: 版
|
|
27
|
-
draft: "草案%"
|
|
28
|
-
editor:
|
|
29
|
-
sg: 编
|
|
30
|
-
pl: 编
|
|
31
|
-
punct:
|
|
32
|
-
open-title: 《
|
|
33
|
-
close-title: 》
|
|
34
|
-
open-secondary-title: 〈
|
|
35
|
-
close-secondary-title: 〉
|
|
36
|
-
biblio-terminator: "。"
|
|
37
|
-
stage:
|
|
38
|
-
valid: 有效
|
|
39
|
-
withdrawn: 已撤回
|
|
40
|
-
extent:
|
|
41
|
-
page:
|
|
42
|
-
sg: "第%页"
|
|
43
|
-
pl: "第%页"
|
|
44
|
-
volume:
|
|
45
|
-
sg: "第%卷"
|
|
46
|
-
pl: "第%卷"
|
|
47
|
-
issue:
|
|
48
|
-
sg: "第%期"
|
|
49
|
-
pl: "第%期"
|
|
50
|
-
size:
|
|
51
|
-
page:
|
|
52
|
-
sg: "%页"
|
|
53
|
-
pl: "%页"
|
|
54
|
-
volume:
|
|
55
|
-
sg: "%卷"
|
|
56
|
-
pl: "%卷"
|
|
57
|
-
issue:
|
|
58
|
-
sg: "%期"
|
|
59
|
-
pl: "%期"
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
at_url: 可訪問
|
|
2
|
-
at_venue: 於
|
|
3
|
-
at_institution: 收藏於
|
|
4
|
-
at_time: 於
|
|
5
|
-
at_location: 位於
|
|
6
|
-
in_document: 載於
|
|
7
|
-
in_series: 收錄於
|
|
8
|
-
in_archive: 藏於
|
|
9
|
-
and: 和
|
|
10
|
-
author_and: 與
|
|
11
|
-
updated: 更新
|
|
12
|
-
viewed: 閱
|
|
13
|
-
version: 版本
|
|
14
|
-
also_pub_as: "也發佈為:"
|
|
15
|
-
no_date: 無日期
|
|
16
|
-
no_place: 無出版地
|
|
17
|
-
date_formats:
|
|
18
|
-
month_year: yMMMM
|
|
19
|
-
day_month_year: to_long_s
|
|
20
|
-
date_time: to_long_s
|
|
21
|
-
ordinal_keys: []
|
|
22
|
-
OrdinalRules: digits-ordinal
|
|
23
|
-
edition_ordinal: "第{{ var1 | ordinal_num: '', '' }}版"
|
|
24
|
-
edition_cardinal: "第{{ var1 }}版"
|
|
25
|
-
edition: 版
|
|
26
|
-
draft: "草案%"
|
|
27
|
-
editor:
|
|
28
|
-
sg: 編輯
|
|
29
|
-
pl: 編輯
|
|
30
|
-
punct:
|
|
31
|
-
open-title: <underline style="wavy">
|
|
32
|
-
close-title: </underline>
|
|
33
|
-
open-secondary-title: 〈
|
|
34
|
-
close-secondary-title: 〉
|
|
35
|
-
biblio-terminator: "。"
|
|
36
|
-
stage:
|
|
37
|
-
valid: 有效的
|
|
38
|
-
withdrawn: 取消
|
|
39
|
-
extent:
|
|
40
|
-
page:
|
|
41
|
-
sg: "第%頁"
|
|
42
|
-
pl: "第%頁"
|
|
43
|
-
volume:
|
|
44
|
-
sg: "第%卷"
|
|
45
|
-
pl: "第%卷"
|
|
46
|
-
issue:
|
|
47
|
-
sg: "第%期"
|
|
48
|
-
pl: "第%期"
|
|
49
|
-
size:
|
|
50
|
-
page:
|
|
51
|
-
sg: "%頁"
|
|
52
|
-
pl: "%頁"
|
|
53
|
-
volume:
|
|
54
|
-
sg: "%卷"
|
|
55
|
-
pl: "%卷"
|
|
56
|
-
issue:
|
|
57
|
-
sg: "%期"
|
|
58
|
-
pl: "%期"
|