AMADEUS html plain
HTML mapping
Any sketchy HTML text is a sketch, containing
a simple sketch with comment "HTML"
as the single member of its first branch.
The type of the outer sketch, as well as its other elements
(comment, head(s), additional branches) are insignificant.
For better structuring, tagged elements of the sketchy HTML text
may be represented as simple subschemes (instead of plain-text tagging).
Loop schemes can be used for block comments,
and module schemes for arbitrary grouping.
even tags
Simple sketches are used to represent even tags:
EVENTAG
the sketch above is textualized to
textualized sketch body
Simple sketch heads are used to represent attributes:
EVENTAG
attributes
one or more primitive heads
sketch body
the sketch above is textualized to
textualized sketch body
Primitives with comments are used for a simpler representation
of even tags without attributes:
primitive text
EVENTAG
the primitive above is textualized to
primitive text
odd tags
Simple branches are used to represent odd tags
(or even tags with omitted endtag):
TAG
the branch above is textualized to
textualized branch body
Simple branch heads are used to represent attributes:
TAG
attributes
one or more primitive heads
the branch above is textualized to
textualized branch body
comments
oneline comments
Primitive (text) comments with prefix '!' represent HTML-comments:
primitive (member or head) text
!zzzzz
the primitive above is textualized to
primitive (member or head) text
Primitive head comments without prefix '!'
are not subject to textualization.
bock comments
Loop schemes are used to represent block comments:
[TAG]
the sketch above (similarly a branch) is textualized as corresponding
simple sketch (simple branch) enclosed between "' i.e. as:
[TAG]
>
member grouping
An arbitrary group of branch members may be formed
by enclosing them into a module sketch or a simple tagless sketch:
[module sketch (or module branch) comment]
[sketch (or branch) head]
sketch (or branch) body
[head of this (tagless) simple sketch (or branch)]
sketch (or branch) body
the module and simple sketch above
are textualized to
[sketch (or branch) head]
textualized sketch (or branch) body
[head of this (tagless) simple sketch (or branch)]
textualized sketch (or branch) body
Module comments are not subject to textualization.
Beside additional structuring of sketchy HTML texts,
such grouping schemes can be used also for inserting necessary
sub-schemes where needed.
some patterns
Sketchy HTML text with BODY
Sketchy HTML text with FRAMESET
HTML
DOCTYPE . . .
HEAD
FRAMESET
COLS=" %, %"
FRAME
SRC=" " NAME=" "
FRAMESET
ROWS=" %, %"
FRAME
SRC=" " NAME=" "
FRAME
SRC=" " NAME=" "
NOFRAMES