title: Reverse lines in javascript
body: <p>I need to reverse a text by lines on a webpage to switch from the RTL writing mode to a LTR writing mode. In the source code it's need to remain the original RTL latin alphabets text, but on the page I need to visualize a LTR text with a non-latin font-family (the text will remain in latin characters, only the font-family change).
  My question is how can I do that? How can I know, when the browser where will break the lines?</p>
  
  <p>(It's simpler to understand if you heard about the hungarian runic alphabet. I want to make a script what convert the latin text into runic text, but I want to the search engines see the original text.)
  Thanks for your help.</p>