[Dev] Some simple tests for multi byte text input and display
Brian Kirsch
bkirsch at osafoundation.org
Thu Jul 28 18:28:43 PDT 2005
Stearns asked me how to test multi-byte character input and display.
Here is a good example:
й-国際化-ü-ή-瑞查德
This is a composite string containing muli-byte characters. For example
the ü is a composite of two code points vowel + umlau that together make
up one character.
Assuming your mail reader correctly displayed the above example do the
following:
Copy and paste the text in to a Chandler input area i.e. the name of a
side bar collection or the title of a task.
Then start playing with the string. For example insert a single byte
character between two multi-byte characters:
查x德. Does it display correctly?
Delete a multi-byte character in the middle of a phrase such as delete
the 際 multi-byte character. Did the field remove only the character
preserving the sentence order?
Save the original text й-国際化-ü-ή-瑞查德 to the repository and restart
Chandler. Does the text still correctly display?
Delete the -ü-ή-瑞 characters, save the results in the repository and
restart Chandler. Does the text correctly display?
Theses are just a few tests to get things started. More examples and
test cases to follow.
Ken or Andrea (our i18n guru's) anything to add?
-Brian
--
Brian Kirsch - Email Framework Engineer
Open Source Applications Foundation
543 Howard St. 5th Floor
San Francisco, CA 94105
(415) 946-3056
http://www.osafoundation.org
More information about the Dev
mailing list