asciidoctor 1.5.5 → 1.5.6

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of asciidoctor might be problematic. Click here for more details.

Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.adoc +216 -1
  3. data/CONTRIBUTING.adoc +2 -2
  4. data/Gemfile +20 -1
  5. data/LICENSE.adoc +1 -1
  6. data/README-fr.adoc +4 -3
  7. data/README-jp.adoc +11 -10
  8. data/README-zh_CN.adoc +4 -3
  9. data/README.adoc +17 -202
  10. data/Rakefile +41 -25
  11. data/asciidoctor.gemspec +9 -10
  12. data/data/locale/attributes.adoc +216 -34
  13. data/data/stylesheets/asciidoctor-default.css +23 -16
  14. data/features/step_definitions.rb +15 -19
  15. data/features/xref.feature +584 -20
  16. data/lib/asciidoctor.rb +292 -278
  17. data/lib/asciidoctor/abstract_block.rb +155 -94
  18. data/lib/asciidoctor/abstract_node.rb +108 -94
  19. data/lib/asciidoctor/attribute_list.rb +30 -22
  20. data/lib/asciidoctor/block.rb +7 -7
  21. data/lib/asciidoctor/cli/invoker.rb +47 -34
  22. data/lib/asciidoctor/cli/options.rb +22 -11
  23. data/lib/asciidoctor/converter.rb +3 -3
  24. data/lib/asciidoctor/converter/base.rb +2 -2
  25. data/lib/asciidoctor/converter/composite.rb +1 -1
  26. data/lib/asciidoctor/converter/docbook45.rb +2 -2
  27. data/lib/asciidoctor/converter/docbook5.rb +132 -87
  28. data/lib/asciidoctor/converter/factory.rb +0 -1
  29. data/lib/asciidoctor/converter/html5.rb +116 -98
  30. data/lib/asciidoctor/converter/manpage.rb +51 -52
  31. data/lib/asciidoctor/converter/template.rb +47 -36
  32. data/lib/asciidoctor/core_ext.rb +8 -2
  33. data/lib/asciidoctor/core_ext/1.8.7/hash/key.rb +4 -0
  34. data/lib/asciidoctor/core_ext/1.8.7/io/binread.rb +6 -0
  35. data/lib/asciidoctor/core_ext/1.8.7/io/write.rb +5 -0
  36. data/lib/asciidoctor/core_ext/1.8.7/string/chr.rb +1 -1
  37. data/lib/asciidoctor/core_ext/1.8.7/string/{limit.rb → limit_bytesize.rb} +7 -6
  38. data/lib/asciidoctor/core_ext/1.8.7/symbol/empty.rb +6 -0
  39. data/lib/asciidoctor/core_ext/1.8.7/symbol/length.rb +1 -1
  40. data/lib/asciidoctor/core_ext/nil_or_empty.rb +5 -5
  41. data/lib/asciidoctor/core_ext/regexp/is_match.rb +3 -0
  42. data/lib/asciidoctor/core_ext/string/{limit.rb → limit_bytesize.rb} +2 -2
  43. data/lib/asciidoctor/document.rb +216 -213
  44. data/lib/asciidoctor/extensions.rb +318 -185
  45. data/lib/asciidoctor/helpers.rb +35 -35
  46. data/lib/asciidoctor/inline.rb +32 -1
  47. data/lib/asciidoctor/list.rb +22 -6
  48. data/lib/asciidoctor/parser.rb +1008 -1038
  49. data/lib/asciidoctor/path_resolver.rb +46 -50
  50. data/lib/asciidoctor/reader.rb +275 -251
  51. data/lib/asciidoctor/section.rb +86 -58
  52. data/lib/asciidoctor/stylesheets.rb +6 -6
  53. data/lib/asciidoctor/substitutors.rb +567 -649
  54. data/lib/asciidoctor/table.rb +163 -108
  55. data/lib/asciidoctor/version.rb +1 -1
  56. data/man/asciidoctor.1 +18 -16
  57. data/man/asciidoctor.adoc +15 -13
  58. data/test/attributes_test.rb +138 -22
  59. data/test/blocks_test.rb +377 -97
  60. data/test/converter_test.rb +13 -0
  61. data/test/document_test.rb +244 -34
  62. data/test/extensions_test.rb +409 -42
  63. data/test/fixtures/asciidoc_index.txt +521 -0
  64. data/test/fixtures/basic-docinfo-footer.html +6 -0
  65. data/test/fixtures/basic-docinfo-footer.xml +8 -0
  66. data/test/fixtures/basic-docinfo.html +1 -0
  67. data/test/fixtures/basic-docinfo.xml +4 -0
  68. data/test/fixtures/basic.asciidoc +5 -0
  69. data/test/fixtures/chapter-a.adoc +3 -0
  70. data/test/fixtures/child-include.adoc +5 -0
  71. data/test/fixtures/circle.svg +9 -0
  72. data/test/fixtures/custom-backends/erb/html5/block_paragraph.html.erb +6 -0
  73. data/test/fixtures/custom-backends/haml/docbook45/block_paragraph.xml.haml +6 -0
  74. data/test/fixtures/custom-backends/haml/html5-tweaks/block_paragraph.html.haml +1 -0
  75. data/test/fixtures/custom-backends/haml/html5/block_paragraph.html.haml +3 -0
  76. data/test/fixtures/custom-backends/haml/html5/block_sidebar.html.haml +5 -0
  77. data/test/fixtures/custom-backends/slim/docbook45/block_paragraph.xml.slim +6 -0
  78. data/test/fixtures/custom-backends/slim/html5/block_paragraph.html.slim +3 -0
  79. data/test/fixtures/custom-backends/slim/html5/block_sidebar.html.slim +5 -0
  80. data/test/fixtures/custom-docinfodir/basic-docinfo.html +1 -0
  81. data/test/fixtures/custom-docinfodir/docinfo.html +1 -0
  82. data/test/fixtures/docinfo-footer.html +1 -0
  83. data/test/fixtures/docinfo-footer.xml +9 -0
  84. data/test/fixtures/docinfo.html +1 -0
  85. data/test/fixtures/docinfo.xml +3 -0
  86. data/test/fixtures/dot.gif +0 -0
  87. data/test/fixtures/encoding.asciidoc +13 -0
  88. data/test/fixtures/grandchild-include.adoc +3 -0
  89. data/test/fixtures/hello-asciidoctor.pdf +69 -0
  90. data/test/fixtures/include-file.asciidoc +24 -0
  91. data/test/fixtures/include-file.ml +3 -0
  92. data/test/fixtures/include-file.xml +5 -0
  93. data/test/fixtures/master.adoc +5 -0
  94. data/test/fixtures/mismatched-end-tag.adoc +7 -0
  95. data/test/fixtures/parent-include-restricted.adoc +5 -0
  96. data/test/fixtures/parent-include.adoc +5 -0
  97. data/test/fixtures/sample.asciidoc +26 -0
  98. data/test/fixtures/stylesheets/custom.css +3 -0
  99. data/test/fixtures/subs-docinfo.html +2 -0
  100. data/test/fixtures/subs.adoc +7 -0
  101. data/test/fixtures/tagged-class-enclosed.rb +26 -0
  102. data/test/fixtures/tagged-class.rb +23 -0
  103. data/test/fixtures/tip.gif +0 -0
  104. data/test/invoker_test.rb +82 -4
  105. data/test/links_test.rb +312 -37
  106. data/test/lists_test.rb +204 -25
  107. data/test/manpage_test.rb +191 -4
  108. data/test/options_test.rb +18 -1
  109. data/test/paragraphs_test.rb +32 -7
  110. data/test/parser_test.rb +150 -30
  111. data/test/paths_test.rb +47 -13
  112. data/test/preamble_test.rb +1 -1
  113. data/test/reader_test.rb +366 -126
  114. data/test/sections_test.rb +203 -56
  115. data/test/substitutions_test.rb +339 -131
  116. data/test/tables_test.rb +315 -15
  117. data/test/test_helper.rb +400 -0
  118. data/test/text_test.rb +5 -5
  119. metadata +110 -22
data/Rakefile CHANGED
@@ -17,37 +17,22 @@ end
17
17
 
18
18
  begin
19
19
  require 'rake/testtask'
20
- Rake::TestTask.new(:test) do |test|
20
+ Rake::TestTask.new(:test) do |t|
21
21
  prepare_test_env
22
22
  puts %(LANG: #{ENV['LANG']}) if ENV.key? 'TRAVIS_BUILD_ID'
23
- test.libs << 'test'
24
- test.pattern = 'test/**/*_test.rb'
25
- test.verbose = true
26
- test.warning = true
23
+ t.libs << 'test'
24
+ t.pattern = 'test/**/*_test.rb'
25
+ t.verbose = true
26
+ t.warning = true
27
27
  end
28
- task :default => :test
28
+ task :default => 'test:all'
29
29
  rescue LoadError
30
30
  end
31
31
 
32
- =begin
33
- # Run tests with Encoding.default_external set to US-ASCII
34
- begin
35
- Rake::TestTask.new(:test_us_ascii) do |test|
36
- prepare_test_env
37
- puts "LANG: #{ENV['LANG']}"
38
- test.libs << 'test'
39
- test.pattern = 'test/**/*_test.rb'
40
- test.ruby_opts << '-EUS-ASCII' if RUBY_VERSION >= '1.9'
41
- test.verbose = true
42
- test.warning = true
43
- end
44
- rescue LoadError
45
- end
46
- =end
47
-
48
32
  begin
49
33
  require 'cucumber/rake/task'
50
34
  Cucumber::Rake::Task.new(:features) do |t|
35
+ t.cucumber_opts = %w(-f progress)
51
36
  end
52
37
  rescue LoadError
53
38
  end
@@ -75,7 +60,7 @@ end
75
60
 
76
61
  namespace :test do
77
62
  desc 'Run unit and feature tests'
78
- task :all => [:test,:features]
63
+ task :all => [:test, :features]
79
64
  end
80
65
 
81
66
  =begin
@@ -95,7 +80,6 @@ begin
95
80
  require 'yard'
96
81
  require 'yard-tomdoc'
97
82
  require './lib/asciidoctor'
98
- require './lib/asciidoctor/extensions'
99
83
 
100
84
  # Prevent YARD from breaking command statements in literal paragraphs
101
85
  class CommandBlockPostprocessor < Asciidoctor::Extensions::Postprocessor
@@ -118,7 +102,7 @@ begin
118
102
  )
119
103
  # --no-highlight enabled to prevent verbatim blocks in AsciiDoc that begin with $ from being dropped
120
104
  # need to patch htmlify method to not attempt to syntax highlight blocks (or fix what's wrong)
121
- yard.options = (IO.readlines '.yardopts').map {|l| l.chomp.delete('"').split ' ', 2 }.flatten
105
+ yard.options = (IO.readlines '.yardopts').map {|l| l.chomp.delete('"').split ' ', 2 }.flatten if ::File.file? '.yardopts'
122
106
  end
123
107
  rescue LoadError
124
108
  end
@@ -142,3 +126,35 @@ desc 'Open an irb session preloaded with this library'
142
126
  task :console do
143
127
  sh 'bundle console', :verbose => false
144
128
  end
129
+
130
+ namespace :build do
131
+ desc 'Trigger builds for all dependent projects on Travis CI'
132
+ task :dependents do
133
+ if ENV['TRAVIS'].to_s == 'true'
134
+ next unless ENV['TRAVIS_PULL_REQUEST'].to_s == 'false' && (ENV['TRAVIS_JOB_NUMBER'].to_s.end_with? '.1')
135
+ end
136
+ next unless (token = ENV['TRAVIS_TOKEN'])
137
+ require 'net/http'
138
+ %w(
139
+ asciidoctor/asciidoctor.js
140
+ ).each do |project|
141
+ org, name = project.split '/', 2
142
+ header = {
143
+ 'Content-Type' => 'application/json',
144
+ 'Accept' => 'application/json',
145
+ 'Travis-API-Version' => '3',
146
+ 'Authorization' => %(token #{token})
147
+ }
148
+ payload = '{ "request": { "branch": "master" } }'
149
+ (http = Net::HTTP.new 'api.travis-ci.org', 443).use_ssl = true
150
+ request = Net::HTTP::Post.new %(/repo/#{org}%2F#{name}/requests), header
151
+ request.body = payload
152
+ response = http.request request
153
+ if response.code == '202'
154
+ puts %(Build successfuly triggered on #{project})
155
+ else
156
+ warn %(Unable to build #{project}: #{response.code} - #{response.message})
157
+ end
158
+ end
159
+ end
160
+ end
@@ -1,4 +1,4 @@
1
- # -*- encoding: utf-8 -*-
1
+ # encoding: UTF-8
2
2
  require File.expand_path '../lib/asciidoctor/version', __FILE__
3
3
  require 'open3' unless defined? Open3
4
4
 
@@ -19,31 +19,30 @@ Gem::Specification.new do |s|
19
19
  end
20
20
  s.files = files.grep(/^(?:(?:data|lib|man)\/.+|Gemfile|Rakefile|(?:CHANGELOG|CONTRIBUTING|LICENSE|README(?:-\w+)?)\.adoc|#{s.name}\.gemspec)$/)
21
21
  s.executables = files.grep(/^bin\//).map {|f| File.basename f }
22
- s.test_files = files.grep(/^(?:test\/.*_test\.rb|features\/.*\.(?:feature|rb))$/)
23
22
  s.require_paths = ['lib']
23
+ s.test_files = files.grep(/^(?:(?:features|test)\/.+)$/)
24
24
  s.has_rdoc = true
25
25
  s.rdoc_options = ['--charset=UTF-8']
26
26
  s.extra_rdoc_files = ['CHANGELOG.adoc', 'CONTRIBUTING.adoc', 'LICENSE.adoc']
27
27
 
28
28
  # asciimath is needed for testing AsciiMath in DocBook backend
29
- s.add_development_dependency 'asciimath', '~> 1.0.2'
29
+ s.add_development_dependency 'asciimath', '~> 1.0.0'
30
30
  # coderay is needed for testing syntax highlighting
31
31
  s.add_development_dependency 'coderay', '~> 1.1.0'
32
- s.add_development_dependency 'cucumber', '~> 1.3.1'
32
+ s.add_development_dependency 'cucumber', '~> 2.4.0'
33
33
  # erubis is needed for testing use of alternative eRuby impls
34
34
  s.add_development_dependency 'erubis', '~> 2.7.0'
35
35
  # haml is needed for testing custom templates
36
- s.add_development_dependency 'haml', '~> 4.0.0'
37
- s.add_development_dependency 'nokogiri', '~> 1.5.10'
36
+ s.add_development_dependency 'haml', '~> 5.0.0'
37
+ s.add_development_dependency 'nokogiri', '~> 1.7.0'
38
38
  s.add_development_dependency 'rake', '~> 10.0.0'
39
39
  s.add_development_dependency 'rspec-expectations', '~> 2.14.0'
40
40
  # slim is needed for testing custom templates
41
- s.add_development_dependency 'slim', '~> 2.0.0'
42
- s.add_development_dependency 'thread_safe', '~> 0.3.4'
41
+ s.add_development_dependency 'slim', '~> 3.0.0'
42
+ s.add_development_dependency 'thread_safe', '~> 0.3.0'
43
43
  # tilt is needed for testing custom templates
44
44
  s.add_development_dependency 'tilt', '~> 2.0.0'
45
- s.add_development_dependency 'yard', '~> 0.8.7'
45
+ s.add_development_dependency 'yard', '0.9.8'
46
46
  s.add_development_dependency 'yard-tomdoc', '~> 0.7.0'
47
47
  s.add_development_dependency 'minitest', '~> 5.3.0'
48
- s.add_development_dependency 'racc', '~> 1.4.10' if RUBY_VERSION == '2.1.0' && RUBY_ENGINE == 'rbx'
49
48
  end
@@ -1,15 +1,18 @@
1
1
  // This file provides translations for all built-in attributes in Asciidoctor that output localized content.
2
- // See http://asciidoctor.org/docs/user-manual/#customizing-built-in-labels to learn how to use it.
2
+ // See http://asciidoctor.org/docs/user-manual/#customizing-labels to learn how to use it.
3
3
  //
4
4
  // NOTE: Please use a line comment in front of the listing-caption and preface-title entries.
5
- // These attributes are optional and not set by default.
5
+ // These attributes should not be set by default.
6
6
  //
7
7
  // IMPORTANT: Do not add any blank lines.
8
8
  //
9
9
  // Arabic translation, courtesy of Aboullaite Mohammed <aboullaite.mohammed@gmail.com>
10
10
  ifeval::["{lang}" == "ar"]
11
11
  :appendix-caption: ملحق
12
+ :appendix-refsig: {appendix-caption}
12
13
  :caution-caption: تنبيه
14
+ //:chapter-label: ???
15
+ //:chapter-refsig: {chapter-label}
13
16
  :example-caption: مثال
14
17
  :figure-caption: الشكل
15
18
  :important-caption: مهم
@@ -18,6 +21,7 @@ ifeval::["{lang}" == "ar"]
18
21
  :manname-title: اسم
19
22
  :note-caption: ملاحظة
20
23
  //:preface-title: تمهيد
24
+ //:section-refsig: ???
21
25
  :table-caption: جدول
22
26
  :tip-caption: تلميح
23
27
  :toc-title: فهرس
@@ -25,11 +29,13 @@ ifeval::["{lang}" == "ar"]
25
29
  :version-label: نسخة
26
30
  :warning-caption: تحذير
27
31
  endif::[]
28
- //
29
32
  // Bulgarian translation, courtesy of Ivan St. Ivanov <ivan.st.ivanov@gmail.com>
30
33
  ifeval::["{lang}" == "bg"]
31
34
  :appendix-caption: Приложение
35
+ :appendix-refsig: {appendix-caption}
32
36
  :caution-caption: Внимание
37
+ //:chapter-label: ???
38
+ //:chapter-refsig: {chapter-label}
33
39
  :example-caption: Пример
34
40
  :figure-caption: Фигура
35
41
  :important-caption: Важно
@@ -38,6 +44,7 @@ ifeval::["{lang}" == "bg"]
38
44
  :manname-title: ИМЕ
39
45
  :note-caption: Забележка
40
46
  //:preface-title: Предговор
47
+ //:section-refsig: ???
41
48
  :table-caption: Таблица
42
49
  :tip-caption: Подсказка
43
50
  :toc-title: Съдържание
@@ -45,11 +52,13 @@ ifeval::["{lang}" == "bg"]
45
52
  :version-label: Версия
46
53
  :warning-caption: Внимание
47
54
  endif::[]
48
- //
49
55
  // Catalan translation, courtesy of Abel Salgado Romero <abelromero@gmail.com> and Alex Soto
50
56
  ifeval::["{lang}" == "ca"]
51
57
  :appendix-caption: Apendix
58
+ :appendix-refsig: {appendix-caption}
52
59
  :caution-caption: Atenció
60
+ //:chapter-label: ???
61
+ //:chapter-refsig: {chapter-label}
53
62
  :example-caption: Exemple
54
63
  :figure-caption: Figura
55
64
  :important-caption: Important
@@ -58,6 +67,7 @@ ifeval::["{lang}" == "ca"]
58
67
  :manname-title: NOM
59
68
  :note-caption: Nota
60
69
  //:preface-title: Prefaci
70
+ //:section-refsig: ???
61
71
  :table-caption: Taula
62
72
  :tip-caption: Suggeriment
63
73
  :toc-title: Índex
@@ -65,19 +75,22 @@ ifeval::["{lang}" == "ca"]
65
75
  :version-label: Versió
66
76
  :warning-caption: Advertència
67
77
  endif::[]
68
- //
69
78
  // Danish translation, courtesy of Max Rydahl Andersen <manderse@redhat.com>
70
79
  ifeval::["{lang}" == "da"]
71
80
  :appendix-caption: Appendix
81
+ :appendix-refsig: {appendix-caption}
72
82
  :caution-caption: Forsigtig
83
+ //:chapter-label: ???
84
+ //:chapter-refsig: {chapter-label}
73
85
  :example-caption: Eksempel
74
86
  :figure-caption: Figur
75
87
  :important-caption: Vigtig
76
88
  :last-update-label: Sidst opdateret
77
- :listing-caption: List
89
+ //:listing-caption: List
78
90
  :manname-title: NAVN
79
91
  :note-caption: Notat
80
92
  //:preface-title:
93
+ //:section-refsig: ???
81
94
  :table-caption: Tabel
82
95
  :tip-caption: Tips
83
96
  :toc-title: Indholdsfortegnelse
@@ -85,11 +98,13 @@ ifeval::["{lang}" == "da"]
85
98
  :version-label: Version
86
99
  :warning-caption: Advarsel
87
100
  endif::[]
88
- //
89
101
  // German translation, courtesy of Florian Wilhelm
90
102
  ifeval::["{lang}" == "de"]
91
103
  :appendix-caption: Anhang
104
+ :appendix-refsig: {appendix-caption}
92
105
  :caution-caption: Achtung
106
+ :chapter-label: Kapitel
107
+ :chapter-refsig: {chapter-label}
93
108
  :example-caption: Beispiel
94
109
  :figure-caption: Abbildung
95
110
  :important-caption: Wichtig
@@ -98,6 +113,7 @@ ifeval::["{lang}" == "de"]
98
113
  :manname-title: BEZEICHNUNG
99
114
  :note-caption: Anmerkung
100
115
  //:preface-title: Vorwort
116
+ //:section-refsig: ???
101
117
  :table-caption: Tabelle
102
118
  :tip-caption: Hinweis
103
119
  :toc-title: Inhalt
@@ -105,11 +121,13 @@ ifeval::["{lang}" == "de"]
105
121
  :version-label: Version
106
122
  :warning-caption: Warnung
107
123
  endif::[]
108
- //
109
124
  // Spanish translation, courtesy of Eddú Meléndez <eddu.melendez@gmail.com>
110
125
  ifeval::["{lang}" == "es"]
111
126
  :appendix-caption: Apéndice
127
+ :appendix-refsig: {appendix-caption}
112
128
  :caution-caption: Precaución
129
+ //:chapter-label: ???
130
+ //:chapter-refsig: {chapter-label}
113
131
  :example-caption: Ejemplo
114
132
  :figure-caption: Figura
115
133
  :important-caption: Importante
@@ -118,6 +136,7 @@ ifeval::["{lang}" == "es"]
118
136
  :manname-title: NOMBRE
119
137
  :note-caption: Nota
120
138
  //:preface-title: Prefacio
139
+ //:section-refsig: ???
121
140
  :table-caption: Tabla
122
141
  :tip-caption: Sugerencia
123
142
  :toc-title: Tabla de Contenido
@@ -125,11 +144,13 @@ ifeval::["{lang}" == "es"]
125
144
  :version-label: Versión
126
145
  :warning-caption: Aviso
127
146
  endif::[]
128
- //
129
147
  // Persian (Farsi) translation, courtesy of Shahryar Eivazzadeh <shahryareiv@gmail.com>
130
148
  ifeval::["{lang}" == "fa"]
131
149
  :appendix-caption: پیوست
150
+ :appendix-refsig: {appendix-caption}
132
151
  :caution-caption: گوشزد
152
+ //:chapter-label: ???
153
+ //:chapter-refsig: {chapter-label}
133
154
  :example-caption: نمونه
134
155
  :figure-caption: نمودار
135
156
  :important-caption: مهم
@@ -138,6 +159,7 @@ ifeval::["{lang}" == "fa"]
138
159
  :manname-title: نام
139
160
  :note-caption: یادداشت
140
161
  //:preface-title: پیشگفتار
162
+ //:section-refsig: ???
141
163
  :table-caption: جدول
142
164
  :tip-caption: نکته
143
165
  :toc-title: فهرست مطالب
@@ -145,11 +167,13 @@ ifeval::["{lang}" == "fa"]
145
167
  :version-label: نگارش
146
168
  :warning-caption: هشدار
147
169
  endif::[]
148
- //
149
170
  // Finnish translation by Tero Hänninen
150
171
  ifeval::["{lang}" == "fi"]
151
172
  :appendix-caption: Liitteet
173
+ :appendix-refsig: {appendix-caption}
152
174
  :caution-caption: Huom
175
+ //:chapter-label: ???
176
+ //:chapter-refsig: {chapter-label}
153
177
  :example-caption: Esimerkki
154
178
  :figure-caption: Kuvio
155
179
  :important-caption: Tärkeää
@@ -158,6 +182,7 @@ ifeval::["{lang}" == "fi"]
158
182
  :manname-title: NIMI
159
183
  :note-caption: Huomio
160
184
  //:preface-title: Esipuhe
185
+ //:section-refsig: ???
161
186
  :table-caption: Taulukko
162
187
  :tip-caption: Vinkki
163
188
  :toc-title: Sisällysluettelo
@@ -165,11 +190,13 @@ ifeval::["{lang}" == "fi"]
165
190
  :version-label: Versio
166
191
  :warning-caption: Varoitus
167
192
  endif::[]
168
- //
169
193
  // French translation, courtesy of Nicolas Comet <nicolas.comet@gmail.com>
170
194
  ifeval::["{lang}" == "fr"]
171
195
  :appendix-caption: Appendice
196
+ :appendix-refsig: {appendix-caption}
172
197
  :caution-caption: Avertissement
198
+ //:chapter-label: ???
199
+ //:chapter-refsig: {chapter-label}
173
200
  :example-caption: Exemple
174
201
  :figure-caption: Figure
175
202
  :important-caption: Important
@@ -178,6 +205,7 @@ ifeval::["{lang}" == "fr"]
178
205
  :manname-title: NOM
179
206
  :note-caption: Note
180
207
  //:preface-title: Préface
208
+ //:section-refsig: ???
181
209
  :table-caption: Tableau
182
210
  :tip-caption: Astuce
183
211
  :toc-title: Table des matières
@@ -185,11 +213,13 @@ ifeval::["{lang}" == "fr"]
185
213
  :version-label: Version
186
214
  :warning-caption: Attention
187
215
  endif::[]
188
- //
189
216
  // Hungarian translation, courtesy of István Pató <istvan.pato@gmail.com>
190
217
  ifeval::["{lang}" == "hu"]
191
218
  :appendix-caption: függelék
219
+ :appendix-refsig: {appendix-caption}
192
220
  :caution-caption: Figyelmeztetés
221
+ //:chapter-label: ???
222
+ //:chapter-refsig: {chapter-label}
193
223
  :example-caption: Példa
194
224
  :figure-caption: Ábra
195
225
  :important-caption: Fontos
@@ -198,6 +228,7 @@ ifeval::["{lang}" == "hu"]
198
228
  :manname-title: NÉV
199
229
  :note-caption: Megjegyzés
200
230
  //:preface-title: Előszó
231
+ //:section-refsig: ???
201
232
  :table-caption: Táblázat
202
233
  :tip-caption: Tipp
203
234
  :toc-title: Tartalomjegyzék
@@ -205,12 +236,36 @@ ifeval::["{lang}" == "hu"]
205
236
  :version-label: Verzió
206
237
  :warning-caption: Figyelem
207
238
  endif::[]
208
- //
239
+ // Bahasa Indonesia, courtesy of Triyan W. Nugroho <triyan.wn@gmail.com>
240
+ ifeval::["{lang}" == "id"]
241
+ :appendix-caption: Lampiran
242
+ :appendix-refsig: {appendix-caption}
243
+ :caution-caption: Perhatian
244
+ :chapter-label: Bab
245
+ :chapter-refsig: {chapter-label}
246
+ :example-caption: Contoh
247
+ :figure-caption: Gambar
248
+ :important-caption: Penting
249
+ :last-update-label: Pembaruan terakhir
250
+ //:listing-caption: Daftar
251
+ :manname-title: NAMA
252
+ :note-caption: Catatan
253
+ //:preface-title:
254
+ //:section-refsig: ???
255
+ :table-caption: Tabel
256
+ :tip-caption: Tips
257
+ :toc-title: Daftar Isi
258
+ :untitled-label: Tak Berjudul
259
+ :version-label: Versi
260
+ :warning-caption: Peringatan
261
+ endif::[]
209
262
  // Italian translation, courtesy of Marco Ciampa <ciampix@libero.it>
210
263
  ifeval::["{lang}" == "it"]
211
264
  :appendix-caption: Appendice
265
+ :appendix-refsig: {appendix-caption}
212
266
  :caution-caption: Attenzione
213
267
  :chapter-label: Capitolo
268
+ :chapter-refsig: {chapter-label}
214
269
  :example-caption: Esempio
215
270
  :figure-caption: Figura
216
271
  :important-caption: Importante
@@ -219,6 +274,7 @@ ifeval::["{lang}" == "it"]
219
274
  :manname-title: NOME
220
275
  :note-caption: Nota
221
276
  //:preface-title: Prefazione
277
+ //:section-refsig: ???
222
278
  :table-caption: Tabella
223
279
  :tip-caption: Suggerimento
224
280
  :toc-title: Indice
@@ -226,11 +282,13 @@ ifeval::["{lang}" == "it"]
226
282
  :version-label: Versione
227
283
  :warning-caption: Attenzione
228
284
  endif::[]
229
- //
230
285
  // Japanese translation, courtesy of Takayuki Konishi <seannos.takayuki@gmail.com>
231
286
  ifeval::["{lang}" == "ja"]
232
287
  :appendix-caption: 付録
288
+ :appendix-refsig: {appendix-caption}
233
289
  :caution-caption: 注意
290
+ //:chapter-label: ???
291
+ //:chapter-refsig: {chapter-label}
234
292
  :example-caption: 例
235
293
  :figure-caption: 図
236
294
  :important-caption: 重要
@@ -239,6 +297,7 @@ ifeval::["{lang}" == "ja"]
239
297
  :manname-title: 名前
240
298
  :note-caption: 注記
241
299
  //:preface-title: まえがき
300
+ //:section-refsig: ???
242
301
  :table-caption: 表
243
302
  :tip-caption: ヒント
244
303
  :toc-title: 目次
@@ -246,11 +305,13 @@ ifeval::["{lang}" == "ja"]
246
305
  :version-label: バージョン
247
306
  :warning-caption: 警告
248
307
  endif::[]
249
- //
250
308
  // Korean translation, courtesy of Sungsik Nam <jmyl@me.com>
251
309
  ifeval::["{lang}" == "kr"]
252
310
  :appendix-caption: 부록
311
+ :appendix-refsig: {appendix-caption}
253
312
  :caution-caption: 주의
313
+ //:chapter-label: ???
314
+ //:chapter-refsig: {chapter-label}
254
315
  :example-caption: 예시
255
316
  :figure-caption: 그림
256
317
  :important-caption: 중요
@@ -259,6 +320,7 @@ ifeval::["{lang}" == "kr"]
259
320
  :manname-title: 이름
260
321
  :note-caption: 노트
261
322
  //:preface-title: 머리말
323
+ //:section-refsig: ???
262
324
  :table-caption: 표
263
325
  :tip-caption: 힌트
264
326
  :toc-title: 차례
@@ -266,11 +328,13 @@ ifeval::["{lang}" == "kr"]
266
328
  :version-label: 버전
267
329
  :warning-caption: 경고
268
330
  endif::[]
269
- //
270
331
  // Dutch translation, courtesy of Roel Van Steenberghe <roel.vansteenberghe@gmail.com>
271
332
  ifeval::["{lang}" == "nl"]
272
333
  :appendix-caption: Bijlage
334
+ :appendix-refsig: {appendix-caption}
273
335
  :caution-caption: Opgelet
336
+ //:chapter-label: ???
337
+ //:chapter-refsig: {chapter-label}
274
338
  :example-caption: Voorbeeld
275
339
  :figure-caption: Figuur
276
340
  :important-caption: Belangrijk
@@ -279,6 +343,7 @@ ifeval::["{lang}" == "nl"]
279
343
  :manname-title: NAAM
280
344
  :note-caption: Noot
281
345
  //:preface-title: Inleiding
346
+ //:section-refsig: ???
282
347
  :table-caption: Tabel
283
348
  :tip-caption: Tip
284
349
  :toc-title: Ínhoudsopgave
@@ -286,31 +351,82 @@ ifeval::["{lang}" == "nl"]
286
351
  :version-label: Versie
287
352
  :warning-caption: Waarschuwing
288
353
  endif::[]
289
- //
290
- // Norwegian, courtesy of Aslak Knutsen <aslak@4fs.no>
291
- ifeval::["{lang}" == "no"]
354
+ // Norwegian Bokmål, courtesy of Aslak Knutsen <aslak@4fs.no>, with updates from Karl Ove Hufthammer <karl@huftis.org>
355
+ ifeval::["{lang}" == "nb"]
292
356
  :appendix-caption: Vedlegg
293
- :caution-caption: Forsiktig
357
+ :appendix-refsig: {appendix-caption}
358
+ :caution-caption: OBS
359
+ :chapter-label: Kapittel
360
+ :chapter-refsig: {chapter-label}
294
361
  :example-caption: Eksempel
295
362
  :figure-caption: Figur
296
363
  :important-caption: Viktig
297
364
  :last-update-label: Sist oppdatert
298
- //:listing-caption:
365
+ //:listing-caption: Programkode
299
366
  :manname-title: NAVN
300
- :note-caption: Notat
301
- //:preface-title:
367
+ :note-caption: Merk
368
+ //:preface-title: Forord
369
+ //:section-refsig: ???
302
370
  :table-caption: Tabell
303
371
  :tip-caption: Tips
304
- :toc-title: Innholdsfortegnelse
372
+ :toc-title: Innhold
305
373
  :untitled-label: Navnløs
306
374
  :version-label: Versjon
307
375
  :warning-caption: Advarsel
308
376
  endif::[]
309
- //
377
+ // Norwegian Nynorsk, courtesy of Karl Ove Hufthammer <karl@huftis.org>
378
+ ifeval::["{lang}" == "nn"]
379
+ :appendix-caption: Vedlegg
380
+ :appendix-refsig: {appendix-caption}
381
+ :caution-caption: OBS
382
+ :chapter-label: Kapittel
383
+ :chapter-refsig: {chapter-label}
384
+ :example-caption: Eksempel
385
+ :figure-caption: Figur
386
+ :important-caption: Viktig
387
+ :last-update-label: Sist oppdatert
388
+ //:listing-caption: Programkode
389
+ :manname-title: NAMN
390
+ :note-caption: Merk
391
+ //:preface-title: Forord
392
+ //:section-refsig: ???
393
+ :table-caption: Tabell
394
+ :tip-caption: Tips
395
+ :toc-title: Innhald
396
+ :untitled-label: Namnlaus
397
+ :version-label: Versjon
398
+ :warning-caption: Åtvaring
399
+ endif::[]
400
+ // Polish translation, courtesy of Łukasz Dziedziul <l.dziedziul@gmail.com>
401
+ ifeval::["{lang}" == "pl"]
402
+ :appendix-caption: Dodatek
403
+ :appendix-refsig: {appendix-caption}
404
+ :caution-caption: Uwaga
405
+ :chapter-label: Rozdział
406
+ :chapter-refsig: {chapter-label}
407
+ :example-caption: Przykład
408
+ :figure-caption: Rysunek
409
+ :important-caption: Ważne
410
+ :last-update-label: Ostatnio zmodyfikowany
411
+ //:listing-caption:
412
+ :manname-title: NAZWA
413
+ :note-caption: Notka
414
+ //:preface-title:
415
+ //:section-refsig: ???
416
+ :table-caption: Tabela
417
+ :tip-caption: Sugestia
418
+ :toc-title: Spis treści
419
+ :untitled-label: Bez tytułu
420
+ :version-label: Wersja
421
+ :warning-caption: Ostrzeżenie
422
+ endif::[]
310
423
  // Portuguese translation, courtesy of Roberto Cortez <radcortez@yahoo.com>
311
424
  ifeval::["{lang}" == "pt"]
312
425
  :appendix-caption: Apêndice
426
+ :appendix-refsig: {appendix-caption}
313
427
  :caution-caption: Atenção
428
+ //:chapter-label: ???
429
+ //:chapter-refsig: {chapter-label}
314
430
  :example-caption: Exemplo
315
431
  :figure-caption: Figura
316
432
  :important-caption: Importante
@@ -319,6 +435,7 @@ ifeval::["{lang}" == "pt"]
319
435
  :manname-title: NOME
320
436
  :note-caption: Nota
321
437
  //:preface-title: Prefácio
438
+ //:section-refsig: ???
322
439
  :table-caption: Tabela
323
440
  :tip-caption: Sugestão
324
441
  :toc-title: Índice
@@ -326,11 +443,13 @@ ifeval::["{lang}" == "pt"]
326
443
  :version-label: Versão
327
444
  :warning-caption: Aviso
328
445
  endif::[]
329
- //
330
446
  // Brazilian Portuguese translation, courtesy of Rafael Pestano <rmpestano@gmail.com>
331
447
  ifeval::["{lang}" == "pt_BR"]
332
448
  :appendix-caption: Apêndice
449
+ :appendix-refsig: {appendix-caption}
333
450
  :caution-caption: Cuidado
451
+ //:chapter-label: ???
452
+ //:chapter-refsig: {chapter-label}
334
453
  :example-caption: Exemplo
335
454
  :figure-caption: Figura
336
455
  :important-caption: Importante
@@ -339,6 +458,7 @@ ifeval::["{lang}" == "pt_BR"]
339
458
  :manname-title: NOME
340
459
  :note-caption: Nota
341
460
  //:preface-title: Prefácio
461
+ //:section-refsig: ???
342
462
  :table-caption: Tabela
343
463
  :tip-caption: Dica
344
464
  :toc-title: Índice
@@ -346,11 +466,36 @@ ifeval::["{lang}" == "pt_BR"]
346
466
  :version-label: Versão
347
467
  :warning-caption: Aviso
348
468
  endif::[]
349
- //
469
+ // Romanian translation, courtesy of Vitalie Lazu <vitalie.lazu@gmail.com>
470
+ ifeval::["{lang}" == "ro"]
471
+ :appendix-caption: Apendix
472
+ :appendix-refsig: {appendix-caption}
473
+ :caution-caption: Precauție
474
+ //:chapter-label: ???
475
+ //:chapter-refsig: {chapter-label}
476
+ :example-caption: Exemplu
477
+ :figure-caption: Figură
478
+ :important-caption: Important
479
+ :last-update-label: Ultima actualizare
480
+ //:listing-caption: Listare
481
+ :manname-title: NUME
482
+ :note-caption: Notă
483
+ //:preface-title: Prefață
484
+ //:section-refsig: ???
485
+ :table-caption: Tabela
486
+ :tip-caption: Sfat
487
+ :toc-title: Cuprins
488
+ :untitled-label: Fără denumire
489
+ :version-label: Versiunea
490
+ :warning-caption: Atenție
491
+ endif::[]
350
492
  // Russian translation, courtesy of Alexander Zobkov <alexander.zobkov@gmail.com>
351
493
  ifeval::["{lang}" == "ru"]
352
494
  :appendix-caption: Приложение
495
+ :appendix-refsig: {appendix-caption}
353
496
  :caution-caption: Внимание
497
+ //:chapter-label: ???
498
+ //:chapter-refsig: {chapter-label}
354
499
  :example-caption: Пример
355
500
  :figure-caption: Рисунок
356
501
  :important-caption: Важно
@@ -359,6 +504,7 @@ ifeval::["{lang}" == "ru"]
359
504
  :manname-title: НАЗВАНИЕ
360
505
  :note-caption: Примечание
361
506
  //:preface-title: Предисловие
507
+ //:section-refsig: ???
362
508
  :table-caption: Таблица
363
509
  :tip-caption: Подсказка
364
510
  :toc-title: Содержание
@@ -366,12 +512,13 @@ ifeval::["{lang}" == "ru"]
366
512
  :version-label: Версия
367
513
  :warning-caption: Предупреждение
368
514
  endif::[]
369
- //
370
515
  // Serbian Cyrillic translation, courtesy of Bojan Stipic <bojan-7@live.com>
371
516
  ifeval::["{lang}" == "sr"]
372
517
  :appendix-caption: Додатак
518
+ :appendix-refsig: {appendix-caption}
373
519
  :caution-caption: Опрез
374
- //:chapter-label: Поглавље
520
+ :chapter-label: Поглавље
521
+ :chapter-refsig: {chapter-label}
375
522
  :example-caption: Пример
376
523
  :figure-caption: Слика
377
524
  :important-caption: Важно
@@ -380,6 +527,7 @@ ifeval::["{lang}" == "sr"]
380
527
  :manname-title: НАЗИВ
381
528
  :note-caption: Белешка
382
529
  //:preface-title: Предговор
530
+ //:section-refsig: ???
383
531
  :table-caption: Табела
384
532
  :tip-caption: Савет
385
533
  :toc-title: Садржај
@@ -387,12 +535,13 @@ ifeval::["{lang}" == "sr"]
387
535
  :version-label: Верзија
388
536
  :warning-caption: Упозорење
389
537
  endif::[]
390
- //
391
538
  // Serbian Latin translation, courtesy of Bojan Stipic <bojan-7@live.com>
392
539
  ifeval::["{lang}" == "sr_Latn"]
393
540
  :appendix-caption: Dodatak
541
+ :appendix-refsig: {appendix-caption}
394
542
  :caution-caption: Oprez
395
- //:chapter-label: Poglavlje
543
+ :chapter-label: Poglavlje
544
+ :chapter-refsig: {chapter-label}
396
545
  :example-caption: Primer
397
546
  :figure-caption: Slika
398
547
  :important-caption: Važno
@@ -401,6 +550,7 @@ ifeval::["{lang}" == "sr_Latn"]
401
550
  :manname-title: NAZIV
402
551
  :note-caption: Beleška
403
552
  //:preface-title: Predgovor
553
+ //:section-refsig: ???
404
554
  :table-caption: Tabela
405
555
  :tip-caption: Savet
406
556
  :toc-title: Sadržaj
@@ -408,11 +558,13 @@ ifeval::["{lang}" == "sr_Latn"]
408
558
  :version-label: Verzija
409
559
  :warning-caption: Upozorenje
410
560
  endif::[]
411
- //
412
561
  // Turkish translation, courtesy of Rahman Usta <rahman.usta.88@gmail.com>
413
562
  ifeval::["{lang}" == "tr"]
414
563
  :appendix-caption: Ek bölüm
564
+ :appendix-refsig: {appendix-caption}
415
565
  :caution-caption: Dikkat
566
+ //:chapter-label: ???
567
+ //:chapter-refsig: {chapter-label}
416
568
  :example-caption: Örnek
417
569
  :figure-caption: Görsel
418
570
  :important-caption: Önemli
@@ -421,6 +573,7 @@ ifeval::["{lang}" == "tr"]
421
573
  :manname-title: İSİM
422
574
  :note-caption: Not
423
575
  //:preface-title: Ön söz
576
+ //:section-refsig: ???
424
577
  :table-caption: Tablo
425
578
  :tip-caption: İpucu
426
579
  :toc-title: İçindekiler
@@ -428,11 +581,36 @@ ifeval::["{lang}" == "tr"]
428
581
  :version-label: Versiyon
429
582
  :warning-caption: Uyarı
430
583
  endif::[]
431
- //
584
+ // Ukrainian translation, courtesy of Kyrylo Yatsenko <hedrok@gmail.com>
585
+ ifeval::["{lang}" == "uk"]
586
+ :appendix-caption: Додаток
587
+ :appendix-refsig: {appendix-caption}
588
+ :caution-caption: Обережно
589
+ //:chapter-label: ???
590
+ //:chapter-refsig: {chapter-label}
591
+ :example-caption: Приклад
592
+ :figure-caption: Зображення
593
+ :important-caption: Важливо
594
+ :last-update-label: Востаннє оновлено
595
+ //:listing-caption: Лістинг
596
+ :manname-title: НАЗВА
597
+ :note-caption: Зауваження
598
+ //:preface-title: Передмова
599
+ //:section-refsig: ???
600
+ :table-caption: Таблиця
601
+ :tip-caption: Підказка
602
+ :toc-title: Зміст
603
+ :untitled-label: Без назви
604
+ :version-label: Версія
605
+ :warning-caption: Попередження
606
+ endif::[]
432
607
  // Simplified Chinese translation, courtesy of John Dong <dongwqs@gmail.com>
433
608
  ifeval::["{lang}" == "zh_CN"]
434
609
  :appendix-caption: 附录
610
+ :appendix-refsig: {appendix-caption}
435
611
  :caution-caption: 注意
612
+ //:chapter-label: ???
613
+ //:chapter-refsig: {chapter-label}
436
614
  :example-caption: 示例
437
615
  :figure-caption: 图表
438
616
  :important-caption: 重要
@@ -441,6 +619,7 @@ ifeval::["{lang}" == "zh_CN"]
441
619
  :manname-title: 名称
442
620
  :note-caption: 笔记
443
621
  //:preface-title: 序言
622
+ //:section-refsig: ???
444
623
  :table-caption: 表格
445
624
  :tip-caption: 提示
446
625
  :toc-title: 目录
@@ -448,11 +627,13 @@ ifeval::["{lang}" == "zh_CN"]
448
627
  :version-label: 版本
449
628
  :warning-caption: 警告
450
629
  endif::[]
451
- //
452
630
  // Traditional Chinese translation, courtesy of John Dong <dongwqs@gmail.com>
453
631
  ifeval::["{lang}" == "zh_TW"]
454
632
  :appendix-caption: 附錄
633
+ :appendix-refsig: {appendix-caption}
455
634
  :caution-caption: 注意
635
+ //:chapter-label: ???
636
+ //:chapter-refsig: {chapter-label}
456
637
  :example-caption: 示例
457
638
  :figure-caption: 圖表
458
639
  :important-caption: 重要
@@ -461,6 +642,7 @@ ifeval::["{lang}" == "zh_TW"]
461
642
  :manname-title: 名稱
462
643
  :note-caption: 筆記
463
644
  //:preface-title: 序言
645
+ //:section-refsig: ???
464
646
  :table-caption: 表格
465
647
  :tip-caption: 提示
466
648
  :toc-title: 目錄