diff options
author | Stuart Rackham <srackham@methods.co.nz> | 2012-08-25 13:25:15 +1200 |
---|---|---|
committer | Stuart Rackham <srackham@methods.co.nz> | 2012-08-25 13:25:15 +1200 |
commit | 2fbebc826a5a0c787d676888e27ba7e163c223de (patch) | |
tree | b116075aec58c4050093f3a8a416a9d0201b1397 | |
parent | 5637e736e1625191422f07ba0330dad11e22b74b (diff) | |
download | asciidoc-2fbebc826a5a0c787d676888e27ba7e163c223de.tar.gz |
Added Czech language configuration file. Contributed by Petr Kl?ma.
-rw-r--r-- | lang-cs.conf | 55 | ||||
-rw-r--r-- | tests/data/lang-cs-man-test.txt | 21 | ||||
-rw-r--r-- | tests/data/lang-cs-test.txt | 106 | ||||
-rw-r--r-- | tests/testasciidoc.conf | 45 |
4 files changed, 227 insertions, 0 deletions
diff --git a/lang-cs.conf b/lang-cs.conf new file mode 100644 index 0000000..96288c6 --- /dev/null +++ b/lang-cs.conf @@ -0,0 +1,55 @@ +# +# AsciiDoc Czech language configuration file. +# (C) 2012 Petr Klíma <qaxi@seznam.cz> +# License: GNU Free Documentation License, ver. 1.3 or later version, see http://fsf.org/ + +[attributes] +# Captions, used by (X)HTML backends. +# Captions on RHS are displayed in outputs. +ifdef::basebackend-html[] + +caution-caption=Pozor +important-caption=Důležité +note-caption=Poznámka +tip-caption=Tip +warning-caption=Varování +figure-caption=Obrázek +table-caption=Tabulka +example-caption=Příklad +toc-title=Obsah +appendix-caption=Příloha +# Man page NAME section title. +manname-title=NAME + +[footer-text] +Verze {revnumber}{basebackend-xhtml11?<br />}{basebackend-xhtml11=<br>} +Poslední úprava {docdate} {doctime} + +endif::basebackend-html[] + + +[specialsections] +# DocBook special sections. +# The regular expression on LHS is matched against source titles. +ifdef::basebackend-docbook[] + +ifdef::doctype-article[] +^Abstrakt$=abstract +endif::doctype-article[] + +ifdef::doctype-book[] +^Tiráž$=colophon +^Věnování$=dedication +^Předmluva$=preface +endif::doctype-book[] + +^Index$=index +^(Bibliografie|Reference)$=bibliography +^Glosář$=glossary +^Příloha [A-Z][:.](?P<title>.*)$=appendix + +endif::basebackend-docbook[] + +ifdef::doctype-manpage[] +(?i)^Přehled$=synopsis +endif::doctype-manpage[] diff --git a/tests/data/lang-cs-man-test.txt b/tests/data/lang-cs-man-test.txt new file mode 100644 index 0000000..9c3726a --- /dev/null +++ b/tests/data/lang-cs-man-test.txt @@ -0,0 +1,21 @@ +// Test for lang-it.conf language file. +:lang: cs + +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-cs-test.txt b/tests/data/lang-cs-test.txt new file mode 100644 index 0000000..f960fb7 --- /dev/null +++ b/tests/data/lang-cs-test.txt @@ -0,0 +1,106 @@ +// Test for lang-cs.conf language file. +:lang: cs + +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 3c6c1ff..9f1d367 100644 --- a/tests/testasciidoc.conf +++ b/tests/testasciidoc.conf @@ -630,6 +630,51 @@ Italian language file (manpage) data/lang-it-man-test.txt %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +Czech language file (article) + +% backends +['docbook','xhtml11','html4','html5'] + +% name +lang-cs-article-test + +% source +data/lang-cs-test.txt + +% options +[('--doctype','article')] + +% attributes +{'toc':True} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +Czech language file (book) + +% backends +['docbook','xhtml11','html4','html5'] + +% name +lang-cs-book-test + +% source +data/lang-cs-test.txt + +% options +[('--doctype','book')] + +% attributes +{'toc':True} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +Czech language file (manpage) + +% backends +['docbook'] + +% source +data/lang-cs-man-test.txt + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% RCS $Id$ marker test % source |