jntajis-python 0.2.0__cp314-cp314-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
jntajis/_jntajis.pyi ADDED
@@ -0,0 +1,19 @@
1
+ import typing
2
+
3
+ class IncrementalEncoder:
4
+ def encode(self, in_: str, final: bool) -> bytes: ...
5
+ def reset(self) -> None: ...
6
+ def getstate(self) -> int: ...
7
+ def setstate(self, state: int) -> None: ...
8
+ def __init__(self, encoding: str, conv_mode: int) -> None: ...
9
+
10
+ class TransliterationError(Exception): ...
11
+
12
+ def jnta_encode(encoding: str, in_: str, conv_mode: int) -> bytes: ...
13
+ def jnta_decode(
14
+ encoding: str, in_: bytes, conv_mode: int = 0, replacement: typing.Optional[str] = None
15
+ ) -> str: ...
16
+ def jnta_shrink_translit(
17
+ in_: str, replacement: str = "\ufffd", passthrough: bool = False
18
+ ) -> str: ...
19
+ def mj_shrink_candidates(in_: str, combo: int, limit: int = 100) -> typing.List[str]: ...