From 358ce9ef977dd964d848f2b166156cc66dad8745 Mon Sep 17 00:00:00 2001 From: zonble Date: Mon, 17 Oct 2011 00:18:54 +0800 Subject: [PATCH] Fixes the problem that Hanyu Pinyin keyboard layout does not work. --- Source/InputMethodController.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/InputMethodController.mm b/Source/InputMethodController.mm index 01aba4c8..9961970b 100644 --- a/Source/InputMethodController.mm +++ b/Source/InputMethodController.mm @@ -521,7 +521,7 @@ public: composeReading |= (!_bpmfReadingBuffer->isEmpty() && (charCode == 32 || charCode == 13)); if (composeReading) { // combine the reading - string reading = _bpmfReadingBuffer->composedString(); + string reading = _bpmfReadingBuffer->syllable().composedString(); // see if we have a unigram for this if (!LTLanguageModel.hasUnigramsForKey(reading)) {