metanorma-itu 1.2.6 → 1.2.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +29 -8
  3. data/README.adoc +3 -4
  4. data/lib/asciidoctor/itu/basicdoc.rng +50 -3
  5. data/lib/asciidoctor/itu/boilerplate.xml +8 -2
  6. data/lib/asciidoctor/itu/cleanup.rb +9 -0
  7. data/lib/asciidoctor/itu/converter.rb +1 -0
  8. data/lib/asciidoctor/itu/front.rb +42 -8
  9. data/lib/asciidoctor/itu/isodoc.rng +61 -3
  10. data/lib/asciidoctor/itu/itu.rng +71 -0
  11. data/lib/asciidoctor/itu/validate.rb +14 -13
  12. data/lib/isodoc/itu/base_convert.rb +65 -58
  13. data/lib/isodoc/itu/cleanup.rb +55 -0
  14. data/lib/isodoc/itu/html/header.html +12 -16
  15. data/lib/isodoc/itu/html/html_itu_intro.html +4 -3
  16. data/lib/isodoc/itu/html/html_itu_titlepage.html +23 -17
  17. data/lib/isodoc/itu/html/htmlstyle.css +793 -745
  18. data/lib/isodoc/itu/html/htmlstyle.scss +15 -12
  19. data/lib/isodoc/itu/html/itu.css +43 -43
  20. data/lib/isodoc/itu/html/itu.scss +44 -43
  21. data/lib/isodoc/itu/html/logo-sp.png +0 -0
  22. data/lib/isodoc/itu/html/word_itu_intro.html +19 -3
  23. data/lib/isodoc/itu/html/word_itu_titlepage.html +37 -8
  24. data/lib/isodoc/itu/html/word_itu_titlepage_sp.html +108 -0
  25. data/lib/isodoc/itu/html/wordstyle.css +40 -37
  26. data/lib/isodoc/itu/html/wordstyle.scss +40 -37
  27. data/lib/isodoc/itu/html_convert.rb +4 -1
  28. data/lib/isodoc/itu/i18n-en.yaml +44 -0
  29. data/lib/isodoc/itu/itu.recommendation-annex.xsl +720 -154
  30. data/lib/isodoc/itu/itu.recommendation.xsl +720 -154
  31. data/lib/isodoc/itu/itu.resolution.xsl +720 -154
  32. data/lib/isodoc/itu/itu.technical-paper.xsl +5284 -0
  33. data/lib/isodoc/itu/itu.technical-report.xsl +5284 -0
  34. data/lib/isodoc/itu/metadata.rb +59 -9
  35. data/lib/isodoc/itu/pdf_convert.rb +2 -0
  36. data/lib/isodoc/itu/presentation_xml_convert.rb +104 -2
  37. data/lib/isodoc/itu/ref.rb +0 -13
  38. data/lib/isodoc/itu/terms.rb +7 -30
  39. data/lib/isodoc/itu/word_cleanup.rb +5 -1
  40. data/lib/isodoc/itu/word_convert.rb +15 -1
  41. data/lib/isodoc/itu/xref.rb +93 -39
  42. data/lib/metanorma/itu/processor.rb +10 -8
  43. data/lib/metanorma/itu/version.rb +1 -1
  44. data/metanorma-itu.gemspec +2 -2
  45. metadata +11 -6
@@ -2,14 +2,6 @@ require "metanorma/processor"
2
2
 
3
3
  module Metanorma
4
4
  module ITU
5
- def self.fonts_used
6
- {
7
- html: ["Arial", "Courier New", "Times New Roman"],
8
- doc: ["Arial", "Courier New", "Times New Roman"],
9
- pdf: ["Arial", "Courier New", "Times New Roman"]
10
- }
11
- end
12
-
13
5
  class Processor < Metanorma::Processor
14
6
 
15
7
  def initialize
@@ -26,6 +18,16 @@ module Metanorma
26
18
  )
27
19
  end
28
20
 
21
+ def fonts_manifest
22
+ {
23
+ "Arial" => nil,
24
+ "Courier" => nil,
25
+ "Courier New" => nil,
26
+ "Times New Roman" => nil,
27
+ "STIX Two Math" => nil,
28
+ }
29
+ end
30
+
29
31
  def version
30
32
  "Metanorma::ITU #{Metanorma::ITU::VERSION}"
31
33
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ITU
3
- VERSION = "1.2.6"
3
+ VERSION = "1.2.11"
4
4
  end
5
5
  end
@@ -26,8 +26,8 @@ Gem::Specification.new do |spec|
26
26
 
27
27
  spec.add_dependency "htmlentities", "~> 4.3.4"
28
28
  spec.add_dependency "ruby-jing"
29
- spec.add_dependency "metanorma-standoc", "~> 1.6.0"
30
- spec.add_dependency "isodoc", "~> 1.2.0"
29
+ spec.add_dependency "metanorma-standoc", "~> 1.7.0"
30
+ spec.add_dependency "isodoc", "~> 1.4.2"
31
31
  spec.add_dependency "twitter_cldr"
32
32
  spec.add_dependency "tzinfo-data" # we need this for windows only
33
33
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-itu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-25 00:00:00.000000000 Z
11
+ date: 2021-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.6.0
47
+ version: 1.7.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.6.0
54
+ version: 1.7.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: isodoc
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.2.0
61
+ version: 1.4.2
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 1.2.0
68
+ version: 1.4.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: twitter_cldr
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -297,6 +297,7 @@ files:
297
297
  - lib/asciidoctor/itu/validate.rb
298
298
  - lib/isodoc/itu.rb
299
299
  - lib/isodoc/itu/base_convert.rb
300
+ - lib/isodoc/itu/cleanup.rb
300
301
  - lib/isodoc/itu/html/International_Telecommunication_Union_Logo.svg
301
302
  - lib/isodoc/itu/html/Logo_ITU.jpg
302
303
  - lib/isodoc/itu/html/_coverpage.css
@@ -309,10 +310,12 @@ files:
309
310
  - lib/isodoc/itu/html/itu-document-comb.png
310
311
  - lib/isodoc/itu/html/itu.css
311
312
  - lib/isodoc/itu/html/itu.scss
313
+ - lib/isodoc/itu/html/logo-sp.png
312
314
  - lib/isodoc/itu/html/logo.png
313
315
  - lib/isodoc/itu/html/scripts.html
314
316
  - lib/isodoc/itu/html/word_itu_intro.html
315
317
  - lib/isodoc/itu/html/word_itu_titlepage.html
318
+ - lib/isodoc/itu/html/word_itu_titlepage_sp.html
316
319
  - lib/isodoc/itu/html/wordstyle.css
317
320
  - lib/isodoc/itu/html/wordstyle.scss
318
321
  - lib/isodoc/itu/html_convert.rb
@@ -322,6 +325,8 @@ files:
322
325
  - lib/isodoc/itu/itu.recommendation-annex.xsl
323
326
  - lib/isodoc/itu/itu.recommendation.xsl
324
327
  - lib/isodoc/itu/itu.resolution.xsl
328
+ - lib/isodoc/itu/itu.technical-paper.xsl
329
+ - lib/isodoc/itu/itu.technical-report.xsl
325
330
  - lib/isodoc/itu/metadata.rb
326
331
  - lib/isodoc/itu/pdf_convert.rb
327
332
  - lib/isodoc/itu/presentation_xml_convert.rb