Showing posts with label Smart Quotes. Show all posts
Showing posts with label Smart Quotes. Show all posts

Tuesday, 25 November 2008

Smart quotes with FrameMaker and DITA-FMx

(FrameMaker 8 with DITA-FMx v1.00.26, DITA 1.0)

If you have Smart Quotes turned on in FrameMaker, beware that double quotes (") typed in FrameMaker are by default translated as `` (“) and ” (”) in generated XHTML. Only by turning off Smart Quotes in FrameMaker can I get standard straight quotes " (") in the XHTML. Of course, I then get straight quotes in my PDF files as well.

The solution is to wrap the text in a <q> (quote) element in DITA.

This has several advantages:
1. The correct opening and closing smart quotes are inserted automatically in FrameMaker.
2. The generated XHTML gets straight quotes.
3. The generated PDF gets smart quotes.
4. When the language attribute is set, the quotes get translated to localized versions, for example
« (&#171;) and » (&#187;) in French.