The text in Hebrew has visual bidi layout and logical bidi layout.
In essence it is for each line find continuous chunks of Hebrew. while keeping punctuation and parentheses part of the Hebrew while it is Hebrew. Then flipping the order of the chunks.
The programming library bidi ICU can do it automatically.
It is really strange to listen to text to speech in Hebrew in reverse funny and sad
The text in Hebrew has visual bidi layout and logical bidi layout.
In essence it is for each line find continuous chunks of Hebrew. while keeping punctuation and parentheses part of the Hebrew while it is Hebrew. Then flipping the order of the chunks.
The programming library bidi ICU can do it automatically.
It is really strange to listen to text to speech in Hebrew in reverse funny and sad