How does text in right-to-left languages โ€‹โ€‹work when writing HTML code?

I am editing an HTML site that contains multiple paragraphs in Arabic and something strange happens when I delete or replace existing words. If I place the cursor in the middle of a paragraph and press backspace to delete a word letter-by-letter

, sometimes the cursor moves to the left and deletes letters to the left of the cursor (as would be expected with a right-to-left language), but after deleting the first word, the cursor starts moving to the right and deletes the word to the right ... In other cases, it happens the other way around - first and then left .

I don't speak Arabic (using google translate to replace obsolete text) but I'm still puzzled about this behavior.

Also, if I select one word and insert another word into the selection, the whole line moves, and this is obvious the more than the word I selected has been replaced. I can check if something is wrong because when I copy the resulting text into Google Translate, it stops making grammatical sense.

Are there special rules for editing text right-to-left

in HTML files? I am using Notepad ++.

+3


source to share





All Articles