english.el 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. ;;; english.el --- support for English -*- no-byte-compile: t -*-
  2. ;; Copyright (C) 1997, 2001-2012 Free Software Foundation, Inc.
  3. ;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
  4. ;; 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: multibyte character, character set, syntax, category
  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. ;; We need nothing special to support English on Emacs. Selecting
  24. ;; English as a language environment is one of the ways to reset
  25. ;; various multilingual environment to the original setting.
  26. ;;; Code:
  27. (set-language-info-alist
  28. "English" '((tutorial . "TUTORIAL")
  29. (charset ascii)
  30. (sample-text . "Hello!, Hi!, How are you?")
  31. (documentation . "\
  32. Nothing special is needed to handle English.")
  33. ))
  34. ;; Mostly because we can now...
  35. (define-coding-system 'ebcdic-us
  36. "US version of EBCDIC"
  37. :coding-type 'charset
  38. :charset-list '(ebcdic-us)
  39. :mnemonic ?*)
  40. (define-coding-system 'ebcdic-uk
  41. "UK version of EBCDIC"
  42. :coding-type 'charset
  43. :charset-list '(ebcdic-uk)
  44. :mnemonic ?*)
  45. (define-coding-system 'ibm1047
  46. "A version of EBCDIC used in OS/390 Unix" ; says Groff
  47. :coding-type 'charset
  48. :charset-list '(ibm1047)
  49. :mnemonic ?*)
  50. (define-coding-system-alias 'cp1047 'ibm1047)
  51. ;; Make "ASCII" an alias of "English" language environment.
  52. (set-language-info-alist
  53. "ASCII" (cdr (assoc "English" language-info-alist)))
  54. ;;; english.el ends here