ISO 15919 requires two Tamil letters, ற and ழ, to have lines below the letters like ṟ and ḻ in Romanized transliteration.
I want to use Minion Pro for this document because it is used elsewhere but it does not contain these glyphs.
I have tried generating these in accordance with this schema.
However, it does not work: a failed minimum working example is shown below:
\documentclass{article}
\usepackage{fontspec}
\usepackage{newunicodechar}
\setmainfont{Minion Pro} % Does not have the glyphs Ḻ ḻ Ṟ ṟ
% See egreg's example at:
% https://tex.stackexchange.com/questions/84523/how-to-generate-compounded-diacritical-fonts-for-sanskrit-with-xetex-and-luatex
\makeatletter
\let\d\relax
\DeclareRobustCommand{\d}[1]
{\hmode@bgroup
\o@lign{\relax#1\crcr\hidewidth\ltx@sh@ft{-1ex}.\hidewidth}\egroup}
\let\.\relax
\DeclareRobustCommand{\.}[1]{\accent"02D9#1}
\DeclareRobustCommand{\MACRON}[1]{\accent"AF#1}
\DeclareRobustCommand{\MACRONBELOW}[1]{\accent"0331#1} % Added by Chandra
\makeatother
\newunicodechar{Ḻ}{\MACRONBELOW{L}}
\newunicodechar{ḻ}{\MACRONBELOW{l}}
\newunicodechar{Ṟ}{\MACRONBELOW{R}}
\newunicodechar{ṟ}{\MACRONBELOW{r}}
\begin{document}
%
Ḻ ḻ Ṟ ṟ
\underline{R} ā
%
\end{document}
The "tofu" results
are shown in the attached image. \underline{R} does work but the line below is thin compared to the line above in a properly formed a-macron: see image for comparison.
The accents.sty package does provide the \underaccent command but it works in math mode and I need something for text outside of math.
I am looking for a way to generate these letters repeatably and conveniently. How could I go about this, please?

\underline{r}? or just use ṟ directly in xetex (as long as your font has the character) – David Carlisle Sep 27 '17 at 09:30