Turning on smartquotes for HTML output

Greg 'groggy' Lehey grog at FreeBSD.org
Thu May 5 23:50:52 UTC 2005


On Thursday,  5 May 2005 at  6:24:12 -0700, Murray Stokely wrote:
> I would like to use proper entities to generate smart quotes rather
> than relying on double ``ticks''.  The following patch produces much
> nicer looking quotes in FireFox and Opera on FreeBSD.  We didn't have
> this option many years ago when the quote element was first added to
> our stylesheets, but the smartquote entities are now well supported so
> we should use them.  If there are no objections I'll commit the
> following patch.
>
> 	- Murray
>
> Index: release.dsl
> ===================================================================
> RCS file: /home/ncvs/src/release/doc/share/sgml/release.dsl,v
> retrieving revision 1.8
> diff -u -r1.8 release.dsl
> --- release.dsl	5 Sep 2004 13:50:38 -0000	1.8
> +++ release.dsl	5 May 2005 13:12:19 -0000
> @@ -117,9 +117,9 @@
>  	<!-- Convert " ... " to `` ... '' in the HTML output. -->
>  	(element quote
>  	  (make sequence
> -	    (literal "``")
> +	    (literal "“")
>  	    (process-children)
> -	    (literal "''")))
> +	    (literal "”")))

Wouldn't this be better as “ and ”?

Greg
--
See complete headers for address and phone numbers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-doc/attachments/20050506/0a5c39d5/attachment.sig>


More information about the freebsd-doc mailing list