Skip to content

Commit

Permalink
Japanese readings should be hiragana by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzohrab committed May 30, 2024
1 parent 71f8d09 commit 9064f64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lute/models/setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def load():
"backup_dir": app_config.default_user_backup_path,
"backup_count": 5,
"mecab_path": None,
"japanese_reading": "katakana",
"japanese_reading": "hiragana",
"current_theme": "-",
"custom_styles": "/* Custom css to modify Lute's appearance. */",
"show_highlights": True,
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/parse/test_JapaneseParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ def test_readings(app_context):

zws = "\u200B"
cases = [
("強い", "ツヨイ"),
("二人", "ニニン"), # ah well, not perfect :-)
("強いか", "ツヨイカ"),
(f"強い{zws}か", f"ツヨイ{zws}"), # zero-width-space ignored
("強い", "つよい"),
("二人", "ににん"), # ah well, not perfect :-)
("強いか", "つよいか"),
(f"強い{zws}か", f"つよい{zws}"), # zero-width-space ignored
]

for c in cases:
Expand Down

0 comments on commit 9064f64

Please sign in to comment.