\documentclass[12pt]{article}
\usepackage{fontspec}
\usepackage[american]{babel}
\usepackage{libertine}
\newfontfamily\arabicfont[Script=Arabic,Scale=2]{Amiri}
\usepackage[fullvoc]{arabluatex}
\newcommand{\tamarbuta}{t\={a} marb\={u}\d{t}ah\xspace}
%\newcommand{\tamarbuta}{\arb{tA'a marbU.taT}\xspace}
\begin{document}
The principle feminine form is the \tamarbuta.
\end{document}
In the above MWE suppose I have hundreds of similar macros to be used in the text. Further suppose I have not decided whether the macro should expand to transliteration form or the original Arabic form. How can I preserve both options so that upon choice one or the other option is executed?
(Obviously, the solution I am looking for is not to comment out "the other half" or vice versa if I happen to choose one option.)
\newif\ifalttransland then\ifalttransl \newcommand{\tamarbuta}{A}\else \newcommand{\tamarbuta}{B}\fiand then you can select one or the other with\alttransltrueor\alttranslfalse. – moewe May 11 '18 at 07:06