First off, I wanted to introduce myself to the members of the krusader documentation group. I got involved a few weeks ago by answering the call for documentation help, and have since worked on commands.docbook.
I came up with a script that formats the docbook files, and am attaching it to this email for whatever purpose you find fit. Basically, the script takes docbook file names as inputs, and formats the docbook files in a nice fashion. The script is in plain text if you are interested in what it does more exactly. Please note that the script will change poorly formatted docbooks quite drastically, so consider this when attempting to diff against a previous revision of a given document.
If you experience any problems with it, please let me know.
> First off, I wanted to introduce myself to the members of the krusader > documentation group. I got involved a few weeks ago by answering the > call for documentation help, and have since worked on commands.docbook.
> I came up with a script that formats the docbook files, and am attaching > it to this email for whatever purpose you find fit. Basically, the > script takes docbook file names as inputs, and formats the docbook files > in a nice fashion. The script is in plain text if you are interested in > what it does more exactly. Please note that the script will change > poorly formatted docbooks quite drastically, so consider this when > attempting to diff against a previous revision of a given document.
> If you experience any problems with it, please let me know.
I have tried the script. Could you check e.g. credits.docbook and index.docbook? e.g. <bookinfo> and <itemizedlist> becomes difficult to read for humans.
Thanks and bye,
Frank
On 10/26/06, Frank Schoolmeesters <frank.schoolmeest...@gmail.com> wrote:
> Thanks! > I intend to use this script (the next time when i have found some time > to work at the docs ;)
> bye,
> Frank
> On 10/26/06, dkpr...@gmail.com <dkpr...@gmail.com> wrote: > > Hey all,
> > First off, I wanted to introduce myself to the members of the krusader > > documentation group. I got involved a few weeks ago by answering the > > call for documentation help, and have since worked on commands.docbook.
> > I came up with a script that formats the docbook files, and am attaching > > it to this email for whatever purpose you find fit. Basically, the > > script takes docbook file names as inputs, and formats the docbook files > > in a nice fashion. The script is in plain text if you are interested in > > what it does more exactly. Please note that the script will change > > poorly formatted docbooks quite drastically, so consider this when > > attempting to diff against a previous revision of a given document.
> > If you experience any problems with it, please let me know.
Can you change the next issues: - use by default tidy, and as alternative xmllint - adapt the script that it will runs from the krusader_kde3/doc directory and that it beatifies krusader_kde3/doc/en/*.docbook
So $~/krusader_kde3/doc/./beatify_docbook sould reslult that all *.docbook files of ~/krusader_kde3/doc/en are beatified with tidy.
When this is done the script will be added in cvs.
> I updated the beautification script so that you may specify an > alternate pretty printer (tidy). This can invoked by a command line > switch of -a or --alternate. If the experience with tidy is better > than xmllint, I may switch over to it.
On 10/28/06, Frank Schoolmeesters <frank.schoolmeest...@gmail.com> wrote:
> I have tried the script. > Could you check e.g. credits.docbook and index.docbook? > e.g. <bookinfo> and <itemizedlist> > becomes difficult to read for humans.
> Thanks and bye,
> Frank
> On 10/26/06, Frank Schoolmeesters <frank.schoolmeest...@gmail.com> wrote: > > Hi Dan,
> > Thanks! > > I intend to use this script (the next time when i have found some time > > to work at the docs ;)
> > bye,
> > Frank
> > On 10/26/06, dkpr...@gmail.com <dkpr...@gmail.com> wrote: > > > Hey all,
> > > First off, I wanted to introduce myself to the members of the krusader > > > documentation group. I got involved a few weeks ago by answering the > > > call for documentation help, and have since worked on commands.docbook.
> > > I came up with a script that formats the docbook files, and am attaching > > > it to this email for whatever purpose you find fit. Basically, the > > > script takes docbook file names as inputs, and formats the docbook files > > > in a nice fashion. The script is in plain text if you are interested in > > > what it does more exactly. Please note that the script will change > > > poorly formatted docbooks quite drastically, so consider this when > > > attempting to diff against a previous revision of a given document.
> > > If you experience any problems with it, please let me know.
Unfortunately tidy kills the docbook files, and they don't compile anymore. tidy replaces "&" by "&", in some cases this is ok, but at other places "&" is requiered and it's not authorised to change it in something else. I have tried to find out if it possible to stop this behavour, but i haven't found one for the moment. So currently tidy is unusable, since the docbook files compilation gives a lot of errors due to these unwanted "&" replacements The formatting output to improve the human readbility is ok.
So, i committed the old docbook files again in cvs without the tidy cleanup.
bye,
Frank
On 11/11/06, Frank Schoolmeesters <frank.schoolmeest...@gmail.com> wrote:
> I have used the script with tidy as alternative parser and comitted the > beatified *.docbook files in cvs. > http://krusader.cvs.sourceforge.net/krusader/krusader_kde3/doc/en/ > Tidy gives much better formatting results than xmllint for Krusaders > docbook files.
> Can you change the next issues: > - use by default tidy, and as alternative xmllint > - adapt the script that it will runs from the > krusader_kde3/doc directory and that it beatifies > krusader_kde3/doc/en/*.docbook
> So > $~/krusader_kde3/doc/./beatify_docbook > sould reslult that all *.docbook files of > ~/krusader_kde3/doc/en > are beatified with tidy.
> When this is done the script will be added in cvs.
> On 11/7/06, Dan Price <dkpr...@gmail.com> wrote: > > I updated the beautification script so that you may specify an > > alternate pretty printer (tidy). This can invoked by a command line > > switch of -a or --alternate. If the experience with tidy is better > > than xmllint, I may switch over to it.
> On 10/28/06, Frank Schoolmeesters <frank.schoolmeest...@gmail.com> wrote: > > Hi Dan,
> > I have tried the script. > > Could you check e.g. credits.docbook and index.docbook? > > e.g. <bookinfo> and <itemizedlist> > > becomes difficult to read for humans.
> > Thanks and bye,
> > Frank
> > On 10/26/06, Frank Schoolmeesters <frank.schoolmeest...@gmail.com> wrote: > > > Hi Dan,
> > > Thanks! > > > I intend to use this script (the next time when i have found some time > > > to work at the docs ;)
> > > bye,
> > > Frank
> > > On 10/26/06, dkpr...@gmail.com <dkpr...@gmail.com> wrote: > > > > Hey all,
> > > > First off, I wanted to introduce myself to the members of the krusader > > > > documentation group. I got involved a few weeks ago by answering the > > > > call for documentation help, and have since worked on commands.docbook.
> > > > I came up with a script that formats the docbook files, and am attaching > > > > it to this email for whatever purpose you find fit. Basically, the > > > > script takes docbook file names as inputs, and formats the docbook files > > > > in a nice fashion. The script is in plain text if you are interested in > > > > what it does more exactly. Please note that the script will change > > > > poorly formatted docbooks quite drastically, so consider this when > > > > attempting to diff against a previous revision of a given document.
> > > > If you experience any problems with it, please let me know.