Improve find character feature by only looking for traditional characters
This commit is contained in:
parent
ea1973a3cf
commit
8db4c3879f
@ -81,7 +81,7 @@ class SqliteDictionary(private val connection: Connection) : Dictionary {
|
||||
WITH cte(id, character, syllable) AS (VALUES ?)
|
||||
SELECT traditional, simplified, pinyin_with_tone_marks, pinyin_with_tone_numbers, zhuyin, cedict_definitions, cross_straits_definitions, moe_definitions
|
||||
FROM entry INNER JOIN cte
|
||||
ON cte.character = entry.traditional OR cte.character = entry.simplified
|
||||
ON cte.character = entry.traditional
|
||||
WHERE cte.syllable = entry.pinyin_with_tone_numbers
|
||||
ORDER BY cte.id
|
||||
""".trimIndent()
|
||||
|
Loading…
Reference in New Issue
Block a user