diff options
| author | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2003-12-15 14:13:55 +0000 |
|---|---|---|
| committer | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2003-12-15 14:13:55 +0000 |
| commit | 045ea825e115d5038bd6d71e91bc7ab2fc86dc97 (patch) | |
| tree | de3fe615441aa5ac20b24360f11ec664d250f2bf /docutils | |
| parent | a82a316920bf0f33bc4b09a0cb70ce3303e2d836 (diff) | |
| download | docutils-045ea825e115d5038bd6d71e91bc7ab2fc86dc97.tar.gz | |
added Czech-language mappings by Marek Blaha
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@1767 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils')
| -rw-r--r-- | docutils/HISTORY.txt | 50 | ||||
| -rw-r--r-- | docutils/docutils/languages/cs.py | 62 | ||||
| -rw-r--r-- | docutils/docutils/parsers/rst/languages/cs.py | 94 |
3 files changed, 184 insertions, 22 deletions
diff --git a/docutils/HISTORY.txt b/docutils/HISTORY.txt index 157023654..ae29bad2f 100644 --- a/docutils/HISTORY.txt +++ b/docutils/HISTORY.txt @@ -19,26 +19,26 @@ suggestions, criticism, bug reports, code contributions, tasty treats, and related projects: Aahz, David Abrahams, David Ascher, Heiko Baumann, Eric Bellot, - Ian Bicking, Martin Blais, Fred Bremmer, Simon Budig, Bill - Bumgarner, Brett Cannon, Beni Cherniavsky, Adam Chodorowski, Artur - de Sousa Rocha, Jason Diamond, William Dode, Fred Drake, Dethe - Elza, Marcus Ertl, Benja Fallenstein, fantasai, Stefane Fermigier, - Jim Fulton, Peter Funk, Dinu C. Gherman, Jorge Gonzalez, Engelbert - Gruber, Simon Hefti, Doug Hellmann, Juergen Hermann, Jannie - Hofmeyr, Michael Hudson, Marcelo Huerta San Martin, Ludger - Humbert, Jeremy Hylton, Tony Ibbs, Alan Jaffray, Dmitry Jemerov, - Richard Jones, Andreas Jung, Garth Kidd, Axel Kollmorgen, Kirill - Lapshin, Nicola Larosa, Daniel Larsson, Marc-Andre Lemburg, Julien - Letessier, Wolfgang Lipp, Edward Loper, Dallas Mahrt, Ken - Manheimer, Bob Marshall, Vasko Miroslav, Skip Montanaro, Paul - Moore, Nigel W. Moriarty, Mark Nodine, Patrick K. O'Brien, Michel - Pelletier, Sam Penrose, Tim Peters, Pearu Peterson, Mark Pilgrim, - Brett g Porter, David Priest, Jens Quade, Andy Robinson, Tavis - Rudd, Oliver Rutherfurd, Kenichi Sato, Ueli Schlaepfer, Gunnar - Schwant, Bruce Smith, Roman Suzi, tav, Kent Tenney, Bob Tolbert, - Paul Tremblay, Laurence Tratt, Adrian van den Dries, Guido van - Rossum, Paul Viren, Martin von Loewis, Greg Ward, Barry Warsaw, - Edward Welbourne, Ka-Ping Yee, Moshe Zadka + Ian Bicking, Marek Blaha, Martin Blais, Fred Bremmer, Simon Budig, + Bill Bumgarner, Brett Cannon, Beni Cherniavsky, Adam Chodorowski, + Artur de Sousa Rocha, Jason Diamond, William Dode, Fred Drake, + Dethe Elza, Marcus Ertl, Benja Fallenstein, fantasai, Stefane + Fermigier, Jim Fulton, Peter Funk, Dinu C. Gherman, Jorge + Gonzalez, Engelbert Gruber, Simon Hefti, Doug Hellmann, Juergen + Hermann, Jannie Hofmeyr, Michael Hudson, Marcelo Huerta San + Martin, Ludger Humbert, Jeremy Hylton, Tony Ibbs, Alan Jaffray, + Dmitry Jemerov, Richard Jones, Andreas Jung, Garth Kidd, Axel + Kollmorgen, Kirill Lapshin, Nicola Larosa, Daniel Larsson, + Marc-Andre Lemburg, Julien Letessier, Wolfgang Lipp, Edward Loper, + Dallas Mahrt, Ken Manheimer, Bob Marshall, Vasko Miroslav, Skip + Montanaro, Paul Moore, Nigel W. Moriarty, Mark Nodine, Patrick + K. O'Brien, Michel Pelletier, Sam Penrose, Tim Peters, Pearu + Peterson, Mark Pilgrim, Brett g Porter, David Priest, Jens Quade, + Andy Robinson, Tavis Rudd, Oliver Rutherfurd, Kenichi Sato, Ueli + Schlaepfer, Gunnar Schwant, Bruce Smith, Roman Suzi, tav, Kent + Tenney, Bob Tolbert, Paul Tremblay, Laurence Tratt, Adrian van den + Dries, Guido van Rossum, Paul Viren, Martin von Loewis, Greg Ward, + Barry Warsaw, Edward Welbourne, Ka-Ping Yee, Moshe Zadka Thank you! @@ -118,8 +118,11 @@ Changes Since 0.3 - Added "level" attribute to SystemMessage exceptions. -* docutils/languages/af.py: Added to project; Afrikaans - mappings by Jannie Hofmeyr. +* docutils/languages/af.py: Added to project; Afrikaans mappings by + Jannie Hofmeyr. + +* docutils/languages/cs.py: Added to project; Czech mappings by Marek + Blaha. * docutils/languages/eo.py: Added to project; Esperanto mappings by Marcelo Huerta San Martin. @@ -155,6 +158,9 @@ Changes Since 0.3 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans mappings by Jannie Hofmeyr. +* docutils/parsers/rst/languages/cs.py: Added to project; Czech + mappings by Marek Blaha. + * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto mappings by Marcelo Huerta San Martin. diff --git a/docutils/docutils/languages/cs.py b/docutils/docutils/languages/cs.py new file mode 100644 index 000000000..5e25800eb --- /dev/null +++ b/docutils/docutils/languages/cs.py @@ -0,0 +1,62 @@ +# Author: Marek Blaha +# Contact: mb@dat.cz +# Revision: $Revision$ +# Date: $Date$ +# Copyright: This module has been placed in the public domain. + +# New language mappings are welcome. Before doing a new translation, please +# read <http://docutils.sf.net/spec/howto/i18n.html>. Two files must be +# translated for each language: one in docutils/languages, the other in +# docutils/parsers/rst/languages. + +""" +Czech-language mappings for language-dependent features of Docutils. +""" + +__docformat__ = 'reStructuredText' + +labels = { + # fixed: language-dependent + 'author': u'Autor', + 'authors': u'Auto\u0159i', + 'organization': u'Organizace', + 'address': u'Adresa', + 'contact': u'Kontakt', + 'version': u'Verze', + 'revision': u'Revize', + 'status': u'Stav', + 'date': u'Datum', + 'copyright': u'Copyright', + 'dedication': u'V\u011Bnov\u00E1n\u00ED', + 'abstract': u'Abstrakt', + 'attention': u'Pozor!', + 'caution': u'Opatrn\u011B!', + 'danger': u'!NEBEZPE\u010C\u00CD!', + 'error': u'Chyba', + 'hint': u'Rada', + 'important': u'D\u016Fle\u017Eit\u00E9', + 'note': u'Pozn\u00E1mka', + 'tip': u'Tip', + 'warning': u'Varov\u00E1n\u00ED', + 'contents': u'Obsah'} +"""Mapping of node class name to label text.""" + +bibliographic_fields = { + # language-dependent: fixed + u'autor': 'author', + u'auto\u0159i': 'authors', + u'organizace': 'organization', + u'adresa': 'address', + u'kontakt': 'contact', + u'verze': 'version', + u'revize': 'revision', + u'stav': 'status', + u'datum': 'date', + u'copyright': 'copyright', + u'v\u011Bnov\u00E1n\u00ED': 'dedication', + u'abstrakt': 'abstract'} +"""Czech (lowcased) to canonical name mapping for bibliographic fields.""" + +author_separators = [';', ','] +"""List of separator strings for the 'Authors' bibliographic field. Tried in +order.""" diff --git a/docutils/docutils/parsers/rst/languages/cs.py b/docutils/docutils/parsers/rst/languages/cs.py new file mode 100644 index 000000000..45fb5e657 --- /dev/null +++ b/docutils/docutils/parsers/rst/languages/cs.py @@ -0,0 +1,94 @@ +# Author: Marek Blaha +# Contact: mb@dat.cz +# Revision: $Revision$ +# Date: $Date$ +# Copyright: This module has been placed in the public domain. + +# New language mappings are welcome. Before doing a new translation, please +# read <http://docutils.sf.net/spec/howto/i18n.html>. Two files must be +# translated for each language: one in docutils/languages, the other in +# docutils/parsers/rst/languages. + +""" +Czech-language mappings for language-dependent features of +reStructuredText. +""" + +__docformat__ = 'reStructuredText' + + +directives = { + # language-dependent: fixed + u'pozor': 'attention', + u'caution': 'caution', # jak rozlisit caution a warning? + u'nebezpe\u010D\u00ED': 'danger', + u'chyba': 'error', + u'rada': 'hint', + u'd\u016Fle\u017Eit\u00E9': 'important', + u'pozn\u00E1mka': 'note', + u'tip': 'tip', + u'varov\u00E1n\u00ED': 'warning', + u'admonition': 'admonition', + u'sidebar': 'sidebar', + u't\u00E9ma': 'topic', + u'line-block': 'line-block', + u'parsed-literal': 'parsed-literal', + u'odd\u00EDl': 'rubric', + u'moto': 'epigraph', + u'highlights': 'highlights', + u'pull-quote': 'pull-quote', + #'questions': 'questions', + #'qa': 'questions', + #'faq': 'questions', + u'meta': 'meta', + #'imagemap': 'imagemap', + u'image': 'image', # obrazek + u'figure': 'figure', # a tady? + u'include': 'include', + u'raw': 'raw', + u'replace': 'replace', + u'unicode': 'unicode', + u't\u0159\u00EDda': 'class', + u'obsah': 'contents', + u'sectnum': 'sectnum', + u'section-numbering': 'sectnum', + #'footnotes': 'footnotes', + #'citations': 'citations', + u'target-notes': 'target-notes', + u'restructuredtext-test-directive': 'restructuredtext-test-directive'} +"""Czech name to registered (in directives/__init__.py) directive name +mapping.""" + +roles = { + # language-dependent: fixed + u'abbreviation': 'abbreviation', + u'ab': 'abbreviation', + u'acronym': 'acronym', + u'ac': 'acronym', + u'index': 'index', + u'i': 'index', + u'subscript': 'subscript', + u'sub': 'subscript', + u'superscript': 'superscript', + u'sup': 'superscript', + u'title-reference': 'title-reference', + u'title': 'title-reference', + u't': 'title-reference', + u'pep-reference': 'pep-reference', + u'pep': 'pep-reference', + u'rfc-reference': 'rfc-reference', + u'rfc': 'rfc-reference', + u'emphasis': 'emphasis', + u'strong': 'strong', + u'literal': 'literal', + u'named-reference': 'named-reference', + u'anonymous-reference': 'anonymous-reference', + u'footnote-reference': 'footnote-reference', + u'citation-reference': 'citation-reference', + u'substitution-reference': 'substitution-reference', + u'target': 'target', + u'uri-reference': 'uri-reference', + u'uri': 'uri-reference', + u'url': 'uri-reference',} +"""Mapping of Czech role names to canonical role names for interpreted text. +""" |
