sinhala.el 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ;;; sinhala.el --- support for Sinhala -*- 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, Sinhala, 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. "Sinhala" '((charset unicode)
  20. (coding-system utf-8)
  21. (coding-priority utf-8)
  22. (sample-text . "Sinhala (සිංහල) ආයුබෝවන්")
  23. (documentation . t)))
  24. (set-char-table-range
  25. composition-function-table
  26. '(#xD80 . #xDFF)
  27. (list (vector
  28. ;; C:consonant, H:HALANT, J:ZWJ, v:vowel sign,
  29. ;; V:independent vowel, a:ANUSVARA .. VISARGA
  30. (concat
  31. ;; C(HJC)*v*H?a?, or
  32. "[\u0D9A-\u0DC6]\\(?:\u0DCA\u200D[\u0D9A-\u0DC6]\\)*[\u0DCF-\u0DDF\u0DF2-\u0DF3]*\u0DCA?[\u0D82-\u0D83]?\\|"
  33. ;; Va?, or
  34. "[\u0D85-\u0D96][\u0D82-\u0D83]?\\|"
  35. ;; any other singleton characters
  36. "[\u0D80-\u0DFF]")
  37. 0 'font-shape-gstring)))
  38. ;; sinhala.el ends here