2019-12-26, 06:08
On second thought, I do not think there is anything is forcing all the subtitles to be in ltr direction because Netflix already has many Arabic subtitles without ‏ and only have the hidden control character "Right to left embedding" in the start of each subtitle line like the movie "1922" and the punctuation marks are displayed at the right positions on Kodi with the Netflix plugin, I think the effect of replacing ‏ with "Right to left embedding" and ‎ with "Left to right embedding" does not occur immediately for some reason, you can test this thought by removing
replace_string(strText, "‏", "\0xE2\0x80\0xAB");
replace_string(strText, "‎", "\0xE2\0x80\0xAA");
and add
replace_string(strText, "\0xE2\0x80\0xAB", "\0xE2\0x80\0xAA");
If the full stop in the Arabic subtitle lines still at the left end of the lines in the movie "1922", then my thought is right.
replace_string(strText, "‏", "\0xE2\0x80\0xAB");
replace_string(strText, "‎", "\0xE2\0x80\0xAA");
and add
replace_string(strText, "\0xE2\0x80\0xAB", "\0xE2\0x80\0xAA");
If the full stop in the Arabic subtitle lines still at the left end of the lines in the movie "1922", then my thought is right.