Skip to content

Commit

Permalink
jpdb v2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
khaitruong922 committed Oct 20, 2024
1 parent bb52b77 commit d2cdb7a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dict.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@

<body>
<div id="main">
<h1 id="header">Kanji Search (based on JPDBv2 frequency list)</h1>
<h1 id="header">Kanji Search (based on <a target="_blank"
href="https://github.com/Kuuuube/yomitan-dictionaries?tab=readme-ov-file#jpdb-v22-frequency-1">JPDB</a>
frequency list)</h1>
<div>
<div>
<label id="kanji-list-label" for="kanji-list-input">Kanji List</label>
Expand Down
1 change: 0 additions & 1 deletion index.json

This file was deleted.

6 changes: 3 additions & 3 deletions preprocess_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ def remove_non_kanji(text):
term = row[0]
term_data = row[2]
reading = term_data["reading"]
kanji_list = remove_non_kanji(term)
kanji_string = remove_non_kanji(term)
freq = term_data["frequency"]["value"]
if len(kanji_list) > 0:
items.append([term, kanji_list, reading, freq])
if len(kanji_string) > 0:
items.append([term, kanji_string, reading, freq])


print("Output:")
Expand Down

0 comments on commit d2cdb7a

Please sign in to comment.