mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-21 18:08:25 +00:00
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:
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
||||
|
Reference in New Issue
Block a user