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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b274e56cc3339018a287a638d7aaf4942d0aef0f65462c56dbf597ef44784d16
4
- data.tar.gz: bd76f31818ce3bb71a669493512fe564034bd1ef509a949d8ecdb78633b413f4
3
+ metadata.gz: 1cfc6c450ad2b744b1669dcdbc33ec716c9f1bb2ab8b0923a4e77f17123c9c3b
4
+ data.tar.gz: 98efcb5075af4c7a941a7d6855ca074be4ad9e89fc0b9d20f5c7ef96da97b03b
5
5
  SHA512:
6
- metadata.gz: e759c0e6f239562fd36f3310493af79e53d38d56b87496be292c04a2134fb3f74cfadeadd6563949c92676f144377f06f92dae7af84cf933ec8a9d90ec302c46
7
- data.tar.gz: ced123ca8ad422fcd1f62b28b1135018811d41f72fa180aca58f6f7b8fa1d00ae7dfff7b9d8d336bb032f5986c34e77d93c55aac62b7c68421fd68e172f56755
6
+ metadata.gz: d398f662be10cc30b34205c10346d040f36f2217fa6a026304cf8015312f9227e799f4687b044f226ac6884307a03177e184cf5c2a99cad5ed06dd83050ba836
7
+ data.tar.gz: f67b3a92994c67c13565a91e822b205e3c2f93f9dacc32effcbf8d35c85ed7f20eb2be85a6f32cd0f2d319e5a6e2f5f3d6948ed1217d18c2535e98ceb8ca08f7
@@ -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)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module IsoDoc
2
- VERSION = "2.3.0".freeze
2
+ VERSION = "2.3.1".freeze
3
3
  end
data/lib/isodoc/xref.rb CHANGED
@@ -24,6 +24,7 @@ module IsoDoc
24
24
  @i18n = i18n
25
25
  @labels = @i18n.get
26
26
  @klass.i18n = @i18n
27
+ @locale = options[:locale]
27
28
  @reqt_models = @klass.requirements_processor
28
29
  .new({
29
30
  default: "default", lang: lang, script: script,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isodoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.