From 101671ae44e1686680c80cd07b452aabeb88fb63 Mon Sep 17 00:00:00 2001 From: goodger Date: Sat, 20 Apr 2002 03:01:52 +0000 Subject: Initial revision git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@18 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/languages/en.py | 58 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 docutils/languages/en.py (limited to 'docutils/languages/en.py') diff --git a/docutils/languages/en.py b/docutils/languages/en.py new file mode 100644 index 000000000..5b97dadb7 --- /dev/null +++ b/docutils/languages/en.py @@ -0,0 +1,58 @@ +#! /usr/bin/env python + +""" +:Author: David Goodger +:Contact: goodger@users.sourceforge.net +:Revision: $Revision$ +:Date: $Date$ +:Copyright: This module has been placed in the public domain. + +English-language mappings for language-dependent features of Docutils. +""" + +__docformat__ = 'reStructuredText' + + +from docutils import nodes + + +labels = { + 'author': 'Author', + 'authors': 'Authors', + 'organization': 'Organization', + 'contact': 'Contact', + 'version': 'Version', + 'revision': 'Revision', + 'status': 'Status', + 'date': 'Date', + 'copyright': 'Copyright', + 'abstract': 'Abstract', + 'attention': 'Attention!', + 'caution': 'Caution!', + 'danger': '!DANGER!', + 'error': 'Error', + 'hint': 'Hint', + 'important': 'Important', + 'note': 'Note', + 'tip': 'Tip', + 'warning': 'Warning', + 'contents': 'Contents'} +"""Mapping of node class name to label text.""" + +bibliographic_fields = { + 'author': nodes.author, + 'authors': nodes.authors, + 'organization': nodes.organization, + 'contact': nodes.contact, + 'version': nodes.version, + 'revision': nodes.revision, + 'status': nodes.status, + 'date': nodes.date, + 'copyright': nodes.copyright, + '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 a1713e3ba0b936004190f616c62f2189e0953b59 Mon Sep 17 00:00:00 2001 From: goodger Date: Sat, 27 Jul 2002 03:42:23 +0000 Subject: Added "Dedication" bibliographic field mappings. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@376 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/languages/en.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docutils/languages/en.py') diff --git a/docutils/languages/en.py b/docutils/languages/en.py index 5b97dadb7..8488a902b 100644 --- a/docutils/languages/en.py +++ b/docutils/languages/en.py @@ -26,6 +26,7 @@ labels = { 'status': 'Status', 'date': 'Date', 'copyright': 'Copyright', + 'dedication': 'Dedication', 'abstract': 'Abstract', 'attention': 'Attention!', 'caution': 'Caution!', @@ -49,6 +50,7 @@ bibliographic_fields = { '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).""" -- cgit v1.2.1 From 13ed20d392cc6c5e727344dad0c3aca8cea125f1 Mon Sep 17 00:00:00 2001 From: goodger Date: Wed, 21 Aug 2002 03:00:07 +0000 Subject: updated git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@572 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/languages/en.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docutils/languages/en.py') diff --git a/docutils/languages/en.py b/docutils/languages/en.py index 8488a902b..fb320511d 100644 --- a/docutils/languages/en.py +++ b/docutils/languages/en.py @@ -20,6 +20,7 @@ labels = { 'author': 'Author', 'authors': 'Authors', 'organization': 'Organization', + 'address': 'Address', 'contact': 'Contact', 'version': 'Version', 'revision': 'Revision', @@ -44,6 +45,7 @@ bibliographic_fields = { 'author': nodes.author, 'authors': nodes.authors, 'organization': nodes.organization, + 'address': nodes.address, 'contact': nodes.contact, 'version': nodes.version, 'revision': nodes.revision, -- cgit v1.2.1 From efdd39867964b92520a58c6796658895e412c441 Mon Sep 17 00:00:00 2001 From: goodger Date: Wed, 9 Oct 2002 00:51:53 +0000 Subject: changed docstring field lists into comments git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@778 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/languages/en.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'docutils/languages/en.py') diff --git a/docutils/languages/en.py b/docutils/languages/en.py index fb320511d..4ca94d632 100644 --- a/docutils/languages/en.py +++ b/docutils/languages/en.py @@ -1,12 +1,10 @@ -#! /usr/bin/env python +# Author: David Goodger +# Contact: goodger@users.sourceforge.net +# Revision: $Revision$ +# Date: $Date$ +# Copyright: This module has been placed in the public domain. """ -:Author: David Goodger -:Contact: goodger@users.sourceforge.net -:Revision: $Revision$ -:Date: $Date$ -:Copyright: This module has been placed in the public domain. - English-language mappings for language-dependent features of Docutils. """ -- 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/en.py | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) (limited to 'docutils/languages/en.py') diff --git a/docutils/languages/en.py b/docutils/languages/en.py index 4ca94d632..066c77286 100644 --- a/docutils/languages/en.py +++ b/docutils/languages/en.py @@ -10,10 +10,6 @@ English-language mappings for language-dependent features of Docutils. __docformat__ = 'reStructuredText' - -from docutils import nodes - - labels = { 'author': 'Author', 'authors': 'Authors', @@ -40,20 +36,19 @@ labels = { """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': 'author', + 'authors': 'authors', + 'organization': 'organization', + 'address': 'address', + 'contact': 'contact', + 'version': 'version', + 'revision': 'revision', + 'status': 'status', + 'date': 'date', + 'copyright': 'copyright', + 'dedication': 'dedication', + 'abstract': 'abstract'} +"""English (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/en.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docutils/languages/en.py') diff --git a/docutils/languages/en.py b/docutils/languages/en.py index 066c77286..db578810b 100644 --- a/docutils/languages/en.py +++ b/docutils/languages/en.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. + """ English-language mappings for language-dependent features of Docutils. """ @@ -11,6 +16,7 @@ English-language mappings for language-dependent features of Docutils. __docformat__ = 'reStructuredText' labels = { + # fixed: language-dependent 'author': 'Author', 'authors': 'Authors', 'organization': 'Organization', @@ -36,6 +42,7 @@ labels = { """Mapping of node class name to label text.""" bibliographic_fields = { + # language-dependent: fixed 'author': 'author', 'authors': 'authors', 'organization': 'organization', -- 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/en.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docutils/languages/en.py') diff --git a/docutils/languages/en.py b/docutils/languages/en.py index db578810b..3b39c486f 100644 --- a/docutils/languages/en.py +++ b/docutils/languages/en.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