|
From: <mi...@us...> - 2021-01-03 21:57:59
|
Revision: 8600
http://sourceforge.net/p/docutils/code/8600
Author: milde
Date: 2021-01-03 21:57:56 +0000 (Sun, 03 Jan 2021)
Log Message:
-----------
Apply patch #177 Arabic mappings by Shahin.
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/setup.py
Added Paths:
-----------
trunk/docutils/docutils/languages/ar.py
trunk/docutils/docutils/parsers/rst/languages/ar.py
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2021-01-03 21:05:13 UTC (rev 8599)
+++ trunk/docutils/HISTORY.txt 2021-01-03 21:57:56 UTC (rev 8600)
@@ -37,6 +37,11 @@
- VersionInfo: ValueError for invalid values, fix comparison to tuples.
+* docutils/languages/ar.py
+ docutils/parsers/rst/languages/ar.py:
+
+ - Apply patch # 177 Arabic mappings by Shahin.
+
* docutils/nodes.py
- Apply patch #165: Fix error when copying `system_message` node
@@ -281,8 +286,8 @@
- Fix [ 348 ] Since Python 3.4, the 'U' universal newlines mode has been
deprecated (thanks to hugovk).
-* docutils/languages/la.py
- docutils/parsers/rst/languages/la.py:
+* docutils/languages/ko.py
+ docutils/parsers/rst/languages/ko.py:
- Apply [ 153 ] Korean mappings by Thomas Sungjin Kang.
Added: trunk/docutils/docutils/languages/ar.py
===================================================================
--- trunk/docutils/docutils/languages/ar.py (rev 0)
+++ trunk/docutils/docutils/languages/ar.py 2021-01-03 21:57:56 UTC (rev 8600)
@@ -0,0 +1,61 @@
+# -*- coding: utf-8 -*-
+# $Id: fa.py 4564 2016-08-10 11:48:42Z
+# Author: Shahin <me...@5h...>
+# 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.
+
+"""
+Arabic-language mappings for language-dependent features of Docutils.
+"""
+
+__docformat__ = 'reStructuredText'
+
+labels = {
+ # fixed: language-dependent
+ u'author': u'المؤلف',
+ u'authors': u'المؤلفون',
+ u'organization': u'التنظيم',
+ u'address': u'العنوان',
+ u'contact': u'اتصل',
+ u'version': u'نسخة',
+ u'revision': u'مراجعة',
+ u'status': u'الحالة',
+ u'date': u'تاریخ',
+ u'copyright': u'الحقوق',
+ u'dedication': u'إهداء',
+ u'abstract': u'ملخص',
+ u'attention': u'تنبيه',
+ u'caution': u'احتیاط',
+ u'danger': u'خطر',
+ u'error': u'خطأ',
+ u'hint': u'تلميح',
+ u'important': u'مهم',
+ u'note': u'ملاحظة',
+ u'tip': u'نصيحة',
+ u'warning': u'تحذير',
+ u'contents': u'المحتوى'}
+"""Mapping of node class name to label text."""
+
+bibliographic_fields = {
+ # language-dependent: fixed
+ u'مؤلف': u'author',
+ u'مؤلفون': u'authors',
+ u'التنظيم': u'organization',
+ u'العنوان': u'address',
+ u'اتصل': u'contact',
+ u'نسخة': u'version',
+ u'مراجعة': u'revision',
+ u'الحالة': u'status',
+ u'تاریخ': u'date',
+ u'الحقوق': u'copyright',
+ u'إهداء': u'dedication',
+ u'ملخص': u'abstract'}
+"""Arabic (lowcased) to canonical name mapping for bibliographic fields."""
+
+author_separators = [u'؛', u'،']
+"""List of separator strings for the 'Authors' bibliographic field. Tried in
+order."""
Property changes on: trunk/docutils/docutils/languages/ar.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/ar.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/ar.py (rev 0)
+++ trunk/docutils/docutils/parsers/rst/languages/ar.py 2021-01-03 21:57:56 UTC (rev 8600)
@@ -0,0 +1,102 @@
+# -*- coding: utf-8 -*-
+# $Id: fa.py 4564 2016-08-10 11:48:42Z
+# Author: Shahin <me...@5h...>
+# 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.
+
+"""
+Arabic-language mappings for language-dependent features of
+reStructuredText.
+"""
+
+__docformat__ = 'reStructuredText'
+
+
+directives = {
+ # language-dependent: fixed
+ u'تنبيه': u'attention',
+ u'احتیاط': u'caution',
+ u'كود': u'code',
+ u'كود': u'code',
+ u'كود': u'code',
+ u'خطر': u'danger',
+ u'خطأ': u'error',
+ u'تلميح': u'hint',
+ u'مهم': u'important',
+ u'ملاحظة': u'note',
+ u'نصيحة': u'tip',
+ u'تحذير': u'warning',
+ u'تذكير': u'admonition',
+ u'شريط-جانبي': u'sidebar',
+ u'موضوع': u'topic',
+ u'قالب-سطري': u'line-block',
+ u'لفظ-حرفي': u'parsed-literal',
+ u'معيار': u'rubric',
+ u'فكرة-الكتاب': u'epigraph',
+ u'تمييز': u'highlights',
+ u'نقل-قول': u'pull-quote',
+ u'ترکیب': u'compound',
+ u'وعاء': u'container',
+ #'questions': u'questions',
+ u'جدول': u'table',
+ u'جدول-csv': u'csv-table',
+ u'جدول-قوائم': u'list-table',
+ #'qa': u'questions',
+ #'faq': u'questions',
+ u'ميتا': u'meta',
+ u'رياضيات': u'math',
+ #'imagemap': u'imagemap',
+ u'صورة': u'image',
+ u'رسم-توضيحي': u'figure',
+ u'تضمين': u'include',
+ u'خام': u'raw',
+ u'تبديل': u'replace',
+ u'یونیکد': u'unicode',
+ u'تاریخ': u'date',
+ u'كائن': u'class',
+ u'قانون': u'role',
+ u'قانون-افتراضي': u'default-role',
+ u'عنوان': u'title',
+ u'المحتوى': u'contents',
+ u'رقم-الفصل': u'sectnum',
+ u'رقم-القسم': u'sectnum',
+ u'رأس-الصفحة': u'header',
+ u'هامش': u'footer',
+ #'footnotes': u'footnotes',
+ #'citations': u'citations',
+ u'': u'target-notes',
+ }
+"""Arabic name to registered (in directives/__init__.py) directive name
+mapping."""
+
+roles = {
+ # language-dependent: fixed
+ u'اختصار': u'abbreviation',
+ u'اختزال': u'acronym',
+ u'كود': u'code',
+ u'فهرس': u'index',
+ u'خفض': u'subscript',
+ u'رفع': u'superscript',
+ u'عنوان-مرجع': u'title-reference',
+ u'مرجع-pep': u'pep-reference',
+ u'rfc-مرجع': u'rfc-reference',
+ u'تأكيد': u'emphasis',
+ u'عريض': u'strong',
+ u'لفظی': u'literal',
+ u'رياضيات': u'math',
+ u'مرجع-مسمى': u'named-reference',
+ u'مرجع-مجهول': u'anonymous-reference',
+ u'مرجع-هامشي': u'footnote-reference',
+ u'مرجع-منقول': u'citation-reference',
+ u'مرجع-معوض': u'substitution-reference',
+ u'هدف': u'target',
+ u'منبع-uri': u'uri-reference',
+ u'uri': u'uri-reference',
+ u'url': u'uri-reference',
+ u'خام': u'raw',}
+"""Mapping of Arabic role names to canonical role names for interpreted text.
+"""
Property changes on: trunk/docutils/docutils/parsers/rst/languages/ar.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
Modified: trunk/docutils/setup.py
===================================================================
--- trunk/docutils/setup.py 2021-01-03 21:05:13 UTC (rev 8599)
+++ trunk/docutils/setup.py 2021-01-03 21:57:56 UTC (rev 8600)
@@ -102,6 +102,7 @@
'Topic :: Text Processing',
'Natural Language :: English', # main/default language, keep first
'Natural Language :: Afrikaans',
+ 'Natural Language :: Arabic',
'Natural Language :: Catalan',
'Natural Language :: Chinese (Simplified)',
'Natural Language :: Chinese (Traditional)',
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|