I want to author documents in XML so I can reuse the content. How should I deal with acronyms, such that if I output to HTML I get all-caps, but if I typeset using ConTeXt (maybe using Simon's DocBook thing) I'd get small caps? Is there an element for this in DocBook, for example? Bruce
DocBook has the elemt <acronym>. It is recommended for precisely this use. Duncan dh@capdm.com
-----Original Message----- From: ntg-context-admin@ntg.nl [mailto:ntg-context-admin@ntg.nl]On Behalf Of Bruce D'Arcus Sent: 27 January 2003 15:29 To: ConTeXt list Subject: [NTG-context] acronyms and xml?
I want to author documents in XML so I can reuse the content. How should I deal with acronyms, such that if I output to HTML I get all-caps, but if I typeset using ConTeXt (maybe using Simon's DocBook thing) I'd get small caps? Is there an element for this in DocBook, for example?
Bruce
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
OK, followup then: First, so if I have <acronym>eu</acronym> the standard XSLT files and/or Jade would automatically make that "EU" for HTML or RTF output? Second, could I then setup DocBook in ConTeXt to automatically letterspace all acronyms? This would be using the CapStretch macro Bill McClain has listed on his website... \def\CapStretchAmount{.08em} \def\CapStretch#1{\def\stretchedspaceamount{\CapStretchAmount}\stretched normalcase{#1} Bruce On Monday, January 27, 2003, at 10:30 AM, Duncan Hothersall wrote:
DocBook has the elemt <acronym>. It is recommended for precisely this use.
Duncan dh@capdm.com
-----Original Message----- From: ntg-context-admin@ntg.nl [mailto:ntg-context-admin@ntg.nl]On Behalf Of Bruce D'Arcus Sent: 27 January 2003 15:29 To: ConTeXt list Subject: [NTG-context] acronyms and xml?
I want to author documents in XML so I can reuse the content. How should I deal with acronyms, such that if I output to HTML I get all-caps, but if I typeset using ConTeXt (maybe using Simon's DocBook thing) I'd get small caps? Is there an element for this in DocBook, for example?
Bruce
* Bruce D'Arcus
First, so if I have <acronym>eu</acronym> the standard XSLT files and/or Jade would automatically make that "EU" for HTML or RTF output?
No, the standard DocBook XSL stylesheets (currently version 1.60.1) won't automatically make that Uppercase. You'd have to customize the according template if you want this behaviour. For the DSSSL stylesheets (for RTF output) I'm not completely sure, but I'think they behave like the XSL stylesheets. Michael -- mw@miwie.in-berlin.de http://www.miwie.org mw@miwie.org
On Monday, January 27, 2003, at 02:36 PM, Michael Wiedmann wrote:
* Bruce D'Arcus
[030127 13:57]: First, so if I have <acronym>eu</acronym> the standard XSLT files and/or Jade would automatically make that "EU" for HTML or RTF output?
No, the standard DocBook XSL stylesheets (currently version 1.60.1) won't automatically make that Uppercase. You'd have to customize the according template if you want this behaviour.
How about the other way around then: use <acronym>EU</acronym> and have ConTeXt make it lowercase and SC? Is that possible? Bruce
On Mon, Jan 27, 2003 at 01:57:17PM -0500, Bruce D'Arcus wrote:
OK, followup then:
First, so if I have <acronym>eu</acronym> the standard XSLT files and/or Jade would automatically make that "EU" for HTML or RTF output?
Second, could I then setup DocBook in ConTeXt to automatically letterspace all acronyms? This would be using the CapStretch macro Bill McClain has listed on his website...
\def\CapStretchAmount{.08em} \def\CapStretch#1{\def\stretchedspaceamount{\CapStretchAmount}\stretched normalcase{#1}
\defineXMLargument[acronym]\CapStretch I think you should write the acronym in capitals. Then obtain small caps as follows: \defineXMLargument[acronym]\doacronym \def\doacronym#1{{\sc\lowercase{\CapStretch{#1}}}} I have inserted the latter without the \CapStretch, which I do not like. Simon -- Simon Pepping email: spepping@scaprea.hobby.nl
participants (4)
-
Bruce D'Arcus
-
Duncan Hothersall
-
Michael Wiedmann
-
Simon Pepping