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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-22-2007, 08:13 PM   #1
kovidgoyal
Creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 22,660
Karma: 3473290
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Open source LRF viewer

libprs500 0.4.1 has an open source cross-platform LRF viewer that supports hyphenation (for english) and uses real fonts instead of the SONY's limited three. Use it from the command line (for the moment) by
Code:
lrfviewer mybook.lrf
Note that this is an initial implementation and so its bound to be buggy. I've only tested it with LRF files generated by recent versions of libprs500. Also the current implementation is slow/memory intensive, so I doubt its suitable for use on handhelds. I will work on speeding it up when I get the time.

It doesn't support the DrawChar tag as yet (Used to make drop-caps) and the search functionality is not implemented.
Attached Thumbnails
Click image for larger version

Name:	lv1.png
Views:	1553
Size:	67.7 KB
ID:	5738   Click image for larger version

Name:	lv2.png
Views:	1176
Size:	76.6 KB
ID:	5739   Click image for larger version

Name:	lv3.png
Views:	1084
Size:	90.6 KB
ID:	5740   Click image for larger version

Name:	lv4.png
Views:	1044
Size:	82.9 KB
ID:	5741   Click image for larger version

Name:	lv5.png
Views:	1054
Size:	102.9 KB
ID:	5742  
kovidgoyal is online now   Reply With Quote
Old 09-22-2007, 09:11 PM   #2
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: 34,652
Karma: 14439052
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Is it going to support full justification instead of left justification?
__________________
JSWolf is offline   Reply With Quote
 
Enthusiast
Old 09-22-2007, 09:30 PM   #3
Bob Russell
Gadget Fan
Bob Russell ought to be getting tired of karma fortunes by now.Bob Russell ought to be getting tired of karma fortunes by now.Bob Russell ought to be getting tired of karma fortunes by now.Bob Russell ought to be getting tired of karma fortunes by now.Bob Russell ought to be getting tired of karma fortunes by now.Bob Russell ought to be getting tired of karma fortunes by now.Bob Russell ought to be getting tired of karma fortunes by now.Bob Russell ought to be getting tired of karma fortunes by now.Bob Russell ought to be getting tired of karma fortunes by now.Bob Russell ought to be getting tired of karma fortunes by now.Bob Russell ought to be getting tired of karma fortunes by now.
 
Bob Russell's Avatar
 
Posts: 5,217
Karma: 545637
Join Date: May 2004
Location: Pittsburgh, PA
Device: iPad, Droid Charge
Wonderful.... this provides a spark of hope for long term readability of the non-DRM'd BBeB files!
Bob Russell is offline   Reply With Quote
Old 09-22-2007, 10:04 PM   #4
kovidgoyal
Creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 22,660
Karma: 3473290
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by JSWolf View Post
Is it going to support full justification instead of left justification?
Not sure what you mean by "full" justification. It already supports hyphenation.
kovidgoyal is online now   Reply With Quote
Old 09-22-2007, 10:06 PM   #5
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: 34,652
Karma: 14439052
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by kovidgoyal View Post
Not sure what you mean by "full" justification. It already supports hyphenation.
The Sony Reader supports full justification but not hyphenation.

Full justification is where the right edge is not ragged. Like in most dead tree books.
__________________
JSWolf is offline   Reply With Quote
Old 09-22-2007, 10:11 PM   #6
RWood
Technogeezer
RWood is considered a powerful good luck charm in most of the civilised world.RWood is considered a powerful good luck charm in most of the civilised world.RWood is considered a powerful good luck charm in most of the civilised world.RWood is considered a powerful good luck charm in most of the civilised world.RWood is considered a powerful good luck charm in most of the civilised world.RWood is considered a powerful good luck charm in most of the civilised world.RWood is considered a powerful good luck charm in most of the civilised world.RWood is considered a powerful good luck charm in most of the civilised world.RWood is considered a powerful good luck charm in most of the civilised world.RWood is considered a powerful good luck charm in most of the civilised world.RWood is considered a powerful good luck charm in most of the civilised world.
 
RWood's Avatar
 
Posts: 7,237
Karma: 148836
Join Date: Nov 2006
Location: Virginia, USA
Device: Sony PRS-500
This is a wonderful addition to libprs500. Karma is on its way.
RWood is offline   Reply With Quote
Old 09-22-2007, 10:13 PM   #7
kovidgoyal
Creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 22,660
Karma: 3473290
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by JSWolf View Post
The Sony Reader supports full justification but not hyphenation.

Full justification is where the right edge is not ragged. Like in most dead tree books.
That's achieved by hyphenation, so yes.
kovidgoyal is online now   Reply With Quote
Old 09-22-2007, 10:13 PM   #8
kovidgoyal
Creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 22,660
Karma: 3473290
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by RWood View Post
This is a wonderful addition to libprs500. Karma is on its way.
Thanks.
kovidgoyal is online now   Reply With Quote
Old 09-22-2007, 10:34 PM   #9
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: 34,652
Karma: 14439052
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by kovidgoyal View Post
That's achieved by hyphenation, so yes.
Yes to full justification is going to be added to the viewer in some later version?
__________________
JSWolf is offline   Reply With Quote
Old 09-22-2007, 10:43 PM   #10
kovidgoyal
Creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 22,660
Karma: 3473290
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It's already there.
kovidgoyal is online now   Reply With Quote
Old 09-22-2007, 10:53 PM   #11
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: 34,652
Karma: 14439052
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
If you look at the photo I have attached, what you will see is left justified, not full justified.
Attached Thumbnails
Click image for larger version

Name:	leftjustified.PNG
Views:	897
Size:	58.0 KB
ID:	5760  
__________________
JSWolf is offline   Reply With Quote
Old 09-22-2007, 11:06 PM   #12
kovidgoyal
Creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 22,660
Karma: 3473290
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Ahh I see, you mean adjusting the space between words so that the line ends at the same point. Yeah I can do that, but I'm not sure it's a desirable goal. The SONY reader does it and I think it looks worse. Of course, with hyphenation it doesn't look as bad since the adjustments to wordspacing are typically smaller.
kovidgoyal is online now   Reply With Quote
Old 09-22-2007, 11:10 PM   #13
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: 34,652
Karma: 14439052
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
If Sony supported Hyphenation, then the word spacing would almost be the same on every line. You might have the odd line here or there where auto-hyphenation won't work, but it would look better overall. The best way to do hyphenation is to use a dictionary to lookup the words.
__________________
JSWolf is offline   Reply With Quote
Old 09-22-2007, 11:21 PM   #14
kovidgoyal
Creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 22,660
Karma: 3473290
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
My viewer does precisely that. It uses the Liang hyphenation algorithm, which is the same as that used in Tex. However to achieve perfect justification you have to combine that with flexible word spacing, which works well in books that have small print, but I don't think it looks so good at the larger sizes at which electronic documents are typically viewed.
kovidgoyal is online now   Reply With Quote
Old 09-22-2007, 11:24 PM   #15
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: 34,652
Karma: 14439052
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Well to be honest, other then the hyphenation, it looks like we are viewing on a simulated Libre. I do think full justification would look fine. I get it justified using MS Reader on my computer and I have no complaints that it's not left justified.
__________________
JSWolf is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[old-topic]ebook-viewer: Open source, crossplatform viewer for EPUB, LIT, MOBI, etc kovidgoyal Calibre 68 05-30-2011 08:46 PM
Open source bradrice Mobi 2 12-21-2009 09:30 AM
Source for iRex Univ. Document Viewer? mlim iRex 1 08-19-2009 11:46 AM
iRex and Open Source jrial iRex 8 03-03-2009 10:34 AM
iLiad Is source code of iLiad image viewer available? ericshliao iRex Developer's Corner 1 01-16-2008 02:24 AM


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


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