12. The system of claim 10 , wherein the operation further comprises: identifying a width of the multi-line UI element; inserting, based on the width of the multi-line UI element, newline characters into the text passage such that each line of text in the text passage can be displayed in the multi-line UI element rendered in the font type and the font size without wrapping; and storing the text passage with the training data for optical character recognition.
12. The system of claim 10 , wherein the operation further comprises: identifying a width of the multi-line UI element; inserting, based on the width of the multi-line UI element, newline characters into the text passage such that each line of text in the text passage can be displayed in the multi-line UI element rendered in the font type and the font size without wrapping; and storing the text passage with the training data for optical character recognition. 13. The system of claim 12 , wherein the operation further comprises: identifying a height of the multi-line UI element; and dividing the text passage into a plurality of multi-line fragments based on the height of the multi-line element such that each multi-line fragment can be fully displayed in the multi-line element rendered in the font type and the font size without scrolling.