Skip to content

Commit

Permalink
Upgrade mecab-python3 dependency for Python 3.10 support
Browse files Browse the repository at this point in the history
  • Loading branch information
itsupera committed Sep 10, 2022
1 parent 3538d9d commit 04f0be4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ print_html('お茶にお煎餅、よく合いますね')

## Usage
```
$ python3 furigana.py '活版印刷の流れを汲む出版作業では'
$ python3 furigana/furigana.py '活版印刷の流れを汲む出版作業では'
```

# Dependency
Expand Down
3 changes: 1 addition & 2 deletions furigana/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ def return_html(text):
for pair in split_furigana(text):
if len(pair)==2:
kanji,hira = pair
output += "<ruby><rb>{0}</rb><rt>{1}</rt></ruby>".
format(kanji, hira)
output += f"<ruby><rb>{0}</rb><rt>{1}</rt></ruby>".format(kanji, hira)
else:
output += pair[0]
return output
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ setup_requires =
pip >= 19.1

install_requires =
mecab-python3 == 1.0.3
mecab-python3 >= 1.0.5
jaconv == 0.3

0 comments on commit 04f0be4

Please sign in to comment.