docbook: DocBook HTML cleanup
Subject:
Re: DocBook HTML cleanup
From:
Tabatha Persad ####@####.####
Date:
4 Jun 2002 04:17:08 -0000
Message-Id: <20020604041641.EGLO20219.sccrmhc03.attbi.com@there>
On Monday 03 June 2002 21:39, Chip Cuccio wrote:
> I used the cool HOWTO you sent me (you rock :-). I ended up
> ripping out all DB/SGML, etc. RPM's and installing from scratch. I
> upgraded from RH 7.2 to 7.3 and it seemed to have broken some
> stuff, so the HOWTO came in handy...really handy :-)
Ain't it great!
> > One thing, I use Emacs to edit my files, and whenever I load them
> > there, they are fine. No weirdness. And there's a tool to
> > Normalize under one of the drop down menus, which fixes messes
> > like that...
>
> Are you talking about your DB source, or rendered HTML?
> To edit my DB source,
> I use Vim, with a really cool DocBook-laden .vimrc (thanks to Greg
> F. for showing me that vimrc). In case anyone is interested, I got
> it here:
> http://www.lodestar2.com/software/docbook/vimrc
Both. I edit everything in Emacs (not XEmacs, ewww). It's moldy
dark green screen has become my best friend, and plugs in a lot of
cool tools, depending on what your file extension is. If you load
html, it offers you an html drop-down.
> In any event, I tried Emacs, but I don't seem to have the Normalize
> command. Maybe it's in your .emacs? Tidy works VERY well, but it
> inserts another GENERATOR meta tag (on top of DocBook's), and it
> seems to auto-declare the DOCTYPE as HTML 4.01 Trans. While this
> may be OK, all I wanted to do is "beautify", not modify my HTML
> source...ya know?
You probably don't have it because you need the psgml plug-in for
Emacs, psgml-1.2.4.tar.gz (you can find that at
http://sourceforge.net/projects/psgml. Install that and then when
you load SGML into Emacs it loads the additional drop-downs, lets you
highlight your tags, list valid tags when you're in your doc etc. If
you can get through installing this, then you can handle Emacs.
Maybe something to try when you're feeling adventurous?
Enjoy!
--
Tabatha Persad
Web: http://www.merlinmonroe.com
The Linux Counter Project Area Manager US:wa (http://counter.li.org)
Linux Documentation Project Editor (http://www.tldp.org)
Gnu Writing Movement Project Developer (http://gwm.gnu.org)