From bbff5bae14890845feab785b384f2893ffcd18f9 Mon Sep 17 00:00:00 2001 From: grubert Date: Tue, 5 Nov 2002 15:40:28 +0000 Subject: + add sk.py to docutils/languages. + added missing labels to docutils/languages/de.py and sv.py (none swedish). + changed de directives to lowercase. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@887 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/languages/sk.py | 60 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 docutils/languages/sk.py (limited to 'docutils/languages/sk.py') diff --git a/docutils/languages/sk.py b/docutils/languages/sk.py new file mode 100644 index 000000000..4e18e0885 --- /dev/null +++ b/docutils/languages/sk.py @@ -0,0 +1,60 @@ +""" +:Author: Miroslav Vaško +:Contact: zemiak@zoznam.sk +:Revision: $Revision$ +:Date: $Date$ +:Copyright: This module has been placed in the public domain. + +Slovak-language mappings for language-dependent features of Docutils. +""" + +__docformat__ = 'reStructuredText' + + +from docutils import nodes + + +labels = { + 'author': 'Autor', + 'authors': 'Autori', + 'organization': 'Organizácia', + 'address': 'Adresa', + 'contact': 'Kontakt', + 'version': 'Verzia', + 'revision': 'Revízia', + 'status': 'Stav', + 'date': 'Dátum', + 'copyright': 'Copyright', + 'dedication': 'Venovanie', + 'abstract': 'Abstraktne', + 'attention': 'Pozor!', + 'caution': 'Opatrne!', + 'danger': '!NEBEZPEČENSTVO!', + 'error': 'Chyba', + 'hint': 'Rada', + 'important': 'Dôležité', + 'note': 'Poznámka', + 'tip': 'Tip', + 'warning': 'Varovanie', + 'contents': 'Obsah'} +"""Mapping of node class name to label text.""" + +bibliographic_fields = { + 'author': nodes.author, + 'authors': nodes.authors, + 'organization': nodes.organization, + 'address': nodes.address, + 'contact': nodes.contact, + 'version': nodes.version, + 'revision': nodes.revision, + 'status': nodes.status, + 'date': nodes.date, + 'copyright': nodes.copyright, + 'dedication': nodes.topic, + 'abstract': nodes.topic} +"""Field name (lowcased) to node class name mapping for bibliographic fields +(field_list).""" + +author_separators = [';', ','] +"""List of separator strings for the 'Authors' bibliographic field. Tried in +order.""" -- cgit v1.2.1 From 44fd54469a2e923e85e4c86007ae47e6b67c8c96 Mon Sep 17 00:00:00 2001 From: goodger Date: Fri, 8 Nov 2002 01:28:01 +0000 Subject: Unicode escape patch from Miroslav Vasko. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@910 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/languages/sk.py | 80 ++++++++++++++++++++++++------------------------ 1 file changed, 40 insertions(+), 40 deletions(-) (limited to 'docutils/languages/sk.py') diff --git a/docutils/languages/sk.py b/docutils/languages/sk.py index 4e18e0885..49372d7ad 100644 --- a/docutils/languages/sk.py +++ b/docutils/languages/sk.py @@ -1,10 +1,10 @@ -""" -:Author: Miroslav Vaško -:Contact: zemiak@zoznam.sk -:Revision: $Revision$ -:Date: $Date$ -:Copyright: This module has been placed in the public domain. +# :Author: Miroslav Vasko +# :Contact: zemiak@zoznam.sk +# :Revision: $Revision$ +# :Date: $Date$ +# :Copyright: This module has been placed in the public domain. +""" Slovak-language mappings for language-dependent features of Docutils. """ @@ -15,43 +15,43 @@ from docutils import nodes labels = { - 'author': 'Autor', - 'authors': 'Autori', - 'organization': 'Organizácia', - 'address': 'Adresa', - 'contact': 'Kontakt', - 'version': 'Verzia', - 'revision': 'Revízia', - 'status': 'Stav', - 'date': 'Dátum', - 'copyright': 'Copyright', - 'dedication': 'Venovanie', - 'abstract': 'Abstraktne', - 'attention': 'Pozor!', - 'caution': 'Opatrne!', - 'danger': '!NEBEZPEČENSTVO!', - 'error': 'Chyba', - 'hint': 'Rada', - 'important': 'Dôležité', - 'note': 'Poznámka', - 'tip': 'Tip', - 'warning': 'Varovanie', - 'contents': 'Obsah'} + 'author': u'Autor', + 'authors': u'Autori', + 'organization': u'Organiz\u00E1cia', + 'address': u'Adresa', + 'contact': u'Kontakt', + 'version': u'Verzia', + 'revision': u'Rev\u00EDzia', + 'status': u'Stav', + 'date': u'D\u00E1tum', + 'copyright': u'Copyright', + 'dedication': u'Venovanie', + 'abstract': u'Abstraktne', + 'attention': u'Pozor!', + 'caution': u'Opatrne!', + 'danger': u'!NEBEZPE\u010cENSTVO!', + 'error': u'Chyba', + 'hint': u'Rada', + 'important': u'D\u00F4le\u017Eit\u00E9', + 'note': u'Pozn\u00E1mka', + 'tip': u'Tip', + 'warning': u'Varovanie', + 'contents': u'Obsah'} """Mapping of node class name to label text.""" bibliographic_fields = { - 'author': nodes.author, - 'authors': nodes.authors, - 'organization': nodes.organization, - 'address': nodes.address, - 'contact': nodes.contact, - 'version': nodes.version, - 'revision': nodes.revision, - 'status': nodes.status, - 'date': nodes.date, - 'copyright': nodes.copyright, - 'dedication': nodes.topic, - 'abstract': nodes.topic} + u'autor': nodes.author, + u'autori': nodes.authors, + u'organiz\u00E1cia': nodes.organization, + u'adresa': nodes.address, + u'kontakt': nodes.contact, + u'verzia': nodes.version, + u'rev\u00EDzia': nodes.revision, + u'stav': nodes.status, + u'D\u00E1tum': nodes.date, + u'copyright': nodes.copyright, + u'venovanie': nodes.topic, + u'abstraktne': nodes.topic} """Field name (lowcased) to node class name mapping for bibliographic fields (field_list).""" -- cgit v1.2.1 From 3d98a8e8eea73278c7c72eb907a4d20d99e24ee8 Mon Sep 17 00:00:00 2001 From: goodger Date: Thu, 27 Mar 2003 00:21:21 +0000 Subject: fixed bibliographic field language lookups git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1234 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/languages/sk.py | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) (limited to 'docutils/languages/sk.py') diff --git a/docutils/languages/sk.py b/docutils/languages/sk.py index 49372d7ad..e57e3c8cf 100644 --- a/docutils/languages/sk.py +++ b/docutils/languages/sk.py @@ -10,10 +10,6 @@ Slovak-language mappings for language-dependent features of Docutils. __docformat__ = 'reStructuredText' - -from docutils import nodes - - labels = { 'author': u'Autor', 'authors': u'Autori', @@ -40,20 +36,19 @@ labels = { """Mapping of node class name to label text.""" bibliographic_fields = { - u'autor': nodes.author, - u'autori': nodes.authors, - u'organiz\u00E1cia': nodes.organization, - u'adresa': nodes.address, - u'kontakt': nodes.contact, - u'verzia': nodes.version, - u'rev\u00EDzia': nodes.revision, - u'stav': nodes.status, - u'D\u00E1tum': nodes.date, - u'copyright': nodes.copyright, - u'venovanie': nodes.topic, - u'abstraktne': nodes.topic} -"""Field name (lowcased) to node class name mapping for bibliographic fields -(field_list).""" + u'autor': 'author', + u'autori': 'authors', + u'organiz\u00E1cia': 'organization', + u'adresa': 'address', + u'kontakt': 'contact', + u'verzia': 'version', + u'rev\u00EDzia': 'revision', + u'stav': 'status', + u'd\u00E1tum': 'date', + u'copyright': 'copyright', + u'venovanie': 'dedication', + u'abstraktne': 'abstract'} +"""Slovak (lowcased) to canonical name mapping for bibliographic fields.""" author_separators = [';', ','] """List of separator strings for the 'Authors' bibliographic field. Tried in -- cgit v1.2.1 From 19398b08d732989638849d03a7cdc21a366fb811 Mon Sep 17 00:00:00 2001 From: goodger Date: Thu, 26 Jun 2003 18:32:02 +0000 Subject: added explanatory comments for language mappings git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1510 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/languages/sk.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docutils/languages/sk.py') diff --git a/docutils/languages/sk.py b/docutils/languages/sk.py index e57e3c8cf..20fa645ad 100644 --- a/docutils/languages/sk.py +++ b/docutils/languages/sk.py @@ -4,6 +4,11 @@ # :Date: $Date$ # :Copyright: This module has been placed in the public domain. +# New language mappings are welcome. Before doing a new translation, please +# read . Two files must be +# translated for each language: one in docutils/languages, the other in +# docutils/parsers/rst/languages. + """ Slovak-language mappings for language-dependent features of Docutils. """ -- cgit v1.2.1 From a3eedc4e04eea5aa5723ea42ebb293f87fc4c33c Mon Sep 17 00:00:00 2001 From: wiemann Date: Sat, 5 Jun 2004 19:40:46 +0000 Subject: updated git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@2224 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/languages/sk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docutils/languages/sk.py') diff --git a/docutils/languages/sk.py b/docutils/languages/sk.py index 20fa645ad..bb5cf089a 100644 --- a/docutils/languages/sk.py +++ b/docutils/languages/sk.py @@ -5,7 +5,7 @@ # :Copyright: This module has been placed in the public domain. # New language mappings are welcome. Before doing a new translation, please -# read . Two files must be +# read . Two files must be # translated for each language: one in docutils/languages, the other in # docutils/parsers/rst/languages. -- cgit v1.2.1