hsc adds some special attributes, which can be quite useful to include special data or configure the parser.
__ANCHOR__ contains destination URI of last anchor
__CLICK_HERE__ declare keywords for "click here"-syndrome
__COLOR_NAMES__declare values to be used as colors-names
__DEST_NAME__filename of html-object
__DEST_PATH__directory of html-object
__DEST_URI__full relative URI of html-object
__SOURCE_NAME__filename of hsc-source
__SOURCE_PATH__directory of hsc-source
__SOURCE_FILE__full path and filename of hsc-source
__SYSTEM__contains value depending on operating system
This attribute is defined internaly during startup and is maintained
by
<$include FILE="exmpl/anchor.hsc">
These attributes are defined internaly during startup and are read-only. They contain the filename, the directory and the whole relative URI of the to be created html-object.
For example, <$source PRE> hsc FROM people/hugo.hsc TO html:my_project/ $source> will lead to <$source PRE> attribute | value --------------+---------------- __DEST_NAME__ | "hugo.html" __DEST_PATH__ | "people/" __DEST_URI__ | "people/hugo.html" $source> Note that__DEST_PATH__ does not contain the whole
destination-directory, but only the relative path.
These attributes are defined internaly during startup and are read-only.
They contain the filename, the directory and the full path and filename
of the hsc-source you've passed specified when invoking
This attribute is defined internaly during startup and is
read-only. It contains a value depending on the operating
system
OS | __SYSTEM__
---------+-----------
AmigaOS | AMIGA
Unix-esh | UNIX
This for example can be useful if you are executing a shell-command during
conversion. See This attribute is defined in
For attributes of type COLOR, you can not only use the
cryptic #rrggbb-style, but also use some predefined
values. With this attribute you can declare which values |').
<$source>
<$define __COLOR_NAMES__:string/c="aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|purple|red|silver|teal|white|yellow">
$source>
This one contains all values recommended for html-0.32 and is in
the
This attribute is defined in
|').
Example: <$source>
<$define __CLICK_HERE__:string/c="click|here">
$source>
When processing german documents, probably this one would fit better:
<$source>
<$define __CLICK_HERE__:string/c="klicken|hier">
$source>