123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- # $Id: fa.py 4564 2016-08-10 11:48:42Z
- # Author: Shahin <me@5hah.in>
- # Copyright: This module has been placed in the public domain.
- # New language mappings are welcome. Before doing a new translation, please
- # read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
- # Two files must be translated for each language: one in docutils/languages,
- # the other in docutils/parsers/rst/languages.
- """
- Persian-language mappings for language-dependent features of
- reStructuredText.
- """
- __docformat__ = 'reStructuredText'
- directives = {
- # language-dependent: fixed
- 'توجه': 'attention',
- 'احتیاط': 'caution',
- 'کد': 'code',
- 'بلوک-کد': 'code',
- 'کد-منبع': 'code',
- 'خطر': 'danger',
- 'خطا': 'error',
- 'راهنما': 'hint',
- 'مهم': 'important',
- 'یادداشت': 'note',
- 'نکته': 'tip',
- 'اخطار': 'warning',
- 'تذکر': 'admonition',
- 'نوار-کناری': 'sidebar',
- 'موضوع': 'topic',
- 'بلوک-خط': 'line-block',
- 'تلفظ-پردازش-شده': 'parsed-literal',
- 'سر-فصل': 'rubric',
- 'کتیبه': 'epigraph',
- 'نکات-برجسته': 'highlights',
- 'نقل-قول': 'pull-quote',
- 'ترکیب': 'compound',
- 'ظرف': 'container',
- # 'questions': 'questions',
- 'جدول': 'table',
- 'جدول-csv': 'csv-table',
- 'جدول-لیست': 'list-table',
- # 'qa': 'questions',
- # 'faq': 'questions',
- 'متا': 'meta',
- 'ریاضی': 'math',
- # 'imagemap': 'imagemap',
- 'تصویر': 'image',
- 'شکل': 'figure',
- 'شامل': 'include',
- 'خام': 'raw',
- 'جایگزین': 'replace',
- 'یونیکد': 'unicode',
- 'تاریخ': 'date',
- 'کلاس': 'class',
- 'قانون': 'role',
- 'قانون-پیشفرض': 'default-role',
- 'عنوان': 'title',
- 'محتوا': 'contents',
- 'شماره-فصل': 'sectnum',
- 'شمارهگذاری-فصل': 'sectnum',
- 'سرآیند': 'header',
- 'پاصفحه': 'footer',
- # 'footnotes': 'footnotes',
- # 'citations': 'citations',
- 'یادداشت-هدف': 'target-notes',
- }
- """Persian name to registered (in directives/__init__.py) directive name
- mapping."""
- roles = {
- # language-dependent: fixed
- 'مخفف': 'abbreviation',
- 'سرنام': 'acronym',
- 'کد': 'code',
- 'شاخص': 'index',
- 'زیرنویس': 'subscript',
- 'بالانویس': 'superscript',
- 'عنوان': 'title-reference',
- 'نیرو': 'pep-reference',
- 'rfc-reference (translation required)': 'rfc-reference',
- 'تاکید': 'emphasis',
- 'قوی': 'strong',
- 'لفظی': 'literal',
- 'ریاضی': 'math',
- 'منبع-نامگذاری': 'named-reference',
- 'منبع-ناشناس': 'anonymous-reference',
- 'منبع-پانویس': 'footnote-reference',
- 'منبع-نقلفول': 'citation-reference',
- 'منبع-جایگزینی': 'substitution-reference',
- 'هدف': 'target',
- 'منبع-uri': 'uri-reference',
- 'uri': 'uri-reference',
- 'url': 'uri-reference',
- 'خام': 'raw',
- }
- """Mapping of Persian role names to canonical role names for interpreted text.
- """
|