These patches update/improve the localized tests and add tests for localized man pages and the missing tests for Italian.
Some translations are still missing, if somebody speaks the language and could update them it would be great. The following languages are missing translations:
- lang-es.conf: #TODO: Left and right single and double quote characters. - lang-es.conf: #TODO: Translation of 'Version' and 'Last updated'. - lang-hu.conf: #TODO: Left and right single and double quote characters. - lang-it.conf: #TODO: Left and right single and double quote characters. - lang-it.conf: #TODO: Translation of 'Version' and 'Last updated'. - lang-nl.conf: #TODO: Translation of 'SYNOPSIS'. - lang-pt-BR.conf: #TODO: Left and right single and double quote characters. - lang-pt-BR.conf: #TODO: Translation of 'Version' and 'Last updated'. - lang-ru.conf: #TODO: Translation of 'Version' and 'Last updated'. - lang-uk.conf: #TODO: Translation of 'Version' and 'Last updated'.
Regards, Simon -- + privacy is necessary + using gnupg http://gnupg.org + public key id: 0x92FEFDB7E44C32F9
[attributes] +#TODO: Left and right single and double quote characters. + # Captions, used by (X)HTML backends. # Captions on RHS are displayed in outputs. ifdef::basebackend-html[] diff --git a/lang-fr.conf b/lang-fr.conf index 11e9523..76214c3 100644 --- a/lang-fr.conf +++ b/lang-fr.conf @@ -12,10 +12,10 @@ rdquo=» # Captions on RHS are displayed in outputs. ifdef::basebackend-html[]
[attributes] +#TODO: Left and right single and double quote characters. + # Captions, used by (X)HTML backends. # Captions on RHS are displayed in outputs. ifdef::basebackend-html[] diff --git a/lang-it.conf b/lang-it.conf index 9c08f45..20d08d0 100644 --- a/lang-it.conf +++ b/lang-it.conf @@ -3,6 +3,8 @@ #
[attributes] +#TODO: Left and right single and double quote characters. + # Captions, used by (X)HTML backends. # Captions on RHS are displayed in outputs. ifdef::basebackend-html[] diff --git a/lang-nl.conf b/lang-nl.conf index 5d582f2..3ef2239 100644 --- a/lang-nl.conf +++ b/lang-nl.conf @@ -55,3 +55,8 @@ endif::doctype-book[] ^Bijlage [A-Z][:.](?P<title>.*)$=appendix
[attributes] +#TODO: Left and right single and double quote characters. + # Captions, used by (X)HTML backends. # Captions on RHS are displayed in outputs. ifdef::basebackend-html[] -- 1.7.6.1
-- + privacy is necessary + using gnupg http://gnupg.org + public key id: 0x92FEFDB7E44C32F9
diff --git a/tests/data/lang-de-man-test.txt b/tests/data/lang-de-man-test.txt new file mode 100644 index 0000000..f1806d4 --- /dev/null +++ b/tests/data/lang-de-man-test.txt @@ -0,0 +1,21 @@ +// Test for lang-de.conf language file. +:lang: de + +ASCIIDOC(1) +=========== +:doctype: manpage + +NAME +---- +asciidoc - converts an AsciiDoc text file to HTML or DocBook + +ÜBERSICHT +--------- +*asciidoc* ['OPTIONS'] 'FILE' + +DESCRIPTION +----------- +The asciidoc(1) command translates the AsciiDoc text file 'FILE' to +DocBook or HTML. If 'FILE' is '-' then the standard input is used. + +... diff --git a/tests/data/lang-en-man-test.txt b/tests/data/lang-en-man-test.txt new file mode 100644 index 0000000..0dec04a --- /dev/null +++ b/tests/data/lang-en-man-test.txt @@ -0,0 +1,21 @@ +// Test for lang-en.conf language file. +:lang: en + +ASCIIDOC(1) +=========== +:doctype: manpage + +NAME +---- +asciidoc - converts an AsciiDoc text file to HTML or DocBook + +SYNOPSIS +-------- +*asciidoc* ['OPTIONS'] 'FILE' + +DESCRIPTION +----------- +The asciidoc(1) command translates the AsciiDoc text file 'FILE' to +DocBook or HTML. If 'FILE' is '-' then the standard input is used. + +... diff --git a/tests/data/lang-es-man-test.txt b/tests/data/lang-es-man-test.txt new file mode 100644 index 0000000..cb95b70 --- /dev/null +++ b/tests/data/lang-es-man-test.txt @@ -0,0 +1,21 @@ +// Test for lang-es.conf language file. +:lang: es + +ASCIIDOC(1) +=========== +:doctype: manpage + +NAME +---- +asciidoc - converts an AsciiDoc text file to HTML or DocBook + +SINOPSIS +-------- +*asciidoc* ['OPTIONS'] 'FILE' + +DESCRIPTION +----------- +The asciidoc(1) command translates the AsciiDoc text file 'FILE' to +DocBook or HTML. If 'FILE' is '-' then the standard input is used. + +... diff --git a/tests/data/lang-fr-man-test.txt b/tests/data/lang-fr-man-test.txt new file mode 100644 index 0000000..edb681f --- /dev/null +++ b/tests/data/lang-fr-man-test.txt @@ -0,0 +1,21 @@ +// Test for lang-fr.conf language file. +:lang: fr + +ASCIIDOC(1) +=========== +:doctype: manpage + +NAME +---- +asciidoc - converts an AsciiDoc text file to HTML or DocBook + +SYNOPSIS +-------- +*asciidoc* ['OPTIONS'] 'FILE' + +DESCRIPTION +----------- +The asciidoc(1) command translates the AsciiDoc text file 'FILE' to +DocBook or HTML. If 'FILE' is '-' then the standard input is used. + +... diff --git a/tests/data/lang-hu-man-test.txt b/tests/data/lang-hu-man-test.txt new file mode 100644 index 0000000..7caf1ad --- /dev/null +++ b/tests/data/lang-hu-man-test.txt @@ -0,0 +1,21 @@ +// Test for lang-hu.conf language file. +:lang: hu + +ASCIIDOC(1) +=========== +:doctype: manpage + +NAME +---- +asciidoc - converts an AsciiDoc text file to HTML or DocBook + +ÁTTEKINTÉS +---------- +*asciidoc* ['OPTIONS'] 'FILE' + +DESCRIPTION +----------- +The asciidoc(1) command translates the AsciiDoc text file 'FILE' to +DocBook or HTML. If 'FILE' is '-' then the standard input is used. + +... diff --git a/tests/data/lang-nl-man-test.txt b/tests/data/lang-nl-man-test.txt new file mode 100644 index 0000000..4844c17 --- /dev/null +++ b/tests/data/lang-nl-man-test.txt @@ -0,0 +1,21 @@ +// Test for lang-nl.conf language file. +:lang: nl + +ASCIIDOC(1) +=========== +:doctype: manpage + +NAME +---- +asciidoc - converts an AsciiDoc text file to HTML or DocBook + +SYNOPSIS +-------- +*asciidoc* ['OPTIONS'] 'FILE' + +DESCRIPTION +----------- +The asciidoc(1) command translates the AsciiDoc text file 'FILE' to +DocBook or HTML. If 'FILE' is '-' then the standard input is used. + +... diff --git a/tests/data/lang-pt-BR-man-test.txt b/tests/data/lang-pt-BR-man-test.txt new file mode 100644 index 0000000..0363ea6 --- /dev/null +++ b/tests/data/lang-pt-BR-man-test.txt @@ -0,0 +1,21 @@ +// Test for lang-pt-BR.conf language file. +:lang: pt-BR + +ASCIIDOC(1) +=========== +:doctype: manpage + +NAME +---- +asciidoc - converts an AsciiDoc text file to HTML or DocBook + +SINOPSE +------- +*asciidoc* ['OPTIONS'] 'FILE' + +DESCRIPTION +----------- +The asciidoc(1) command translates the AsciiDoc text file 'FILE' to +DocBook or HTML. If 'FILE' is '-' then the standard input is used. + +... diff --git a/tests/data/lang-ru-man-test.txt b/tests/data/lang-ru-man-test.txt new file mode 100644 index 0000000..3e50548 --- /dev/null +++ b/tests/data/lang-ru-man-test.txt @@ -0,0 +1,21 @@ +// Test for lang-ru.conf language file. +:lang: ru + +ASCIIDOC(1) +=========== +:doctype: manpage + +NAME +---- +asciidoc - converts an AsciiDoc text file to HTML or DocBook + +ОБЗОР +----- +*asciidoc* ['OPTIONS'] 'FILE' + +DESCRIPTION +----------- +The asciidoc(1) command translates the AsciiDoc text file 'FILE' to +DocBook or HTML. If 'FILE' is '-' then the standard input is used. + +... diff --git a/tests/data/lang-uk-man-test.txt b/tests/data/lang-uk-man-test.txt new file mode 100644 index 0000000..8212e4c --- /dev/null +++ b/tests/data/lang-uk-man-test.txt @@ -0,0 +1,21 @@ +// Test for lang-uk.conf language file. +:lang: uk + +ASCIIDOC(1) +=========== +:doctype: manpage + +NAME +---- +asciidoc - converts an AsciiDoc text file to HTML or DocBook + +ОГЛЯД +----- +*asciidoc* ['OPTIONS'] 'FILE' + +DESCRIPTION +----------- +The asciidoc(1) command translates the AsciiDoc text file 'FILE' to +DocBook or HTML. If 'FILE' is '-' then the standard input is used. + +... diff --git a/tests/testasciidoc.conf b/tests/testasciidoc.conf index 8b60d7d..601d9cc 100644 --- a/tests/testasciidoc.conf +++ b/tests/testasciidoc.conf @@ -210,6 +210,15 @@ data/lang-en-test.txt {'toc':True}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +English language file (manpage) + +% backends +['docbook'] + +% source +data/lang-en-man-test.txt + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Russian language file (article)
diff --git a/tests/data/lang-it-man-test.txt b/tests/data/lang-it-man-test.txt new file mode 100644 index 0000000..7309a0c --- /dev/null +++ b/tests/data/lang-it-man-test.txt @@ -0,0 +1,21 @@ +// Test for lang-it.conf language file. +:lang: it + +ASCIIDOC(1) +=========== +:doctype: manpage + +NAME +---- +asciidoc - converts an AsciiDoc text file to HTML or DocBook + +SINOSSI +------- +*asciidoc* ['OPTIONS'] 'FILE' + +DESCRIPTION +----------- +The asciidoc(1) command translates the AsciiDoc text file 'FILE' to +DocBook or HTML. If 'FILE' is '-' then the standard input is used. + +... diff --git a/tests/data/lang-it-test.txt b/tests/data/lang-it-test.txt new file mode 100644 index 0000000..790a57e --- /dev/null +++ b/tests/data/lang-it-test.txt @@ -0,0 +1,106 @@ +// Test for lang-it.conf language file. +:lang: it + +Languages Test +============== +:revnumber: v1.0 +:revdate: 2003-12-21 + +ifdef::doctype-article[] +Abstract +-------- +Abstract special section. + +endif::doctype-article[] + + +ifdef::doctype-book[] +Dedica +------ +Dedication special section. + + +Prefazione +---------- +Preface special section. + + +Colofone +-------- +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. + + +Appendice A: Example Appendix +----------------------------- +Appendix special section. + + +Bibliografia +------------ +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. + + +Glossario +--------- +Glossary special section. + +[glossary] +A glossary term:: + The corresponding (indented) definition. + +A second glossary term:: + The corresponding (indented) definition. + + +ifdef::basebackend-docbook[] +Index +----- +//////////////////////////////////////////////////////////////// +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 601d9cc..bff530b 100644 --- a/tests/testasciidoc.conf +++ b/tests/testasciidoc.conf @@ -579,6 +579,51 @@ Dutch language file (manpage) data/lang-nl-man-test.txt
> [attributes] > +#TODO: Left and right single and double quote characters. > + > # Captions, used by (X)HTML backends. > # Captions on RHS are displayed in outputs. > ifdef::basebackend-html[] > diff --git a/lang-fr.conf b/lang-fr.conf > index 11e9523..76214c3 100644 > --- a/lang-fr.conf > +++ b/lang-fr.conf > @@ -12,10 +12,10 @@ rdquo=» > # Captions on RHS are displayed in outputs. > ifdef::basebackend-html[]
> [attributes] > +#TODO: Left and right single and double quote characters. > + > # Captions, used by (X)HTML backends. > # Captions on RHS are displayed in outputs. > ifdef::basebackend-html[] > diff --git a/lang-it.conf b/lang-it.conf > index 9c08f45..20d08d0 100644 > --- a/lang-it.conf > +++ b/lang-it.conf > @@ -3,6 +3,8 @@ > #
> [attributes] > +#TODO: Left and right single and double quote characters. > + > # Captions, used by (X)HTML backends. > # Captions on RHS are displayed in outputs. > ifdef::basebackend-html[] > diff --git a/lang-nl.conf b/lang-nl.conf > index 5d582f2..3ef2239 100644 > --- a/lang-nl.conf > +++ b/lang-nl.conf > @@ -55,3 +55,8 @@ endif::doctype-book[] > ^Bijlage [A-Z][:.](?P<title>.*)$=appendix
> [attributes] > +#TODO: Left and right single and double quote characters. > + > # Captions, used by (X)HTML backends. > # Captions on RHS are displayed in outputs. > ifdef::basebackend-html[]