twitter-text
twitter-text copied to clipboard
Add "·" MIDDLEDOT (U+00B7) support
*Note: this issue is copied from old "twitter-text-conformance" repo https://github.com/twitter/twitter-text-conformance/issues/63
Hi,
MDIDDLEDOT (U+00B7) is very used as inner-word punctuation in Catalan, a mandatory diacritical char in Catalan ortography rules. Currently Twitter doesn't allow to use "·" in several places, so I request to improve its support in Twitter.
I requested it in Twitter support forum, without feedback. So, I request it here. If that's not the place, please, report it to L10N Twitter team.
For instance:
- It's unable to make hashtags like #il·lusió
- It's unable to set valid URLs like "http://www.l·l.cat" in user's profile
- It's unable to create or name list like "al·lucinant"
About 1 and 3 You can do a workaround using a legacy compatible characters ŀ (U+0140) / Ŀ (U+013F). According to Unicode, it's preferred to use their decomposition: l+· and L+·. So, the weird effect is that you can use ĿL in hashtags (#iŀlusió works fine), but not the preferred Unicode encoding L·L (#il·lusió fails).
About 2 MIDDLEDOT (U+00B7) is a valid char (between 2 Ls) in .CAT and .ES TLDs, and its allowed by RFC592
So, please, improve U+00B7 support in Twitter.
Thanks in advance.
Related links
- https://dev.twitter.com/discussions/17723
- http://www.unicode.org/reports/tr29/#Word_Boundaries
- http://www.unicode.org/reports/tr31/
- http://tools.ietf.org/search/rfc5892
- http://www.python.org/dev/peps/pep-3131/ (search for U+00B7)
I found a new bug related with U+00B7 and Twitter. Please, see this Tweet https://twitter.com/unjoanqualsevol/status/469148413486194688 There are 2 valid and registered URLs
- 1st one (http://www.l·l.cat) is automagically detected and it becomes a clickable link
- 2nd one (http://www.col·legi-lluis-vives.cat/) isn't well detected and it's truncated by Twitter
Hi,
Current Unicode UAX 31 cites 00B7 and its use in hashtags http://www.unicode.org/reports/tr31/#Specific_Character_Adjustments
Is there any improvement or roadmap about this issue?
Regards,
We need to normalize the middle dot on hashtags in Catalan language.
Hi,
Twitter supports hashtags with middle dot (U+00B7), really good news, :)
There are some issues around middle dot support in URLs: 1.- Twitter lists with L·L are created now, but URL uses an hyphen L-L. See https://twitter.com/unjoanqualsevol/lists/l-l 2.- Twitter validates l·l in domain part of URLs, but only if schema (http://) is declared. 3.- Twitter breaks URL links if L·L is path part of URL. Sample: https://twitter.com/BernatDedeu/status/594162637396643842
Expected behaviour in all 3 cases is same currently achieved with accented letters (à,ç,ñ...). I. E. autolinking working fine with L·L
Please, note CMSs, like Wordpress, doesn't escape middle dot, and there are many word in Catalan Wiktionary with L·L. See: http://ca.wiktionary.org/wiki/Categoria:Mots_en_catal%C3%A0_amb_eles_geminades
Just to point one more example about autolinking URLs
See following Tweet: https://twitter.com/XSalaimartin/status/647004755512958977
It has a link to: http://caffereggio.net/2015/09/24/la-economia-ante-la-independencia-del-col·lectiu-wilson-en-la-vanguardia/
But Twitter autolink breaks on "·" U+00B7 char and split URL: http://caffereggio.net/2015/09/24/la-economia-ante-la-independencia-del-col
Just a funny effect. Twitter autolinking feature breaks own Twitter URLs. For instance, a link to #L·L hashtag is automagically broken if it's pasted/copied in a Tweet
https://twitter.com/hashtag/L·L
Or, properly escaped if you copy it from the address bar of a modern browser: https://twitter.com/hashtag/L%C2%B7L
I think it's funny how people and messaging products are gradually giving the middle finger to https://www.ietf.org/rfc/rfc1738.txt At some point, we'll have to invent a special url termination char because we will be allowing all other chars to be in urls.
But, in the case of the middle dot, I don't mind adding it. It is just a matter of what is more expected by users - that it extend the url, or terminate the url?
Is there a new RFC for what chars are allowed in urls in the age of modern message parsers? Seems Twitter, gmail, Facebook, etc... should all agree on these additions. Or web pages should stop exposing unescaped urls.
On Wed, Oct 7, 2015 at 12:08 PM, Joan Montané [email protected] wrote:
Just a funny effect. Twitter autolinking feature breaks own Twitter URLs. For instance, a link to #L·L hashtag is automagically broken if it's pasted/copied in a Tweet
https://twitter.com/hashtag/L·L
— Reply to this email directly or view it on GitHub https://github.com/twitter/twitter-text/issues/4#issuecomment-146297491.
Yeah! I know beyond-old-ASCII chars should be escaped but, as you point, several web services (Wordpress, Twitter...) generate URLs with such chars, so links become unusable, :(
MIDDLE DOT (U+00B7) is used as inner-word char for Catalan language. According to Unicode UAX TR29 it's a MidLetter character [1] on word boundary segmentation. So, it's unlikely that it's used as a URL terminator. [1] http://unicode.org/reports/tr29/#MidLetter