Curly quotes test

The curly quotes test is especially easy to spot in French, as the English quotes are converted this way:

  • "word turns into "« ".
  • word" turns into " »".

(note the space: in French typography, the word should separated from the sign with a non-breakable space.

Now, let’s test this in different situations :

Original: Here a "simple test".
Texturized: Here a « simple test ». Here, the quotes are as expected: « « » opens, « » » closes.

Original: Here is "a longer test" that involves more words.
Texturized: Here is « a longer test » that involves more words. GOOD, it works.

Original: Here is "a test with a link".
Texturized: Here is « a test with a link« . NOT GOOD, « is closing.

Original: Here is "a longer test" with a link.
Texturized: Here is « a longer test » with a link. GOOD.

Original: Here is "another test", with a comma.
Texturized: Here is « another test« , with a comma. NOT GOOD, « is closing.

Original: And yet "another test"; with a semicolon (with not space).
Texturized: And yet « another test« ; with a semicolon. NOT GOOD, « is closing.

Original: This one "further test"- uses a dash (with not space).
Texturized: This one « further test« – uses a dash. NOT GOOD, « is closing.

Original: In this one, the "quoted section is not entirely a link".
Texturized: In this one, the « quoted section is not entirely a link ». GOOD.

Original: And now, the "quoted section ends with a link".
Texturized: And now, the « quoted section ends with a link« . NOT GOOD, « is closing.

Original: Same exact string, with a space between the ending quote and the period: And now, the "quoted section ends with a link" .
Texturized: Same exact string, with a space between the ending quote and the period: And now, the « quoted section ends with a link » . GOOD.

Original: One further test, with "a word stuck to the"ending quote.
Texturized: One further test, with « a word stuck to the« ending quote. NOT GOOD, « is closing.

Original: Ah, there comes another test, with a finishing number, "like 23".
Texturized: Ah, there comes another test, with a finishing number, « like 23″. NOT GOOD, ″ (rdquo) is closing (?!?).

Original: If there’s a space, "like 62" right here, it also fails.
Texturized: If there’s a space, « like 62″ right here, it also fails. NOT GOOD, ″ (rdquo) is closing (?!?).

Original: Let’s test with further stuff, "like ellipses"…
Texturized: Let’s test with further stuff, « like ellipses« … NOT GOOD, « is closing.

Original: Same ellipses, "only with no link"…
Texturized: Same ellipses, « only with no link »… GOOD.

Original: ("no link, everything between parenthesis")
Texturized: (« no link, everything between parenthesis ») GOOD.

Original: ["no link, everything between square brackets"]
Texturized: ["no link, everything between square brackets"] GOOD ENOUGH (no conversion).

Original: {"no link, everything between curly braces"}
Texturized: {« no link, everything between curly braces »} GOOD.

Original: "no link, no parenthesis or anything"
Texturized: « no link, no parenthesis or anything » GOOD.

One thought on “Curly quotes test”

Laisser un commentaire