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

Go Back   MobileRead Forums > E-Book Formats > Other formats > LRF

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 09-24-2007, 11:48 AM   #181
cacapee
Connoisseur
cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.
 
Posts: 77
Karma: 1393
Join Date: Aug 2007
Location: Santa Monica
Device: prs-500
Fixing white space marks can be done by using the Trim% feature. Click preview and move the left, top, bottom, right markers so that you crop out what you don't need. You don't have to be very accurate since pdflrf's whitespace removal takes care of the rest.
cacapee is offline  
Old 09-24-2007, 12:27 PM   #182
ereszet
Zealot
ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.
 
ereszet's Avatar
 
Posts: 118
Karma: 306
Join Date: Sep 2007
Device: Sony PRS-500 Archos 704 wifi
Moving the post from one thread to another

JSWolf, I see that you moved my Software Tools post from Reader Accessories to this thread. It is all right with me but it discontinues the logical thread from Paper to Reader, including the hardware setup. I will make aware visitors to Acessories about tha move. However, I am not sure how to refer them to the new place of my post. I can only find it by searching for my own posts and not for number 177. How do one finds post number 177?
ereszet is offline  
Advert
Old 09-24-2007, 12:44 PM   #183
ereszet
Zealot
ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.
 
ereszet's Avatar
 
Posts: 118
Karma: 306
Join Date: Sep 2007
Device: Sony PRS-500 Archos 704 wifi
Whitespace removal

Quote:
Originally Posted by cacapee View Post
Fixing white space marks can be done by using the Trim% feature. Click preview and move the left, top, bottom, right markers so that you crop out what you don't need. You don't have to be very accurate since pdflrf's whitespace removal takes care of the rest.
It is a great feature of pdflrf but it will not work with book pages whose margins change from page to page (like a lot of them available in digital libraries or in photos taken without a cradle and a tripod). In addition, white space removal (another magnificent feature of pdflrf) will not work with whitespace stained by black spots or blobs. You get a lot of them in photos of old books or if you split double pages in two (black/gray shadow in the middle of the original photo becomes black/gray shadow at the margins of the resulting two pages. It shows as black lines/blobs after converting to black and white. So a number of books require preprocessing before going to pdflrf. I will post my experience with that at a later stage, if you believe that my Software Tool theme belongs to this thread.

BTW. I take my photos with the black background, so I use programs to remove black background first and whitespace after that.
ereszet is offline  
Old 09-24-2007, 01:27 PM   #184
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by ereszet View Post
JSWolf, I see that you moved my Software Tools post from Reader Accessories to this thread. It is all right with me but it discontinues the logical thread from Paper to Reader, including the hardware setup. I will make aware visitors to Acessories about tha move. However, I am not sure how to refer them to the new place of my post. I can only find it by searching for my own posts and not for number 177. How do one finds post number 177?
#177 in this thread. Each post in a thread is numbered. So just go to the page and post with #177.
JSWolf is offline  
Old 09-24-2007, 02:10 PM   #185
cacapee
Connoisseur
cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.
 
Posts: 77
Karma: 1393
Join Date: Aug 2007
Location: Santa Monica
Device: prs-500
Have you loooked into unpaper?
cacapee is offline  
Advert
Old 09-24-2007, 03:05 PM   #186
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by cacapee View Post
Have you loooked into unpaper?
What is unpaper?
JSWolf is offline  
Old 09-24-2007, 03:10 PM   #187
cacapee
Connoisseur
cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.
 
Posts: 77
Karma: 1393
Join Date: Aug 2007
Location: Santa Monica
Device: prs-500
http://unpaper.berlios.de/

I haven't personally used it.
cacapee is offline  
Old 09-24-2007, 03:11 PM   #188
NatCh
Gizmologist
NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.
 
NatCh's Avatar
 
Posts: 11,615
Karma: 929550
Join Date: Jan 2006
Location: Republic of Texas Embassy at Jackson, TN
Device: Pocketbook Touch HD3
best Google-guess: http://unpaper.berlios.de/
NatCh is offline  
Old 09-24-2007, 05:11 PM   #189
ereszet
Zealot
ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.
 
ereszet's Avatar
 
Posts: 118
Karma: 306
Join Date: Sep 2007
Device: Sony PRS-500 Archos 704 wifi
Unpaper

Quote:
Originally Posted by cacapee View Post
Have you loooked into unpaper?
I was in touch with the author a few weeks ago to learn how to pipe jpg images to unpaper and save results as jpg as well. His advice was good for Linux but I have not managed to repeat it in DOS yet (however the DOS version packaged in pdfread works well with ppm/pbm/pgm).

Both versions - Linux and DOS - work nicely in batch mode. After experimenting with some parameters one can clean the image from black spots, lines and blobs with the result being masks (or blocks of text/image) surrounded by whitespace. His algorithm for conversion to black and white is based on the threshold method, which is not sufficient for poor quality originals. One has to keep in mind that even with cleaning parameters adjusted to clean one page, the processing may damage other pages by removing the text as well.

A nice feature of unpaper is splitting of double pages and replacing the dark shadow between the pages or at the margins with whitespace.

I asked the author to consider trimming the white space automatically once the program recognized the masks. He may do that in the future but not too soon.

For now, it is a good free preprocessing tool for pdflrf.
ereszet is offline  
Old 09-24-2007, 05:15 PM   #190
ereszet
Zealot
ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.
 
ereszet's Avatar
 
Posts: 118
Karma: 306
Join Date: Sep 2007
Device: Sony PRS-500 Archos 704 wifi
Linear mode

Quote:
Originally Posted by JSWolf View Post
#177 in this thread. Each post in a thread is numbered. So just go to the page and post with #177.
It was not possible for me in the hybrid mode. Only now I discovered that posts are numbered sequentially in linear mode.
ereszet is offline  
Old 09-24-2007, 05:29 PM   #191
ereszet
Zealot
ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.
 
ereszet's Avatar
 
Posts: 118
Karma: 306
Join Date: Sep 2007
Device: Sony PRS-500 Archos 704 wifi
whitespace and preprocessing

Quote:
Originally Posted by cacapee View Post
Fixing white space marks can be done by using the Trim% feature. Click preview and move the left, top, bottom, right markers so that you crop out what you don't need. You don't have to be very accurate since pdflrf's whitespace removal takes care of the rest.
A poor quality original jpg is attached. Pdflrf can do little to improve it unless one manually trims the black margins (different for different pages), see the attached lrf file.
After preprocessing with ClearImage (demo version) and Finereader8 (commercial) the jpg is much improved although some black lines at the margin remain (more aggresive preprocessing would remove parts of text as well). Then, pdflrf can be used more effectively.

BTW. The image is a photoscan of a 1914 Russian calendar. I can make a better photo of it by zooming to individual rather than double pages, putting white paper to avoid effects of transparency, etc., but the photo in example is just to make my point about the need for preprocessing.
Attached Thumbnails
Click image for larger version

Name:	russian original.jpg
Views:	584
Size:	204.8 KB
ID:	5805   Click image for larger version

Name:	russian preprocessed.jpg
Views:	590
Size:	103.6 KB
ID:	5806  
Attached Files
File Type: lrf russian.lrf (39.2 KB, 371 views)
File Type: lrf russian preprocessed.lrf (35.5 KB, 373 views)
ereszet is offline  
Old 09-24-2007, 07:37 PM   #192
cszhy
Member
cszhy began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Aug 2007
Device: sony reader
Quote:
Originally Posted by cacapee View Post
PM me a link to the file. I'll see what the problem is.
It's in Chinese , thanks
Attached Files
File Type: pdf test.pdf (3.34 MB, 480 views)
cszhy is offline  
Old 09-25-2007, 03:43 AM   #193
bookworm
Junior Member
bookworm began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2007
Device: ereader
Cacapee.
Thanks for your good program. However, is there a way that you can use the size button (S M L) on the Sony ereader with your program. After converting to LRF file the sizing does not work.
Thanks
bookworm is offline  
Old 09-25-2007, 05:50 AM   #194
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by bookworm View Post
Cacapee.
Thanks for your good program. However, is there a way that you can use the size button (S M L) on the Sony ereader with your program. After converting to LRF file the sizing does not work.
Thanks
The size button won't work. pdflrf converts the PDF into images in LRF format. Sinze the resulting file is not text, you cannot change the font size. It's also not relflowable. So what you get is what you see.
JSWolf is offline  
Old 09-25-2007, 06:48 AM   #195
ereszet
Zealot
ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.
 
ereszet's Avatar
 
Posts: 118
Karma: 306
Join Date: Sep 2007
Device: Sony PRS-500 Archos 704 wifi
Size button

Quote:
Originally Posted by JSWolf View Post
The size button won't work. pdflrf converts the PDF into images in LRF format. Sinze the resulting file is not text, you cannot change the font size. It's also not relflowable. So what you get is what you see.
I am under impression that the size button works sometimes with pdf files (S and M), because the Reader tries to trim the white margins. After trimming the whitespace with pdflrf there is no longer room for expansion.

However, if you convert pdf to images, you can scale them up. Let us wait for cacapee to provide the png output.
ereszet is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
soPdf - Better than Yet another PDF to LRF converter theguru PDF 197 11-20-2012 04:54 PM
comiclrf - Comics(CBZ) to LRF converter FangornUK LRF 274 06-16-2010 02:24 PM
Book Processor - Anything to LRF and HTML converter LittleDragon Sony Reader 11 05-13-2008 04:31 PM
Quick/easy LIT to LRF converter? OUTATIME Sony Reader Dev Corner 10 02-29-2008 09:44 AM
Anyone else want chm to lrf converter? buster Sony Reader 10 02-09-2008 05:07 PM


All times are GMT -4. The time now is 09:03 PM.


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