Skip to content

Commit 33169df

Browse files
authored
Merge pull request #335 from andypiper/linkfix
Corrected links and dates
2 parents 827b9f9 + 3af0d32 commit 33169df

File tree

4 files changed

+14
-17
lines changed

4 files changed

+14
-17
lines changed

java/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This is the Java implementation of the twitter-text parsing library. The library
77

88
## Getting Started
99

10-
The latest artifacts are published to maven central.
10+
The latest artifacts are published to Maven Central.
1111

1212
Bringing twitter-text-java into your project should be as simple as adding the following to your pom.xml:
1313

@@ -48,15 +48,15 @@ twitter-text 2.0 introduced configuration files that define how Tweets are parse
4848

4949
This method takes a string as input and returns a results object that contains information about the string. `TwitterTextParseResults` includes:
5050

51-
* `public final int weightedLength`: the overall length of the tweet with code points weighted per the ranges defined in the configuration file.
51+
* `public final int weightedLength`: the overall length of the Tweet with code points weighted per the ranges defined in the configuration file.
5252

5353
* `public final int permillage`: indicates the proportion (per thousand) of the weighted length in comparison to the max weighted length. A value > 1000 indicates input text that is longer than the allowable maximum.
5454

5555
* `public final boolean isValid`: indicates if input text length corresponds to a valid result.
5656

57-
* `public final Range displayTextRange`: A pair of unicode code point indices identifying the inclusive start and exclusive end of the displayable content of the Tweet. For more information, see the description of `display_text_range` here: [Tweet updates](https://developer.twitter.com/en/docs/tweets/tweet-updates)
57+
* `public final Range displayTextRange`: A pair of unicode code point indices identifying the inclusive start and exclusive end of the displayable content of the Tweet.
5858

59-
* `public final Range validDisplayTextRange`: A pair of unicode code point indices identifying the inclusive start and exclusive end of the valid content of the Tweet. For more information on the `display_text_range` see [Tweet updates](https://developer.twitter.com/en/docs/tweets/tweet-updates)
59+
* `public final Range validDisplayTextRange`: A pair of unicode code point indices identifying the inclusive start and exclusive end of the valid content of the Tweet.
6060

6161
## Tweet Length Examples
6262

js/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ twitter.autoLink(twitter.htmlEscape('#hello < @world >'))
3838
}
3939
]});
4040

41-
See [Tweet Entities](https://dev.twitter.com/overview/api/entities-in-twitter-objects) for more info getting url entities from Twitter's API.
41+
See [Tweet Entities](https://developer.twitter.com/en/docs/twitter-api/v1/data-dictionary/overview/entities-object) for more info getting url entities from Twitter's API.
4242

4343
## Tweet Parsing
4444
Previous versions of Twitter-Text provided different helper methods for Tweet validation, Tweet length, and remaining characters calculation. To simplify the API and obtain this information with just one call, Twitter-Text now exposes a new “parseTweet” method that will return the following fields:
@@ -52,7 +52,7 @@ Previous versions of Twitter-Text provided different helper methods for Tweet va
5252
* **validDisplayRangeEnd:** Integer indicating the valid end index on the Tweet string. This can be lesser than displayRangeEnd (inclusive).
5353

5454
```js
55-
var tweet = "This is a test tweet";
55+
var tweet = "This is a test Tweet";
5656
twttr.txt.parseTweet(tweet);
5757
/* Returns:
5858
{
@@ -66,11 +66,11 @@ twttr.txt.parseTweet(tweet);
6666
}
6767
*/
6868
```
69-
Details about Twitter's weighted counting scheme are available on the [official developer website](https://developer.twitter.com/en/docs/developer-utilities/twitter-text).
69+
Details about Twitter's weighted counting scheme are available on the [official developer website](https://developer.twitter.com/en/docs/counting-characters).
7070

7171
### Marked for Deprecation
7272

73-
`getTweetLength` returns the weighted length of a tweet that is calculated by parseTweet. It will be deprecated in a subsequent release. Please use parseTweet instead.
73+
`getTweetLength` returns the weighted length of a Tweet that is calculated by parseTweet. It will be removed in a subsequent release. Please use parseTweet instead.
7474

7575
## Usernames
7676

@@ -149,7 +149,7 @@ Please direct bug reports to the [twitter-text issue tracker on GitHub](https://
149149

150150
## Copyright and License
151151

152-
Copyright 2012 Twitter, Inc.
152+
Copyright 2012-2020 Twitter, Inc.
153153

154154
Licensed under the Apache License, Version 2.0 (the "License");
155155
you may not use this work except in compliance with the License.

objc/README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ This method takes a string as input and returns a results object that
5959
contains information about the string. `TwitterTextParseResults`
6060
includes:
6161

62-
* `(NSInteger)weightedLength`: the overall length of the tweet with code points
62+
* `(NSInteger)weightedLength`: the overall length of the Tweet with code points
6363
weighted per the ranges defined in the configuration file.
6464

6565
* `(NSInteger)permillage`: indicates the proportion (per thousand) of the weighted
@@ -71,14 +71,11 @@ result.
7171

7272
* `(NSRange)displayTextRange`: An array of two unicode code point
7373
indices identifying the inclusive start and exclusive end of the
74-
displayable content of the Tweet. For more information, see
75-
the description of `display_text_range` here:
76-
[Tweet updates](https://developer.twitter.com/en/docs/tweets/tweet-updates)
74+
displayable content of the Tweet.
7775

7876
* `(NSRange)validDisplayTextRange`: An array of two unicode code point
7977
indices identifying the inclusive start and exclusive end of the valid
80-
content of the Tweet. For more information on the extended Tweet
81-
payload see [Tweet updates](https://developer.twitter.com/en/docs/tweets/tweet-updates)
78+
content of the Tweet.
8279

8380
## Issues
8481

@@ -94,6 +91,6 @@ Have a bug? Please create an issue here on GitHub!
9491

9592
## License
9693

97-
Copyright 2012-2018 Twitter, Inc and other contributors
94+
Copyright 2012-2020 Twitter, Inc and other contributors
9895

9996
Licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)

rb/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,6 @@ Have a bug? Please create an issue here on GitHub!
188188

189189
## License
190190

191-
Copyright 2012-2018 Twitter, Inc and other contributors
191+
Copyright 2012-2020 Twitter, Inc and other contributors
192192

193193
Licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)

0 commit comments

Comments
 (0)