Patent ID: 6944820

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 hyphen character indicating a beginning of a portion of text that may need to be rendered in left-to-right reading order; locating a second character indicating an end of the portion of text that may need to be rendered in left-to-right reading order, including determining whether the hyphen character is situated such that a first number is immediately adjacent to a first side of the hyphen character, and a second number character is immediately adjacent to a second side of the hyphen character, and if a first number is immediately adjacent to a first side of the hyphen character and a second number is immediately adjacent to a second side of the hyphen character, then marking a position of the second number indicating an end of the portion of text that may need to be rendered in left-to-right reading order; determining whether the portion of text must be rendered in left-to-right reading order; and rendering the portion of text in left-to-right reading order.