mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add issue links
This commit is contained in:
parent
3959627970
commit
0c86a7918f
@ -33,6 +33,7 @@ from calibre.ebooks.unihandecode.unidecoder import Unidecoder
|
|||||||
|
|
||||||
# pykakasi uses paths for its dictionaries rather than using the
|
# pykakasi uses paths for its dictionaries rather than using the
|
||||||
# Traversable API of importlib.resources so we have to hack around it, sigh.
|
# Traversable API of importlib.resources so we have to hack around it, sigh.
|
||||||
|
# https://codeberg.org/miurahr/pykakasi/pulls/174
|
||||||
def dictdata(dbfile: str):
|
def dictdata(dbfile: str):
|
||||||
t = files('pykakasi')
|
t = files('pykakasi')
|
||||||
q = t.joinpath('data').joinpath(dbfile)
|
q = t.joinpath('data').joinpath(dbfile)
|
||||||
@ -67,6 +68,7 @@ class Jadecoder(Unidecoder):
|
|||||||
|
|
||||||
# We have to use the deprecated API as the new API does not capitalize
|
# We have to use the deprecated API as the new API does not capitalize
|
||||||
# words. Sigh.
|
# words. Sigh.
|
||||||
|
# https://codeberg.org/miurahr/pykakasi/issues/172
|
||||||
with warnings.catch_warnings():
|
with warnings.catch_warnings():
|
||||||
warnings.simplefilter("ignore")
|
warnings.simplefilter("ignore")
|
||||||
self.kakasi = kakasi()
|
self.kakasi = kakasi()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user