Thanks Khaled. I do not know Lua and just started to learn it. I think macro programming is an art.. In xepersian, I only had four primitives for directions \beginR, \endR, \beginL, \endL, and I managed everything to work properly except colours which I did not find any way to fix that.
But offcourse in some situations macro programming gets quite complicated and so knowing lua will help heaps. > > >
