Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 1001 Bytes

File metadata and controls

10 lines (6 loc) · 1001 Bytes

Unicode UAX14 Line Breaking Algorithm in ActionScript3

An ActionScript3 implementaion of the Unicode UAX14 Line Breaking Algorithm.

Line breaking, also known as word wrapping, is the process of breaking a section of text into lines such that it will fit in the available width of a page, window or other display area. The Unicode Line Breaking Algorithm performs part of this process. Given an input text, it produces a set of positions called "break opportunities" that are appropriate points to begin a new line. The selection of actual line break positions from the set of break opportunities is not covered by the Unicode Line Breaking Algorithm, but is in the domain of higher level software with knowledge of the available width and the display size of the text.

All the code is released to Public Domain. Patches and comments are welcome. It makes me happy to hear if someone finds the implementations useful.

Ehsan Marufi
July 2018