Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update README with a detailed note about URL extraction/auto-link.
  • Loading branch information
keita committed Jan 3, 2012
1 parent b74c021 commit e8b1456
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions README.md
Expand Up @@ -40,9 +40,16 @@ number but cannot be solely numbers.

## URLs

Auto-linking and extraction of URLs differs from some other linkification libraries so that they
will work correctly in Tweets written in languages that do not include spaces
between words.
Asian languages like Chinese, Japanese or Korean may not use a delimiter such as
a space to separate normal text from URLs making it difficult to identify where
the URL ends and the text starts.

For this reason twitter-text currently does not support extracting or auto-linking
of URLs immediately followed by non-Latin characters.

Example: "http://twitter.com/は素晴らしい" .
The normal text is "は素晴らしい" and is not part of the URL even though
it isn't space separated.

## International

Expand Down Expand Up @@ -99,4 +106,4 @@ Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.

0 comments on commit e8b1456

Please sign in to comment.