]> granicus.if.org Git - docbook-dsssl/commitdiff
Render servicemark and trademark as (SM) and (TM).
authorMichael Smith <xmldoc@users.sourceforge.net>
Tue, 28 Jun 2005 09:18:08 +0000 (09:18 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Tue, 28 Jun 2005 09:18:08 +0000 (09:18 +0000)
Because console output for groff "\(tm" is not acceptable.

xsl/manpages/charmap.groff.xsl

index 000d0d58813ccd5ce7bb173db070298f9e9efa8d..617dbf84bc419484cdee33613e59105441b92c38 100644 (file)
   <xsl:output-character
    character="&#x2120;"
    u:name="SERVICE MARK"
-   string="sm"
+   string="(SM)"
    u:block="Letterlike Symbols"
    />
+  <!-- * We don't do "\(tm" for &#x2122; because for console output, groff -->
+  <!-- * just renders that as "tm", without any preceding space, parens, -->
+  <!-- * or anything. So it just gets run into the preceding word; i.e.: -->
+  <!-- * -->
+  <!-- *  Product&#x2122; -> Producttm -->
+  <!-- * -->
+  <!-- * That it probably not what most people would want. So we just -->
+  <!-- * render it as (TM) instead, Thus: -->
+  <!-- * -->
+  <!-- *  Product&#x2122; -> Product(TM) -->
   <xsl:output-character
    character="&#x2122;"
    u:name="TRADE MARK SIGN"
    u:entity="trade"
-   string="\(tm"
+   string="(TM)"
    u:block="Letterlike Symbols"
    />
   <xsl:output-character