summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Rackham <srackham@methods.co.nz>2012-08-25 16:18:32 +1200
committerStuart Rackham <srackham@methods.co.nz>2012-08-25 16:18:32 +1200
commit6cf4ccc113e8a6d5b57e5fb225e5fbd6bf00f447 (patch)
treea40f4f460a9b9b0e8fa15ddd824418ee1f5b7bbb
parentd6c601ae253426eea2f42decc477a81b1ed69c95 (diff)
downloadasciidoc-6cf4ccc113e8a6d5b57e5fb225e5fbd6bf00f447.tar.gz
Added Romanian language configuration file. Contributed by Vitalie Lazu.
See https://groups.google.com/group/asciidoc/browse_thread/thread/2fe14a10dbf20d20/27726e7e13f7bfc7?lnk=gst&q=romanian#27726e7e13f7bfc7
-rw-r--r--lang-ro.conf59
-rw-r--r--tests/data/lang-ro-man-test.txt21
-rw-r--r--tests/data/lang-ro-test.txt106
-rw-r--r--tests/testasciidoc.conf45
4 files changed, 231 insertions, 0 deletions
diff --git a/lang-ro.conf b/lang-ro.conf
new file mode 100644
index 0000000..f511e53
--- /dev/null
+++ b/lang-ro.conf
@@ -0,0 +1,59 @@
+#
+# AsciiDoc Romanian language configuration file.
+# Originally written by Vitalie Lazu
+#
+
+[attributes]
+# Left and right single and double quote characters.
+ldquo=„
+rdquo=”
+
+# Captions, used by (X)HTML backends.
+# Captions on RHS are displayed in outputs.
+ifdef::basebackend-html[]
+
+caution-caption=Precauție
+important-caption=Important
+note-caption=Notă
+tip-caption=Sfat
+warning-caption=Anteție
+figure-caption=Figură
+table-caption=Tabela
+example-caption=Exemplu
+toc-title=Cuprins
+appendix-caption=Apendix
+# Man page NAME section title.
+manname-title=NUME
+
+[footer-text]
+Versiunea {revnumber}{basebackend-xhtml11?<br />}{basebackend-xhtml11=<br>}
+Ultima actualizare {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[]
+^Adnotație$=abstract
+endif::doctype-article[]
+
+ifdef::doctype-book[]
+^Casetă$=colophon
+^Dedicare$=dedication
+^Prefață$=preface
+endif::doctype-book[]
+
+^Index$=index
+^Bibliografia$=bibliography
+^Glosar$=glossary
+^Anexa [A-Z][:.](?P<title>.*)$=appendix
+
+endif::basebackend-docbook[]
+
+ifdef::doctype-manpage[]
+(?i)^REZUMAT$=synopsis
+endif::doctype-manpage[]
diff --git a/tests/data/lang-ro-man-test.txt b/tests/data/lang-ro-man-test.txt
new file mode 100644
index 0000000..7309a0c
--- /dev/null
+++ b/tests/data/lang-ro-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-ro-test.txt b/tests/data/lang-ro-test.txt
new file mode 100644
index 0000000..790a57e
--- /dev/null
+++ b/tests/data/lang-ro-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 9f1d367..1f960af 100644
--- a/tests/testasciidoc.conf
+++ b/tests/testasciidoc.conf
@@ -675,6 +675,51 @@ Czech language file (manpage)
data/lang-cs-man-test.txt
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+Romanian language file (article)
+
+% backends
+['docbook','xhtml11','html4','html5']
+
+% name
+lang-ro-article-test
+
+% source
+data/lang-ro-test.txt
+
+% options
+[('--doctype','article')]
+
+% attributes
+{'toc':True}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+Romanian language file (book)
+
+% backends
+['docbook','xhtml11','html4','html5']
+
+% name
+lang-ro-book-test
+
+% source
+data/lang-ro-test.txt
+
+% options
+[('--doctype','book')]
+
+% attributes
+{'toc':True}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+Romanian language file (manpage)
+
+% backends
+['docbook']
+
+% source
+data/lang-ro-man-test.txt
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
RCS $Id$ marker test
% source