The curly quotes test is especially easy to spot in French, as the English quotes are converted this way:
- "word turns into "« word".
- word" turns into "word »".
(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 in the current trunk (this install):
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 (?!?).
SOLVED IN 4.3!
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 (?!?).
SOLVED IN 4.3!
—
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 (but breaks shortcodes — there used to be no conversion here, new to 4.1?).
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.
—
Original: "(no link, everything between parenthesis except the quotes]".
Texturized: « (everything between parenthesis except the quotes) ».
GOOD.
Original: "[no link, everything between square brackets except the quotes]".
Texturized: « (everything between square brackets except the quotes) ».
GOOD.
Original: "[no link, everything between curly braces except the quotes]".
Texturized: « (everything between curly braces except the quotes) ».
GOOD.
—
Trac tickets:
- #4539: « Abbreviated year followed by punctuation or markup doesn’t texturize » — still open
#10606: « Curly quotes breakage » — following my initial report, closed as duplicate#11099: « Additonal unit tests for quotes formatting. » — merged- BuddyPress’
#7098: « Foreign quotation mark – guillemet issue » — closed because it’s a Core issue.
Commentaires
Une réponse à “Curly quotes test”
bla bla