Fixes the problem that Hanyu Pinyin keyboard layout does not work.
This commit is contained in:
parent
ae1fd3ee5d
commit
358ce9ef97
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue