Opened 9 years ago
Closed 8 years ago
#7098 closed defect (bug) (no action required)
Foreign quotation mark - guillemet issue
Reported by: | danbp | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Core | Keywords: | close |
Cc: | danco38@… |
Description
First, it's a very obvious issue i found in a topic activity on my SWA.
Second, it may (perhaps) be difficult to replicate with an english OS & keyboard. In both case, please see the joined screenshots.
I tested guillemets within topics, updates and post and with different themes and site languages (en & fr)with various results. See attached txt file to get some text to copy/paste for testing.
The issue:
in french we use guillemet to quote words, while in english double quotes are used. WP does this automatically depending the site language.
Visually, left and right guillemet are very different from quotes, which are very similar. So the issue is not really visible in english. (doesn't mean it is inexistent).
When quoting a word inside a phrase or which is the last one, i have a correct ouput of open & closing guillemets. Same result when quoting a linked word inside a phrase.
When quoting a linked word which is at the end of a phrase, the quotes are wrong. They're 2 left quotes, aka opening quotes instead of a left and a right quote.
If i remember well, there was a similar issue in the past (around BP 1.2.8 or so) with foreign quote marks.
Attachments (6)
Change History (16)
#3
@
9 years ago
With or without a period doesn't change the issue.
I digged further and found an interesting point (See attachment.).
if you publish an update and a topic using the following:
1) un \"<a href="#">lien</a>\" entre guillemets avec slashs 2) un "<a href="#">lien</a>" entre guillemets 3) un "<a href="#">lien</a>"
Note that the text is correctly inserted as is in both activity and post table.
I added slashes intentionnaly to 1)
1) on the forum activity, slashes are not removed and a wrong left (opening) guillemet is visible. On SWA, text is cleaned and use correct guillemets.
2) is correct on Forum and SWA with a sequence of linked text + text
3) output is wrong on Forum and SWA; A quoted link without period.
#4
@
9 years ago
Looks like the issue I've been trying to get known since 2009: http://xavier.borderie.net/wp-trunk/?p=56
Several WP tickets about it. Here's one: https://core.trac.wordpress.org/ticket/4539
It seems like the issue comes from wptexturize. I'd love to see it fixed, but my PHP- and -regexp-fu are not good enough :/
This ticket was mentioned in Slack in #buddypress by danbp. View the logs.
9 years ago
#7
@
9 years ago
@danbp - Are you able to duplicate this issue in a WordPress post?
I think @xibe maybe right that this is probably a wptexturize()
issue.
#8
@
9 years ago
@r-a-y,
yes i can. See screenshots
i posted the example i already mentionned in #3 (wp 4.5.3 - 2016)
example 1 and 3 are wrong. 2 is correct.
2nd screenshot shows the post activity on SWA. Guillemets are all correct.
Screen 1
Screen 2
#9
@
9 years ago
- Keywords close added; needs-patch needs-unit-tests removed
Thanks for the updated info, @danbp.
This confirms that the issue is with WordPress and not BuddyPress.
English quotes