निरंजन
In this code there are two lines which ideally should appear identical, but apparently there is some problem. I tried {%1}͡{%2}, %1{͡}%2 and also %1{}͡{}%2 instead of %1\\relax ͡%2. None of these seem to work. Is there any way to process such sequences correctly?


\documentclass{article}
\usepackage{luacode}
\usepackage{fontspec}
\setlength{\parindent}{0pt}
\setmainfont{CharisSIL}

\begin{luacode}
function tiebarup ( s )
s = unicode.utf8.gsub
(s,'\\texttoptiebar{(.*)(.*)}','%1\\relax ͡%2')
return s
end
\end{luacode}
\directlua{%