mirror of
https://github.com/mii443/AzooKeyKanaKanjiConverter.git
synced 2025-12-03 02:58:27 +00:00
add predictionUsable check
This commit is contained in:
@@ -63,7 +63,9 @@ extension Kana2Kanji {
|
||||
totalWord.insert(contentsOf: element.word, at: totalWord.startIndex)
|
||||
totalRuby.insert(contentsOf: element.ruby, at: totalRuby.startIndex)
|
||||
totalData.insert(element, at: 0)
|
||||
let dicdata = self.dicdataStore.getPredictionLOUDSDicdata(key: totalRuby).filter {$0.word.hasPrefix(totalWord)}
|
||||
let dicdata = self.dicdataStore.getPredictionLOUDSDicdata(key: totalRuby).filter {
|
||||
DicdataStore.predictionUsable[$0.rcid] && $0.word.hasPrefix(totalWord)
|
||||
}
|
||||
|
||||
for data in dicdata {
|
||||
let ccValue = self.dicdataStore.getCCValue(prefixCandidateData.last?.rcid ?? CIDData.BOS.cid, data.lcid)
|
||||
|
||||
Reference in New Issue
Block a user