On 17 January 2016 at 10:54, James Bostock <[email protected]> wrote:
> Hi
>
> Using unconstrained quotes (i.e. `__emphasis__') produces the desired
> output.

In asciidoc single quotes need whitespace outside them (or a few
allowed punctuations eg full stop), so they are less likely to be
recognised in unwanted situations.  Whilst unconstrained quotes can
occur anywhere.

>
> I found that, in addition to the asciidoc tool, there is another tool,
> asciidoctor. Asciidoc and asciidoctor do not agree on how various
> combinations of quotes and emphasis should be handled. Attached is a small
> example AsciiDoc document and the output generated by asciidoc (version
> 8.6.9) and  asciidoctor (version 1.5.2). In neither case do I specify
> command line options.

Actually you didn't attach it. :)

Asciidoc is the original implementation, asciidoctor is a new
implementation.  It fixes some of the implementation specific quirks
of asciidoc and has some improvements, and is waaaaay faster :) but it
also has a backward compatible mode where it is intended that it match
the *specified* behaviour of asciidoc (but perhaps not some of the
implementation specific quirks, of which quote substitution is one).
IIUC the compatibility mode is invoked automatically if it recognises
some specific features of the document or can be specified manually.

Cheers
Lex

>
> Thanks,
>
> James
>
>
> On Sunday, January 17, 2016 at 9:57:27 AM UTC+11, James Bostock wrote:
>>
>> Hi,
>>
>> I am using AsciiDoc 8.6.9.
>>
>> I want to include emphasized text within single quotation marks. The
>> problem seems to be that the emphasized text is all that there is within the
>> quotes:
>>
>> `_emphasis_'
>>
>> The XHTML output for this is:
>>
>> <div class="paragraph"><p>&#8216;_emphasis_&#8217;</p></div>
>>
>>
>> Where the desired output is:
>>
>> <div class="paragraph"><p>&#8216;<em>emphasis</em>&#8217;</p></div>
>>
>>
>> Curiously (I have been experimenting while writing this message), the
>> following does work as desired:
>>
>> `'emphasis''
>>
>> I.e. using single quote marks instead of underscores. Is it, thus, a bug
>> in AsciiDoc that this doesn't work with underscores?
>>
>> Thanks,
>>
>> James
>
> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/asciidoc.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to