Mobileread
TIP: Attention: All Book Designer users creating .IMP books...
#1  nrapallo 02-15-2008, 01:47 AM
First, thank-you for supporting this "end" format, especially if you don't own the ebookwise 1150.

I just discovered a fix (tip/trick) that will greatly enhance the enjoyment of the ebookwise (.IMP) community: A WAY TO CHANGE TO A LARGER FONT SIZE.

Any .IMP ebook created with Book Designer uses only 'x-small' font for the main text, but not because it is explicitly forced to by BD.

The story goes like this ...

I was tinkering with BD recently and noticed that in the imp directory (in the default install directory) while it is making the ebook, it saves an intermediary/temporary file ending with .oeb. I was fast enough to grab this file and discovered that NO FONT SIZE was being used. I opened and unpacked the .oeb in eBook Publisher and produced a .IMP ebook that had a larger font size than the one BD produced. Hmmm...

I knew that recent versions of eBook Publisher adopted the 'small' font size as its default; whereas, the BD used 'x-small' font size as its default. But BD doesn't set this default, so it must come from the 'PubUtil21.dll' (version 2.1.4.5) in the BD install directory.

The eBook Publisher uses two similar files, namely 'PubUtil21.dll' (version 2.1.4.6) and 'PubUtil22.dll' (version 2.2.4.1) located in the directory C:\Program Files\Common Files\eBook Technologies . First, I tried just replacing the BD 'PubUtil21.dll' with the same (but newer version) .dll, but it didn't adopt the 'small' font size. Second, I renamed the 'PubUtil22.dll' to 'PubUtil21.dll' and replaced the BD one with that one. Eureka! BD can now produce .IMP ebooks with a (one size) larger font with this fix.
FIX #1: Below I include this renamed 'PubUtil21.dll' (really 'PubUtil22.dll' version 2.2.4.1) that needs to be placed in the BD directory, overwriting the older one. Just unzip it there and you have installed this fix!
As my test sample, I used Patricia's ebook, (Pseudo)Aristotle_ The Works.prc. I attach the temporary .oeb file and the .imp version produced by BD before this 'fix' and after.

Judge for yourself. Which book would you rather read?

This 'fix' may have to be applied again when BD is updated/re-installed, but it is a small price to pay.

Enjoy!

EDIT 20 Feb 2008: for TIP #2: BD now allows true margins in resulting .IMP files... see post #6 below

-Nick
[zip] PubUtil21.zip (1.33 MB, 1489 views)
[imp] The Works of Aristotle_before.imp (869.5 KB, 1346 views)
[imp] The Works of Aristotle_after.imp (890.4 KB, 1312 views)
[zip] The Works of Aristotle.oeb.zip (238.9 KB, 1264 views)
Reply 

#2  DaleDe 02-15-2008, 11:16 AM
Fantastic fix. Thanks for finding it.

Dale
Reply 

#3  DaleDe 02-15-2008, 12:03 PM
Quote DaleDe
Fantastic fix. Thanks for finding it.

Dale
Please add the tip to the Best Practice section of the wiki for Book Designer. This will help people find it later.

http://wiki.mobileread.com/wiki/Book_Designer

If you need help in doing this let me know.

Dale
Reply 

#4  JSWolf 02-15-2008, 12:32 PM
Just stuck the thread for easier finding and I'll make the fix before I make any more IMP eBooks.
Reply 

#5  nrapallo 02-15-2008, 12:41 PM
Has anyone independently tried this fix and made it work as advertised?

Just wanted to know as I don't use BD to make ebooks and tried this on only one test sample.

If there are any issues, please post here.

-Nick
Reply 

#6  nrapallo 02-15-2008, 03:37 PM
Now, another fix (tip/trick) for those who labouriously churn out these .IMP books for all to benefit...

My three biggest gripes with BD are (were ):

1. default font size too small for enjoyable reading (FIXED see 1st Tip above)
2. Unlike other formats, no margins come out in the resulting .IMP books (FIXED here with Tip #2)
3. Black & white (1-bit) images despite the fact that the EBW 1150 can display 16 5grayscale (4-bit) images and REB 1200 can display 32,768 (15-bit) colour images (Still working on this one...)
FIX #2: All you need is a text editor and to follow these steps:

1. Ensure you have checked the 'load last book at startup' in Configuration/Settings/program settings menu item for this to work better.
2. Finish your ebook, save it and exit BD.
3. Now with your text editor, open the .html0 file in the 'LastFile' directory (in the BD install directory).
4. Just AFTER the <BODY ...> tag, insert the following:
Code
<span style="margin-left: 2%; margin-right: 2%;">
and save the .html0. You can change the % to suit your own preferences (including 0%, but that would be pointless).
5. Restart BD, have it load the last book you were just working with (and inserted that <span ...> line) and 'make ebook' as usual.
Viola, hello margins!

Anyone want to add any other previously unavailable fixes in the <span ...>?

-Nick

p.s. I first tried to place the 'margin-left/right' settings in the <BODY ... > tag as I usually do, but I noticed that BD strips out the <HTML> to <BODY> tags inclusive, when creating that .oeb temporary file. Oh well the above works just as good!
[imp] The Works of Aristotle_small-margins.imp (892.3 KB, 1278 views)
Reply 

#7  DaleDe 02-16-2008, 10:20 PM
Quote DaleDe
Please add the tip to the Best Practice section of the wiki for Book Designer. This will help people find it later.

http://wiki.mobileread.com/wiki/Book_Designer

If you need help in doing this let me know.

Dale
I updated the wiki with this and other data on making IMP files.

Dale
Reply 

#8  JSWolf 02-16-2008, 10:28 PM
Question, what is a good set of margins?

As I prefer no margins with my 505, I'd prefer no margins with whatever eBook reader I had.
Reply 

#9  nrapallo 02-16-2008, 11:21 PM
Quote DaleDe
I updated the wiki with this and other data on making IMP files.

Dale
Thanks Dale for doing this!

Nice and compact, unlike some of my posts.

-Nick
Reply 

#10  nrapallo 02-16-2008, 11:46 PM
Quote JSWolf
Question, what is a good set of margins?

As I prefer no margins with my 505, I'd prefer no margins with whatever eBook reader I had.
I will add a switch '--nomargins' to mobi2imp.exe (version 5) to accomodate this preference.

Sometimes on the REB 1200, when I use no margins, text can bleed into the side of the screen. I, personally, don't find this visually appealing, so I prefer at least a small margin, say 2% (of the screen width). On the REB 1200 with screen size of 480x680, this results in 9 to 10 pixels or 1 character on each side.

In addition to the default 2% left and right margins, I will probably add the just the following margins settings (switches) to mobi2imp:

--nomargins = 0% left and right margins
--largemargins = 5% left and right margins
--hugemargins = 8% left and right margins

I feel it is best to deal with margins in terms percentages (%) so to accomodate varying screen size proportionally.

Any other thoughts?

-Nick
Reply 

  Next »  Last »  (1/2)
Today's Posts | Search this Thread | Login | Register