From 99c4a1797137a90430e4aec6b410109f9d232ddb Mon Sep 17 00:00:00 2001 From: wareya Date: Tue, 14 May 2019 05:46:18 -0400 Subject: [PATCH] fix to astral single kanji lookup; substitute actual kanji for shikari with the one that jmdict and other dictionaries use --- dict/deconjugator.json | 6 ++++++ texthook.js | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dict/deconjugator.json b/dict/deconjugator.json index f201eca..e2bc2e2 100644 --- a/dict/deconjugator.json +++ b/dict/deconjugator.json @@ -1086,5 +1086,11 @@ "9" ], "detail": "" + }, + { + "type": "substitution", + "dec_end": "叱", + "con_end": "𠮟", + "detail": "" } ] diff --git a/texthook.js b/texthook.js index bf97e67..a3a45e2 100644 --- a/texthook.js +++ b/texthook.js @@ -1341,13 +1341,13 @@ async function send_lookup(lookup) { type:"search_kanji", divexisted:exists_div(), - text:lookup[0].charAt(0) + text:[...lookup[0]][0] }); if(response) response = response["response"]; if(response && response != "itsthesame") { - let mydiv = build_div_kanji(lookup[0].charAt(0), response, lookup[5], lookup[6]); + let mydiv = build_div_kanji([...lookup[0]][0], response, lookup[5], lookup[6]); if(mydiv) display_div(mydiv, lookup[3], lookup[4]); }