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

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-29-2006, 02:12 PM   #1
cmumford
Connoisseur
cmumford began at the beginning.
 
cmumford's Avatar
 
Posts: 69
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: 69
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: 69
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: 69
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, 548 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 ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.
 
slayda's Avatar
 
Posts: 2,743
Karma: 884247
Join Date: Sep 2006
Location: North Alabama, USA
Device: Kindle 1, iPad 4, iPhone 5
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: 69
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: 69
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 ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.slayda ought to be getting tired of karma fortunes by now.
 
slayda's Avatar
 
Posts: 2,743
Karma: 884247
Join Date: Sep 2006
Location: North Alabama, USA
Device: Kindle 1, iPad 4, iPhone 5
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: 69
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting to BBeb? terrycagg Workshop 7 12-10-2007 10:58 AM
how to create BBeB File? mkarthic Introduce Yourself 2 10-30-2007 11:54 AM
PRS-500 Announcing BBeB Binder 0.2 cmumford Sony Reader Dev Corner 29 03-17-2007 11:41 AM
[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 05:53 AM.


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