Re: [PATCH v3 0/2] Re: user-manual: general improvements

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Michael J Gruber
Date: Monday, May 25, 2009 - 5:41 am

Felipe Contreras venit, vidit, dixit 21.05.2009 17:57:

I am sorry but I don't think you fully comprehend the documentation tool
chain. Asciidoc translates the *.txt according to config files which
come with asciidoc and can be (and are, in our case) modified. It
translates into xml (for man pages) which is semantic markup. Even at
that step, there are more options - the standard asciidoc.conf (asciidoc
8) has:

[quotes]
# Constrained quotes.
*=strong
'=emphasis
`=monospaced
``|''=quoted
ifdef::asciidoc7compatible[]
\##=unquoted
endif::asciidoc7compatible[]
ifndef::asciidoc7compatible[]
\#=unquoted
_=emphasis
+=monospaced
# Unconstrained quotes.
**=#strong
__=#emphasis
++=#monospaced
\##=#unquoted
^=#superscript
~=#subscript
endif::asciidoc7compatible[]

So, you see we could use quite a few more quote designators if we wished
to. We only needed ' and _ to be different, for example.

Backend specific config files determine what "emphasis" is translated
into: an <emphasis> tag for docbook-xml, an <em> tag (with attributes)
for xhtml.

Then, for man page format, docbook style sheets are applied (using
xsltproc or such) to the xml files. The final appearance is determined
by those sheets. (For html, it's merely css applied by the browser.)

The asciidoc manual really only explains example usage with the default,
unmodified config files.


Yes, which is why I said "for example", and why a guide needs some
thinking. Or I would have come up with one...


I guess you completely misunderstood my remark (and I may very well be
the one to blame for that), and it doesn't matter in the context of this
thread. I have no problems formatting the user-manual, thanks to the
recent addition of ASCIIDOC_NO_ROFF ;)

Michael
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v3 0/2] user-manual: general improvements, Felipe Contreras, (Wed May 6, 3:53 pm)
[PATCH v3 0/2] Re: user-manual: general improvements, Nicolas Sebrecht, (Thu May 7, 12:23 am)
Re: [PATCH v3 0/2] Re: user-manual: general improvements, Junio C Hamano, (Thu May 7, 5:04 pm)
Re: [PATCH v3 0/2] Re: user-manual: general improvements, Junio C Hamano, (Wed May 20, 6:33 pm)
Re: [PATCH v3 0/2] Re: user-manual: general improvements, Junio C Hamano, (Wed May 20, 10:18 pm)
Re: [PATCH v3 0/2] Re: user-manual: general improvements, Felipe Contreras, (Thu May 21, 12:17 am)
[PATCH v3 0/2] Re: user-manual: general improvements, Nicolas Sebrecht, (Thu May 21, 6:18 am)
Re: [PATCH v3 0/2] Re: user-manual: general improvements, Michael J Gruber, (Thu May 21, 6:25 am)
Re: [PATCH v3 0/2] Re: user-manual: general improvements, Junio C Hamano, (Thu May 21, 7:14 am)
Re: [PATCH v3 0/2] Re: user-manual: general improvements, Felipe Contreras, (Thu May 21, 8:47 am)
Re: [PATCH v3 0/2] Re: user-manual: general improvements, Felipe Contreras, (Thu May 21, 8:57 am)
Re: [PATCH v3 0/2] Re: user-manual: general improvements, Felipe Contreras, (Thu May 21, 9:00 am)
Re: [PATCH v3 0/2] Re: user-manual: general improvements, Junio C Hamano, (Thu May 21, 9:10 am)
Re: [PATCH v3 0/2] Re: user-manual: general improvements, Wincent Colaiuta, (Thu May 21, 9:41 am)
Re: [PATCH v3 0/2] Re: user-manual: general improvements, Michael J Gruber, (Mon May 25, 5:41 am)