1.54k likes | 1.69k Views
Text Boundary Analysis. Eric Mader Advisory Software Engineer IBM. Where do I break lines?. The rain in Spain stays mainly on the plain. Where do I break lines?. The rain in Spain stays mainly on the plain. 您有坦率和誠實的聲譽。. Where do I break lines?.
E N D
Text Boundary Analysis Eric Mader Advisory Software Engineer IBM
Where do I break lines? The rain in Spain stays mainly on the plain.
Where do I break lines? The rain in Spain stays mainly on the plain. 您有坦率和誠實的聲譽。
Where do I break lines? The rain in Spain stays mainly on the plain. 您有坦率和誠實的聲譽。 ด่ๅแรงฃนึ๓อัตราลูกจ้างใหม่ให้๓๕
Even in English, this can be hard You owe me $1,234.56... I think.
Even in English, this can be hard You owe me $1,234.56... I think.
Word wrapping vs word selection Word wrapping: Some characters’ behavior is context-dependent.
Word wrapping vs word selection Word wrapping: Some characters’ behavior is context-dependent. Searching by words: Some characters’ behavior is context-dependent.
Analysis by pairs second ltr dgt sp pun ltr dgt first sp X X X pun
Analysis by pairs second ltr dgt sp pun ltr dgt first sp X X X pun
Analysis by pairs second ltr dgt sp pun - ltr dgt first sp X X X X pun X - X
Analysis by pairs second ltr dgt sp pun - ltr dgt first sp X X X X pun X - X
Analysis by pairs second ltr dgt sp pun - nbs ltr dgt first sp X X X X pun X - X nbs
Analysis by pairs second ltr dgt sp pun - nbs ltr dgt first sp X X X X pun X - X nbs
Analysis by pairs second ltr dgt sp pun - nbs kji X ltr X dgt first sp X X X X X X pun X X - X nbs X X X kji X X
Where pairs break down A break position can depend on more than two characters: You owe me $1,234.56... I think.
Where pairs break down A break position can depend on more than two characters: You owe me $1,234.56... I think. 4.5
Where pairs break down A break position can depend on more than two characters: You owe me $1,234.56... I think. 6..
Where pairs break down Sentence boundaries require even more lookahead: He asked, “How tall are you?” I’m about 6 ft. tall. “Wow!”
Where pairs break down Sentence boundaries require even more lookahead: He asked, “How tall are you?” I’m about 6 ft. tall. “Wow!”
Where pairs break down Sentence boundaries require even more lookahead: He asked, “How tall are you?” I’m about 6 ft. tall. “Wow!”
Where pairs break down Sentence boundaries require even more lookahead: He asked, “How tall are you?” I’m about 6 ft. tall. “Wow!”
Where pairs break down Sentence boundaries require even more lookahead: He asked, “How tall are you?” I’m about 6 ft. tall. “Wow!”
An example • If not otherwise mentioned, each character is a “word” unto itself. • A run of letters constitutes a “word” and is kept together. Certain punctuation marks may appear inside a word, but only if they have a letter on each side. • A run of digits constitutes a “number” and is kept together. Certain punctuation marks may appear inside a number, but only if they have a digit on each side. In addition, a number may have certain optional prefix and suffix characters. • If a “word” and a “number” appear in succession with nothing between them, they’re kept together.
The state-machine approach $ start A 0 % . ’
The state-machine approach $ start A 0 % . ’
The state-machine approach $ start A 0 % . ’
The state-machine approach $ start A 0 % . ’
The state-machine approach $ start A 0 % . ’
The state-machine approach $ start A 0 % . ’
The state-machine approach $ start A 0 % . ’
The state-machine approach $ start A 0 % . ’
The state-machine approach $ start A 0 % . ’
The state-machine approach $1,234.56... $ start A 0 % . ’
The state-machine approach $1,234.56... $ start A 0 % . ’
The state-machine approach $1,234.56... $ start A 0 % . ’
The state-machine approach $1,234.56... $ start A 0 % . ’
The state-machine approach $1,234.56... $ start A 0 % . ’
The state-machine approach $1,234.56... $ start A 0 % . ’
The state-machine approach $1,234.56... $ start A 0 % . ’
The state-machine approach $1,234.56... $ start A 0 % . ’
The state-machine approach $1,234.56... $ start A 0 % . ’
The state-machine approach $1,234.56... $ start A 0 % . ’
The state-machine approach $1,234.56... $ start A 0 % . ’
The state-machine approach $1,234.56... $ start A 0 % . ’
The state-machine approach $1,234.56... $ start A 0 % . ’
Limitations 1992–1996
Limitations 1992–1996
Limitations –1996
Limitations 1992–1996