cham.el 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ;;; cham.el --- support for Cham -*- coding: utf-8; no-byte-compile: t -*-
  2. ;; Copyright (C) 2008, 2009, 2010, 2011, 2012
  3. ;; National Institute of Advanced Industrial Science and Technology (AIST)
  4. ;; Registration Number H13PRO009
  5. ;; Keywords: multilingual, Cham, 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. ;;; Commentary:
  18. ;; Tai Viet is being included in the Unicode at the range U+AA80..U+AADF.
  19. ;;; Code:
  20. (set-char-table-range composition-function-table
  21. '(#xAA00 . #xAA5F)
  22. (list (vector "[\xAA00-\xAA5F]+" 0 'font-shape-gstring)))
  23. (set-language-info-alist
  24. "Cham" '((charset unicode)
  25. (coding-system utf-8)
  26. (coding-priority utf-8)))
  27. (provide 'cham)