09-02-2008, 10:21 AM | #46 | ||
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Quote:
p.s. the next.imp and next_1200.imp where created with eBook Publisher from .html and all include the HTTP:// prefix. No Mobi2IMP was used. |
||
09-02-2008, 11:09 AM | #47 | ||
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Quote:
To aid in the python plug-in cause, I offer simple text substitutes that could help ensure a html webpage/file will convert well to .imp (and hopefully better handled by our reader's internal browser). Below please find a perl script fragment from Mobi2IMP.pl v9.4b where $html is the html (text) webpage Just to get you started on those useful plug-ins...and $opt_NAME is an option you may wish to pass through and $booktitle and $author could hold favortie hyperlinks in header or footers, if this works! Code:
###################################################################
my $headerhr = "\n<HEADER><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr>\n";
$headerhr .= "<td align=\"left\" style=\"font-family:smallfont\"><small>" . $booktitle . "</small></td>\n";
$headerhr .= "<td align=\"right\" style=\"font-family:smallfont\"><small>" . $author . "</small></td></tr></table><hr></HEADER>\n";
my $headercolor = "\n<HEADER><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr>\n";
$headercolor .= "<td align=\"left\" style=\"font-family:smallfont\" bgcolor=\"" . $opt_header_color . "\"><small>" . $booktitle . "</small></td>\n";
$headercolor .= "<td align=\"right\" style=\"font-family:smallfont\" bgcolor=\"" . $opt_header_color . "\"><small>" . $author . "</small></td></tr></table></HEADER>\n";
if (defined $opt_bgcolor) {
$html =~ s/<body([^>])*>/\n<BODY bgcolor=$opt_bgcolor>\n/i; #remove .mobi defaults in <body> and insert bgcolor
} else {
$html =~ s/<body([^>])*>/\n<BODY>\n/i; #remove .mobi defaults in <body>
}
if (defined $opt_header_hr) {
$html =~ s/<body([^>])*>/<BODY$1>\n$headerhr/i; #remove .mobi defaults in <body> and insert header-hr
} elsif (defined $opt_header_color) {
$html =~ s/<body([^>])*>/<BODY$1>\n$headercolor/i; #remove .mobi defaults in <body> and insert header-color
}
if (defined $opt_nopara and not defined $opt_noBRfix) {
$html =~ s/<br([^>])*><div/<BR \/><BR \/><div/gi; #force <br /> to work in Ebook Publisher
}
if (defined $opt_indent) {
#indent (~2 characters)
if (defined $opt_nopara) {
$html =~ s/<\/head>/<STYLE type="text\/css">p {text-indent:1em; margin-top:0em; margin-bottom:0em} header {display:none; display:oeb-page-head}<\/STYLE><\/head>/i; #nopara separation (--nopara)
} else {
$html =~ s/<\/head>/<STYLE type="text\/css">p {text-indent:1em; padding-top:0em; padding-bottom:1em} header {display:none; display:oeb-page-head}<\/STYLE><\/head>/i; #para separation (default)
}
} else {
#noindent (default)
if (defined $opt_nopara) {
$html =~ s/<\/head>/<STYLE type="text\/css">p {text-indent:0em; margin-top:0em; margin-bottom:0em} header {display:none; display:oeb-page-head}<\/STYLE><\/head>/i; #nopara separation (--nopara)
} else {
$html =~ s/<\/head>/<STYLE type="text\/css">p {text-indent:0em; padding-top:0em; padding-bottom:1em} header {display:none; display:oeb-page-head}<\/STYLE><\/head>/i; #para separation (default)
}
}
my $LRmargins = "2%";
if (defined $opt_LRmargins) { $LRmargins = $opt_LRmargins; }
if (defined $opt_nomargins) { $LRmargins = "0%"; }
if (defined $opt_nojustify) {
#nojustify body text (left-align)
if (defined $opt_smallerfont) {
$html =~ s/<body/<BODY style="margin-left:$LRmargins; margin-right:$LRmargins; font-size:x-small; text-align:left"/i; # add small margins and left-align text
} elsif (defined $opt_largerfont) {
$html =~ s/<body/<BODY style="margin-left:$LRmargins; margin-right:$LRmargins; font-size:medium; text-align:left"/i; # add small margins and left-align text
} else {
$html =~ s/<body/<BODY style="margin-left:$LRmargins; margin-right:$LRmargins; text-align:left"/i; # add small margins and left-align text
}
} else {
#justify body text (default)
if (defined $opt_smallerfont) {
$html =~ s/<body/<BODY style="margin-left:$LRmargins; margin-right:$LRmargins; font-size:x-small; text-align:justify"/i; # add small margins and justified text
} elsif (defined $opt_largerfont) {
$html =~ s/<body/<BODY style="margin-left:$LRmargins; margin-right:$LRmargins; font-size:large; text-align:justify"/i; # add small margins and justified text
} else {
$html =~ s/<body/<BODY style="margin-left:$LRmargins; margin-right:$LRmargins; text-align:justify"/i; # add small margins and justified text
}
}
$html =~ s///gi; # remove odd insertion of null chars
$html =~ s/<mbp:pagebreak/<p style="page-break-before:always"/gi; # insert proper page-breaks
$html =~ s/<mbpagebreak/<p style="page-break-before:always"/gi; # insert proper page-breaks
$html =~ s/<img align="baseline"/<img/gi; # remove the troublesome baseline keyword
$html =~ s/(<BR \/><BR \/>)+<div align="center"><img/<BR \/><div align="center"><p align="center"><img/gi; # only allow one <br> before an image to avoid after a page-break
$html =~ s/<div align="center"><img/<div align="center"><p align="center"><img/gi; # kludge to get eBook Publisher to center images
#fix up blank lines (unwanted) before page-break
$html =~ s/((<div([^>])*>( )*<\/div>)*(\s)*(<br([^>])*>)*(\s)*)*<p style="page-break-before/\n<p style="page-break-before/gi;
$html =~ s/((<br([^>])*>)*(\s)*)*<p style="page-break-before/\n<p style="page-break-before/gi;
$html =~ s/(<p style="page-break-before:always">)*<\/body>/<\/body>/gi; #fix up last (unwanted) page-break
$html =~ s/((<br([^>])*>)*(\s)*)*<\/body>/\n<\/body>/gi; #fix up blank lines (unwanted) at end
$html =~ s/<p/\n<p/gi; # insert newline before '<p' construct
###################################################################
Last edited by nrapallo; 09-02-2008 at 11:45 AM. |
||
Advert | |
|
09-02-2008, 11:42 AM | #48 | ||
Addict
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
Quote:
Can everyone please post their firmware version, model and whether browsing from the book worked? Thanks... Quote:
Last edited by ashkulz; 09-02-2008 at 11:48 AM. Reason: request for firmware versions.. |
||
09-02-2008, 11:52 AM | #49 | ||
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Quote:
Have you downloaded 100+ ebooks from here yet, to try this out yourself? |
||
09-02-2008, 12:19 PM | #50 |
Addict
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
BTW, I wish that someone would make this thread "sticky" (IMHO, it's more interesting than impmake which is sticky).
EDIT: well, that was fast. I asked and it became sticky in just a few minutes. Thanks, whoever it was Last edited by ashkulz; 09-02-2008 at 12:30 PM. |
Advert | |
|
09-02-2008, 12:28 PM | #51 |
Addict
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
Changes in ebookutils-0.4.1:
- impserve: fix off-by-one error which caused only 99 books to show in online bookshelf |
09-02-2008, 01:36 PM | #52 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
However, not been able to get my REB1200 with firmware 4.2f17 to use the next_1200.imp I created to surf the internet from within a .imp ebook. Also, these next.imp and next_1200.imp files caused strange linkage/reference problems within my Online Bookshelf. They were checked but not yet loaded onto the reader. Clicking each 'checkmark' icon caused only one to open. I could delete them though (and I did!). Then I downloaded the next_1200.imp using the REB1200's surfing capabilities and had it expand the ebook 'on-the-fly'. Afterwards, I opened it on the reader and selected a hyperlinks, only to be met with a reset message 600 (it said "Your eBook needs to be reset. To do so, simply tap 'Continue'." Error (600)) I also got this reset from JSWolf's Stross, Charles: Accelerando when accessing the www.MobileRead.com link... This didn't work on the EBW1150 either! Though, I DID NOT have any reset's with my other REB1200 with firmware 4.2f22!!! It works OK there! Could it be this is the answer? Both had approx. 20% free CF card space with the 4.2f22's CF card being 256 MB and the 4.2f17's CF Card being 1 GB. What else could cause this effect? Going to have to experiment some more! Anyone else want to try.... Last edited by nrapallo; 09-02-2008 at 02:07 PM. |
|
09-02-2008, 02:06 PM | #53 |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
New bug report
Ashish,
I got the attached error when surfing to a MobileRead Forum and after loading the MR logo.gif. Could this be causing some de-stabilization within the reader... |
09-02-2008, 02:15 PM | #54 | |
Addict
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
Quote:
I think that the issue is related to the firmware; Garth Conboy at eBook Technologies has (kindly) promised to send me a link to upgrade to 4.2f22. I'll update y'all once I hopefully complete the upgrade |
|
09-02-2008, 02:24 PM | #55 |
Addict
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
I just now upgraded to 4.2f22 and browsing from the ebook works now So the solution for the 1200 is to upgrade to 4.2f22. For the 1150, I don't know what is the minimum firmware version required (or if it is OK for everyone).
There were a lot of fixes mentioned before I was able to upgrade, so I'd recommend everyone to upgrade anyway (Thanks to Garth at eBook Technologies, who arranged the upgrade within hours of me sending a mail). |
09-02-2008, 02:27 PM | #56 |
fruminous edugeek
Posts: 6,745
Karma: 551260
Join Date: Oct 2006
Location: Northeast US
Device: iPad, eBw 1150
|
Wow, nice to see that level of support from ETI, especially for an older product!
|
09-02-2008, 02:28 PM | #57 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Last edited by nrapallo; 09-02-2008 at 02:32 PM. |
|
09-02-2008, 02:33 PM | #58 |
Addict
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
I don't think so. I got it when I visited "Menu > Bookstore > Directory > Customer Support" after getting a mail from them. Also, from what I recall all firmware upgrades are digitally signed for the 1150/1200 so I don't know if my image would help you
I'll follow up with him if the firmware can be posted openly, or if it is only available on user request. |
09-02-2008, 02:35 PM | #59 | |
Addict
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
Quote:
|
|
09-02-2008, 02:41 PM | #60 |
Addict
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Confused about personal content re: eBookwise 1150 | locomouse | Fictionwise eBookwise | 6 | 11-25-2009 12:52 PM |
PDFRead - reading PDFs on the 1100/1150/1200 eBook Readers | ashkulz | IMP | 87 | 06-04-2009 02:43 PM |
How do you get new content onto your eBookwise 1150 / REB 1200? (pick all that apply) | nrapallo | Fictionwise eBookwise | 23 | 02-03-2009 04:34 PM |
Hacking EBW-1150 to browse the Internet | sputnik | Fictionwise eBookwise | 44 | 08-27-2008 08:40 AM |
Comparing 1150 to 1200 or 2150 | Katelyn | Fictionwise eBookwise | 1 | 04-29-2007 11:38 AM |