Pomax / ucharclasses

A XeLaTeX package that lets you insert arbitrary code between characters from different unicode blocks
15 stars 5 forks source link

Bug in transition to Devanagari character ॥ #40

Open ijya opened 1 year ago

ijya commented 1 year ago

I am encountering a strange bug where the transition to the Devanagari character ॥ does not happen if it is immediately preceded by any other character. A MWE:

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Latin Modern Roman}
\newfontfamily\s[Script=Devanagari]{Shobhika-Regular}
\usepackage[Devanagari,Latin]{ucharclasses}
\setTransitionsForDevanagari{\s}{\rmfamily}
\begin{document}
त ॥६३॥ \\
There seems to be some bug in the transition to the second ॥ character in the above and below lines. 
I have not encountered this issue with any other character. \\ 
॥क॥ क \\
The bug does not appear if there is a space before the second ॥ character:\\
॥क ॥ क
\end{document} 
ijya commented 1 year ago

I would just like to add that there is no problem if ucharclasses is not employed and we just use {\s त ॥६३॥}

Pomax commented 1 year ago

Font used: https://github.com/Sandhi-IITBombay/Shobhika