misc-lang.el 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. ;;; misc-lang.el --- support for miscellaneous languages (characters) -*- no-byte-compile: t -*-
  2. ;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. ;; 2005, 2006, 2007, 2008, 2009, 2010, 2011
  4. ;; National Institute of Advanced Industrial Science and Technology (AIST)
  5. ;; Registration Number H14PRO021
  6. ;; Keywords: multilingual, character set, coding system
  7. ;; This file is part of GNU Emacs.
  8. ;; GNU Emacs is free software: you can redistribute it and/or modify
  9. ;; it under the terms of the GNU General Public License as published by
  10. ;; the Free Software Foundation, either version 3 of the License, or
  11. ;; (at your option) any later version.
  12. ;; GNU Emacs is distributed in the hope that it will be useful,
  13. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. ;; GNU General Public License for more details.
  16. ;; You should have received a copy of the GNU General Public License
  17. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  18. ;;; Commentary:
  19. ;;; Code:
  20. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  21. ;;; IPA (International Phonetic Alphabet)
  22. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  23. (set-language-info-alist
  24. "IPA" '((charset . (ipa))
  25. (coding-priority utf-8)
  26. (coding-system utf-8)
  27. (input-method . "ipa")
  28. (nonascii-translation . ipa)
  29. (documentation . "\
  30. IPA is International Phonetic Alphabet for English, French, German
  31. and Italian.")))
  32. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  33. ;; Arabic
  34. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  35. (define-coding-system 'iso-8859-6
  36. "ISO-8859-6 based encoding (MIME:ISO-8859-6)."
  37. :coding-type 'charset
  38. :mnemonic ?6
  39. :charset-list '(iso-8859-6)
  40. :mime-charset 'iso-8859-6)
  41. (define-coding-system 'windows-1256
  42. "windows-1256 (Arabic) encoding (MIME: WINDOWS-1256)"
  43. :coding-type 'charset
  44. :mnemonic ?A
  45. :charset-list '(windows-1256)
  46. :mime-charset 'windows-1256)
  47. (define-coding-system-alias 'cp1256 'windows-1256)
  48. (set-language-info-alist
  49. "Arabic" '((charset unicode)
  50. (coding-system utf-8 iso-8859-6 windows-1256)
  51. (coding-priority utf-8 iso-8859-6 windows-1256)
  52. (input-method . "arabic")
  53. (sample-text . "Arabic السّلام عليكم")
  54. (documentation . "Bidirectional editing is supported.")))
  55. (set-char-table-range
  56. composition-function-table
  57. '(#x600 . #x6FF)
  58. (list ["[\u0600-\u06FF]+" 0 font-shape-gstring]))
  59. (provide 'misc-lang)
  60. ;;; misc-lang.el ends here