Patent ID: 7293229

Claim:
A computer implemented method of ensuring the proper reading order of bi-directional text, comprising the steps of: scanning a text selection; locating a neutral character indicating a beginning of a portion of text that is to be rendered in reverse reading order; marking a position of the neutral character; determining whether the neutral character is situated such that a first number, forward slash, or percent sign is immediately adjacent to a first side of the neutral character and a second number, forward slash, or percent sign is immediately adjacent to a second side of the neutral character; when a first number, forward slash, or percent is immediately adjacent to a first side of the neutral character and a second number, forward slash, or percent sign is immediately adjacent to a second side of the neutral character, then marking a position of the second number, forward slash, or percent sign indicating an end of the portion of text that is to be rendered in reverse reading order; determining that the portion of text that is to be rendered in reverse reading order must be rendered in reverse reading order; and rendering the portion of text in reverse reading order such that the order of the portion is the second number, forward slash, or percent sign, followed by the neutral character, and followed by the first number, forward slash, or percent sign.