fix to astral single kanji lookup; substitute actual kanji for shikari with the one that jmdict and other dictionaries use

This commit is contained in:
wareya committed 2019-05-14 05:46:18 -04:00
1 parent 35f837ad01
commit 99c4a17971
2 files changed
+8 -2

No files matched your search

+6
View File
@@ -1086,5 +1086,11 @@
"9" "9"
], ],
"detail": "" "detail": ""
},
{
"type": "substitution",
"dec_end": "叱",
"con_end": "𠮟",
"detail": ""
} }
] ]
+2 -2
View File
@@ -1341,13 +1341,13 @@ async function send_lookup(lookup)
{ {
type:"search_kanji", type:"search_kanji",
divexisted:exists_div(), divexisted:exists_div(),
text:lookup[0].charAt(0) text:[...lookup[0]][0]
}); });
if(response) if(response)
response = response["response"]; response = response["response"];
if(response && response != "itsthesame") 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) if(mydiv)
display_div(mydiv, lookup[3], lookup[4]); display_div(mydiv, lookup[3], lookup[4]);
} }