~ubuntu-branches/ubuntu/jaunty/python-docutils/jaunty

« back to all changes in this revision

Viewing changes to docutils/parsers/rst/languages/he.py

  • Committer: Bazaar Package Importer
  • Author(s): Simon McVittie
  • Date: 2008-07-24 10:39:53 UTC
  • mfrom: (1.1.4 upstream) (3.1.7 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080724103953-8gh4uezg17g9ysgy
Tags: 0.5-2
* Upload docutils 0.5 to unstable
* Update rst.el to upstream Subversion r5596, which apparently fixes
  all its performance problems (17_speed_up_rst_el.dpatch, closes: #474941)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Author: Meir Kriheli
 
2
# Id: $Id: he.py 4837 2006-12-26 09:59:41Z sfcben $
 
3
# Copyright: This module has been placed in the public domain.
 
4
 
 
5
# New language mappings are welcome.  Before doing a new translation, please
 
6
# read <http://docutils.sf.net/docs/howto/i18n.html>.  Two files must be
 
7
# translated for each language: one in docutils/languages, the other in
 
8
# docutils/parsers/rst/languages.
 
9
 
 
10
"""
 
11
English-language mappings for language-dependent features of
 
12
reStructuredText.
 
13
"""
 
14
 
 
15
__docformat__ = 'reStructuredText'
 
16
 
 
17
 
 
18
directives = {
 
19
      # language-dependent: fixed
 
20
      u'\u05ea\u05e9\u05d5\u05de\u05ea \u05dc\u05d1': 'attention',
 
21
      u'\u05d6\u05d4\u05d9\u05e8\u05d5\u05ea': 'caution',
 
22
      u'\u05e1\u05db\u05e0\u05d4': 'danger',
 
23
      u'\u05e9\u05d2\u05d9\u05d0\u05d4' : 'error',
 
24
      u'\u05e8\u05de\u05d6': 'hint',
 
25
      u'\u05d7\u05e9\u05d5\u05d1': 'important',
 
26
      u'\u05d4\u05e2\u05e8\u05d4': 'note',
 
27
      u'\u05d8\u05d9\u05e4': 'tip',
 
28
      u'\u05d0\u05d6\u05d4\u05e8\u05d4': 'warning',
 
29
      'admonition': 'admonition',
 
30
      'sidebar': 'sidebar',
 
31
      'topic': 'topic',
 
32
      'line-block': 'line-block',
 
33
      'parsed-literal': 'parsed-literal',
 
34
      'rubric': 'rubric',
 
35
      'epigraph': 'epigraph',
 
36
      'highlights': 'highlights',
 
37
      'pull-quote': 'pull-quote',
 
38
      'compound': 'compound',
 
39
      'container': 'container',
 
40
      #'questions': 'questions',
 
41
      'table': 'table',
 
42
      'csv-table': 'csv-table',
 
43
      'list-table': 'list-table',
 
44
      #'qa': 'questions',
 
45
      #'faq': 'questions',
 
46
      'meta': 'meta',
 
47
      #'imagemap': 'imagemap',
 
48
      u'\u05ea\u05de\u05d5\u05e0\u05d4': 'image',
 
49
      'figure': 'figure',
 
50
      'include': 'include',
 
51
      'raw': 'raw',
 
52
      'replace': 'replace',
 
53
      'unicode': 'unicode',
 
54
      'date': 'date',
 
55
       u'\u05e1\u05d2\u05e0\u05d5\u05df': 'class',
 
56
      'role': 'role',
 
57
      'default-role': 'default-role',
 
58
      'title': 'title',
 
59
      u'\u05ea\u05d5\u05db\u05df': 'contents',
 
60
      'sectnum': 'sectnum',
 
61
      'section-numbering': 'sectnum',
 
62
      'header': 'header',
 
63
      'footer': 'footer',
 
64
      #'footnotes': 'footnotes',
 
65
      #'citations': 'citations',
 
66
      'target-notes': 'target-notes',
 
67
      'restructuredtext-test-directive': 'restructuredtext-test-directive'}
 
68
"""English name to registered (in directives/__init__.py) directive name
 
69
mapping."""
 
70
 
 
71
roles = {
 
72
    # language-dependent: fixed
 
73
    'abbreviation': 'abbreviation',
 
74
    'ab': 'abbreviation',
 
75
    'acronym': 'acronym',
 
76
    'ac': 'acronym',
 
77
    'index': 'index',
 
78
    'i': 'index',
 
79
    u'\u05ea\u05d7\u05ea\u05d9': 'subscript',
 
80
    'sub': 'subscript',
 
81
    u'\u05e2\u05d9\u05dc\u05d9': 'superscript',
 
82
    'sup': 'superscript',
 
83
    'title-reference': 'title-reference',
 
84
    'title': 'title-reference',
 
85
    't': 'title-reference',
 
86
    'pep-reference': 'pep-reference',
 
87
    'pep': 'pep-reference',
 
88
    'rfc-reference': 'rfc-reference',
 
89
    'rfc': 'rfc-reference',
 
90
    'emphasis': 'emphasis',
 
91
    'strong': 'strong',
 
92
    'literal': 'literal',
 
93
    'named-reference': 'named-reference',
 
94
    'anonymous-reference': 'anonymous-reference',
 
95
    'footnote-reference': 'footnote-reference',
 
96
    'citation-reference': 'citation-reference',
 
97
    'substitution-reference': 'substitution-reference',
 
98
    'target': 'target',
 
99
    'uri-reference': 'uri-reference',
 
100
    'uri': 'uri-reference',
 
101
    'url': 'uri-reference',
 
102
    'raw': 'raw',}
 
103
"""Mapping of English role names to canonical role names for interpreted text.
 
104
"""