ar.py 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. # $Id: fa.py 4564 2016-08-10 11:48:42Z
  2. # Author: Shahin <me@5hah.in>
  3. # Copyright: This module has been placed in the public domain.
  4. # New language mappings are welcome. Before doing a new translation, please
  5. # read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
  6. # Two files must be translated for each language: one in docutils/languages,
  7. # the other in docutils/parsers/rst/languages.
  8. """
  9. Arabic-language mappings for language-dependent features of
  10. reStructuredText.
  11. """
  12. __docformat__ = 'reStructuredText'
  13. directives = {
  14. # language-dependent: fixed
  15. 'تنبيه': 'attention',
  16. 'احتیاط': 'caution',
  17. 'كود': 'code',
  18. 'خطر': 'danger',
  19. 'خطأ': 'error',
  20. 'تلميح': 'hint',
  21. 'مهم': 'important',
  22. 'ملاحظة': 'note',
  23. 'نصيحة': 'tip',
  24. 'تحذير': 'warning',
  25. 'تذكير': 'admonition',
  26. 'شريط-جانبي': 'sidebar',
  27. 'موضوع': 'topic',
  28. 'قالب-سطري': 'line-block',
  29. 'لفظ-حرفي': 'parsed-literal',
  30. 'معيار': 'rubric',
  31. 'فكرة-الكتاب': 'epigraph',
  32. 'تمييز': 'highlights',
  33. 'نقل-قول': 'pull-quote',
  34. 'ترکیب': 'compound',
  35. 'وعاء': 'container',
  36. # 'questions': 'questions',
  37. 'جدول': 'table',
  38. 'جدول-csv': 'csv-table',
  39. 'جدول-قوائم': 'list-table',
  40. # 'qa': 'questions',
  41. # 'faq': 'questions',
  42. 'ميتا': 'meta',
  43. 'رياضيات': 'math',
  44. # 'imagemap': 'imagemap',
  45. 'صورة': 'image',
  46. 'رسم-توضيحي': 'figure',
  47. 'تضمين': 'include',
  48. 'خام': 'raw',
  49. 'تبديل': 'replace',
  50. 'یونیکد': 'unicode',
  51. 'تاریخ': 'date',
  52. 'كائن': 'class',
  53. 'قانون': 'role',
  54. 'قانون-افتراضي': 'default-role',
  55. 'عنوان': 'title',
  56. 'المحتوى': 'contents',
  57. 'رقم-الفصل': 'sectnum',
  58. 'رقم-القسم': 'sectnum',
  59. 'رأس-الصفحة': 'header',
  60. 'هامش': 'footer',
  61. # 'footnotes': 'footnotes',
  62. # 'citations': 'citations',
  63. '': 'target-notes',
  64. }
  65. """Arabic name to registered (in directives/__init__.py) directive name
  66. mapping."""
  67. roles = {
  68. # language-dependent: fixed
  69. 'اختصار': 'abbreviation',
  70. 'اختزال': 'acronym',
  71. 'كود': 'code',
  72. 'فهرس': 'index',
  73. 'خفض': 'subscript',
  74. 'رفع': 'superscript',
  75. 'عنوان-مرجع': 'title-reference',
  76. 'مرجع-pep': 'pep-reference',
  77. 'rfc-مرجع': 'rfc-reference',
  78. 'تأكيد': 'emphasis',
  79. 'عريض': 'strong',
  80. 'لفظی': 'literal',
  81. 'رياضيات': 'math',
  82. 'مرجع-مسمى': 'named-reference',
  83. 'مرجع-مجهول': 'anonymous-reference',
  84. 'مرجع-هامشي': 'footnote-reference',
  85. 'مرجع-منقول': 'citation-reference',
  86. 'مرجع-معوض': 'substitution-reference',
  87. 'هدف': 'target',
  88. 'منبع-uri': 'uri-reference',
  89. 'uri': 'uri-reference',
  90. 'url': 'uri-reference',
  91. 'خام': 'raw',
  92. }
  93. """Mapping of Arabic role names to canonical role names for interpreted text.
  94. """