This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: DOCBOOK: auto-indent tool
- To: Carlos Eduardo Selonke de Souza <cess at matrix dot com dot br>, docbook-apps at lists dot oasis-open dot org, bmadi_1 at yahoo dot com, camille at mandrakesoft dot com
- Subject: DOCBOOK-APPS: Re: DOCBOOK: auto-indent tool
- From: madhu <b_maddy_016 at yahoo dot com>
- Date: Mon, 12 Jun 2000 21:27:54 +0530
- References: <XFMail.000612091844.cess@matrix.com.br>
Hi,
i guess i need to be more expilict ;-)
it is worth trying by inserting a html tag at the begining and end, i dont
think so it checks for validity for a identation.
i have not tried this also for the moment i didnt have a copy of tidy with me
otherwise i would have tried it
however i would welcome a post to this list about success or failure
thanks
regards
maddy
On Mon, 12 Jun 2000, Carlos Eduardo Selonke de Souza wrote:
> [Im belive this belongs to docbook-apps, Im cc to there.]
>
> On 09-Jun-00 madhu wrote:
> > Hi,
> > i am not sure about this, since i haven't used it for a long time but tidy
> > has
> > a indentation feature. please check it out on
> > www.w3.org site
> >
>
> AFAIK, tidy works only with HTML documents.
>
> > On Fri, 09 Jun 2000, you wrote:
> >> Hi,
> >> I would be glad if someone could point me to an auto-indentation script
> >> capable of formatting docbook source files so that for example
> >> <figure id="sources-diagram"><title>
> >> The source files structure
> >> </><mediaobject>
> >> <imageobject><imagedata fileref="../images/sources.png"
> >> format="gif"></imageobject>
> >> </mediaobject></figure>
> >>
> >> be rendered in:
> >>
> >> <figure id="sources-diagram">
> >> <title>The source files structure</>
> >> <mediaobject>
> >> <imageobject>
> >> <imagedata fileref="../images/sources.png" format="gif">
> >> </imageobject>
> >> </mediaobject>
> >> </figure>
> >>
>
>
> If you use XEmacs (www.xemacs.org) with PSGML
> (http://www.lysator.liu.se/~lenst/about_psgml/) , XEmacs with automaticaly
> auto-indent your "new" SGML documents.
> You just have to add to yours XEmacs configuration file (.emacs) the
> following lines
>
>
> (setq sgml-indent-data t)
> (setq sgml-indent-step 2)
>
> This will works with new documents, every time you insert a tag with using
> XEmacs+PSGML comand Insert Tag (C-c C-e), XEmacs will auto-indent the tag for
> you.
>
>
> Regards.
>
> Carlos Eduardo Selonke de Souza
> http://www.br-unix.org/users/cess
>
> -----BEGIN GEEK CODE BLOCK-----
> Version:3.1
> GE d+@ s+:+ a-- C+++ UB++> P+ !L E W++(+) N+> K- w--
> !O !M V- PS+ PE+ Y PGP- t+ 5 X++ R- tv++ b++ DI++ D+
> G e++ h r+++ y+++
> -----END GEEK CODE BLOCK------
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com