![]() |
#1 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9
Karma: 3166
Join Date: Nov 2024
Device: None
|
Text selection in pdf is not working for Sanskrit
I am trying to select text on a Sanskrit PDF, and I get the following error in the images attached below. Please check and tell.
|
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,713
Karma: 730679
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Tracked in https://github.com/koreader/koreader/issues/12738, not yet resolved.
|
![]() |
![]() |
![]() |
#3 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 99
Karma: 9466
Join Date: Jan 2021
Device: Likebook Mars
|
This is a known and open bug, as reported here:
https://github.com/koreader/koreader/issues/12738 It occurs when there is no text-layer and KOReader attempts to do OCR but can't find the tessdata files. You can prevent the crashes by copying the 'eng.traineddata' file to your koreader/data/tessdata folder. It is available here for example: https://github.com/tesseract-ocr/tessdata If you actually want to use OCR on your Sanskrit book, then you will also need to get the 'san.traineddata' file and copy it to the same folder. In addition, you will need to add the "san" language code in your koreader/defaults.custom.lua configuration file, under DKOPTREADER_CONFIG_DOC_LANGS_CODE = . (You will of course also need to have a Sanskrit dictionary installed and I'm not sure how accurate/useful the OCR will be.) You can find more information here: https://github.com/koreader/koreader...ionary-support Section: "Dictionary lookups in scanned pages" |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9
Karma: 3166
Join Date: Nov 2024
Device: None
|
Similar issues with dictionaries for Telugu and Sanskrit. I have added the required dictionaries from the inbuilt KOreader download option. Fonts are not showing up even if I add custom fonts. Please see the image below.
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,713
Karma: 730679
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
You mean as per Settings → Device → Additional UI fallback fonts?
|
![]() |
![]() |
![]() |
#6 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9
Karma: 3166
Join Date: Nov 2024
Device: None
|
Yes. I FIXED the previous issue by using a PDF without images and with prebuilt OCR. This is a similar issue which occurs even in text-selectable PDFs and epubs.
|
![]() |
![]() |
![]() |
#7 |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,366
Karma: 2200075
Join Date: Apr 2014
Device: BQ Cervantes 4
|
The issue you originally had was caused by OCR'ing a PDF.
The issue you currently have (with PDF's with a text layer) is that the font you're using in the UI (the dictionary lookup) doesn't contain the glyphs. The solution provided by Frenzie is what you need (plus a font with the glyphs, not sure if we provide coverage for telugu or sanscript, we ship devanagari) |
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9
Karma: 3166
Join Date: Nov 2024
Device: None
|
Deleted this reply. Will check and come back.
Last edited by Iloveeread; 02-06-2025 at 02:37 PM. |
![]() |
![]() |
![]() |
#9 |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,366
Karma: 2200075
Join Date: Apr 2014
Device: BQ Cervantes 4
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using native os text selection | arpeggioaccele | Viewer | 3 | 10-14-2023 04:03 AM |
Multiple tags selection not working | pinky62 | Library Management | 2 | 02-16-2023 11:50 AM |
Text selection problem when converting Epub to PDF | E_K | Conversion | 1 | 09-26-2022 10:57 PM |
Converting Sanskrit PDF to epub | sriniamble | Calibre | 17 | 11-25-2010 07:10 AM |
Best device for reading Sanskrit from PDF | R o d | Which one should I buy? | 4 | 01-08-2009 07:30 AM |