en.py 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # $Id: en.py 9030 2022-03-05 23:28:32Z milde $
  2. # Author: David Goodger <goodger@python.org>
  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. English-language mappings for language-dependent features of Docutils.
  10. """
  11. __docformat__ = 'reStructuredText'
  12. labels = {
  13. # fixed: language-dependent
  14. 'author': 'Author',
  15. 'authors': 'Authors',
  16. 'organization': 'Organization',
  17. 'address': 'Address',
  18. 'contact': 'Contact',
  19. 'version': 'Version',
  20. 'revision': 'Revision',
  21. 'status': 'Status',
  22. 'date': 'Date',
  23. 'copyright': 'Copyright',
  24. 'dedication': 'Dedication',
  25. 'abstract': 'Abstract',
  26. 'attention': 'Attention!',
  27. 'caution': 'Caution!',
  28. 'danger': '!DANGER!',
  29. 'error': 'Error',
  30. 'hint': 'Hint',
  31. 'important': 'Important',
  32. 'note': 'Note',
  33. 'tip': 'Tip',
  34. 'warning': 'Warning',
  35. 'contents': 'Contents'}
  36. """Mapping of node class name to label text."""
  37. bibliographic_fields = {
  38. # language-dependent: fixed
  39. 'author': 'author',
  40. 'authors': 'authors',
  41. 'organization': 'organization',
  42. 'address': 'address',
  43. 'contact': 'contact',
  44. 'version': 'version',
  45. 'revision': 'revision',
  46. 'status': 'status',
  47. 'date': 'date',
  48. 'copyright': 'copyright',
  49. 'dedication': 'dedication',
  50. 'abstract': 'abstract'}
  51. """English (lowcased) to canonical name mapping for bibliographic fields."""
  52. author_separators = [';', ',']
  53. """List of separator strings for the 'Authors' bibliographic field. Tried in
  54. order."""