unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] CP949 support
@ 2008-03-15  4:21 Park Ji-In
  0 siblings, 0 replies; only message in thread
From: Park Ji-In @ 2008-03-15  4:21 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 174 bytes --]

This patch enable CP949 encoding, which is Microsoft's extended form of EUC-KR.
There is code mapping for CP949 already, but CP949 was just alias of
korean-iso-8bit(EUC-KR).

[-- Attachment #2: emacs-cp949.txt --]
[-- Type: text/plain, Size: 2205 bytes --]

? international/.mule-conf.el.swp
? language/.japanese.el.swp
? language/.korean.el.swp
Index: international/mule-conf.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/international/mule-conf.el,v
retrieving revision 1.89
diff -u -r1.89 mule-conf.el
--- international/mule-conf.el	18 Feb 2008 01:45:53 -0000	1.89
+++ international/mule-conf.el	15 Mar 2008 03:12:30 -0000
@@ -474,6 +474,19 @@
   :code-offset #x279f94			; ... #x27c217
   :unify-map "KSC5601")
 
+(define-charset 'cp949-2-byte
+  "2-byte part of CP949"
+  :dimension 2
+  :map "CP949-2BYTE"
+  :code-space [#x41 #xFD #x81 #xFE]
+  :supplementary-p t)
+
+(define-charset 'cp949
+  "CP949 (Microsoft Unified Hangul Code)"
+  :code-space [#x00 #xFD #x00 #xFE]
+  :short-name "CP949"
+  :superset '(ascii (korean-ksc5601 . #x8080) cp949-2-byte))
+
 (define-charset 'big5-hkscs
   "Big5-HKSCS (Chinese traditional, Hong Kong supplement)"
   :short-name "Big5"
@@ -481,8 +494,6 @@
   :code-offset #x27c218			; ... #x280839
   :unify-map "BIG5-HKSCS")
 
-;; Fixme: Korean cp949/UHC
-
 (define-charset 'chinese-sisheng
   "SiSheng characters for PinYin/ZhuYin"
   :short-name "SiSheng"
Index: language/korean.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/language/korean.el,v
retrieving revision 1.37
diff -u -r1.37 korean.el
--- language/korean.el	1 Feb 2008 16:01:04 -0000	1.37
+++ language/korean.el	15 Mar 2008 03:12:30 -0000
@@ -45,7 +45,6 @@
 
 (define-coding-system-alias 'euc-kr 'korean-iso-8bit)
 (define-coding-system-alias 'euc-korea 'korean-iso-8bit)
-(define-coding-system-alias 'cp949 'korean-iso-8bit)
 
 (define-coding-system 'iso-2022-kr
   "ISO 2022 based 7-bit encoding for Korean KSC5601 (MIME:ISO-2022-KR)."
@@ -58,6 +57,13 @@
   :mime-charset 'iso-2022-kr
   :suitable-for-keyboard t)
 
+(define-coding-system 'korean-cp949
+					  "CP949 (Microsoft Unified Hangul Code)"
+					  :coding-type 'charset
+					  :mnemonic ?K
+					  :charset-list '(ascii cp949))
+
+(define-coding-system-alias 'cp949 'korean-cp949)
 (define-coding-system-alias 'korean-iso-7bit-lock 'iso-2022-kr)
 
 (set-language-info-alist

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-15  4:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-15  4:21 [PATCH] CP949 support Park Ji-In

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).