#6 Incorrect rendering of quotes

v1.0_(example)
open
nobody
None
5
2005-01-27
2005-01-27
Anil Gangolli
No

Using Textile Version 1.20

Rendering of quotes in textile4j doesn't match what I'm
used to seeing from other textile generators. Here are
two specific examples:

Case I:

There is a test in the JUnit test in the textile4j (current)
tree on the input string:

Welcome to Mark's Test

The expected result in that test case renders the
apostrophe as ‘ which appears as a downward-
slanted quote (a.k.a. backquote (`)). This is incorrect.
Testing the same string using the online example
generator at
http://www.textism.com/tools/textile/index.html yields
a result with the apostrophe represented as ’
(a.k.a. apostrophe (')) which matches normal
typographic conventions.

Case II:

As another example, consider the input string:

Anil says "Welcome to Mark's Test"

Textism's generator produces (correctly)

<p>Anil says &#8220;Welcome to Mark&#8217;s
Test&#8221; </p>

while Textile4j (as of 1.20) produces

<p>Anil says &#8221;Welcome to Mark&#8216;s
Test</p>

The last quote is completely lost, and the slanting on
both of the other two quotes is incorrect.

Discussion

  • Anil Gangolli
    Anil Gangolli
    2005-01-27

    Logged In: YES
    user_id=1205754

    OK. I noticed that the loss of the last quote can be worked
    around by adding a trailing space. The slanting and quote-
    matching however is still wrong.