From 6ec42b91a291b10ab3a62a18e1dc7b79c4aef88c Mon Sep 17 00:00:00 2001 From: Choe Hwanjin Date: Wed, 7 Sep 2011 23:43:20 +0900 Subject: =?UTF-8?q?deprecated=20=ED=95=A8=EC=88=98=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 다음 릴리스에서는 library version을 올릴 것이다. git-svn-id: http://kldp.net/svn/hangul/libhangul/trunk@267 8f00fcd2-89fc-0310-932e-b01be5b65e01 --- hangul/hangul.h | 17 ------- hangul/hangulctype.c | 21 -------- hangul/hangulinputcontext.c | 115 -------------------------------------------- 3 files changed, 153 deletions(-) diff --git a/hangul/hangul.h b/hangul/hangul.h index 4957c29..bf16afd 100644 --- a/hangul/hangul.h +++ b/hangul/hangul.h @@ -157,23 +157,6 @@ const char* hanja_get_key(const Hanja* hanja); const char* hanja_get_value(const Hanja* hanja); const char* hanja_get_comment(const Hanja* hanja); - -/* deprecated */ -bool hangul_is_jaso(ucschar c) LIBHANGUL_DEPRECATED; -ucschar hangul_jaso_to_jamo(ucschar ch) LIBHANGUL_DEPRECATED; -ucschar hangul_jaso_to_syllable(ucschar choseong, - ucschar jungseong, - ucschar jongseong) LIBHANGUL_DEPRECATED; -void hangul_syllable_to_jaso(ucschar syllable, - ucschar* choseong, - ucschar* jungseong, - ucschar* jongseong) LIBHANGUL_DEPRECATED; -typedef bool (*HangulICFilter) (ucschar*, ucschar, ucschar, ucschar, void*); -void hangul_ic_set_filter(HangulInputContext *hic, - HangulICFilter func, void *user_data) LIBHANGUL_DEPRECATED; -int hangul_ic_dvorak_to_qwerty(int qwerty) LIBHANGUL_DEPRECATED; - - #ifdef __cplusplus } #endif diff --git a/hangul/hangulctype.c b/hangul/hangulctype.c index 2d83de9..53ada66 100644 --- a/hangul/hangulctype.c +++ b/hangul/hangulctype.c @@ -176,13 +176,6 @@ hangul_is_jamo(ucschar c) hangul_is_jongseong(c); } -/** @deprecated 이 함수 대신 hangul_is_jamo()함수를 사용한다. */ -bool -hangul_is_jaso(ucschar c) -{ - return hangul_is_jamo(c); -} - /** * @ingroup hangulctype * @brief 호환 자모인지 확인 @@ -592,13 +585,6 @@ hangul_jamo_to_cjamo(ucschar c) return ret; } -/** @deprecated 이 함수 대신 hangul_jamo_to_cjamo()함수를 사용한다. */ -ucschar -hangul_jaso_to_jamo(ucschar c) -{ - return hangul_jamo_to_cjamo(c); -} - ucschar hangul_choseong_to_jongseong(ucschar c) { @@ -1299,13 +1285,6 @@ hangul_jamo_to_syllable(ucschar choseong, ucschar jungseong, ucschar jongseong) return c; } -/** @deprecated 이 함수 대신 hangul_jamo_to_syllable()을 사용한다. */ -ucschar -hangul_jaso_to_syllable(ucschar choseong, ucschar jungseong, ucschar jongseong) -{ - return hangul_jamo_to_syllable(choseong, jungseong, jongseong); -} - /** * @ingroup hangulctype * @brief 음절을 자모로 분해 diff --git a/hangul/hangulinputcontext.c b/hangul/hangulinputcontext.c index 08fd869..46fc740 100644 --- a/hangul/hangulinputcontext.c +++ b/hangul/hangulinputcontext.c @@ -232,9 +232,6 @@ struct _HangulInputContext { HangulOnTransition on_transition; void* on_transition_data; - HangulICFilter filter; - void *filter_data; - unsigned int use_jamo_mode_only : 1; }; @@ -1457,112 +1454,6 @@ hangul_ic_backspace(HangulInputContext *hic) return ret; } -int -hangul_ic_dvorak_to_qwerty(int qwerty) -{ - static const int table[] = { - '!', /* ! */ - 'Q', /* " */ - '#', /* # */ - '$', /* $ */ - '%', /* % */ - '&', /* & */ - 'q', /* ' */ - '(', /* ( */ - ')', /* ) */ - '*', /* * */ - '}', /* + */ - 'w', /* , */ - '\'', /* - */ - 'e', /* . */ - '[', /* / */ - '0', /* 0 */ - '1', /* 1 */ - '2', /* 2 */ - '3', /* 3 */ - '4', /* 4 */ - '5', /* 5 */ - '6', /* 6 */ - '7', /* 7 */ - '8', /* 8 */ - '9', /* 9 */ - 'Z', /* : */ - 'z', /* ; */ - 'W', /* < */ - ']', /* = */ - 'E', /* > */ - '{', /* ? */ - '@', /* @ */ - 'A', /* A */ - 'N', /* B */ - 'I', /* C */ - 'H', /* D */ - 'D', /* E */ - 'Y', /* F */ - 'U', /* G */ - 'J', /* H */ - 'G', /* I */ - 'C', /* J */ - 'V', /* K */ - 'P', /* L */ - 'M', /* M */ - 'L', /* N */ - 'S', /* O */ - 'R', /* P */ - 'X', /* Q */ - 'O', /* R */ - ':', /* S */ - 'K', /* T */ - 'F', /* U */ - '>', /* V */ - '<', /* W */ - 'B', /* X */ - 'T', /* Y */ - '?', /* Z */ - '-', /* [ */ - '\\', /* \ */ - '=', /* ] */ - '^', /* ^ */ - '"', /* _ */ - '`', /* ` */ - 'a', /* a */ - 'n', /* b */ - 'i', /* c */ - 'h', /* d */ - 'd', /* e */ - 'y', /* f */ - 'u', /* g */ - 'j', /* h */ - 'g', /* i */ - 'c', /* j */ - 'v', /* k */ - 'p', /* l */ - 'm', /* m */ - 'l', /* n */ - 's', /* o */ - 'r', /* p */ - 'x', /* q */ - 'o', /* r */ - ';', /* s */ - 'k', /* t */ - 'f', /* u */ - '.', /* v */ - ',', /* w */ - 'b', /* x */ - 't', /* y */ - '/', /* z */ - '_', /* { */ - '|', /* | */ - '+', /* } */ - '~' /* ~ */ - }; - - if (qwerty >= '!' && qwerty <= '~') - return table[qwerty - '!']; - - return qwerty; -} - /** * @ingroup hangulic * @brief @ref HangulInputContext가 조합중인 글자를 가지고 있는지 확인하는 함수 @@ -1670,12 +1561,6 @@ void hangul_ic_connect_callback(HangulInputContext* hic, const char* event, } } -void hangul_ic_set_filter(HangulInputContext *hic, - HangulICFilter func, void *user_data) -{ - return; -} - void hangul_ic_set_keyboard(HangulInputContext *hic, const HangulKeyboard* keyboard) { -- cgit v1.2.1