fa.py 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. Persian-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. 'بلوک-کد': 'code',
  19. 'کد-منبع': 'code',
  20. 'خطر': 'danger',
  21. 'خطا': 'error',
  22. 'راهنما': 'hint',
  23. 'مهم': 'important',
  24. 'یادداشت': 'note',
  25. 'نکته': 'tip',
  26. 'اخطار': 'warning',
  27. 'تذکر': 'admonition',
  28. 'نوار-کناری': 'sidebar',
  29. 'موضوع': 'topic',
  30. 'بلوک-خط': 'line-block',
  31. 'تلفظ-پردازش-شده': 'parsed-literal',
  32. 'سر-فصل': 'rubric',
  33. 'کتیبه': 'epigraph',
  34. 'نکات-برجسته': 'highlights',
  35. 'نقل-قول': 'pull-quote',
  36. 'ترکیب': 'compound',
  37. 'ظرف': 'container',
  38. # 'questions': 'questions',
  39. 'جدول': 'table',
  40. 'جدول-csv': 'csv-table',
  41. 'جدول-لیست': 'list-table',
  42. # 'qa': 'questions',
  43. # 'faq': 'questions',
  44. 'متا': 'meta',
  45. 'ریاضی': 'math',
  46. # 'imagemap': 'imagemap',
  47. 'تصویر': 'image',
  48. 'شکل': 'figure',
  49. 'شامل': 'include',
  50. 'خام': 'raw',
  51. 'جایگزین': 'replace',
  52. 'یونیکد': 'unicode',
  53. 'تاریخ': 'date',
  54. 'کلاس': 'class',
  55. 'قانون': 'role',
  56. 'قانون-پیش‌فرض': 'default-role',
  57. 'عنوان': 'title',
  58. 'محتوا': 'contents',
  59. 'شماره-فصل': 'sectnum',
  60. 'شماره‌گذاری-فصل': 'sectnum',
  61. 'سرآیند': 'header',
  62. 'پاصفحه': 'footer',
  63. # 'footnotes': 'footnotes',
  64. # 'citations': 'citations',
  65. 'یادداشت-هدف': 'target-notes',
  66. }
  67. """Persian name to registered (in directives/__init__.py) directive name
  68. mapping."""
  69. roles = {
  70. # language-dependent: fixed
  71. 'مخفف': 'abbreviation',
  72. 'سرنام': 'acronym',
  73. 'کد': 'code',
  74. 'شاخص': 'index',
  75. 'زیرنویس': 'subscript',
  76. 'بالانویس': 'superscript',
  77. 'عنوان': 'title-reference',
  78. 'نیرو': 'pep-reference',
  79. 'rfc-reference (translation required)': 'rfc-reference',
  80. 'تاکید': 'emphasis',
  81. 'قوی': 'strong',
  82. 'لفظی': 'literal',
  83. 'ریاضی': 'math',
  84. 'منبع-نام‌گذاری': 'named-reference',
  85. 'منبع-ناشناس': 'anonymous-reference',
  86. 'منبع-پانویس': 'footnote-reference',
  87. 'منبع-نقل‌فول': 'citation-reference',
  88. 'منبع-جایگزینی': 'substitution-reference',
  89. 'هدف': 'target',
  90. 'منبع-uri': 'uri-reference',
  91. 'uri': 'uri-reference',
  92. 'url': 'uri-reference',
  93. 'خام': 'raw',
  94. }
  95. """Mapping of Persian role names to canonical role names for interpreted text.
  96. """