I'm trying to implement in XeLaTeX the Syriac Abbreviation Mark (see here: http://en.wikipedia.org/wiki/Syriac_Abbreviation_Mark).
The code I came up with is the following:
\catcode`^^^^070f=13
\chardef\zwj="200D
\def^^^^070f#1 {\zwj\aemph{#1}\ }
Now I can use the control character in the text (assuming I have a Syriac font):
\documentclass{article}
\usepackage{polyglossia}
\setmainlanguage{syriac}
\setmainfont{Estrangelo Edessa}
\catcode`^^^^070f=13
\chardef\zwj="200D
\def^^^^070f#1 {\zwj\aemph{#1}\ }
\begin{document}
ܫܠܡܳܐ ܫܠܡܐ.
\end{document}
Here is the result:
This is not perfect for two reasons. First, it requires a space to end the control sequence (in fact, it should be ended by any non-Syriac character). Second, ideally the result should be an overline with 3 dots in it (beginning, end and middle - see above Wikipedia article for example).
Could anyone help me out with this?
^
convention:\catcode`^^^^070f=13
and then\def^^^^070f#1{...}
; you can also say\chardef\zwj="200D
which is easier. May you try it and expand to a complete example?:(