[XeTeX] Please help me with \XeTeXinterchartoks
VAFA KHALIGHI
vafa.khalighi at students.mq.edu.au
Mon Dec 1 13:14:38 CET 2008
Human Beings..! Please help.
I feel that when I ask a question on the mailing list no one answers it and
I solve the problems most of the time myself but why?
I want to set \XeTeXinterchartoks for small English sentenses in a Right to
Left direction such that when I write an/Two English it will be typeset in
rmfamily and from Left to Write. This is what I have done
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\XeTeXinterchartokenstate = 1
\XeTeXcharclass `\Q 1
\XeTeXcharclass `\q 2
\XeTeXcharclass `\W 3
\XeTeXcharclass `\w 4
\XeTeXcharclass `\E 5
\XeTeXcharclass `\e 6
\XeTeXcharclass `\R 7
\XeTeXcharclass `\r 8
\XeTeXcharclass `\T 9
\XeTeXcharclass `\t 10
\XeTeXcharclass `\Y 11
\XeTeXcharclass `\y 12
\XeTeXcharclass `\U 13
\XeTeXcharclass `\u 14
\XeTeXcharclass `\I 15
\XeTeXcharclass `\i 16
\XeTeXcharclass `\O 17
\XeTeXcharclass `\o 18
\XeTeXcharclass `\P 19
\XeTeXcharclass `\p 20
\XeTeXcharclass `\A 21
\XeTeXcharclass `\a 22
\XeTeXcharclass `\S 23
\XeTeXcharclass `\s 24
\XeTeXcharclass `\D 25
\XeTeXcharclass `\d 26
\XeTeXcharclass `\F 27
\XeTeXcharclass `\f 28
\XeTeXcharclass `\G 29
\XeTeXcharclass `\g 30
\XeTeXcharclass `\H 31
\XeTeXcharclass `\h 32
\XeTeXcharclass `\J 33
\XeTeXcharclass `\j 34
\XeTeXcharclass `\K 35
\XeTeXcharclass `\k 36
\XeTeXcharclass `\L 37
\XeTeXcharclass `\l 38
\XeTeXcharclass `\Z 39
\XeTeXcharclass `\z 40
\XeTeXcharclass `\X 41
\XeTeXcharclass `\x 42
\XeTeXcharclass `\C 43
\XeTeXcharclass `\c 44
\XeTeXcharclass `\V 45
\XeTeXcharclass `\v 46
\XeTeXcharclass `\B 47
\XeTeXcharclass `\b 48
\XeTeXcharclass `\N 49
\XeTeXcharclass `\n 50
\XeTeXcharclass `\M 51
\XeTeXcharclass `\m 52
\XeTeXinterchartoks 255 1={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 1 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 2={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 2 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 3={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 3 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 4={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 4 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 5={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 5 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 6={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 6 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 7={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 7 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 8={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 8 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 9={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 9 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 10={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 10 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 11={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 11 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 12={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 12 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 13={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 13 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 14={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 14 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 15={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 15 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 16={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 16 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 17={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 17 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 18={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 18 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 19={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 19 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 20={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 20 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 21={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 21 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 22={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 22 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 23={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 23 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 24={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 24 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 25={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 25 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 26={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 26 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 27={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 27 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 28={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 28 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 29={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 29 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 30={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 30 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 31={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 31 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 32={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 32 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 33={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 33 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 34={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 34 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 35={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 35 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 36={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 36 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 37={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 37 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 38={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 38 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 39={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 39 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 40={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 40 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 41={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 41 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 42={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 42 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 43={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 43 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 44={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 44 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 45={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 45 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 46={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 46 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 47={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 47 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 48={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 48 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 49={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 49 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 50={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 50 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 51={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 51 255={\end{rmfamily}\endL}
\XeTeXinterchartoks 255 52={\beginL\begin{rmfamily}}
\XeTeXinterchartoks 52 255={\end{rmfamily}\endL}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
but when I write "This is" in a Right to left direction, I see that it is
typeset in rmfamily but in the reverse order "is This", so can you please
help me to get this done?
I am only asking for one example, please just show me how to do this for
"This is".
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xetex/attachments/20081201/541cbfa1/attachment.html
More information about the XeTeX
mailing list