|
From: <mi...@us...> - 2022-07-28 17:06:12
|
Revision: 9114
http://sourceforge.net/p/docutils/code/9114
Author: milde
Date: 2022-07-28 17:06:10 +0000 (Thu, 28 Jul 2022)
Log Message:
-----------
Fix Ukrainean language support.
Move uk.py language files to the right directory.
Coding slug and "u" string prefix no longer required.
Fix flake8 warnings.
Added Paths:
-----------
trunk/docutils/docutils/languages/uk.py
trunk/docutils/docutils/parsers/rst/languages/uk.py
Removed Paths:
-------------
trunk/docutils/languages/
trunk/docutils/parsers/
Added: trunk/docutils/docutils/languages/uk.py
===================================================================
--- trunk/docutils/docutils/languages/uk.py (rev 0)
+++ trunk/docutils/docutils/languages/uk.py 2022-07-28 17:06:10 UTC (rev 9114)
@@ -0,0 +1,58 @@
+# $Id$
+# Author: Dmytro Kazanzhy <dka...@gm...>
+# 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/docs/howto/i18n.html>. Two files must be
+# translated for each language: one in docutils/languages, the other in
+# docutils/parsers/rst/languages.
+
+"""
+Ukrainian-language mappings for language-dependent features of Docutils.
+"""
+
+__docformat__ = 'reStructuredText'
+
+labels = {
+ 'abstract': 'Анотація',
+ 'address': 'Адреса',
+ 'attention': 'Увага!',
+ 'author': 'Автор',
+ 'authors': 'Автори',
+ 'caution': 'Обережно!',
+ 'contact': 'Контакт',
+ 'contents': 'Зміст',
+ 'copyright': 'Права копіювання',
+ 'danger': 'НЕБЕЗПЕЧНО!',
+ 'date': 'Дата',
+ 'dedication': 'Посвячення',
+ 'error': 'Помилка',
+ 'hint': 'Порада',
+ 'important': 'Важливо',
+ 'note': 'Примітка',
+ 'organization': 'Організація',
+ 'revision': 'Редакція',
+ 'status': 'Статус',
+ 'tip': 'Підказка',
+ 'version': 'Версія',
+ 'warning': 'Попередження'}
+"""Mapping of node class name to label text."""
+
+bibliographic_fields = {
+ 'анотація': 'abstract',
+ 'адреса': 'address',
+ 'автор': 'author',
+ 'автори': 'authors',
+ 'контакт': 'contact',
+ 'права копіювання': 'copyright',
+ 'дата': 'date',
+ 'посвячення': 'dedication',
+ 'організація': 'organization',
+ 'редакція': 'revision',
+ 'статус': 'status',
+ 'версія': 'version'}
+"""Ukrainian (lowcased) to canonical name mapping for bibliographic fields."""
+
+author_separators = [';', ',']
+"""List of separator strings for the 'Authors' bibliographic field. Tried in
+order."""
Property changes on: trunk/docutils/docutils/languages/uk.py
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Added: trunk/docutils/docutils/parsers/rst/languages/uk.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/uk.py (rev 0)
+++ trunk/docutils/docutils/parsers/rst/languages/uk.py 2022-07-28 17:06:10 UTC (rev 9114)
@@ -0,0 +1,91 @@
+# $Id$
+# Author: Dmytro Kazanzhy <dka...@gm...>
+# 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/docs/howto/i18n.html>. Two files must be
+# translated for each language: one in docutils/languages, the other in
+# docutils/parsers/rst/languages.
+
+"""
+Ukrainian-language mappings for language-dependent features of
+reStructuredText.
+"""
+
+__docformat__ = 'reStructuredText'
+
+directives = {
+ 'блок-строк': 'line-block',
+ 'мета': 'meta',
+ 'математика': 'math',
+ 'оброблений-літерал': 'parsed-literal',
+ 'виділена-цитата': 'pull-quote',
+ 'код': 'code',
+ 'складений абзац': 'compound',
+ 'контейнер': 'container',
+ 'таблиця': 'table',
+ 'таблиця-csv': 'csv-table',
+ 'таблиця-списків': 'list-table',
+ 'сирий': 'raw',
+ 'заміна': 'replace',
+ 'тестова-директива-restructuredtext': 'restructuredtext-test-directive',
+ 'цільові-виноски': 'target-notes',
+ 'юнікод': 'unicode',
+ 'дата': 'date',
+ 'бічна-панель': 'sidebar',
+ 'важливо': 'important',
+ 'включати': 'include',
+ 'увага': 'attention',
+ 'виділення': 'highlights',
+ 'зауваження': 'admonition',
+ 'зображення': 'image',
+ 'клас': 'class',
+ 'роль': 'role',
+ 'роль-за-замовчуванням': 'default-role',
+ 'заголовок': 'title',
+ 'номер-розділу': 'sectnum',
+ 'нумерація-розділів': 'sectnum',
+ 'небезпечно': 'danger',
+ 'обережно': 'caution',
+ 'помилка': 'error',
+ 'підказка': 'tip',
+ 'попередження': 'warning',
+ 'примітка': 'note',
+ 'малюнок': 'figure',
+ 'рубрика': 'rubric',
+ 'порада': 'hint',
+ 'зміст': 'contents',
+ 'тема': 'topic',
+ 'епіграф': 'epigraph',
+ 'верхній колонтитул': 'header',
+ 'нижній колонтитул': 'footer',
+ }
+"""Ukrainian name to registered (in directives/__init__.py) directive name
+mapping."""
+
+roles = {
+ 'акронім': 'acronym',
+ 'код': 'code',
+ 'анонімне-посилання': 'anonymous-reference',
+ 'буквально': 'literal',
+ 'математика': 'math',
+ 'верхній-індекс': 'superscript',
+ 'наголос': 'emphasis',
+ 'іменоване-посилання': 'named-reference',
+ 'індекс': 'index',
+ 'нижній-індекс': 'subscript',
+ 'жирне-накреслення': 'strong',
+ 'скорочення': 'abbreviation',
+ 'посилання-заміна': 'substitution-reference',
+ 'посилання-на-pep': 'pep-reference',
+ 'посилання-на-rfc': 'rfc-reference',
+ 'посилання-на-uri': 'uri-reference',
+ 'посилання-на-заголовок': 'title-reference',
+ 'посилання-на-зноску': 'footnote-reference',
+ 'посилання-на-цитату': 'citation-reference',
+ 'ціль': 'target',
+ 'сирий': 'raw',
+ }
+"""Mapping of Ukrainian role names to canonical role names
+for interpreted text.
+"""
Property changes on: trunk/docutils/docutils/parsers/rst/languages/uk.py
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|