greek.el 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. ;;; greek.el --- support for Greek
  2. ;; Copyright (C) 2002, 2013-2015 Free Software Foundation, Inc.
  3. ;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  4. ;; 2005, 2006, 2007, 2008, 2009, 2010, 2011
  5. ;; National Institute of Advanced Industrial Science and Technology (AIST)
  6. ;; Registration Number H14PRO021
  7. ;; Copyright (C) 2003
  8. ;; National Institute of Advanced Industrial Science and Technology (AIST)
  9. ;; Registration Number H13PRO009
  10. ;; Keywords: multilingual, Greek
  11. ;; This file is part of GNU Emacs.
  12. ;; GNU Emacs is free software: you can redistribute it and/or modify
  13. ;; it under the terms of the GNU General Public License as published by
  14. ;; the Free Software Foundation, either version 3 of the License, or
  15. ;; (at your option) any later version.
  16. ;; GNU Emacs is distributed in the hope that it will be useful,
  17. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. ;; GNU General Public License for more details.
  20. ;; You should have received a copy of the GNU General Public License
  21. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  22. ;;; Commentary:
  23. ;; For Greek, the character set ISO8859-7 is supported.
  24. ;;; Code:
  25. (define-coding-system 'greek-iso-8bit
  26. "ISO 2022 based 8-bit encoding for Greek (MIME:ISO-8859-7)."
  27. :coding-type 'charset
  28. :mnemonic ?7
  29. :charset-list '(iso-8859-7)
  30. :mime-charset 'iso-8859-7)
  31. (define-coding-system-alias 'iso-8859-7 'greek-iso-8bit)
  32. (define-coding-system 'windows-1253
  33. "windows-1253 encoding for Greek"
  34. :coding-type 'charset
  35. :mnemonic ?g
  36. :charset-list '(windows-1253)
  37. :mime-charset 'windows-1253)
  38. (define-coding-system-alias 'cp1253 'windows-1253)
  39. (define-coding-system 'cp737
  40. "Codepage 737 (PC Greek)"
  41. :coding-type 'charset
  42. :mnemonic ?D
  43. :charset-list '(cp737)
  44. :mime-charset 'cp737)
  45. (define-coding-system 'cp851
  46. "DOS codepage 851 (Greek)"
  47. :coding-type 'charset
  48. :mnemonic ?D
  49. :charset-list '(cp851)
  50. :mime-charset 'cp851)
  51. (define-coding-system-alias 'ibm851 'cp851)
  52. (define-coding-system 'cp869
  53. "DOS codepage 869 (Greek)"
  54. :coding-type 'charset
  55. :mnemonic ?D
  56. :charset-list '(cp869)
  57. :mime-charset 'cp869)
  58. (define-coding-system-alias 'ibm869 'cp869)
  59. (set-language-info-alist
  60. "Greek" '((charset iso-8859-7)
  61. (coding-system greek-iso-8bit windows-1253 cp851 cp869)
  62. (coding-priority greek-iso-8bit)
  63. (nonascii-translation . iso-8859-7)
  64. (input-method . "greek")
  65. (documentation . t)))
  66. (provide 'greek)
  67. ;;; greek.el ends here