Add Japanese Vertical Support Branch for Tesseract and Ocrmypdf OCR (#2505)

* Add Japanese Vertical Support 
* Adds Japanese Vertical mappings to default configuration.
This commit is contained in:
tenpai
2024-04-16 18:24:57 +00:00
committed by GitHub
parent 36c00cc9ec
commit e731d822dc
9 changed files with 75 additions and 5 deletions

View File

@ -6,5 +6,8 @@
"@fortawesome/fontawesome-free": "^6.0.0",
"@tailwindcss/forms": "^0.5.0",
"flag-icons": "^7.2.0"
},
"dependencies": {
"tailwindcss": "^3.4.1"
}
}

View File

@ -30,6 +30,7 @@ type Language
| Dutch
| Latvian
| Japanese
| JpnVert
| Hebrew
| Hungarian
| Lithuanian
@ -90,6 +91,9 @@ fromString str =
else if str == "jpn" || str == "ja" || str == "japanese" then
Just Japanese
else if str == "jpn_vert" || str == "ja_vert" || str == "jpnvert" then
Just JpnVert
else if str == "heb" || str == "he" || str == "hebrew" then
Just Hebrew
@ -169,6 +173,9 @@ toIso3 lang =
Japanese ->
"jpn"
JpnVert ->
"jpn_vert"
Hebrew ->
"heb"
@ -212,6 +219,7 @@ all =
, Romanian
, Latvian
, Japanese
, JpnVert
, Hebrew
, Hungarian
, Lithuanian

View File

@ -65,6 +65,9 @@ gb lang =
Japanese ->
"Japanese"
JpnVert ->
"JpnVert"
Hebrew ->
"Hebrew"
@ -141,6 +144,9 @@ de lang =
Japanese ->
"Japanisch"
JpnVert ->
"JpnVert"
Hebrew ->
"Hebräisch"
@ -217,6 +223,9 @@ fr lang =
Japanese ->
"Japonnais"
JpnVert ->
"JpnVert"
Hebrew ->
"Hébreu"