khmer.el 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ;;; khmer.el --- support for Khmer -*- coding: utf-8; no-byte-compile: t -*-
  2. ;; Copyright (C) 2008, 2009, 2010, 2011
  3. ;; National Institute of Advanced Industrial Science and Technology (AIST)
  4. ;; Registration Number H13PRO009
  5. ;; Keywords: multilingual, Khmer, i18n
  6. ;; This file is part of GNU Emacs.
  7. ;; GNU Emacs is free software: you can redistribute it and/or modify
  8. ;; it under the terms of the GNU General Public License as published by
  9. ;; the Free Software Foundation, either version 3 of the License, or
  10. ;; (at your option) any later version.
  11. ;; GNU Emacs is distributed in the hope that it will be useful,
  12. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. ;; GNU General Public License for more details.
  15. ;; You should have received a copy of the GNU General Public License
  16. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  17. ;;; Code:
  18. (set-language-info-alist
  19. "Khmer" '((charset unicode)
  20. (coding-system utf-8)
  21. (coding-priority utf-8)
  22. (sample-text . "Khmer (ភាសាខ្មែរ) ជំរាបសួរ")
  23. (documentation . t)))
  24. (let ((val (list (vector "[\x1780-\x17FF\x19E0-\x19FF\x200C\x200D]+"
  25. 0 'font-shape-gstring))))
  26. (set-char-table-range composition-function-table '(#x1780 . #x17FF) val)
  27. (set-char-table-range composition-function-table '(#x19E0 . #x19FF) val))
  28. ;; khmer.el ends here