Macrons in LaTeX are typset with '\=' preceeding the character, for example '\=o' creates an 'o' with a macron. I would like to use stringstrings to define a newcommand to replace all '/' characters with the macron '\=' sequence. The catch- the letter 'i' is special. In LaTeX you have to use a non-dotted 'i', e.g. '\={\i}' in order to create the 'i' with a macron. This special case is breaking my new command. Here is my attempt at this:
\documentclass{article}
\usepackage{stringstrings}
\newcommand\macronify[1]{%
\convertword[q]{#1}{/i}{\={\i}}%
\convertchar{\thestring}{/}{\=}%
}
\begin{document}
This is a test: \macronify{laud/o, laud/are, laud/av/i, laudatum}.
\end{document}
Running pdflatex on this creates a PDF, and the first two words do have the macrons as expected, but the 3rd word with the troublesome 'i' is messed up. It is displayed as ' . . 22 .. , laudatum'.
Thanks for any help.

