12. An apparatus for segmenting text for layout on a web browser, the apparatus comprising: a client computer configured to: receive a block of text; define a plurality of regular expressions, wherein a first regular expression in the plurality of regular expressions is used to search for a word or a word boundary; segment the block of text into a plurality of text segments, wherein the segmenting comprises: searching the block of text starting at a defined location for a first text segment that matches any of the plurality of regular expressions; searching the first text segment for a change in text style; segmenting the first text segment into two sub-segments at the location of the change in text style to create a modified first segment and a second segment; adding the modified first text segment to the plurality of text segments; and updating the defined location to be located at the end of the modified first text segment within the block of text; and construct a layout of the block of text using the plurality of text segments, wherein constructing the layout comprises automatically inserting a line break before the modified first segment.
15. The apparatus of claim 12 , wherein a second regular expression in the plurality of regular expressions matches a Chinese, Japanese, or Korean word.