Login  Register

Re: Smart quotes and DocBook

Posted by mojavelinux on Oct 29, 2018; 9:33pm
URL: https://discuss.asciidoctor.org/Smart-quotes-and-DocBook-tp6566p6568.html

It seems like the DocBook toolchain only alternates the quotes by the depth. So there's no way to specify the quote used specifically (by default, at least), even if we were to add an attribute.

See https://github.com/docbook/xslt10-stylesheets/blob/76a3690fa5d6adc5915ceed299d263a825e20e79/xsl/fo/inline.xsl#L794-L813

Cheers,

-Dan

On Mon, Oct 29, 2018 at 3:23 PM mojavelinux [via Asciidoctor :: Discussion] <[hidden email]> wrote:
That's a good question. It's a consequence of this change: https://github.com/asciidoctor/asciidoctor/issues/2272

How are single and double quotes differentiated in DocBook? I actually don't know. If I knew, it would be straightforward to add additional markup since we know which one it is at the time of conversion.

Cheers,

-Dan

On Mon, Oct 29, 2018 at 1:45 PM pela [via Asciidoctor :: Discussion] <[hidden email]> wrote:

Running asciidoctor with docbook output the sentence.

A "`double-quoted word`" and a '`single-quoted word`'.

Gives the translation:
<simpara>A
double-quoted word
 and a
single-quoted word
.</simpara>

Is this intended? How can I differentiate the quote marks?

pela


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Smart-quotes-and-DocBook-tp6566.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Smart-quotes-and-DocBook-tp6566p6567.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux