From: "Park Ji-In" <tisphie@gmail.com>
To: emacs-devel@gnu.org
Subject: [PATCH] CP949 support
Date: Sat, 15 Mar 2008 13:21:06 +0900 [thread overview]
Message-ID: <c4ee36230803142121p4a8a3b08x581118a9b26b8e51@mail.gmail.com> (raw)
[-- 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
reply other threads:[~2008-03-15 4:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c4ee36230803142121p4a8a3b08x581118a9b26b8e51@mail.gmail.com \
--to=tisphie@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).