mirror of
https://github.com/DS4SD/docling.git
synced 2025-08-02 07:22:14 +00:00
10 lines
263 B
Python
10 lines
263 B
Python
def map_tesseract_script(script: str) -> str:
|
|
r""" """
|
|
if script == "Katakana" or script == "Hiragana":
|
|
script = "Japanese"
|
|
elif script == "Han":
|
|
script = "HanS"
|
|
elif script == "Korean":
|
|
script = "Hangul"
|
|
return script
|