Subject: Re: CVS commit: htdocs/guide/en
To: None <mishka@apk.od.ua>
From: Hiroki Sato <hrs@NetBSD.org>
List: netbsd-docs
Date: 05/07/2005 02:49:05
----Security_Multipart0(Sat_May__7_02_49_05_2005_554)--
Content-Type: Multipart/Mixed;
 boundary="--Next_Part(Sat_May__7_02_49_05_2005_944)--"
Content-Transfer-Encoding: 7bit

----Next_Part(Sat_May__7_02_49_05_2005_944)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

"Mike M. Volokhov" <mishka@apk.od.ua> wrote
  in <20050506120242.4b6ce58e.mishka@apk.od.ua>:

mi> On Fri, 06 May 2005 02:26:24 +0900 (JST)
mi> Hiroki Sato <hrs@NetBSD.org> wrote:
mi> >  The newline and whitespace normalization can partially be done by
mi> >  xmlformat but needs some additional tweaks by hand because xmlformat
mi> >  cannot control line-breaks of inline element and indentation of
mi> >  #PCDATA.
mi> 
mi> Hmmm... I'm not sure I've understand you properly, because AFAIK
mi> xmlformat can do indent #PCDATA (with normalize & subindent). If some
mi> content is disallowed to change (like <screen>), it must not be
mi> indented as well.
mi> 
mi> Excuse me again, what exactly you meant about "control line-breaks of
mi> inline element"?

 Ah, sorry for the confusion.  I got the wrong idea about xmlformat.
 I thought that it cannot realize a format like <foo>text</foo>
 when format=block is specified (it can be done with normalize=yes,
 format=block, entry-break=0, exit-break=0, element-break=2).

 The diff for your netbsd.xmlformat is attached.  This is close to
 the rules I described in the previous mail.

-- 
| Hiroki SATO

----Next_Part(Sat_May__7_02_49_05_2005_944)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="netbsd.xmlformat.diff"

--- /home/hrs/netbsd.xmlformat.orig	Sat May  7 02:40:31 2005
+++ /home/hrs/netbsd.xmlformat	Sat May  7 02:44:44 2005
@@ -1,9 +1,9 @@
 # Default options
 *DEFAULT
 	format		block
-	subindent	0
-	entry-break	2
-	exit-break	2
+	subindent	2
+	entry-break	1
+	exit-break	1
 	element-break	2
 	normalize	no
 	wrap-length	0
@@ -29,7 +29,7 @@
 	subindent	2
 	entry-break	1
 	exit-break	1
-	element-break	1
+	element-break	2
 
 listitem \
 step \
@@ -50,13 +50,21 @@
 	wrap-length	72
 
 # Beautify various blocks and define verbatim/inline elements
-para blockquote
+blockquote
 	entry-break	1
 	exit-break	1
 	element-break	1
 	normalize	yes
 	wrap-length	72
 
+para corpauthor pubdate year
+	normalize	yes
+	format		block
+	wrap-length	72
+	entry-break	0
+	exit-break	0
+	element-break	2
+
 example note warning
 	subindent	2
 	entry-break	1
@@ -65,7 +73,8 @@
 
 quote emphasis literal \
 xref ulink email \
-filename devicename username hostid command userinput varname replaceable
+filename devicename username hostid command userinput varname replaceable \
+application
 	format		inline
 
 programlisting screen

----Next_Part(Sat_May__7_02_49_05_2005_944)----

----Security_Multipart0(Sat_May__7_02_49_05_2005_554)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQBCe64TTyzT2CeTzy0RAtGCAKC3PAVYii6xazzQ9Nhpr1DPFSE/9ACgu3AF
DSms/9Ah38pSDBzzaBaPGnI=
=mw8C
-----END PGP SIGNATURE-----

----Security_Multipart0(Sat_May__7_02_49_05_2005_554)----