View Full Version : BBeB (LRF) generation tools


igorsk
11-01-2006, 09:23 AM
Just thought I'd make a list, since many people are not aware these tools exist.

1) MakeLRF
The first tool, released even before Sony's own LIBRIe addons. Converts a text file.
http://www.sven.de/librie_files/
http://groups.yahoo.com/group/librie/files/ContentGeneration/
Has a GUI, MakeLRFGUI:
http://groups.yahoo.com/group/librie/files/ContentGeneration/
2) Sony's LIBRIe addons (mostly in Japanese, and mostly require LIBRIe):
http://www.sven.de/librie/Librie/AddonSoftware
How to install Printer for LIBRIe without a LIBRIe. (http://www.mobileread.com/forums/showpost.php?p=40191&postcount=13)
3) flatLRF, a Java tool which can convert whole sites to an LRF book.
http://monalipse.sourceforge.jp/tmp/lrf/
4) Book Creator, an official tool by Canon. Probably the most complete solution, however it is not distributed freely anymore.
http://ps.canon-sol.jp/bc/index.html
5) lrs2lrf, a command-line tool which uses a DLL from Book Creator to compile a Xylog XML (BBeB source format) .lrs file into an .lrf
http://groups.yahoo.com/group/librie/files/ContentGeneration/
6) BookDesigner.
A multi-format conversion tool which can also output LRF files, using the same DLL from Book Creator.
http://www.mobileread.com/forums/showthread.php?t=7897 Is this an "official URL"?
7) Libriate, a Mac OS X GUI for makelrf
http://jfarlow.com/preciousgem/libriate/libriate.html
8) BBeBook, a Java port of makelrf
http://www.mobileread.com/forums/showpost.php?p=45205&postcount=5
http://groups.yahoo.com/group/librie/files/ContentGeneration/
9) HTML2LRF. Converts one or several HTML files to an LRF. Uses DLLs from Toolbar for LIBRIe.
http://www.mobileread.com/forums/showthread.php?t=8368

Tools for already compiled LRF files:
1) EditLRFMeta. Edits meta-information (Author, Title, etc).
http://editlrfmeta.peterknowles.com/
2) LRFParser. Parses an LRF file, dumps all tags and streams:
http://groups.yahoo.com/group/librie/files/ContentGeneration/
http://www.sven.de/librie_files/
3) LrfConvCLI. Uses flatLRF library to convert an LRF to an XML format used by flatLRF.
4) lrf2lrs. A Python tool, tries to convert an LRF to a Xylog XML .lrs file.

NatCh
11-01-2006, 11:19 AM
Nice, igorsk, I'd found most of these, but there are a few I'd missed. Having a list all together is excellent. Thanks!

heavyB
11-01-2006, 03:06 PM
Canon's site regarding Book Creator is difficult to navigate, much less understand, even with Google's amazing translation abilities.

Does anyone know how to get ahold of an 'evaluation' copy? Of course if there was an english version, that would be nice as well.

I know this kind of discussion is a grey area, but there doesn't seem to be much of a legitimate venue for purchasing this software for individual use. If I'm wrong, please show me the way.

Thanks!

Bob Russell
11-01-2006, 03:10 PM
This deserves another sticky status.. certainly at least until the info gets into the wiki.
Ooops... went to do it and found it's already sticky! Excellent.

igorsk
11-01-2006, 03:19 PM
Does anyone know how to get ahold of an 'evaluation' copy? Of course if there was an english version, that would be nice as well.

First news item on that site says "Evaluation version distribution stopped".
That said, I think someone posted a link to reuploaded version in the librie yahoo group. The translated .exe is also available there.

JazZi
11-07-2006, 06:14 PM
I actually like Book Designer. Unfortunately, it doesn't convert to LRF using advanced features. It would be nice if someone could tweak it to allow conversion using advanced features, rather than very simple configuration.

igorsk
11-07-2006, 06:17 PM
vvv is going to adapt it for the Reader when he gets his own (not sure when that's going to happen though).

BuddyBoy
11-07-2006, 08:39 PM
vvv is going to adapt it for the Reader when he gets his own (not sure when that's going to happen though).Those of us who love book designer should all chip in $30-50 and buy him one!

vvv
11-07-2006, 10:44 PM
Those of us who love book designer should all chip in $30-50 and buy him one!
Thank you, folk. But there is no problem to bay while it was a problem with the shipment. However it seems it is resolved so I hope to get the device next week.

One proposal. It seems the lrf reader has been improved: now it can processes well non-paginated lrf-files. However there is still one important feature which is not supported: soft hyphenations. So I suggest to everybody who likes good-looking books: WRITE to Sony requesting this feature.

JazZi
11-08-2006, 03:00 AM
vvv is going to adapt it for the Reader when he gets his own (not sure when that's going to happen though).


That's great news!

JazZi
11-08-2006, 03:02 AM
One proposal. It seems the lrf reader has been improved: now it can processes well non-paginated lrf-files. However there is still one important feature which is not supported: soft hyphenations. So I suggest to everybody who likes good-looking books: WRITE to Sony requesting this feature.

Forgive my ignorance, but what is soft-hyphenation, and why is it important that it be implemented by Sony?

scotty1024
11-08-2006, 06:07 AM
8) BBeBook, a Java port of makelrf
http://www.mobileread.com/forums/showpost.php?p=45205&postcount=5
http://groups.yahoo.com/group/librie/files/ContentGeneration/


BBeBook may have started from a port of makelrf to Java but has gone quite a bit further than makelrf ever did.

All makelrf could really do was convert plain text into LRF's, no HTML markup at all, no entity operators. No image processing to make the thumbnail from the front cover image, no PDF parsing or rasterizing and needed an external GUI being purely a command line only tool.

BBeBook is focused on creating re-flowable BBeB documents from plain text, HTML and PDF's. It offers full support for all of the Dublin Core meta data and is Unicode clean. It can also rasterize PDF's into "picture" books.

scotty1024
11-08-2006, 06:22 AM
It seems the lrf reader has been improved: now it can processes well non-paginated lrf-files.

I've been fiddling with BBeBook to explore the limits of the Reader. Very promising indeed. I've also noticed that BBeB's are more stable than PDF's. I can lock up the Reader very easily feeding it PDF documents. I've yet to hang it once feeding it my entire collection of BBeBook generated LRF content (100's of documents).

But I don't know why you are so anxious about soft-hyphens. Personally I'd put far more weight behind them supporting real headers and footers in re-flow mode. As well as anchors and links. Inline font changes and support for inline images. Then a command or two for text alignment would be nice.

About then I might start feeling the lack of soft hyphens.

igorsk
11-08-2006, 08:04 AM
Personally I'd put far more weight behind them supporting real headers and footers in re-flow mode. As well as anchors and links. Inline font changes and support for inline images. Then a command or two for text alignment would be nice.

BBeB supports all of this.

vvv
11-08-2006, 02:01 PM
But I don't know why you are so anxious about soft-hyphens.
Because they are font-independent.

When a book is hyphenated hardly, the hyphenation signs will be at the needed places only for the font size chosen during the text pre-parsing (let's say "S"). But as soon as one changes the font size (let's say by "M"), these symbols will fly in an unpredictable way.

The simplest way to avoid this is to hyphenate a book softly. A reader supported soft hyphens (AD) shows the hyphenation signs at the needed places independently on the font (newer mind S, M, or L size is chosen in Sony Reader - the hyphens will be always positioned correctly).

bingle
11-08-2006, 07:07 PM
BBeBook is focused on creating re-flowable BBeB documents from plain text, HTML and PDF's. It offers full support for all of the Dublin Core meta data and is Unicode clean. It can also rasterize PDF's into "picture" books.

Is there a place other than the Yahoo groups to get the most recent version? I hate dealing with Yahoo's ridiculous sign-in and account management.

Alexander Turcic
11-11-2006, 06:38 AM
With the consent from the folks who originally uploaded the files to Yahoo, we could host the files here as well. Is anyone in contact with them?

Stingo
11-22-2006, 10:59 AM
When I download LRF files from the Manybooks online site they flow and apparently are soft hyphenated. I can change the font and the margins align at each size. According to the web site notes they seem to use Makelrf 0.3. I have tried that program and my lrfs do not come out with soft hyphens. Is there any software out there now that will create lrfs with soft hyphens?

NatCh
11-22-2006, 12:36 PM
Perhaps they replaced all the hyphens in the text with soft hyphens before they ran it through Makelrf? That's just a guess. :shrug:

fireproof
11-23-2006, 11:58 AM
When I download LRF files from the Manybooks online site they flow and apparently are soft hyphenated. I can change the font and the margins align at each size. According to the web site notes they seem to use Makelrf 0.3. I have tried that program and my lrfs do not come out with soft hyphens. Is there any software out there now that will create lrfs with soft hyphens?

Seriously, I do use makelrf 0.3! (I just checked my script to be certain).

The text files from PG are converted to an interim HTML, as a first step. That includes reflowing all the linebreaks using "gut".

After that, depending on the output format, extra linefeeds are removed, HTML tags are stripped, and the temp text file is saved as book.txt.

The script makes an info.xml and a image.gif file for makelrf to use, and then runs a command like this:

makelrf -x info.xml -o outputfile.lrf -i /tmp/image.gif -a "Author Name" /tmp/image.gif -f '/tmp/book.txt'

Perhaps your text files have hard line-breaks at the end of each line?

Stingo
11-23-2006, 05:48 PM
Your guess was right. The document that I used to test RTF2LRF had hard returns. Have now done several others without a prob. Thanks.

alex_d
12-13-2006, 03:23 AM
There's so many apps mentioned in this thread and in others. Can we maybe make a wiki that organizes it all? I'm finding myself a bit overwhelmed.

Vienna01
01-01-2007, 02:30 PM
I've posted this in threads for other conversion software but I thought it would be useful for Book Designer which I think is and excellent tool. I know that plans "are afoot" to take care of hard CRs. Maybe the following would be appropriate also.
I think would be helpful in ALL the programs that generate file formats that present well on the SONY Reader.

I find reading a bit awkward when one part of the sentence is on one page and one on the next page. I think an orphan control feature would be helpful. Maybe it needs to be more complex than IF SENTENCE DOESN"T FIT GO TO NEW PAGE because with large font size(TR 16-TR18)and small display size , long sentences would leave some pages very short as they are moved to the next page. Maybe for sentences less than ## characters the rule would hold but for other a break in the sentence across pages would be "a necessary evil" <grin>

cmumford
01-14-2007, 09:06 PM
There's so many apps mentioned in this thread and in others. Can we maybe make a wiki that organizes it all? I'm finding myself a bit overwhelmed.
I thought the same thing. I put together a Wiki page (http://code.google.com/p/bbebinder/wiki/OtherLrfTools) on the BBeB Binder site. After I did that I came across this page (http://wiki.mobileread.com/wiki/Sony_Portable_Reader) on the MobileRead Wiki. I like mine better :wink:, but I'm not sure which is most up to date.

RWood
01-14-2007, 10:04 PM
We are in the process of putting together a new conversion page for the MobileRead Wiki located at http://wiki.mobileread.com/wiki/E-book_conversion

It is still a work in progress and I hope to finish it by Monday night (Eastern US time.) The goal is to incorporate the latest references from within MobileRead and external references for the code where needed.

As always, comments, suggestions, and corrections are welcome (requested, wanted.)

Azayzel
01-18-2007, 07:29 PM
I've found PDFRastafarian (the latest beta) to be the best convertor so far for PDF's. This program is simply amazing with what it does to the PDF's I have (many just weren't quite readable as they were and this made them fit perfect). I don't really care too much for the auto-margin option, as it hasn't worked as expected (had a few teeny-tiny books as a result; e.g., postage stamp size!).

I've also used lit2lrf-0.5 with pretty good success, though I don't care too much for the way it totally ermoves margins in the resultant lrf (I tend to like a little white space around the edges, as it's easier for me to follow the flow). Still a great product!

I'd like to try BBeBook, but I've yet to find a compiled version and don't want to fiddle with compiling it myself. I checked the Yahoo group and the compiled jar errored out, seemed to be missing a "main class manifest" and the other jar include didn't seem to do anything but open PDF's. Perhaps someone could point me in the right direction to a step-by-step guide, if there is one. If not, perhaps someone could write on up?

These tools are excellent, hopefully more people will rate what their favorites are and what they like/dislike about them to help guide up n00bs.

alex_d
01-19-2007, 03:47 AM
:p thanks re pdfrasterfarian. p.s. i've fixed the postage-stamp bug in 2.1.4

Andanzas
06-15-2007, 10:50 PM
Hello there!

I would like to learn how to create ebooks for my Sony Reader but I have a hard time reading on the screen of my PC... Is there any tutorial easily readable on the Sony Reader?

NatCh
06-16-2007, 01:19 AM
This one (http://www.mobileread.com/forums/showthread.php?t=10313)Isn't formatted for the Reader (too many graphics) but it is only 35 pages, so it's relatively short to print out. That might get you some distance. :shrug:

Andanzas
06-16-2007, 03:57 AM
Thanks!

I forgot to mention that I don't have a printer at the moment, but I guess I should print it at my local Kinkos.

PS: Isn't it ironic that none of these tutorials are meant to be read on the Reader? :p

HarryT
06-16-2007, 04:05 AM
PS: Isn't it ironic that none of these tutorials are meant to be read on the Reader? :p

No. I wrote my tutorial (the one which amuses you so much) to be read on the PC, because that is the platform on which it shows you how to create books. That way you can have the instructions and the actual tool you're using (Book Designer in the case of my tutorial) alongside each other on the screen. This strikes me as a sensible approach.

Andanzas
06-16-2007, 04:11 AM
I don't know why you think it amuses me. :blink: Actually, I am looking forward to read it.

NatCh
06-16-2007, 11:47 AM
It's probably that irony is usually considered a form of wry amusement, Andanzas. :nice:

For example, I find it ironic that you have difficultly reading things on a monitor, yet still have a computer but no printer -- but it's a gentle type of irony, the kind that means no offense. :wink2:

Andanzas
06-16-2007, 05:57 PM
I apologize if I sounded offensive, it was not my intention.

RWood
06-16-2007, 07:18 PM
Just for fun I decided to convert the copy I have of HarryT's excellent BookDesigner Tutorial to LRF format.

Please realize that I spent 1, maybe 2 minutes doing this because BD does so many things for you. It only identified 3 items as titles that were not titles. The other act of formatting that I did was to insert page breaks before each step.

The result is really quite nice although the graphics are a bit small they still work. Again, this was designed for reading on A4/letter sized paper, not for the Reader screen. But it does work.

I have also converted an operation/maintenance manual for one company that I work with for use on the Sony Reader and they are now at the field testing stage.

Again, I did not write this excellent manual, it was written completely by HarryT.

Andanzas
06-17-2007, 02:17 AM
Wow! Thank you very much! I agree with HarryT that it is better to read it on the PC because it is the platform on which you are going to use it, but for some people like me this adaptation might be useful.

Thanks again. :)

Andanzas
06-26-2007, 11:41 PM
I am trying to format some books from the Biblioteca Virtual Cervantes (which is the best resource I've found for ebooks in Spanish). When I try to open a file saved as htm in my hard drive, I get this error message in BookDesigner:

Missed css-files:

/css/obras.css
/fuentes/fuentes.css

Some formatting features may be lost.
Find the listed files and copy them to the \Tool\Css\ BookDesigner subdirectory.

What am I supposed to do now? :blink: (I followed the indications to install the newest version of BookDesigner.)

JSWolf
06-26-2007, 11:44 PM
Do the Spanish books look ok? Do you really need those css files? If everything looks ok and you can format it how you want, then don't worry.

Andanzas
06-27-2007, 12:38 AM
No, they don't load correctly. :( The only thing that shows up is the final message:

This file was created with BookDesigner program
bookdesigner@the-ebook.org
6/26/2007

By the way, I didn't have this problem before updating BookDesigner.

JSWolf
06-27-2007, 12:40 AM
Try the following...

Load the HTML into your browser. Next save it as a complete web page. Then load the new HTML copy into BD and see how it goes. It's be interested to find out.

Andanzas
06-27-2007, 01:29 AM
Now I get this error message:


eReference Embedding

Cannot open windows registry

That looks like an installation problem, doesn't it? I guess I'll reinstall.

JSWolf
06-27-2007, 02:08 AM
Now I get this error message:



That looks like an installation problem, doesn't it? I guess I'll reinstall.
Do you by any chance not have Microsoft Word installed?

Andanzas
06-27-2007, 02:55 AM
Yes, I have Word 2000. Mmm, I just opened it to check my version and I got the same error message:

eReference Embedding

Cannot open windows registry

Strange. I didn't notice any problem with Word before.

JSWolf
06-27-2007, 10:48 AM
When you load in a file to Book Designer, it sometimes uses Word to do the conversion to a format it understands. Looks like you will have to reinstall Word in order to ge BD to work. Good Luck!

ns66
07-12-2007, 12:21 AM
Hi,

I need a simple utility to convert lots of txt or html files (some without extension even though they are txt or html) to lrf, or rtf, whatever format that can be easily read in sony reader, with no border, no need for special layout, just quick and batch, need to support unicode

I can code java very well, but I don't know anything about lrf or rtf format, if there's such module or code samples on that side that will help, I can easily build the rest.

I prefer not to install a whole package of things that i won't use. so far i copy and paste/merge into MS word and save as rtf, that works but can't batch. any java lib for rtf or lrf available?

thanks

ns66
07-12-2007, 12:30 AM
one problem with MS word is, some documents have line breaks per 80 column, it's pain to merge lines one by one, global replace of all line break will erase paragraphs, any idea?:blink:

JSWolf
07-12-2007, 12:47 AM
one problem with MS word is, some documents have line breaks per 80 column, it's pain to merge lines one by one, global replace of all line break will erase paragraphs, any idea?:blink:
It's not a problem with Word at all. It may be a problem with the text file's poor formatting. If the paragraphs have some way of being identified like say a line space then all you do is search/replace for double paragraph ends and replace with something else not in the text. Then fix the line ends and finally replace the orogianl replace with a single line end followed by 4 spaces to denote the beginning of paragraphs.

example....
This is a test of the
emergency broadcast
system.

I hope you
have passed the test.

Pass 1...
This is a test of the
emergency broadcast
system.@@@I hope you
have passed the test.
Pass 2...
This is a test of the emergency broadcast system.@@@I hope you have passed the test.
Pass 3...
This is a test of the emergency broadcast system.
I hope you have passed the test.

and done

RWood
07-12-2007, 01:02 AM
In the Conversion Tools section of the MobileRead Wiki (there is a link to the Wiki on the top left of this page) it lists a macro by Stingo that works in MS Word. I have used it for a long time and it works wonders on files with hard returns at the end of each line. (Like the files you get from Gutenberg.)

ns66
07-12-2007, 01:42 AM
@JSWolf, a bit pain but could try that

@RWood, that sounds nice, will check it out

thanks