Fixes the problem that Hanyu Pinyin keyboard layout does not work.
This commit is contained in:
parent
6ceab70893
commit
ebb382b054
|
@ -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