Skip to content

Commit f6fdb53

Browse files
authored
include guj, hin and san langs (#323)
1 parent 8ee4494 commit f6fdb53

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- Fix create_token.sh throws an error [Issue#314](https://github.com/papermerge/papermerge-core/issues/314)
1212
- Empty Folder on Second Page [Issue#584](https://github.com/ciur/papermerge/issues/584)
1313
- Include Dutch language OCR data in default docker image
14+
- Add Gujrati, Hindi and Sanskrit language codes [Issue#583](https://github.com/ciur/papermerge/issues/583)
1415

1516
### Adds
1617

papermerge/core/schemas/tasks.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,22 @@
99
'deu',
1010
'ell',
1111
'eng',
12+
'fas',
1213
'fin',
1314
'fra',
15+
'guj',
1416
'heb',
17+
'hin',
1518
'ita',
1619
'jpn',
1720
'kor',
1821
'lit',
1922
'nld',
2023
'nor',
21-
'osd',
2224
'pol',
2325
'por',
2426
'ron',
27+
'san',
2528
'spa'
2629
]
2730

ui/src/cconstants.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ export const OCR_LANG: OCRLangType = {
1515
'eng': 'English',
1616
'fin': 'Suomi',
1717
'fra': 'Français',
18+
'guj': 'ગુજરાતી',
1819
'heb': 'עברית',
20+
'hin': 'हिंदी',
1921
'ita': 'Italiano',
2022
'jpn': '日本語',
2123
'kor': '한국어',
@@ -26,6 +28,7 @@ export const OCR_LANG: OCRLangType = {
2628
'pol': 'Polski',
2729
'por': 'Português',
2830
'ron': 'Română',
31+
'san': 'संस्कृत',
2932
'spa': 'Español',
3033
}
3134

ui/src/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,9 @@ export type OCRCode =
275275
| 'eng'
276276
| 'fin'
277277
| 'fra'
278+
| 'guj'
278279
| 'heb'
280+
| 'hin'
279281
| 'ita'
280282
| 'jpn'
281283
| 'kor'
@@ -286,6 +288,7 @@ export type OCRCode =
286288
| 'pol'
287289
| 'por'
288290
| 'ron'
291+
| 'san'
289292
| 'spa'
290293

291294
export type OCRLangType = {

0 commit comments

Comments
 (0)