-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recent Twitter char counting changes 😭 #8
Comments
ok, after reading the docs, i understand the new way. some chars (code points) now count for two instead of one, and they have a data driven config that determines which are which. it'll take a little work to implement, but not a ton. seems doable. https://developer.twitter.com/en/docs/developer-utilities/twitter-text |
background: kylewm/brevity#8 https://developer.twitter.com/en/docs/developer-utilities/twitter-text https://twittercommunity.com/t/updating-the-character-limit-and-the-twitter-text-library/96425 https://blog.twitter.com/official/en_us/topics/product/2017/tweetingmadeeasier.html the new algorithm is more complicated than before, but not too bad. cc @Zegnat @sknebel @aaronpk
background: kylewm#8 https://developer.twitter.com/en/docs/developer-utilities/twitter-text https://twittercommunity.com/t/updating-the-character-limit-and-the-twitter-text-library/96425 https://blog.twitter.com/official/en_us/topics/product/2017/tweetingmadeeasier.html the new algorithm is more complicated than before, but not too bad. test cases are updated in kylewm/brevity-testcases#2. cc @Zegnat @sknebel @aaronpk
background: kylewm#8 https://developer.twitter.com/en/docs/developer-utilities/twitter-text https://twittercommunity.com/t/updating-the-character-limit-and-the-twitter-text-library/96425 https://blog.twitter.com/official/en_us/topics/product/2017/tweetingmadeeasier.html the new algorithm is more complicated than before, but not too bad. test cases are updated in kylewm/brevity-testcases#2. cc @Zegnat @sknebel @aaronpk
background: kylewm#8 https://developer.twitter.com/en/docs/developer-utilities/twitter-text https://twittercommunity.com/t/updating-the-character-limit-and-the-twitter-text-library/96425 https://blog.twitter.com/official/en_us/topics/product/2017/tweetingmadeeasier.html the new algorithm is more complicated than before, but not too bad. test cases are updated in kylewm/brevity-testcases#2. cc @Zegnat @sknebel @aaronpk
reopening, this is still buggy. :/ added a failing test case in kylewm/brevity-testcases#3. the problem is that the new |
evidently, along with the recent switch to 280 chars, twitter also changed the way they count chars. (IRC discussion.) it's no longer simply unicode code points, it's some weighted thing i don't understand yet. one big effect is that emoji seem to now count for two chars, not one.
this made e.g. @tantek's recent bridgy publish attempt fail. we tried to publish this content:
which twitter 403ed it with "Tweet needs to be a bit shorter."
if you count chars normally, it's 319 total, - 17 + 23 for
chasquirunner.com
, - 68 + 23 for the permalink, == 280.however, if you paste it into the twitter UI, that says it's 3 chars over. deleting the camera and ellipsis emoji each drop it by 2. i haven't found the last extra char yet.
goddammit.
The text was updated successfully, but these errors were encountered: