From 9001f0e5f02a33fa7f5f6755da5ad2975175ca5b Mon Sep 17 00:00:00 2001 From: Choe Hwanjin Date: Wed, 6 Feb 2008 01:00:21 +0900 Subject: [PATCH] =?utf8?q?=EC=84=B8=EB=B2=8C=EC=8B=9D=20=EC=98=9B=EA=B8=80?= =?utf8?q?=20=EC=B2=98=EB=A6=AC=20=EC=88=98=EC=A0=95=20(#304728)=20=20*=20?= =?utf8?q?=EC=98=9B=EA=B8=80=20=EC=9E=90=ED=8C=90=EC=97=90=EC=84=9C?= =?utf8?q?=EB=8A=94=20=EC=9E=90=EB=AA=A8(=EC=B2=AB=EA=B0=80=EB=81=9D)?= =?utf8?q?=EB=A1=9C=20=EC=B6=9C=EB=A0=A5=20=20*=20hangul=5Fic=5Fflush()=20?= =?utf8?q?=ED=95=A8=EC=88=98=EC=97=90=EC=84=9C=EB=8F=84=20output=20mode?= =?utf8?q?=EC=97=90=20=EB=94=B0=EB=A5=B8=20=EC=B2=98=EB=A6=AC=20=20*=20?= =?utf8?q?=EB=82=98=EB=B9=84=EB=B2=84=EA=B7=B8=20#304727=20=EC=B0=B8?= =?utf8?q?=EA=B3=A0:=20=20=20=20http://kldp.net/tracker/=3Ffunc=3Ddetail&a?= =?utf8?q?tid=3D100275&aid=3D304727&group=5Fid=3D275?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: http://kldp.net/svn/hangul/libhangul/trunk@156 8f00fcd2-89fc-0310-932e-b01be5b65e01 --- hangul/hangulinputcontext.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/hangul/hangulinputcontext.c b/hangul/hangulinputcontext.c index 0f92957..cab91de 100644 --- a/hangul/hangulinputcontext.c +++ b/hangul/hangulinputcontext.c @@ -875,8 +875,14 @@ hangul_ic_flush(HangulInputContext *hic) hic->preedit_string[0] = 0; hic->commit_string[0] = 0; hic->flushed_string[0] = 0; - hangul_buffer_get_string(&hic->buffer, hic->flushed_string, - N_ELEMENTS(hic->flushed_string)); + + if (hic->output_mode == HANGUL_OUTPUT_JAMO) { + hangul_buffer_get_jamo_string(&hic->buffer, hic->flushed_string, + N_ELEMENTS(hic->flushed_string)); + } else { + hangul_buffer_get_string(&hic->buffer, hic->flushed_string, + N_ELEMENTS(hic->flushed_string)); + } hangul_buffer_clear(&hic->buffer); @@ -1112,6 +1118,7 @@ hangul_ic_select_keyboard(HangulInputContext *hic, const char* id) } else if (strcmp(id, "3y") == 0) { hic->keyboard = &hangul_keyboard_3yet; hic->combination = &hangul_combination_full; + hic->output_mode = HANGUL_OUTPUT_JAMO; } else { hic->keyboard = &hangul_keyboard_2; hic->combination = &hangul_combination_default; -- 2.7.4