Skip to content

Commit

Permalink
Update Proficiency 0.5.13
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyzz committed Mar 3, 2024
1 parent 73b1fa6 commit 4bf4e1e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,18 +259,18 @@ def open_choose_lemma_lang_dialog(self, is_kindle: bool = True) -> None:
if choose_lang_dlg.exec():
lemma_lang = choose_lang_dlg.lemma_lang_box.currentData()
gloss_lang = choose_lang_dlg.gloss_lang_box.currentData()
prefs[
"kindle_gloss_lang" if is_kindle else "wiktionary_gloss_lang"
] = gloss_lang
prefs["kindle_gloss_lang" if is_kindle else "wiktionary_gloss_lang"] = (
gloss_lang
)
prefs[
"last_opened_kindle_lemmas_language"
if is_kindle
else "last_opened_wiktionary_lemmas_language"
] = lemma_lang
if is_kindle and lemma_lang == "en" and gloss_lang in ["en", "zh", "zh_cn"]:
prefs[
"use_wiktionary_for_kindle"
] = choose_lang_dlg.use_wiktionary_box.isChecked()
prefs["use_wiktionary_for_kindle"] = (
choose_lang_dlg.use_wiktionary_box.isChecked()
)

db_path = (
kindle_db_path(self.plugin_path, lemma_lang, prefs)
Expand Down
2 changes: 1 addition & 1 deletion data/deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"spacy_trf_model": "3.7.2",
"thinc-apple-ops": "0.1.4",
"torch": "2.2.1",
"typing-extensions": "4.9.0"
"typing-extensions": "4.10.0"
}
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from typing import Any, TypedDict

CJK_LANGS = ["zh", "ja", "ko"]
PROFICIENCY_VERSION = "0.5.12"
PROFICIENCY_VERSION = "0.5.13"
PROFICIENCY_RELEASE_URL = (
f"https://github.com/xxyzz/Proficiency/releases/download/v{PROFICIENCY_VERSION}"
)
Expand Down

0 comments on commit 4bf4e1e

Please sign in to comment.