More examples of R2L and L2R characters

I showed yesterday what the implication is when one mix Right to Left and Left to Right characters in specific contexts. That was explicitly in a Left to Right context. Today I was thinking of showing the difference between different context, but the same logical order of the characters.

In the examples, I in both cases typed in the characters in this logical order (left to right). The # represents U+0628 ARABIC LETTER BEH.

logical-order
logical-order

When this is displayed in a Left to Right context, the displayed string looks like the following:

l2r-context
l2r-context

But when this is in a Right to Left context, the result is the following:

r2l-context
r2l-context