SourceForge Logo

Authoring Tips

Here are some tips for those that are using rbmake to create content for the Rocket eBook:

HTML Tags

The rbmake library can handle the following tags in a meaningful way:

A
Anchor items are used for hyper-linking and anchor names.
B
Mark bold text.
BIG
Switch to the large font.
BLOCKQUOTE
Indent the enclosed items a level deeper.
BODY
The body of the HTML page (follows the HEAD).
BR
Force a line break.
CENTER
Center the enclosed items.
CODE
Use a fixed-pitch font for the enclosed text.
DIV
Line-oriented text divisions (nested DIV tags are still buggy).
DD
The definition in a defined list. Must occur inside DL and be preceded by DT.
DL
Defined lists are emulated by rbmake by using paragraph breaks and BLOCKQUOTEs. The result has slightly more empty space than a typical defined-list should have (and which the ReB doesn't support), but it is quite readable.
DT
The topic in a defined list. Must occur inside DL and be followed by DD.
EM
Enclose emphasized text. Since the ReB doesn't support this, we translate it into I.
FONT
Font changes are normally ignored except when the size changes between 1-4 and 5-6. If such a transition happens, rbmake inserts the appropriate BIG/SMALL tag to switch between the two available font sizes.
FRAMESET
This item and all its contents are discarded.
H1-H6
Headings from largest (1) to smallest (6).
HEAD
The heading HTML section (where things like the TITLE go).
HR
A horizontal ruler. Also, <HR NEW-PAGE> marks a page break.
HTML
This tag should enclose the entire document.
I
Mark italic text.
IMG
An image.
LI
A list item (must occur inside either OL or UL).
META
Meta tags provide extra information to rbmake, such as the author of a document, or menu items for the "Go To" menu.
NOFRAMES
This item and all its contents are discarded.
NOSCRIPT
This item and all its contents are discarded.
OL
Start an ordinal list of items (see LI). The Rocket eBook doesn't currently number such lists, but instead treats it just like UL.
P
A paragraph break.
PRE
Enclose pre-formatted text.
SCRIPT
This item and all its contents are discarded.
SMALL
Switch to the small font.
STRONG
Enclose strong (bold) text. Since the ReB doesn't support this, we translate it into B.
STYLE
This item and all its contents are discarded.
SUB
Enclose subscripted text.
SUP
Enclose superscripted text.
TABLE
The ReB doesn't support tables, so we translate them into a containing DIV with nested BLOCKQUOTES for each column element in a row. Spans of columns or rows are treated just like normal items. See TR, TD, and TH.
TD
A table column. Must occur inside a TABLE tag after a TR tag. The rbmake table emulation turns this tag into a nested BLOCKQUOTE.
TH
A table header column. Works just like TD, but should eventually get bolded as well.
TITLE
The document's title (must be in the HEAD section).
TR
The row of a table. Must occur inside a TABLE tag. The rbmake table emulation uses this tag to reset the columns back to 0.
TT
Teletype text (just like "CODE").
UL
An unenumerated (i.e. bulleted) list of items (see LI).