From: <go...@us...> - 2008-09-05 15:08:06
|
Author: goodger Date: 2008-09-05 17:07:51 +0200 (Fri, 05 Sep 2008) New Revision: 5639 Modified: trunk/docutils/docutils/languages/gl.py trunk/docutils/docutils/parsers/rst/languages/gl.py Log: corrections from Oscar Garcia Amor Modified: trunk/docutils/docutils/languages/gl.py =================================================================== --- trunk/docutils/docutils/languages/gl.py 2008-08-25 14:23:56 UTC (rev 5638) +++ trunk/docutils/docutils/languages/gl.py 2008-09-05 15:07:51 UTC (rev 5639) @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # Author: David Goodger # Contact: go...@us... # Revision: $Revision: 2224 $ @@ -17,48 +18,46 @@ labels = { # fixed: language-dependent - 'author': 'Autor', - 'authors': 'Autores', - 'organization': 'Organizaci\xf3n', - 'address': 'Enderezo', - 'contact': 'Contacto', - 'version': 'Versi\xf3n', - 'revision': 'Revisi\xf3n', - 'status': 'Estado', - 'date': 'Data', - 'copyright': 'Dereitos de copia', - 'dedication': 'Dedicatoria', - 'abstract': 'Abstract', - 'attention': 'Atenci\xf3n!', - 'caution': 'Advertencia!', - 'danger': 'PERIGO!', - 'error': 'Erro', - 'hint': 'Consello', - 'important': 'Importante', - 'note': 'Nota', - 'tip': 'Suxesti\xf3n', - 'warning': 'Aviso', - 'contents': 'Contido'} + 'author': u'Autor', + 'authors': u'Autores', + 'organization': u'Organizaci\u00f3n', + 'address': u'Enderezo', + 'contact': u'Contacto', + 'version': u'Versi\u00f3n', + 'revision': u'Revisi\u00f3n', + 'status': u'Estado', + 'date': u'Data', + 'copyright': u'Dereitos de copia', + 'dedication': u'Dedicatoria', + 'abstract': u'Abstract', + 'attention': u'Atenci\u00f3n!', + 'caution': u'Advertencia!', + 'danger': u'PERIGO!', + 'error': u'Erro', + 'hint': u'Consello', + 'important': u'Importante', + 'note': u'Nota', + 'tip': u'Suxesti\u00f3n', + 'warning': u'Aviso', + 'contents': u'Contido'} """Mapping of node class name to label text.""" bibliographic_fields = { # language-dependent: fixed - 'autor': 'author', - 'autores': 'authors', - 'organizaci\xf3n': 'organization', - 'enderezo': 'address', - 'contacto': 'contact', - 'versi\xf3n': 'version', - 'revisi\xf3n': 'revision', - 'estado': 'status', - 'data': 'date', - 'dereitos de copia': 'copyright', - 'dedicatoria': 'dedication', - 'abstract': 'abstract'} + u'autor': 'author', + u'autores': 'authors', + u'organizaci\u00f3n': 'organization', + u'enderezo': 'address', + u'contacto': 'contact', + u'versi\u00f3n': 'version', + u'revisi\u00f3n': 'revision', + u'estado': 'status', + u'data': 'date', + u'dereitos de copia': 'copyright', + u'dedicatoria': 'dedication', + u'abstract': 'abstract'} """Galician (lowcased) to canonical name mapping for bibliographic fields.""" author_separators = [';', ','] """List of separator strings for the 'Authors' bibliographic field. Tried in order.""" - - Modified: trunk/docutils/docutils/parsers/rst/languages/gl.py =================================================================== --- trunk/docutils/docutils/parsers/rst/languages/gl.py 2008-08-25 14:23:56 UTC (rev 5638) +++ trunk/docutils/docutils/parsers/rst/languages/gl.py 2008-09-05 15:07:51 UTC (rev 5639) @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # Author: David Goodger # Contact: go...@us... # Revision: $Revision: 4229 $ @@ -19,90 +20,88 @@ directives = { # language-dependent: fixed - 'atenci\xf3n': 'attention', - 'advertencia': 'caution', - 'perigo': 'danger', - 'erro': 'error', - 'pista': 'hint', - 'importante': 'important', - 'nota': 'note', - 'consello': 'tip', - 'aviso': 'warning', - 'admonici\xf3n': 'admonition', - 'barra lateral': 'sidebar', - 't\xf3pico': 'topic', - 'bloque-li\xf1a': 'line-block', - 'literal-analizado': 'parsed-literal', - 'r\xfabrica': 'rubric', - 'ep\xedgrafe': 'epigraph', - 'realzados': 'highlights', - 'coller-citaci\xf3n': 'pull-quote', - 'compor': 'compound', - 'recipiente': 'container', + u'atenci\u00f3n': 'attention', + u'advertencia': 'caution', + u'perigo': 'danger', + u'erro': 'error', + u'pista': 'hint', + u'importante': 'important', + u'nota': 'note', + u'consello': 'tip', + u'aviso': 'warning', + u'admonici\u00f3n': 'admonition', + u'barra lateral': 'sidebar', + u't\u00f3pico': 'topic', + u'bloque-li\u00f1a': 'line-block', + u'literal-analizado': 'parsed-literal', + u'r\u00fabrica': 'rubric', + u'ep\u00edgrafe': 'epigraph', + u'realzados': 'highlights', + u'coller-citaci\u00f3n': 'pull-quote', + u'compor': 'compound', + u'recipiente': 'container', #'questions': 'questions', - 't\xe1boa': 'table', - 't\xe1boa-csv': 'csv-table', - 't\xe1boa-listaxe': 'list-table', + u't\u00e1boa': 'table', + u't\u00e1boa-csv': 'csv-table', + u't\u00e1boa-listaxe': 'list-table', #'qa': 'questions', #'faq': 'questions', - 'meta': 'meta', + u'meta': 'meta', #'imagemap': 'imagemap', - 'imaxe': 'image', - 'figura': 'figure', - 'inclu\xedr': 'include', - 'cru': 'raw', - 'substitu\xedr': 'replace', - 'unicode': 'unicode', - 'data': 'date', - 'clase': 'class', - 'regra': 'role', - 'regra-predeterminada': 'default-role', - 't\xedtulo': 'title', - 'contido': 'contents', - 'seccnum': 'sectnum', - 'secci\xf3n-numerar': 'sectnum', - 'cabeceira': 'header', - 'p\xe9 de p\xe1xina': 'footer', + u'imaxe': 'image', + u'figura': 'figure', + u'inclu\u00edr': 'include', + u'cru': 'raw', + u'substitu\u00edr': 'replace', + u'unicode': 'unicode', + u'data': 'date', + u'clase': 'class', + u'regra': 'role', + u'regra-predeterminada': 'default-role', + u't\u00edtulo': 'title', + u'contido': 'contents', + u'seccnum': 'sectnum', + u'secci\u00f3n-numerar': 'sectnum', + u'cabeceira': 'header', + u'p\u00e9 de p\u00e1xina': 'footer', #'footnotes': 'footnotes', #'citations': 'citations', - 'notas-destino': 'target-notes', - 'texto restruturado-proba-directiva': 'restructuredtext-test-directive'} + u'notas-destino': 'target-notes', + u'texto restruturado-proba-directiva': 'restructuredtext-test-directive'} """Galician name to registered (in directives/__init__.py) directive name mapping.""" roles = { # language-dependent: fixed - 'abreviatura': 'abbreviation', - 'ab': 'abbreviation', - 'acr\xf3nimo': 'acronym', - 'ac': 'acronym', - '\xedndice': 'index', - 'i': 'index', - 'sub\xedndice': 'subscript', - 'sub': 'subscript', - 'super\xedndice': 'superscript', - 'sup': 'superscript', - 'referencia t\xedtulo': 'title-reference', - 't\xedtulo': 'title-reference', - 't': 'title-reference', - 'referencia-pep': 'pep-reference', - 'pep': 'pep-reference', - 'referencia-rfc': 'rfc-reference', - 'rfc': 'rfc-reference', - '\xe9nfase': 'emphasis', - 'forte': 'strong', - 'literal': 'literal', - 'referencia-nome': 'named-reference', - 'referencia-an\xf3nimo': 'anonymous-reference', - 'referencia-nota ao p\xe9': 'footnote-reference', - 'referencia-citaci\xf3n': 'citation-reference', - 'referencia-substituci\xf3n': 'substitution-reference', - 'destino': 'target', - 'referencia-uri': 'uri-reference', - 'uri': 'uri-reference', - 'url': 'uri-reference', - 'cru': 'raw',} + u'abreviatura': 'abbreviation', + u'ab': 'abbreviation', + u'acr\u00f3nimo': 'acronym', + u'ac': 'acronym', + u'\u00edndice': 'index', + u'i': 'index', + u'sub\u00edndice': 'subscript', + u'sub': 'subscript', + u'super\u00edndice': 'superscript', + u'sup': 'superscript', + u'referencia t\u00edtulo': 'title-reference', + u't\u00edtulo': 'title-reference', + u't': 'title-reference', + u'referencia-pep': 'pep-reference', + u'pep': 'pep-reference', + u'referencia-rfc': 'rfc-reference', + u'rfc': 'rfc-reference', + u'\u00e9nfase': 'emphasis', + u'forte': 'strong', + u'literal': 'literal', + u'referencia-nome': 'named-reference', + u'referencia-an\u00f3nimo': 'anonymous-reference', + u'referencia-nota ao p\u00e9': 'footnote-reference', + u'referencia-citaci\u00f3n': 'citation-reference', + u'referencia-substituci\u00f3n': 'substitution-reference', + u'destino': 'target', + u'referencia-uri': 'uri-reference', + u'uri': 'uri-reference', + u'url': 'uri-reference', + u'cru': 'raw',} """Mapping of Galician role names to canonical role names for interpreted text. """ - - |