File: fa.py

package info (click to toggle)
python-docutils 0.13.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,728 kB
  • ctags: 7,259
  • sloc: python: 43,776; lisp: 13,142; xml: 1,644; sh: 164; makefile: 151
file content (102 lines) | stat: -rw-r--r-- 3,430 bytes parent folder | download | duplicates (3)
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
100
101
102
# -*- coding: utf-8 -*-
# $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 <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.

"""
Persian-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',
    }
"""Persian 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'نیرو': u'pep-reference',
    u'rfc-reference (translation required)': 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 Persian role names to canonical role names for interpreted text.
"""