About HMG docs
Posted: Sat Apr 16, 2011 5:16 pm
Hi:
I've made some test with hmg documents, based on that we discuss in
the message http://hmgforum.com/viewtopic.php?f=32&t=1897&start=30.
I've made a tool to produce htm documents from txt. Is very similar
than hbdoc, just with small changes to make it more flexible to fit with our needs.
It's not finished, I want to produce pdf documents with this tool,
but I don't know how to build the tree in a pdf doc. (if someone know it, please let me know)
Before spend more time on this tool, I want to know if we continue with hmg docs as we discuss in
previous message.
If the answer is yes, then:
HbDoc is strict with indentation, which cause some troubles with viewers if the doc is not ok.
As you know harbour use docs with this format:
/* $DOC$
* $TEMPLATE$
* Function
* $NAME$
* __setcentury()
* $CATEGORY$
* API
* $ONELINER$
* Set the Current Century
...
* $END$
*/
Instead of this we can use docs as below.
We don't need C-style tags comments, /* * */ in txt docs.
Indentation is almost free.
BTW HMGdoc builder can read and write docs in harbour format, but I think is easier in this way.
It's possible to use the same section name several times in one document. f.e. $REMARKS$
We have to discuss about section names, but is possible expand them or reduce them.
Sections suggested by Esgici were added. $NOTES$, $HINTS$, $SEE ALSO$, $SOURCE$, $SAMPLES$, and others, read more about this in the htm.
$DOC$
$NAME$
Button
$CATEGORY$
Control
$ONELINER$
button gui object ...
...
$END$
Below there is a package to test this.
This package is to see more clear about what I'm talking about.
Please unzip it in ../hmg.4/svn/doc/
There you'll find some few source txt files, the output in htm format and the exe tool to make test.
I'll wait for your feedback.
I've made some test with hmg documents, based on that we discuss in
the message http://hmgforum.com/viewtopic.php?f=32&t=1897&start=30.
I've made a tool to produce htm documents from txt. Is very similar
than hbdoc, just with small changes to make it more flexible to fit with our needs.
It's not finished, I want to produce pdf documents with this tool,
but I don't know how to build the tree in a pdf doc. (if someone know it, please let me know)
Before spend more time on this tool, I want to know if we continue with hmg docs as we discuss in
previous message.
If the answer is yes, then:
HbDoc is strict with indentation, which cause some troubles with viewers if the doc is not ok.
As you know harbour use docs with this format:
/* $DOC$
* $TEMPLATE$
* Function
* $NAME$
* __setcentury()
* $CATEGORY$
* API
* $ONELINER$
* Set the Current Century
...
* $END$
*/
Instead of this we can use docs as below.
We don't need C-style tags comments, /* * */ in txt docs.
Indentation is almost free.
BTW HMGdoc builder can read and write docs in harbour format, but I think is easier in this way.
It's possible to use the same section name several times in one document. f.e. $REMARKS$
We have to discuss about section names, but is possible expand them or reduce them.
Sections suggested by Esgici were added. $NOTES$, $HINTS$, $SEE ALSO$, $SOURCE$, $SAMPLES$, and others, read more about this in the htm.
$DOC$
$NAME$
Button
$CATEGORY$
Control
$ONELINER$
button gui object ...
...
$END$
Below there is a package to test this.
This package is to see more clear about what I'm talking about.
Please unzip it in ../hmg.4/svn/doc/
There you'll find some few source txt files, the output in htm format and the exe tool to make test.
I'll wait for your feedback.