![]() |
#2116 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 59
Karma: 56675
Join Date: Nov 2021
Device: Nook Simple Touch (3), Nook Simple Touch w/Glowlight (3)
|
Quote:
|
|
![]() |
![]() |
![]() |
#2117 |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,299
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Amen to the decrapifying, though I don't think it will be quite as bad as you might think. Just uninstall, uninstall, uninstall.
|
![]() |
![]() |
![]() |
#2118 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 881
Karma: 2580688
Join Date: Jun 2010
Device: K3W, PW4
|
I have used k2pdfopt to convert a PDF file for use on my PW4. I used the -ocr option with it as the original PDF did not include any text for searching.
I am now wondering if it would be possible to extract the ocr text from the k2pdfopt output file and use it as the starting point to create a text version of the file to create an azw3 file. Is this possible with k2pdfopt or another pdf tool? Dave |
![]() |
![]() |
![]() |
#2119 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,299
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
|
|
![]() |
![]() |
![]() |
#2120 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 881
Karma: 2580688
Join Date: Jun 2010
Device: K3W, PW4
|
Quote:
Thank you for your assistance. Dave Last edited by dhdurgee; 05-16-2025 at 11:50 PM. |
|
![]() |
![]() |
![]() |
#2121 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6
Karma: 105302
Join Date: Aug 2021
Device: Kindle PW2
|
Font size and alignment changes before horizontal line
Hello.
I have faced this weird issue first time. If there is a thin horizontal line (it is located just before the footnotes begin, I cannot eliminate it since its position varies on pages) the text that is above that line is rendered into so microscopic font, that is comparable with the line width... Is there a way to remediate from this?... Moreover text alignment switches from justified to left for the entire chapter where there at the end that horizontal line is. Any idea highly appreciated. Attaching screenshots and pdf to illustrate this. |
![]() |
![]() |
![]() |
#2122 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,299
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
1. Erase the line using the -ehl option: k2pdfopt -ehl 1 ... source.pdf 2. Set a minimum text row height using the -rhmin option: k2pdfopt -rhmin 1 ... source.pdf Either one effectively removes the horizontal line from the output. BTW I used -ml 0.2 -mr 0.2 to get rid of the < > marks on the source pages, as you probably did also. |
|
![]() |
![]() |
![]() |
#2123 | |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6
Karma: 105302
Join Date: Aug 2021
Device: Kindle PW2
|
Thank you for both methods. Both of them perfectly eliminated horizontal line and likely in this way helped to workaround the small font issue (the line presence alone in the output was not an issue). The sudden alignment change still remained. Text alignment changed from "justified" to "left aligned" for the entire source page where there at the end is that horizontal line. Sometimes it affects not the entire source page but the chapter on the page before horizontal line. This remediated effectively by "-j +" which worked flawlessly.
Thank you so much for your really brilliant Application development and such a dedication to the support. ![]() Quote:
|
|
![]() |
![]() |
![]() |
#2124 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 881
Karma: 2580688
Join Date: Jun 2010
Device: K3W, PW4
|
After I got things sorted out with your tool I had yet another thought occur to me. I passed the original scanned image document along with some guidance to the Grok AI engine and asked it to do the OCR for me detecting the images and inserting placeholders for them in the output. This was after trying to get it to do a full conversion to an epub format, which it turned out was beyond its capabilities. It was, however, able to give me the files comprising the epub piecemeal so that I could assemble the epub manually.
I hit some issues with limitations of grok.com and had to do the processing in pieces, but I now have a final epub of that document with images that is about 1/3 the size of your optimized output. I understand that the Grok API is available to developers and can tell you that its OCR capabilities were great. It might be worth your time to investigate if it could be useful to you in a later release of your tool. Dave |
![]() |
![]() |
![]() |
#2125 |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,299
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
That is interesting information. Thanks. I may look into it at some point, but I'm a bit of a dinosaur when it comes to AI.
|
![]() |
![]() |
![]() |
#2126 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 881
Karma: 2580688
Join Date: Jun 2010
Device: K3W, PW4
|
Quote:
Its even simpler to use than a search engine and produces more understandable results in most cases. Give it a try and see. Dave |
|
![]() |
![]() |
![]() |
#2127 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,184
Karma: 168808723
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
My experience with AI and recipes has not been that great. I was curious as to what it would give me for a couple of recipes. I couldn't bring myself to try a "mild" curry recipe that includes 4 tablespoons of 7 Pod Jonah pepper powder. One of the other recipes it supplied was basically a quote of Guy Fieri's Cheddar Trans-Porter Soup recipe.
I worked in IT in an education setting for years. One of the teachers whom I still chat with is still being surprised by the number of students whose idea of writing a program is to ask an AI to write it for them and then never bother to try using the program. He has a form now that basically says "The AI's first error occurred at line ___ in the source code and since you used AI to write the program, your mark is 0. A second occurrence will result in your final mark for the course being 0". |
![]() |
![]() |
![]() |
Tags |
ebook apps, k5 tools, kindle tools, kindle touch, tools |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Viewing PDFs with another font | Font | PocketBook | 4 | 11-12-2010 08:27 AM |
Viewing Textbook PDFs... | NJReader | enTourage Archive | 4 | 08-17-2010 05:17 PM |
PRS-600 Restart bug while viewing PDFs? | conundrum | Sony Reader | 2 | 03-04-2010 08:46 PM |
More on viewing pdfs | dso371 | Bookeen | 8 | 03-11-2008 07:15 PM |
Viewing Untagged PDFs on Palm T|X | Eroica | Reading and Management | 3 | 12-10-2007 01:44 PM |