aboutsummaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/docutils/parsers/rst/languages/ar.py
blob: 71be92a5ebea3ba0562bb4f22c5eb48c194f9cdc (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# $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.

"""
Arabic-language mappings for language-dependent features of
reStructuredText.
"""

__docformat__ = 'reStructuredText'

directives = {
    # language-dependent: fixed
    'تنبيه': 'attention',
    'احتیاط': 'caution',
    'كود': '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',
}
"""Arabic name to registered (in directives/__init__.py) directive name
mapping."""

roles = {
    # language-dependent: fixed
    'اختصار': 'abbreviation',
    'اختزال': 'acronym',
    'كود': 'code',
    'فهرس': 'index',
    'خفض': 'subscript',
    'رفع': 'superscript',
    'عنوان-مرجع': 'title-reference',
    'مرجع-pep': 'pep-reference',
    'rfc-مرجع': '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 Arabic role names to canonical role names for interpreted text.
"""