Comment #6 on issue 94 by
andr...@googlemail.com: cmake: rewrite help2t2t
What is the format of manpage files?
In CTP latex, xml, and txt output is generated by the class
propertyiomanipulator (we use this for calculators).
All our XML files in share have the following format
<options>
<calcname help="" default="" unit="" section="">
</calcname>
</options>
i.e.:
<options>
<idft help="Projection method for electronic couplings. Requires edft
otput" section="sec:dft">
<job_file help="Job control file (full path)"></job_file>
<tasks help="What to do"
default="input,run,parse,trim,project">input,run,parse,trim,project</tasks>
<store help="What to store"
default="orbitals,overlap,integrals">orbitals,overlap,integrals</store>
<package help="XML file with options for the QM package"></package>
<degeneracy help="Criterium for the degeneracy of two levels"
unit="eV" default="0">0</degeneracy>
<levels help="Output between HOMO, ..., HOMO-levels; LUMO, ...,
LUMO+levels" default="3">3</levels>
<trim help="Use trim*occupied of virtual orbitals"
default="2">2</trim>
</idft>
</options>
from this we generate the tex manual, help output, xml output, etc.
Same can be done for executables. The easiest is to have an xml file
with their documentation. It's been on the agenda for a while, but I
haven't come up with a good solutuion how to do this. Any ideas? Victor?
Denis