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

Go Back   MobileRead Forums > E-Book Formats > PDF

Notices

Reply
 
Thread Tools Search this Thread
Old 01-16-2019, 11:13 PM   #1666
willus
Fuzzball, the purple cat
willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.
 
willus's Avatar
 
Posts: 1,038
Karma: 8416109
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by abe1 View Post
I use that settings because that's how converting my bangla books works properly. Check the differance between 0.200 vs 0.001

The other settings are pointless however. I just checked. I don't know which settings does what. Just checked/unchecked settings as I went along till I found a good one. It's not perfect however. But it's good enough.
Look closely at your example--see attached. By using -ws -0.001, you've encouraged k2pdfopt to break a "double-row" of text in the middle of that double row--this causes the words to be out of order in the converted PDF. What gives a correct conversion is to increase the value of -gtr, e.g. -gtr 0.1 instead of -gtr 0.05.

Also--the -as option isn't necessary on your particular source document since it is a computer-generated PDF and is perfectly straight. It doesn't hurt except that it burns extra cpu. And why are you using -r to convert right-to-left? Isn't Bengali read left to right?

I don't mind at all that you shotgun your solution until you find something that works, or that you are trying to post helpful answers in this thread, but I do think you should fully understand your settings before recommending them to other users in this forum.
Attached Thumbnails
Click image for larger version

Name:	ws_example.png
Views:	10
Size:	104.7 KB
ID:	169145  
willus is offline   Reply With Quote
Old 01-17-2019, 03:33 PM   #1667
abe1
Junior Member
abe1 invented the internet.abe1 invented the internet.abe1 invented the internet.abe1 invented the internet.abe1 invented the internet.abe1 invented the internet.abe1 invented the internet.abe1 invented the internet.abe1 invented the internet.abe1 invented the internet.abe1 invented the internet.
 
Posts: 9
Karma: 84406
Join Date: Jan 2019
Device: Kindle 5 (2012)
Quote:
Originally Posted by willus View Post
Look closely at your example--see attached. By using -ws -0.001, you've encouraged k2pdfopt to break a "double-row" of text in the middle of that double row--this causes the words to be out of order in the converted PDF. What gives a correct conversion is to increase the value of -gtr, e.g. -gtr 0.1 instead of -gtr 0.05.

Also--the -as option isn't necessary on your particular source document since it is a computer-generated PDF and is perfectly straight. It doesn't hurt except that it burns extra cpu. And why are you using -r to convert right-to-left? Isn't Bengali read left to right?

I don't mind at all that you shotgun your solution until you find something that works, or that you are trying to post helpful answers in this thread, but I do think you should fully understand your settings before recommending them to other users in this forum.
I tried with -gtr 0.1 but it doesn't work. It makes these weird output..
This only happens when using the "gtr" option.. And if I don't use "gtr" some lines becomes smaller as I've shown before.




This is how it should look for example. The last line is shown.



This happen in my settings too but to a much lesser extent. Please help me fix it if you can. I understand this is a foreign language. What's happening is the software is separating the top/bottom 'signs' from them.

I'm attaching the file so you can take a look.

Manto.pdf

Thanks.

P.S. Yes Bangla isn't right-to-left. No idea how that got turned on.

Last edited by abe1; 01-17-2019 at 03:38 PM.
abe1 is offline   Reply With Quote
Old 01-18-2019, 12:37 AM   #1668
willus
Fuzzball, the purple cat
willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.
 
willus's Avatar
 
Posts: 1,038
Karma: 8416109
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by abe1 View Post
I tried with -gtr 0.1 but it doesn't work. It makes these weird output..
This only happens when using the "gtr" option.. And if I don't use "gtr" some lines becomes smaller as I've shown before.


This is how it should look for example. The last line is shown.
The source PDF is problematic because there are lines of text that don't have a clear gap between them (see attached), causing k2pdfopt to guess wrong at where it should cut them. Higher -gtr leads to more aggressive cutting, but, as you can see, sometimes it is overzealous. I can't find a set of options that work without some mistakes. I'd have to go back and see if the algorithm could be tweaked to work slightly better for this particular case.
Attached Thumbnails
Click image for larger version

Name:	text_overlap.png
Views:	5
Size:	47.9 KB
ID:	169155  
willus is offline   Reply With Quote
Old 01-18-2019, 10:35 AM   #1669
abe1
Junior Member
abe1 invented the internet.abe1 invented the internet.abe1 invented the internet.abe1 invented the internet.abe1 invented the internet.abe1 invented the internet.abe1 invented the internet.abe1 invented the internet.abe1 invented the internet.abe1 invented the internet.abe1 invented the internet.
 
Posts: 9
Karma: 84406
Join Date: Jan 2019
Device: Kindle 5 (2012)
Quote:
Originally Posted by willus View Post
The source PDF is problematic because there are lines of text that don't have a clear gap between them (see attached), causing k2pdfopt to guess wrong at where it should cut them. Higher -gtr leads to more aggressive cutting, but, as you can see, sometimes it is overzealous. I can't find a set of options that work without some mistakes. I'd have to go back and see if the algorithm could be tweaked to work slightly better for this particular case.
Thank for your hard work.
abe1 is offline   Reply With Quote
Old Yesterday, 02:33 PM   #1670
Loyd
Junior Member
Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!
 
Posts: 6
Karma: 80134
Join Date: Sep 2018
Device: none
Quote:
Originally Posted by willus View Post
Default options (i.e. no special options) seem to work pretty well. Not identical to abe1's conversion, but close.

Hello willus,

I need your help for the same file. In deed, after conversion, I loose resolution in the pdf (so the quality is not good while reading under my PW3). See attached files please.



Also, I need to know how can I specify the number of words per line wanted and the numbers of lines in each page after conversion ?

Thank your for your time !

Edit : I join the PDF again in this post
Attached Thumbnails
Click image for larger version

Name:	Original.jpg
Views:	3
Size:	66.2 KB
ID:	169256   Click image for larger version

Name:	After.jpg
Views:	3
Size:	78.3 KB
ID:	169257  
Attached Files
File Type: pdf M.pdf (203.6 KB, 0 views)

Last edited by Loyd; Yesterday at 03:03 PM.
Loyd is offline   Reply With Quote
Old Yesterday, 10:50 PM   #1671
willus
Fuzzball, the purple cat
willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.
 
willus's Avatar
 
Posts: 1,038
Karma: 8416109
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by Loyd View Post
I need your help for the same file. In deed, after conversion, I loose resolution in the pdf (so the quality is not good while reading under my PW3). See attached files please.
Also, I need to know how can I specify the number of words per line wanted and the numbers of lines in each page after conversion ?
Are you using the latest version of k2pdfopt (v2.51a)? Your output looks about right for a PW3. The document itself is computer-generated type, so it will scale well to any resolution, as your first image shows. The k2pdfopt output is bitmapped and therefore at a fixed resolution (300 dpi for the PW3). You can increase the "Document Resolution Factor" in the gui or use the -dr command-line option to improve the resolution, but there's not much point to going above 300 dpi since that is the resolution of your PW3. It will also cause the size of the output file (in bytes) to increase. Attached is a screenshot from using -dr 2 (which doubles the resolution to 600 dpi).

You cannot directly specify words per line or lines per page, but you can specify the size of the font in points the output file checking the "Fixed output font size" box and putting in the value you want, and this will indirectly determine the words per line and lines per page. You can also separately specify the vertical line spacing in the output file with the -vls option. E.g. putting -vls 2 in the "Additional options" box will double-space the output text. See attached screen shot for example.
Attached Thumbnails
Click image for larger version

Name:	dpi600.png
Views:	1
Size:	66.2 KB
ID:	169261   Click image for larger version

Name:	screenshot.png
Views:	1
Size:	147.6 KB
ID:	169262  
willus is offline   Reply With Quote
Reply

Tags
ebook apps, k5 tools, kindle tools, kindle touch, tools

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Viewing PDFs with another font Font PocketBook 4 11-12-2010 09:27 AM
Viewing Textbook PDFs... NJReader enTourage Archive 4 08-17-2010 06:17 PM
PRS-600 Restart bug while viewing PDFs? conundrum Sony Reader 2 03-04-2010 09:46 PM
More on viewing pdfs dso371 Bookeen 8 03-11-2008 08:15 PM
Viewing Untagged PDFs on Palm T|X Eroica Reading and Management 3 12-10-2007 02:44 PM


All times are GMT -4. The time now is 12:19 AM.


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