summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Rackham <srackham@methods.co.nz>2011-01-31 10:43:05 +1300
committerStuart Rackham <srackham@methods.co.nz>2011-01-31 10:43:05 +1300
commitd4972bd0dd2cdb178d2012a9c560cc0dd965a32a (patch)
treec6bfb2bfd03b2e156bb986b8f961d4fe0c5d8d10
parent136fea329ebb78bda4997d812789562c29496fb7 (diff)
downloadasciidoc-d4972bd0dd2cdb178d2012a9c560cc0dd965a32a.tar.gz
- Added a uk language test.
- In lieu of inline explanation dropped commented out quote attributes. - Normalized lang-uk.conf attribution text.
-rw-r--r--asciidoc.conf1
-rw-r--r--lang-de.conf1
-rw-r--r--lang-ru.conf5
-rw-r--r--lang-uk.conf7
-rw-r--r--tests/data/lang-uk-test.txt106
-rw-r--r--tests/testasciidoc.conf36
6 files changed, 147 insertions, 9 deletions
diff --git a/asciidoc.conf b/asciidoc.conf
index 6eced9d..c150d0b 100644
--- a/asciidoc.conf
+++ b/asciidoc.conf
@@ -44,6 +44,7 @@ two-semicolons=;;
two_colons=::
two_semicolons=;;
# Left and right single and double quote characters.
+# See http://en.wikipedia.org/wiki/Non-English_usage_of_quotation_marks
lsq=&#8216;
rsq=&#8217;
ldq=&#8220;
diff --git a/lang-de.conf b/lang-de.conf
index e681217..498c808 100644
--- a/lang-de.conf
+++ b/lang-de.conf
@@ -9,6 +9,7 @@ lsq=&#8218;
rsq=&#8216;
ldq=&#8222;
rdq=&#8220;
+
# Captions, used by (X)HTML backends.
# Captions on RHS are displayed in outputs.
ifdef::basebackend-html[]
diff --git a/lang-ru.conf b/lang-ru.conf
index 2ba9382..dfa407c 100644
--- a/lang-ru.conf
+++ b/lang-ru.conf
@@ -5,12 +5,9 @@
[attributes]
# Left and right single and double quote characters.
-#lsq=&#8218;
-#rsq=&#8216;
-#ldq=&#8222;
-#rdq=&#8220;
ldq=&#0171;
rdq=&#0187;
+
# Captions, used by (X)HTML backends.
# Captions on RHS are displayed in outputs.
ifdef::basebackend-html[]
diff --git a/lang-uk.conf b/lang-uk.conf
index 1b35a7f..1684f11 100644
--- a/lang-uk.conf
+++ b/lang-uk.conf
@@ -1,16 +1,13 @@
#
# AsciiDoc Ukrainian language configuration file.
-# Contributed by Oleksandr Lavrushchenko
+# Originally written by Oleksandr Lavrushchenko
#
[attributes]
# Left and right single and double quote characters.
-#lsq=&#8218;
-#rsq=&#8216;
-#ldq=&#8222;
-#rdq=&#8220;
ldq=&#0171;
rdq=&#0187;
+
# Captions, used by (X)HTML backends.
# Captions on RHS are displayed in outputs.
ifdef::basebackend-html[]
diff --git a/tests/data/lang-uk-test.txt b/tests/data/lang-uk-test.txt
new file mode 100644
index 0000000..5833456
--- /dev/null
+++ b/tests/data/lang-uk-test.txt
@@ -0,0 +1,106 @@
+// Test for lang-uk.conf language file.
+:lang: uk
+
+Languages Test
+==============
+:revnumber: v1.0
+:revdate: 2011-01-30
+
+ifdef::doctype-article[]
+Аннотация
+---------
+Abstract special section.
+
+endif::doctype-article[]
+
+
+ifdef::doctype-book[]
+Присвячення
+-----------
+Dedication special section.
+
+
+Вступ
+-----
+Preface special section.
+
+
+Колофон
+-------
+Colophon special section.
+
+endif::doctype-book[]
+
+
+The First Section
+-----------------
+Admonishments
+~~~~~~~~~~~~~
+Do not translate in the source file -- they are translated to the
+output file
+
+NOTE: Lorum ipsum.
+
+TIP: Lorum ipsum.
+
+WARNING: Lorum ipsum.
+
+CAUTION: Lorum ipsum.
+
+IMPORTANT: Lorum ipsum.
+
+.Tiger
+image::../../images/tiger.png[Tiger image]
+
+Followed by an example table:
+
+.Table
+[width="60%",options="header"]
+|==============================================
+| Option | Description
+| -a 'USER GROUP' | Add 'USER' to 'GROUP'.
+| -R 'GROUP' | Disables access to 'GROUP'.
+|==============================================
+
+And now for something completely different: ((monkeys)), lions and
+tigers.
+
+
+Додаток A: Example Appendix
+---------------------------
+Appendix special section.
+
+
+Бібліографія
+------------
+Bibliography special section.
+
+[bibliography]
+- [[[taoup]]] Eric Steven Raymond. 'The Art of Unix
+ Programming'. Addison-Wesley. ISBN 0-13-142901-9.
+- [[[walsh-muellner]]] Norman Walsh & Leonard Muellner.
+ 'DocBook - The Definitive Guide'. O'Reilly & Associates. 1999.
+ ISBN 1-56592-580-7.
+
+
+Словник термінів
+----------------
+Glossary special section.
+
+[glossary]
+A glossary term::
+ The corresponding (indented) definition.
+
+A second glossary term::
+ The corresponding (indented) definition.
+
+
+ifdef::basebackend-docbook[]
+Предметний покажчик
+-------------------
+////////////////////////////////////////////////////////////////
+Index special section.
+The index is normally left completely empty, it's contents being
+generated automatically by the DocBook toolchain.
+////////////////////////////////////////////////////////////////
+endif::basebackend-docbook[]
diff --git a/tests/testasciidoc.conf b/tests/testasciidoc.conf
index 35a6ceb..93445db 100644
--- a/tests/testasciidoc.conf
+++ b/tests/testasciidoc.conf
@@ -426,6 +426,42 @@ data/lang-pt-BR-test.txt
{'toc':True}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+Ukrainian language file (article)
+
+% backends
+['docbook','xhtml11']
+
+% name
+lang-uk-article-test
+
+% source
+data/lang-uk-test.txt
+
+% options
+[('--doctype','article')]
+
+% attributes
+{'toc':True}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+Ukrainian language file (book)
+
+% backends
+['docbook','xhtml11']
+
+% name
+lang-uk-book-test
+
+% source
+data/lang-uk-test.txt
+
+% options
+[('--doctype','book')]
+
+% attributes
+{'toc':True}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
RCS $Id$ marker test
% source