Class createjs.WordBreaker
Defined in: word_breaker.js.
Constructor Attributes | Constructor Name and Description |
---|---|
A class that breaks text into words.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
createjs.WordBreaker.FULLWIDTH_ALPHABETS
Whether to support full-width alphabet forms (U+FF00.
|
<static> |
createjs.WordBreaker.IDEOGRAPHIC_CHARACTERS
Whether to support CJK ideographic characters (U+3000.
|
<static> |
createjs.WordBreaker.PUNCTUATION_CHARACTERS
Whether to support punctuation characters (U+2000.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
createjs.WordBreaker.breakText(text)
Breaks text into words.
|
Field Detail
<static>
createjs.WordBreaker.FULLWIDTH_ALPHABETS
Whether to support full-width alphabet forms (U+FF00...U+FFFF).
<static>
createjs.WordBreaker.IDEOGRAPHIC_CHARACTERS
Whether to support CJK ideographic characters (U+3000...U+ABFF).
<static>
createjs.WordBreaker.PUNCTUATION_CHARACTERS
Whether to support punctuation characters (U+2000...U+20FF).
Method Detail
<static>
{Array.}
createjs.WordBreaker.breakText(text)
Breaks text into words. This method splits text into a list of text segments
where we can insert a line break. In brief, this method implements a subset
of Unicode UAX #29.
- Parameters:
- {string} text
- Returns:
- {Array.
}