Patent ID: 11914943
Assignee: ORACLE INTERNATIONAL CORPORATION
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 7:
8. A method comprising:
accessing a first digital file comprising text content of an electronic document, the first digital file comprising a first set of one or more tokens arranged in a left-to-right reading direction and a second set of tokens arranged in a right-to-left reading direction;
executing a first operation to generate a second digital file in which all characters are arranged in the left-to-right reading direction at least by:
generating an ordered list of characters by extracting a plurality of characters from the first digital file in the right-to-left reading direction and storing each character of the plurality of characters, and metadata corresponding to each respective character;
mirroring a layout of the electronic document by modifying the metadata associated with each character among the plurality of characters in the ordered list to flip a horizontal position of each character in the electronic document relative to a right side of the electronic document and a left side of the electronic document;
identifying one or more first tokens associated with a native left-to-right read order in the electronic document; and
reordering characters in the one or more first tokens from the right-to-left reading order to the left-to-right reading order,

wherein the mirroring the layout of the electronic document further comprises:
for each character among the plurality of characters:
identifying a particular distance of a particular character relative to a right side boundary of the electronic document; and
modifying the metadata of the particular character to reposition the particular character within the electronic document the particular distance from a left side boundary of the electronic document.