Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 12-30-2020, 06:45 PM   #16
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 1,151
Karma: 429212
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
Quote:
Originally Posted by ichnilatis View Post
You mean I can make the file with Notepad with just the above mentioned text for ocr?

One more question: Why there are only two options for the text language? What should be the second option instead of "Chinese"? Each user has to make the change manually in the defaults.lua?
That's correct, while you could copy the whole file it's much clearer if you only put in the lines you've changed.

With regard to the OCR, it's not the most polished feature. An ereader is not a very powerful device, so we only feed the OCR engine very tiny parts of the page. It can be nice for the occasional use, but if you know in advance it might be better to do the OCR on your PC first. It'll do it a heck of a lot faster.

A lack of spaces in Greek certainly sounds odd. We'll have to check what's up with that. Not detecting spaces properly can sometimes happen in the Latin alphabet with italics, so I didn't think much of it.
Frenzie is offline   Reply With Quote
Old 12-31-2020, 09:17 AM   #17
ichnilatis
Enthusiast
ichnilatis began at the beginning.
 
Posts: 44
Karma: 10
Join Date: Jul 2020
Location: Greece
Device: Pocketbook Touch Lux 5
I finally upload the screenshots I mentioned.

I still can't understand why there are only two options for the text language? What should be the second option instead of "Chinese"? Each user has to make the change manually in the defaults.lua?

You're right, Frenzie, about ocr in ereaders and I understand this weakness. I just mean to use this feature for occasional use. Also it's very useful just to highlight an unrecognized text.
Attached Thumbnails
Click image for larger version

Name:	Reader_2020-12-31_150556.png
Views:	23
Size:	70.0 KB
ID:	184393   Click image for larger version

Name:	Reader_2020-12-31_150914.png
Views:	19
Size:	81.1 KB
ID:	184394   Click image for larger version

Name:	Reader_2020-12-31_150935.png
Views:	21
Size:	107.3 KB
ID:	184395  

Last edited by ichnilatis; 12-31-2020 at 09:25 AM. Reason: completion
ichnilatis is offline   Reply With Quote
Old 12-31-2020, 09:29 AM   #18
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 1,151
Karma: 429212
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
As I said, it's a lack of polish for that particular feature. There isn't really a reason other than that the person who implemented it isn't an active contributor anymore.
Frenzie is offline   Reply With Quote
Old 12-31-2020, 09:45 AM   #19
ichnilatis
Enthusiast
ichnilatis began at the beginning.
 
Posts: 44
Karma: 10
Join Date: Jul 2020
Location: Greece
Device: Pocketbook Touch Lux 5
Quote:
Originally Posted by Frenzie View Post
As I said, it's a lack of polish for that particular feature. There isn't really a reason other than that the person who implemented it isn't an active contributor anymore.
Ο.Κ. Thank you very much for your help and your patience with me.
ichnilatis is offline   Reply With Quote
Old 01-25-2021, 06:56 AM   #20
ichnilatis
Enthusiast
ichnilatis began at the beginning.
 
Posts: 44
Karma: 10
Join Date: Jul 2020
Location: Greece
Device: Pocketbook Touch Lux 5
Quote:
Originally Posted by Frenzie View Post
Something like that, yes. If you want to keep it, make sure to put it in persistent.defaults.lua.
Dear Frenzie,
I created the persistent.defaults.lua file by copying only the ocr lines from defaults.lua. However, when I updated KOReader, these settings did not apply as defaults.lua was replaced. How can I maintain persistent.defaults.lua settings after each update? Do I have to copy-paste these lines into default.lua every time I update KOReader?
ichnilatis is offline   Reply With Quote
Old 01-25-2021, 08:42 AM   #21
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 773
Karma: 1357911
Join Date: Apr 2014
Device: BQ Cervantes 4
Quote:
Originally Posted by ichnilatis View Post
Dear Frenzie,
I created the persistent.defaults.lua file by copying only the ocr lines from defaults.lua. However, when I updated KOReader, these settings did not apply as defaults.lua was replaced. How can I maintain persistent.defaults.lua settings after each update? Do I have to copy-paste these lines into default.lua every time I update KOReader?

The file should be named "defaults.persistent.lua", not "persistent.defaults.lua".

If you're using windows as your OS do the following:

1. with Windows explorer copy "defaults.lua" and paste it as "defaults.persistent.lua"
2. open the new file with Notepad++
3. Remove all the lines you won't plan to override (most of them I guess)
4. Edit the rest of lines to match your preferences

That's it. Changes is defaults.persistent.lua should persist, as the name implies

If for some reasons you won't see your changes in the program that means you made a typo. The program will prevent you to load "broken code" and will fallback to default.

Here is an example of a typo:

Code:
SOME_STRING = "Unfinished string
SOME_OTHER_STRING = "OK string"
Please keep in mind that the file/logic was developed long time ago when KOReader was used mostly by hackers. It won't prevent you from doing stupid things, like asigning a number when the program expects a string. The program will use these changes even if that means it will crash it later on.

Last edited by pazos; 01-25-2021 at 08:48 AM.
pazos is offline   Reply With Quote
Old Yesterday, 08:47 AM   #22
ichnilatis
Enthusiast
ichnilatis began at the beginning.
 
Posts: 44
Karma: 10
Join Date: Jul 2020
Location: Greece
Device: Pocketbook Touch Lux 5
Thank you a lot! I will check it in the next update.
At least, it's not too much to copy-paste it after every update...
ichnilatis is offline   Reply With Quote
Reply

Tags
ocr

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OCR problem in a PDF flie mzel KOReader 16 04-21-2020 02:09 PM
pages in OCR cloclo36 Assistance 0 06-03-2019 01:19 PM
How to convert an OCR file to a Non-OCR one res9282 PDF 1 08-05-2011 06:58 AM
Do I have to OCR? Ceryta Workshop 7 05-07-2011 12:03 PM
OCR to use pepak Workshop 17 05-26-2008 06:30 PM


All times are GMT -4. The time now is 05:01 AM.


MobileRead.com is a privately owned, operated and funded community.