bidi-symbols.tex /size: 878 b    last modification: 2020-07-01 14:35
1\nopdfcompression
2
3% At the ConTeXt 2013 meeting Taco suggested to add ActualText entries to the
4% shapes. It took us a bit of experimenting and the current implementation of
5% this is quite okay, but beware: some viewers will add a space when copying
6% such characters.
7
8\starttext
9
10    \definemetafont[bidi-symbols][bidi-symbols.mp]
11
12    \startbuffer
13        xxx{\demo\char"202A}\relax xxx\quad % lre
14        xxx{\demo\char"202B}\relax xxx\quad % rle
15        xxx{\demo\char"202C}\relax xxx\quad % pdf
16        xxx{\demo\char"202D}\relax xxx\quad % lro
17        xxx{\demo\char"202E}\relax xxx\quad % rlo
18    \stopbuffer
19
20    \definefont[demo][demo@bidi-symbols]
21
22    \getbuffer \blank
23
24    \definefont[demo][demo@bidi-symbols at \the\dimexpr3\exheight]
25
26    \getbuffer \blank
27
28    \definefont[demo][demo@bidi-symbols at \the\dimexpr4\exheight]
29
30    \getbuffer \blank
31
32\stoptext
33
34