From d4c844dc5f7e57a622db077c544eed37d92fcd3d Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 5 Aug 2010 13:02:09 +1000 Subject: Added code page 1361 Korean Johab to IsDBCSLeadByte. --- src/Document.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Document.cxx b/src/Document.cxx index a58be8a0d..a5907f97f 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -591,12 +591,17 @@ bool SCI_METHOD Document::IsDBCSLeadByte(char ch) const { // GBK return (uch >= 0x81) && (uch <= 0xFE); case 949: - // Korean EUC-KR - // There is also a code page 1361 for Korean Johab which appears to not be widely supported + // Korean Wansung KS C-5601-1987 return (uch >= 0x81) && (uch <= 0xFE); case 950: // Big5 return (uch >= 0x81) && (uch <= 0xFE); + case 1361: + // Korean Johab KS C-5601-1992 + return + ((uch >= 0x84) && (uch <= 0xD3)) || + ((uch >= 0xD8) && (uch <= 0xDE)) || + ((uch >= 0xE0) && (uch <= 0xF9)); } return false; } -- cgit v1.2.3