isodoc 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/convert.rb +2 -2
- data/lib/isodoc/init.rb +2 -2
- data/lib/isodoc/metadata.rb +2 -1
- data/lib/isodoc/version.rb +1 -1
- data/lib/isodoc/xref.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cfc6c450ad2b744b1669dcdbc33ec716c9f1bb2ab8b0923a4e77f17123c9c3b
|
4
|
+
data.tar.gz: 98efcb5075af4c7a941a7d6855ca074be4ad9e89fc0b9d20f5c7ef96da97b03b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d398f662be10cc30b34205c10346d040f36f2217fa6a026304cf8015312f9227e799f4687b044f226ac6884307a03177e184cf5c2a99cad5ed06dd83050ba836
|
7
|
+
data.tar.gz: f67b3a92994c67c13565a91e822b205e3c2f93f9dacc32effcbf8d35c85ed7f20eb2be85a6f32cd0f2d319e5a6e2f5f3d6948ed1217d18c2535e98ceb8ca08f7
|
data/lib/isodoc/convert.rb
CHANGED
@@ -204,8 +204,8 @@ module IsoDoc
|
|
204
204
|
filename, dir = init_file(input_filename, debug)
|
205
205
|
docxml.root.default_namespace = ""
|
206
206
|
convert_i18n_init(docxml)
|
207
|
-
metadata_init(@lang, @script, @i18n)
|
208
|
-
xref_init(@lang, @script, self, @i18n, {})
|
207
|
+
metadata_init(@lang, @script, @locale, @i18n)
|
208
|
+
xref_init(@lang, @script, self, @i18n, {locale: @locale})
|
209
209
|
[docxml, filename, dir]
|
210
210
|
end
|
211
211
|
|
data/lib/isodoc/init.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module IsoDoc
|
2
2
|
class Convert < ::IsoDoc::Common
|
3
|
-
def metadata_init(lang, script, i18n)
|
4
|
-
@meta = Metadata.new(lang, script, i18n)
|
3
|
+
def metadata_init(lang, script, locale, i18n)
|
4
|
+
@meta = Metadata.new(lang, script, locale, i18n)
|
5
5
|
end
|
6
6
|
|
7
7
|
def xref_init(lang, script, _klass, i18n, options)
|
data/lib/isodoc/metadata.rb
CHANGED
@@ -15,11 +15,12 @@ module IsoDoc
|
|
15
15
|
@i18n.l10n(expr, lang, script, locale)
|
16
16
|
end
|
17
17
|
|
18
|
-
def initialize(lang, script, i18n, fonts_options = {})
|
18
|
+
def initialize(lang, script, locale, i18n, fonts_options = {})
|
19
19
|
@metadata = { lang: lang, script: script }
|
20
20
|
DATETYPES.each { |w| @metadata["#{w.gsub(/-/, '_')}date".to_sym] = "XXX" }
|
21
21
|
@lang = lang
|
22
22
|
@script = script
|
23
|
+
@locale = locale
|
23
24
|
@c = HTMLEntities.new
|
24
25
|
@i18n = i18n
|
25
26
|
@labels = @i18n.get
|
data/lib/isodoc/version.rb
CHANGED
data/lib/isodoc/xref.rb
CHANGED