New GitHub issue #117960 from jul:<br>
<hr>
<pre>
# Bug report
### Bug description:
Expected :
Given a string in the form ">> A B A << fin" I expect normalized grapheme to be ">> A B A << fin" whatever bidir "A" "B" "fin" supports
I also expect > to NEVER look like < p == (202E,2066,2069)
I also expect a bidir ended string to not mess up with the reminder of the flow
I also expect LR to never appear RL in normalize form (ex : it's a file name I must write to disk)
I don't know what I see, I don't know if it is due to my terminal (gnome-terminal) but I'm pretty sure it smells in the danish kingdom (Othello, Sheakspear)
```python
#!/usr/bin/env python3
# -*- coding: utf8 -*-
from itertools import combinations_with_replacement as cbr
from unicodedata import normalize
for p in cbr([0x200e, 0x200f, 0x061c, 0x202a, 0x202b, 0x202e, 0x202d, 0x202c, 0x2066, 0x2068, 0x2067, 0x2069], 3):
print(",".join(map(lambda s : f"%2X" % s, p)))
print(">>%sKenavo/*ﻢﻋ ﺎﻠﺳﻼﻣﺓ*%sKenavo%s <<fin ?==" % tuple(map(chr,p)), end="")
s=">>%sKenavo/*ﻢﻋ ﺎﻠﺳﻼﻣﺓ*%sKenavo%s <<fin" % tuple(map(chr,p))
print(s)
for n in ("NFD", "NFC", "NFKD", "NFKC"):
print(normalize(n,s))
```
### CPython versions tested on:
3.11
### Operating systems tested on:
Linux
</pre>
<hr>
<a href="https://github.com/python/cpython/issues/117960">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>