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

Go Back   MobileRead Forums > E-Book Devices > Sony Portable Reader PRS-500/505 > Reader PRS-500 Dev Corner

Welcome to the MobileRead Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community today, you will have fewer ads, access to post topics, communicate privately with other members, respond to polls, upload content and access many other special features.

If you have any problems with the registration process or your account login, please contact us.

Hint: Don't have time to visit us daily? Subscribe to our main RSS feed to receive our frontpage posts at your convenience.

Notices

Reader PRS-500 Dev Corner Linux, hacking and development of software and hardware (specific to the PRS-500)

Reply
 
Thread Tools Search this Thread Display Modes
Old 12-29-2006, 02:12 PM   #1
cmumford
Connoisseur
cmumford began at the beginning.
 
cmumford's Avatar
 
Posts: 68
Karma: 34
Join Date: Dec 2006
Location: Dallas, TX
Device: PRS-500
New tool: BBeB Binder

Hi there:

I just posted a new program that I wrote to create BBeB files. It's called "BBeB Binder", and it's homepage is at http://code.google.com/p/bbebinder. This version will read in HTML files, and allow you to modify and then convert them to BBeB's. The version that I'm working on now will take in text files as well, and attempt to reconstruct the paragraphs and chapters.

My next plan is to handle images, drawing elements, automatic table-of-contents generation, and to produce more aesthetic books with headers, footers, chapter beginnings, etc.

Sorry it's a .Net 2.0 application that relies on Internet Explorer for the HTML parsing - so this means that it's a Windows only program.

Would you guys mind installing BBeB Binder and giving it a spin?

Thanks!
cmumford is offline   Reply With Quote
Old 12-29-2006, 02:38 PM   #2
AndyQ
Enthusiast
AndyQ began at the beginning.
 
Posts: 38
Karma: 36
Join Date: Dec 2006
Device: Sony Reader PRS-500
It looks promising.

It loaded the sample html file fine and one other html file I had but it crashes on every other html file I try (including the README.htm file thats included with the program.
AndyQ is offline   Reply With Quote
Old 12-29-2006, 02:58 PM   #3
sic
Addict
sic will become famous soon enoughsic will become famous soon enoughsic will become famous soon enoughsic will become famous soon enoughsic will become famous soon enoughsic will become famous soon enough
 
Posts: 202
Karma: 692
Join Date: Oct 2006
Device: SONY reader
Is there a set of supported HTML tags?
It crashes for me too on the Readme.htm but I was able to convert a webpage I saved with Firefox.
sic is offline   Reply With Quote
Old 12-29-2006, 03:00 PM   #4
cmumford
Connoisseur
cmumford began at the beginning.
 
cmumford's Avatar
 
Posts: 68
Karma: 34
Join Date: Dec 2006
Location: Dallas, TX
Device: PRS-500
Quote:
Originally Posted by AndyQ
It looks promising.

It loaded the sample html file fine and one other html file I had but it crashes on every other html file I try (including the README.htm file thats included with the program.
Bummer - I thought I had that problem solved. Thanks for giving it a try and hopefully I can find out what's going on here.
cmumford is offline   Reply With Quote
Old 12-29-2006, 03:02 PM   #5
cmumford
Connoisseur
cmumford began at the beginning.
 
cmumford's Avatar
 
Posts: 68
Karma: 34
Join Date: Dec 2006
Location: Dallas, TX
Device: PRS-500
Quote:
Originally Posted by sic
Is there a set of supported HTML tags?
It crashes for me too on the Readme.htm but I was able to convert a webpage I saved with Firefox.
I will eventually list these in a document somewhere, but until then the best place to look is the source. Even if you aren't a programmer you can probably make some sense if you check out HtmlDocumentReader.cs.
cmumford is offline   Reply With Quote
Old 12-29-2006, 04:30 PM   #6
airlik
Connoisseur
airlik began at the beginning.
 
Posts: 76
Karma: 15
Join Date: Oct 2006
Device: Sony Reader
Sounds cool, I'll check it out this evening. Sounds like something I wouldn't mind collaborating on as well - if you need a hand, let me know - we could get it importing all kinds of formats for export to BBeB.
airlik is offline   Reply With Quote
Old 12-29-2006, 04:39 PM   #7
cmumford
Connoisseur
cmumford began at the beginning.
 
cmumford's Avatar
 
Posts: 68
Karma: 34
Join Date: Dec 2006
Location: Dallas, TX
Device: PRS-500
Think I might have the crash fixed

Quote:
Originally Posted by AndyQ
It looks promising.

It loaded the sample html file fine and one other html file I had but it crashes on every other html file I try (including the README.htm file thats included with the program.
Can you give this a try? Just overwrite your BBeBinder.exe with this one.
Attached Files
File Type: zip BBeBinder-0.1.5-app.zip (34.0 KB, 291 views)
cmumford is offline   Reply With Quote
Old 12-29-2006, 04:45 PM   #8
AndyQ
Enthusiast
AndyQ began at the beginning.
 
Posts: 38
Karma: 36
Join Date: Dec 2006
Device: Sony Reader PRS-500
Quote:
Originally Posted by cmumford
Can you give this a try? Just overwrite your BBeBinder.exe with this one.
Thats much better although I did have to update the GutenbergLib.dll - I built it myself - as it couldn't gave a method not found exception (Gutenberg.Document.SerializeToHtml()) when doing File - Open.

Anyway, it handles the Readme.htm and other html files it crashed on before.
I'll try a few more html files to mack sure...

I'm also just going to convert a book to BBeB format and I'll let you know how it goes.

----- Edit ----
OK, conversion was simple - easy to adjust the font size. Looks good on the reader too. In addition, the lrf is a third the size of the html file.

Some things I noticed:
1) The toolbar buttons need better tooltips
2) Add a search/replace function (some of my html files have wrong characters in which it would be nice to change)
3) Should the right/left/centre text justification buttons work yet? If so then they appear to be broken as the didn't seem to do anything.

Apart from that, the interface is nice and intuitive, and easy to use.

Good job - will be converting more books over now !

Andy

Last edited by AndyQ; 12-29-2006 at 04:58 PM.
AndyQ is offline   Reply With Quote
Old 12-29-2006, 05:01 PM   #9
slayda
Retired & reading more!
slayda is less competitive than you.slayda is less competitive than you.slayda is less competitive than you.slayda is less competitive than you.slayda is less competitive than you.slayda is less competitive than you.slayda is less competitive than you.slayda is less competitive than you.slayda is less competitive than you.slayda is less competitive than you.slayda is less competitive than you.
 
slayda's Avatar
 
Posts: 2,510
Karma: 14639
Join Date: Sep 2006
Location: North Alabama, USA
Device: Palm TX, EZ Reader, Cybook Gen3, Kindle 1, almost a Pocket Pro
Worked fine on a Gutenburg book I had (a-per-fdeath_mys.htm). Looking forward to TOC & images. Good work.
slayda is offline   Reply With Quote
Old 12-29-2006, 05:04 PM   #10
AndyQ
Enthusiast
AndyQ began at the beginning.
 
Posts: 38
Karma: 36
Join Date: Dec 2006
Device: Sony Reader PRS-500
Quote:
Originally Posted by slayda
Worked fine on a Gutenburg book I had (a-per-fdeath_mys.htm). Looking forward to TOC & images. Good work.
TOC is working - change from Normal text to Headering 1/2/3/4/etc.
AndyQ is offline   Reply With Quote
Old 12-29-2006, 05:36 PM   #11
cmumford
Connoisseur
cmumford began at the beginning.
 
cmumford's Avatar
 
Posts: 68
Karma: 34
Join Date: Dec 2006
Location: Dallas, TX
Device: PRS-500
Quote:
Some things I noticed:
1) The toolbar buttons need better tooltips
2) Add a search/replace function (some of my html files have wrong characters in which it would be nice to change)
3) Should the right/left/centre text justification buttons work yet? If so then they appear to be broken as the didn't seem to do anything.

Apart from that, the interface is nice and intuitive, and easy to use.

Good job - will be converting more books over now !

Andy
  1. Thanks: that's easy.
  2. That doesn't sound too difficult to implement.
  3. The toolbar buttons all work. I don't know if the fix I just made got them working or not. There is a current bug where you have to deselect the text that you've just done something to before the browser updates itself. I'm still seeing that when I apply a heading style.
cmumford is offline   Reply With Quote
Old 12-29-2006, 05:39 PM   #12
cmumford
Connoisseur
cmumford began at the beginning.
 
cmumford's Avatar
 
Posts: 68
Karma: 34
Join Date: Dec 2006
Location: Dallas, TX
Device: PRS-500
Quote:
Originally Posted by AndyQ
TOC is working - change from Normal text to Headering 1/2/3/4/etc.
I think that slayda meant that s/he's looking forward to when BBeB Binder puts an actual working TOC into the BBeB file (which I plan to do). Right now I'm just creating the TOC tree view that allows you to more easily navigate the document, but apart from that I'm not doing anything with it.
cmumford is offline   Reply With Quote
Old 12-29-2006, 05:44 PM   #13
slayda
Retired & reading more!
slayda is less competitive than you.slayda is less competitive than you.slayda is less competitive than you.slayda is less competitive than you.slayda is less competitive than you.slayda is less competitive than you.slayda is less competitive than you.slayda is less competitive than you.slayda is less competitive than you.slayda is less competitive than you.slayda is less competitive than you.
 
slayda's Avatar
 
Posts: 2,510
Karma: 14639
Join Date: Sep 2006
Location: North Alabama, USA
Device: Palm TX, EZ Reader, Cybook Gen3, Kindle 1, almost a Pocket Pro
Quote:
Originally Posted by cmumford
I think that slayda meant that s/he's looking forward to when BBeB Binder puts an actual working TOC into the BBeB file (which I plan to do). Right now I'm just creating the TOC tree view that allows you to more easily navigate the document, but apart from that I'm not doing anything with it.

Definitely he. & yes.
slayda is offline   Reply With Quote
Old 12-29-2006, 06:06 PM   #14
AndyQ
Enthusiast
AndyQ began at the beginning.
 
Posts: 38
Karma: 36
Join Date: Dec 2006
Device: Sony Reader PRS-500
Quote:
Originally Posted by cmumford
I think that slayda meant that s/he's looking forward to when BBeB Binder puts an actual working TOC into the BBeB file (which I plan to do). Right now I'm just creating the TOC tree view that allows you to more easily navigate the document, but apart from that I'm not doing anything with it.
Ahhh - Fair enough - I was only looking at the app and saw the TOC was being updated so just assumed....

A couple of others whilst doing some converting:
Can you make the Title default to either the name of the file or blank rather than the first word (or Default)

When you open a new document, it asks you if you want to save the changes and then tries to save as .mht.

Not sure if this is possible but could you have a button that joins all selected lines together?

And finally, any idea when images will be supported? This is more of a nice to have however as it already does 95% of what I want it to do!

Last edited by AndyQ; 12-29-2006 at 06:09 PM.
AndyQ is offline   Reply With Quote
Old 12-29-2006, 06:47 PM   #15
cmumford
Connoisseur
cmumford began at the beginning.
 
cmumford's Avatar
 
Posts: 68
Karma: 34
Join Date: Dec 2006
Location: Dallas, TX
Device: PRS-500
Quote:
Originally Posted by AndyQ
Ahhh - Fair enough - I was only looking at the app and saw the TOC was being updated so just assumed....

A couple of others whilst doing some converting:
Can you make the Title default to either the name of the file or blank rather than the first word (or Default)
Here's the way it works now:
  1. If the HTML document has a <title> element in the header then it is used.
  2. Else, it finds the first H1 or H2 element in the document and uses that.
  3. Else, it sets it to "Default Title".
I agree with you that it should use the basename of the input document instead of the word "Default Title".

For text files I search for a line like this:

Author: AuthorName

And will set the <title> attribute to this value.
Quote:
Originally Posted by AndyQ
When you open a new document, it asks you if you want to save the changes and then tries to save as .mht.
Yes, I've filed a defect on this.
Quote:
Originally Posted by AndyQ
Not sure if this is possible but could you have a button that joins all selected lines together?
I have an algorithm to do this when I read in text files, but I don't do anything like this for HTML files. Is this a common problem that you encounter?
Quote:
Originally Posted by AndyQ
And finally, any idea when images will be supported? This is more of a nice to have however as it already does 95% of what I want it to do!
I'm working on that feature right now. I'm still learning the LRF format so I can't really predict how long it will take - and I only have four days left on vacation
cmumford is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adobe blogger on Sony's BBeB format Alexander Turcic Sony Portable Reader PRS-500/505 16 01-05-2009 05:28 PM
Proposal for an open source multi-format ebook authoring tool Jon Noring News and Commentary 15 09-12-2008 01:17 PM
BBeB (LRF) generation tools igorsk LRF 48 07-12-2007 01:42 AM
Fixes for iRex tool chain scotty1024 iLiad Developer's Corner 0 11-10-2006 05:29 PM
[Librie] Sony Reader BBeB vs. Libre BBeB CCDMan Legacy E-Book Devices 1 03-30-2006 04:53 AM


All times are GMT -4. The time now is 10:52 PM.


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