hsc adds some special attributes, which can be quite useful to include special data or configure the parser.
HSC.ANCHOR contains destination URI of last anchor
HSC.CLICK-HERE declare keywords for "click here"-syndrome
HSC.COLOR-NAMES declare values to be used as colors-names
HSC.CONTENT access content text of current container macro
HSC.DOCUMENT.NAME filename of html-object
HSC.DOCUMENT.PATH directory of html-object
HSC.DOCUMENT.URI full relative URI of html-object
HSC.EXEC.RESULT contains return-code of command invoked by HSC.LF contains a single linefeed-character
HSC.SOURCE.NAME filename of hsc-source
HSC.SOURCE.PATH directory of hsc-source
HSC.SOURCE.FILE full path and filename of hsc-source
HSC.SYSTEM contains value depending on operating system
HSC.FORMAT.FILESIZE how to render HSC.FORMAT.TIME how to render HSC.TMP.* temporary attributes for internal use
This attribute is defined internally during startup and is maintained
by
<$include FILE="exmpl/anchor.hsc"><**********************************************************> <* HSC.Content *> <**********************************************************>
This attribute is defined internally during startup and is
maintained by These attributes are defined internally during startup and are read-only.
They contain the filename, the directory and the whole
relative URI of the to be created html-object. These attributes are defined internally 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 internally during startup and is
read-only. It contains a value depending on the operating
system For several tasks, For example, if you are using the special tag
<(...)> (insert expression),
This attribute is defined in For attributes of type
This one contains all values recommended for html-0.32 and is in
the This attribute is defined in When processing German documents, probably this one would
fit better:
Note that
attribute
value
HSC.DOCUMENT.NAME
"hugo.html"
HSC.DOCUMENT.PATH
"people/"
HSC.DOCUMENT.URI
"people/hugo.html"
HSC.DOCUMENT.PATH does not contain the whole
destination-directory, but only the relative path.
\n
<**********************************************************>
<* HSC.System *>
<**********************************************************>
attribute
value
HSC.SOURCE.NAME
"hugo.hsc"
HSC.SOURCE.PATH
"people/"
HSC.SOURCE.URI
"people/hugo.hsc"
OS | HSC.SYSTEM
--------+-----------
AmigaOS | AMIGA
RiscOS | RISCOS
Unixoid | UNIX
*>
This can be useful if you are executing a shell-command during
conversion. See
OS
HSC.SYSTEM
AmigaOS
AMIGA
RiscOS
RISCOS
Unixoid
UNIX
HSC.TMP.insert.expression to
assign the value of the expression you passed between the brackets.
If this expression now is corrupt, you will achieve a message mentioning
the attribute HSC.TMP.insert.expression.Attributes for configuration
<**********************************************************>
<* HSC.Color-Names *>
<**********************************************************>
COLOR,
you can not only use the
cryptic #rrggbb-style, but also use some predefined
values. With this attribute you can declare which values
%b is replaced by the filesize in bytes.
%k is replaced by the filesize in kilo-bytes.
%m is replaced by the filesize in mega-bytes.
%g is replaced by the filesize in giga-bytes.
%a is replaced by the filesize, with a reasonable unit computed automatically
%u is replaced by the unit for %a
This attribute is defined internally during startup, and contains the
value "%a%u", leading to results like "123K" or
"12M". It can be changed by the user at any time.
<**********************************************************>
<* HSC.Format.Time *>
<**********************************************************>
strftime()):
%A is replaced by the full weekday name.
%a is replaced by the abbreviated weekday name, where the abbreviation
is the first three characters.
%B is replaced by the full month name.
%b or %h
is replaced by the abbreviated month name, where the abbreviation
is the first three characters.
%C is equivalent to
This attribute is defined internally during startup, and contains the
value "<(GetTime())>".