Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 07-15-2009, 09:05 AM   #31
Nate the great
Sir Penguin of Edinburgh
Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.
 
Nate the great's Avatar
 
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
Quote:
Originally Posted by rogue_ronin View Post
That's true, but if you find that you are working toward two mutually exclusive targets (mobipocket and the old REB1100, say) you might find that Dale had a point.

You probably aren't doing that, so this may seem irrelevant.

I am of a mind that you write "pure" xhtml, then convert it to your target's quirks using the regex/macros of your html/text editor. Your goal of finding good xhtml that mobipocket recognizes is excellent for simplifying any such process, however.

My unnecessary .02,

m a r
Speaking of the REB1100, do you know where I can find out more about the formatting it uses?
Nate the great is offline   Reply With Quote
Old 07-15-2009, 09:08 AM   #32
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
Quote:
Originally Posted by Nate the great View Post
Speaking of the REB1100, do you know where I can find out more about the formatting it uses?
i would ask nick (nrapallo). if he doesn't know directly, he could probably tell you where to look.
zelda_pinwheel is offline   Reply With Quote
Advert
Old 07-15-2009, 09:09 AM   #33
Sweetpea
Grand Sorcerer
Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.
 
Sweetpea's Avatar
 
Posts: 9,707
Karma: 32763414
Join Date: Dec 2008
Location: Krewerd
Device: Pocketbook Inkpad 4 Color; Samsung Galaxy Tab S6
Quote:
Originally Posted by Jellby View Post
No, in mobipocket dialect "height" means the space above (top padding or margin), and "width" means indent for paragraphs.
But you'll have to put it in with every <p>. I'd rather use CSS and my paddings. Works perfectly.
Sweetpea is offline   Reply With Quote
Old 07-15-2009, 10:05 AM   #34
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Quote:
Originally Posted by nrapallo View Post
MobiPerl code strips all ending </p>'s when converting from .mobi to .html. I see the same thing when my Mobi2IMP program converts .mobi/.prc to .imp as the intermediary .html is left exploded with images.
I do not think it does that. Instead it does not add any </p>. So if they are missing in the .mobi file they wil be missing in the exploded html file.
tompe is offline   Reply With Quote
Old 07-15-2009, 10:29 AM   #35
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Sweetpea View Post
But you'll have to put it in with every <p>. I'd rather use CSS and my paddings. Works perfectly.
Only if you want anything other than "default".

Anyway, my point is that, while it's certainly better to have a "master" version using CSS and all, that's not directly used in the mobi. Mobipocket Creator, or Calibre, or whatever will probably make some translation and be reliable most of the time, but if you want to control what really goes into the mobi, you have to edit the pseudo-HTML anyway.
Jellby is offline   Reply With Quote
Advert
Old 07-15-2009, 12:41 PM   #36
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
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:
Originally Posted by Nate the great View Post
Speaking of the REB1100, do you know where I can find out more about the formatting it uses?
Scary, how Zelda knows these things...

Here is the original 'HTML Formatting for RocketEditions' guide (also for the REB1100) in .rb and .html within the below .zip file.

It basically supports HTML 3.2 with some limitations and quirks! The current eBook Publisher software or rbmake will create .rb ebooks from the same source that is used to create .imp ebooks.

Have fun!
Attached Files
File Type: zip HTML Formatting for RocketEditions.zip (45.0 KB, 189 views)
nrapallo is offline   Reply With Quote
Old 07-16-2009, 12:29 AM   #37
rogue_ronin
Banned
rogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-books
 
Posts: 475
Karma: 796
Join Date: Sep 2008
Location: Honolulu
Device: Nokia 770 (fbreader)
Quote:
Originally Posted by Nate the great View Post
Speaking of the REB1100, do you know where I can find out more about the formatting it uses?
What are you looking for? There's a great tool here called rbmake that has some pages on deconstructing the file format.

It's the tool I use to make RB files.

The RB format is basically compressed HTML with a generated index file. There are a bunch of ugly hacks contained in it to generate a pop-up menu. That page I linked has a lot more about it.

There are some tricks that I've found for the HTML -- the biggest one is that to have the cover show as the first page, you need to wrap it in <center> tags. Yes, <center>.

Another is that the screen size is 2 pixels larger on the REB1100 than on the old Rocket. The hardware can do 4 grays, I think, but the firmware is limited to 1. (You're better off pre-converting any images, too.) Any link that passes from one page turn to another is broken. I'm sure that there are a few more -- feel free to PM me about anything.

If you're serious about creating hand-edited files in RB format, you should definitely use the tools from the rbmake project. It's both Windows and Linux, although the very latest version is not compiled for Windows (I use Linux, so I can't help you if you use Windows.) You can use the related project files to explode them, build dictionaries, etc.

It's web-aware, and does a LOT of amazing things. Once you get a script well-written, it does just about anything to a source. Like the Rocket/REB1100 it was way ahead of it's time.

If you use Linux, and you're looking for an upload/download tool, you need rebcomm, which you can find here..

m a r

ps: a little off topic?
rogue_ronin is offline   Reply With Quote
Old 07-16-2009, 04:44 AM   #38
Sweetpea
Grand Sorcerer
Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.
 
Sweetpea's Avatar
 
Posts: 9,707
Karma: 32763414
Join Date: Dec 2008
Location: Krewerd
Device: Pocketbook Inkpad 4 Color; Samsung Galaxy Tab S6
Quote:
Originally Posted by Jellby View Post
Only if you want anything other than "default".

Anyway, my point is that, while it's certainly better to have a "master" version using CSS and all, that's not directly used in the mobi. Mobipocket Creator, or Calibre, or whatever will probably make some translation and be reliable most of the time, but if you want to control what really goes into the mobi, you have to edit the pseudo-HTML anyway.
I use one master to make my ePub version and mobi version. They contain only basic HTML elements and extensive CSS. (and personally, I don't like the empty line at the end of a paragraph, so, my default is to remove it )
Sweetpea is offline   Reply With Quote
Old 07-16-2009, 08:21 AM   #39
Nate the great
Sir Penguin of Edinburgh
Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.
 
Nate the great's Avatar
 
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
Quote:
Originally Posted by rogue_ronin View Post
What are you looking for? There's a great tool here called rbmake that has some pages on deconstructing the file format.

It's the tool I use to make RB files.

m a r

ps: a little off topic?
Does rbmake convert <div style="page-break-after:always"/> to the <hr size=0> tag that functions as a pagebreak in RB format?
Nate the great is offline   Reply With Quote
Old 07-16-2009, 09:36 AM   #40
Nate the great
Sir Penguin of Edinburgh
Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.
 
Nate the great's Avatar
 
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
Quote:
Originally Posted by Nate the great View Post
Does rbmake convert <div style="page-break-after:always"/> to the <hr size=0> tag that functions as a pagebreak in RB format?
Never mind. I've looked, and I don't think it does.
Nate the great is offline   Reply With Quote
Old 07-16-2009, 09:37 AM   #41
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
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:
Originally Posted by Nate the great View Post
Does rbmake convert <div style="page-break-after:always"/> to the <hr size=0> tag that functions as a pagebreak in RB format?
The ebookwise/gemstar devices don't recognize the "page-break-after" CSS property but only the "page-break-before" syntax.

That said, the .rb's support of CSS is more limited than the .imp's acceptance of same, so in this case, no, the CSS property for pagebreaks is NOT respected. Only a '<hr size=0>' in front (or in it's place) will produce the expected pagebreak.

I give you an example, Robin Hood (PG Etext No. 28700) converted to Paul Creswick - Robin Hood.rb via my GuteBook program uses the 'page-break-before' CSS property by default and it doesn't work on the REB1100.

However, after editing the source files (included in the below .zip) to include <hr size=0> in front of the <h2> and <h3> tags, you can produce another Paul Creswick - Robin Hood-hr-size-0.rb using rbmake to magically "activate" those pagebreaks within the .rb. See rbmake-log.txt for rbmake details.

I also tried to place the CSS property 'page-break-before' inline to see if that made a difference, but it didn't with Paul Creswick - Robin Hood-inline-pb-style.rb and neither did the .imp shortcut for page-breaks, <pb>, work for .rb files!

And there you have it!
Attached Files
File Type: zip Paul Creswick - Robin Hood_rb.zip (2.26 MB, 182 views)
nrapallo is offline   Reply With Quote
Old 07-16-2009, 09:53 AM   #42
Nate the great
Sir Penguin of Edinburgh
Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.
 
Nate the great's Avatar
 
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
Quote:
Originally Posted by nrapallo View Post
The ebookwise/gemstar devices don't recognize the "page-break-after" CSS property but only the "page-break-before" syntax.

That said, the .rb's support of CSS is more limited than the .imp's acceptance of same, so in this case, no, the CSS property for pagebreaks is NOT respected. Only a '<hr size=0>' in front (or in it's place) will produce the expected pagebreak.
I didn't ask if the file format included it; I knew it wouldn't. What I asked was whether the conversion software would replace the div tag with the correct supported hr tag.

The Mobipocket file format doesn't support that div tag, _but_ MobiCreator does. It converts that tag to Mobipocket's proprietary tag. I was hoping RBMake would do the same. I now see that it doesn't.

I also see that the code is written in C, so I might add support for converting the div tag. I'll give the style tag a shot, too.
Nate the great is offline   Reply With Quote
Old 07-16-2009, 11:00 AM   #43
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
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:
Originally Posted by Nate the great View Post
What I asked was whether the conversion software would replace the div tag with the correct supported hr tag.
Using rbburst, you can explode the .rb that was created with the '<hr size=0>' tag and you will then notice that the tag '<HR NEW-PAGE>' is actually used by the .rb format!

The '<hr size=0>' is NOT ignored by calibre when creating .epub, .lrf, etc... so it isn't useful within .html that is used to create multiple ebook formats (it is ignored by eBook Publisher ).

Fixing rbmake to support this may work for that software, but it won't be available to eBook Publisher or the old RocketLibrarian that also create .rb from .html.
nrapallo is offline   Reply With Quote
Old 07-16-2009, 11:45 AM   #44
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
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:
Originally Posted by nrapallo View Post
Fixing rbmake to support this may work for that software, but it won't be available to eBook Publisher or the old RocketLibrarian that also create .rb from .html.
It appears a novel (tried and true?) solution does exist to support <hr size=0> and it is to split the file there, ala calibre & .epubs.

Per the Excerpts from A Technical Writer's HTML Template for SoftBook Editions:
Quote:
G. The Problem of Page Breaks
If your RocketEdition uses explicit page breaks (<HR SIZE=0> tags) that you wish to retain in the SoftBook Edition, you have several options for handling them. If you do not change them, they will appear as thin horizontal lines the width of the display. The most-platform independent option is to divide your HTML into a series of separate files, one for each section that starts with a page break. Both SoftBook Professional Publisher and RocketWriter insert a page break at the start of each new input file....
Food for thought...
nrapallo is offline   Reply With Quote
Old 07-16-2009, 11:09 PM   #45
rogue_ronin
Banned
rogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-books
 
Posts: 475
Karma: 796
Join Date: Sep 2008
Location: Honolulu
Device: Nokia 770 (fbreader)
rbmake also supports regex search/replace, built in. Just add a rule to your basic rbmake script (or a separate regex file using the s switch) or OPT file to replace <div style="page-break-after:always"/> with either <hr size=0> or <hr new-page>. Or whatever your preferred output is. (Maybe you want to keep the div, just replace the style?)

You could have quite a list of standard replacements to make your work easier. (You could share too! )

rbmake can be told to recognize <hr size=0> or to ignore it, using the z switch.

If you're going to update the program, I think you want the RBhtml libraries. I've emailed with Wayne Davison a few times, he's super-approachable. (I think he might hang out here, too -- don't know why I think that...)

m a r
rogue_ronin is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best example of HTML formatting for Kindle??? delphidb96 Amazon Kindle 13 02-15-2011 06:22 AM
HTML formatting MarcusStringer ePub 17 04-06-2010 11:23 AM
html2mobi - html formatting brunovg Kindle Formats 2 12-13-2009 05:56 AM
HTML formatting john folkard Calibre 1 08-18-2009 10:15 AM
line formatting formatting question daesdaemar Workshop 9 02-06-2009 11:47 AM


All times are GMT -4. The time now is 06:33 PM.


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