This is a follow-up to this answer and comment. Does anyone have an idea how to automate the \nogloss macro so that I don't have to label every punctuation mark (or at least ! ? " , .) with it?
EDIT: Thanks to @Alan Munn, I now realize that I'm looking for a XeTeX-compatible solution.
MWE:
\documentclass{book}
\usepackage{expex}
\lingset{glwordalign=center}
\begin{document}
\exdisplay
\begingl
\gla \nogloss{``} @ aaaaa aaaaaaa @ \nogloss{!''} aaaa aaaa aaaa @ \nogloss{\ldots} //
\glb bbbbb bbbbbbb bbbb bbbb bbbb //
\glc ccccc ccccccc cccc cccc cccc //
\endgl
\xe
\end{document}
EDIT: To clarify, I want my input to be like the MWE below but for the automation to yield the MWE above, or at least the output of what the above code would yield.
\documentclass{book}
\usepackage{expex}
\lingset{glwordalign=center}
\begin{document}
\exdisplay
\begingl
\gla "aaaaa aaaaaaa!" aaaa aaaa aaaa... //
\glb bbbbb bbbbbbb bbbb bbbb bbbb //
\glc ccccc ccccccc cccc cccc cccc //
\endgl
\xe
\end{document}

microtype,geometry,expex,polyglossiawith Hebrew script,fontenc,ifoddpage. I'm unclear which of those are XeLaTeX-only. I think maybe thefontenc. – AML Jul 29 '17 at 00:46bidiwhich is loaded bypolyglossiafor RTL language support. This is XeTeX only. There is aluabidion CTAN, but I don't know much about that; I think it's pretty rudimentary. RTL language support in LuaTeX lags behind XeTeX in this respect, unfortunately. One thing you could do would be to preprocess your TeX files with a script (which is basically what the Lua code is doing). Not as convenient, but doable. You might even be able to automate the process witharara(an automation tool for compiling). – Alan Munn Jul 29 '17 at 00:59xesearch. – AML Jul 29 '17 at 02:09