File: fa.py

package info (click to toggle)
python-docutils 0.22%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 11,448 kB
  • sloc: python: 53,302; lisp: 14,475; xml: 1,807; javascript: 1,032; makefile: 102; sh: 96
file content (60 lines) | stat: -rw-r--r-- 1,958 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
# $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 Docutils.
"""

__docformat__ = 'reStructuredText'

labels = {
      # fixed: language-dependent
      'author': 'نویسنده',
      'authors': 'نویسندگان',
      'organization': 'سازمان',
      'address': 'آدرس',
      'contact': 'تماس',
      'version': 'نسخه',
      'revision': 'بازبینی',
      'status': 'وضعیت',
      'date': 'تاریخ',
      'copyright': 'کپی‌رایت',
      'dedication': 'تخصیص',
      'abstract': 'چکیده',
      'attention': 'توجه!',
      'caution': 'احتیاط!',
      'danger': 'خطر!',
      'error': 'خطا',
      'hint': 'راهنما',
      'important': 'مهم',
      'note': 'یادداشت',
      'tip': 'نکته',
      'warning': 'اخطار',
      'contents': 'محتوا'}
"""Mapping of node class name to label text."""

bibliographic_fields = {
      # language-dependent: fixed
      'نویسنده': 'author',
      'نویسندگان': 'authors',
      'سازمان': 'organization',
      'آدرس': 'address',
      'تماس': 'contact',
      'نسخه': 'version',
      'بازبینی': 'revision',
      'وضعیت': 'status',
      'تاریخ': 'date',
      'کپی‌رایت': 'copyright',
      'تخصیص': 'dedication',
      'چکیده': 'abstract'}
"""Persian (lowcased) to canonical name mapping for bibliographic fields."""

author_separators = ['؛', '،']
"""List of separator strings for the 'Authors' bibliographic field. Tried in
order."""