Documentation Tools

Changeset 186


Ignore:
Timestamp:
06/16/07 13:58:19 (5 years ago)
Author:
kate
Message:

Enhanced quoting a little; specifically nested quotes.

Location:
trunk
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xsl/texml/common/para.xsl

    r180 r186  
    100100 
    101101        <xsl:template match="blockquote"> 
     102                <!-- 
     103                        More recently, it seems that block quotes have quotation marks. 
     104                        ConTeXt follows after this modern trend. I like this because it 
     105                        clearly incidates when people are abusing blockquote and really 
     106                        just want narrower text instead. 
     107                --> 
    102108                <env name="quotation"> 
    103109                        <!-- TODO @lang is especially relevant here --> 
     
    115121                        <xsl:apply-templates select="@Lang"/> 
    116122 
    117                         <cmd name="quote" gr="0"/> 
     123                        <!-- 
     124                                Alternate for nested quotes. According to the BBC style guide, 
     125                                the outer quotes should be double to avoid confusion with ending 
     126                                apostophies: 'don't'. They also say emphasis should be single 
     127                                quotes, but I don't think we can control that adequately. 
     128 
     129                                ConTeXt nicely handles the extra space required for Guillemets. 
     130 
     131                                We have no control over the position of punctuation. 
     132 
     133                                Docbook has no mechanism to express single quotations used 
     134                                for emphasis (as opposed to quoting sentences with double 
     135                                quotes) ala ConTeXt's \quote{}. We make do without that; hijacking 
     136                                <emphasis> for this purpose would be inappropiate. 
     137                        --> 
     138                        <xsl:choose> 
     139                                <xsl:when test="count(ancestor::quote | ancestor::blockquote) mod 2 = 0"> 
     140                                        <cmd name="quotation" gr="0"/> 
     141                                </xsl:when> 
     142                                <xsl:otherwise> 
     143                                        <cmd name="quote" gr="0"/> 
     144                                </xsl:otherwise> 
     145                        </xsl:choose> 
     146 
    118147                        <xsl:apply-templates/> 
    119148                </group> 
Note: See TracChangeset for help on using the changeset viewer.