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:
1 parent
35f837ad01
commit
99c4a17971
2 files changed
+8
-2
No files matched your search
@@ -1086,5 +1086,11 @@
|
||||
"9"
|
||||
],
|
||||
"detail": ""
|
||||
},
|
||||
{
|
||||
"type": "substitution",
|
||||
"dec_end": "叱",
|
||||
"con_end": "𠮟",
|
||||
"detail": ""
|
||||
}
|
||||
]
|
||||
+2
-2
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user