Just escape the first single quote with a backslash.

Cheers
Lex

On 1 March 2011 06:09, Wirawan Purwanto <[email protected]> wrote:
> Consider the following asciidoc snippet:
>
>  :t: tesr1
>
>  (this is a `{t}') test
>  this is a `{t}' test
>
> which in your current asciidoc renders as:
>
> // begin asciidoc snippet
>
> ==================
> :t: tesr1
>
> (this is a `{t}') test
> this is a `{t}' test
> ==================
>
> // end asciidoc snippet
>
> The paragraph above is messed up because the first single quote
> character is misinterpreted as the beginning of an "emphasis"
> quotation.
> I meant to have the two "tesr1" strings agove (which is an expansion
> of attribute "t") to be singly quoted;
> instead, asciidoc renders the string
>
>  ) test this is a `tesr1
>
> in emphasized format instead.
> The correct rendering should have been like this:
>
> ==================
> (this is a `tesr1') test
> this is a `tesr1' test
> ==================
>
> From the [quotes] section in asciidoc.conf I see that the
> ++emphasis++-style quotation precedes the ++singlequoted++ entry,
> so emphasis is processed before single quotation.
> It appears to me that the "singlequoted" should be processed first.
> I verified that reversing the order of the two quotations fix the
> problem with my test sentence above.
> But I am not an asciidoc expert, so I want to know if there is an
> issue by swapping the two
> (in the original asciidoc 8.6.4, this entails swapping lines 76 and 77
> in asciidoc.conf).
> One thing we note right away is that the singly-quoted emphasis like
>
>  This is `supposed to be an 'emphasis' inside the singly quoted
> piece'
>  of text.
>
> will not work anymore. The workaround is to use underscore rather than
> single aphostrophe, i.e.,
>
>  This is `supposed to be an _emphasis_ inside the singly quoted
> piece'
>  of text.
>
> Any comment?
>
> Thanks,
> Wirawan
>
> --
> You received this message because you are subscribed to the Google Groups 
> "asciidoc" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/asciidoc?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to