0

I'm deciphering ancient Indian manuscript by using XeLaTeX (Version 4.31) based on MacOS. I want to type "Benalgi Sign Anusvara" ং (U+0982), "Bengali Anji" ঀ (U+0980), and "Bengali Vowel Sign Uu" ূ (U+09C2). Fortunately, Arun Debray's setting WORKS for me. Thank you! (How can I use Bengali script in an English document?)

So I have tried to slightly modify Arun Debray's file to show "Benalgi Sign Anusvara" ং (U+0982) as follows.

\documentclass[preview, margin=0.5cm]{article}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{bengali}

% Replace this with whatever font you're using
\newfontfamily\bengalifont[Script=Bengali]{Akaash}

\title{\textbengali{ইংরেজি} and Bengali}

\usepackage{newunicodechar} % <=== Added 

\newunicodechar{^^^^25bc}{{\symbolfont\symbol{"25BC}}} % <=== Added
\newunicodechar{^^^^0982}{{\symbolfont\symbol{"0982}}} % <=== Added 

\defaultfontfeatures{Scale=MatchUppercase}  % <=== Added
\newfontfamily\symbolfont{DejaVu Sans Mono}  % <=== Added

\begin{document}

\maketitle

First English, \textbengali{তারপর বাংলা} 
{^^^^25bc} 
{^^^^0982}

\end{document}

Unfortunately, the result was not successful. "Benalgi Sign Anusvara" ং (U+0982) does not appear. Even the existing Bengali letter is damaged by adding the lines. Comparatively, it presents a black triangle (U+0982) without any problem. Could you give me some advice to modify this file to get those three letters? Many thanks in advance!

1

U+0982 is a Bengali character:

\documentclass{article}
\usepackage{polyglossia}
\usepackage{newunicodechar}

\setmainlanguage{english}
\setotherlanguage{bengali}

% Replace this with whatever font you're using
\newfontfamily\bengalifont[Script=Bengali]{Bangla MN}
\defaultfontfeatures{Scale=MatchUppercase}
\newfontfamily\symbolfont{DejaVu Sans Mono}

\newunicodechar{▼}{{\symbolfont▼}}

\begin{document}
\title{\textbengali{ইংরেজি} and Bengali}
\author{Woonsaan Seok}

\maketitle

First English, \textbengali{তারপর বাংলা} 

▼

\textbengali{^^^^0982}

\end{document}

enter image description here

  • @ergreg Thank you very much for your elaborated MWE. I found a rule of "mutual exclusion" in Bengali fonts. Group A (Bangla MN, Noto Sans Bengali and so on) support not "Benalgi Sign Anusvara" ং (U+0982) but "Bengali Anji" ঀ (U+0980). On the other hand, group B (FreeSerif) only supports "Benalgi Sign Anusvara" ং (U+0982), not "Bengali Anji" ঀ (U+0980). Then, I wish to use group B by adding "\newfontfamily\bengalifont[/Users/XXXX/Library/Fonts/]{FreeSerif.ttf}" to the preamble. How can I obtain "Bengali Anji" ঀ (U+0980) by using group A only in a portion of a work? – Woonsaan Seok Aug 23 at 14:45
0

newunicodechar seems to cause the problem you report. Try avoiding to use it. With respect to Anji, it works only with some fonts. Whatever reason it be, it works with Noto Serif Bengali (https://www.google.com/get/noto/#serif-beng), but not Akaash.

  • Thank you very much for your elaborated MWE. I found a rule of "mutual exclusion" in Bengali fonts. Group A (Bangla MN, Noto Sans Bengali and so on) support not "Benalgi Sign Anusvara" ং (U+0982) but "Bengali Anji" ঀ (U+0980). On the other hand, group B (FreeSerif) only supports "Benalgi Sign Anusvara" ং (U+0982), not "Bengali Anji" ঀ (U+0980). Then, I wish to use group B by adding "\newfontfamily\bengalifont[/Users/XXXX/Library/Fonts/]{FreeSerif.ttf}" to the preamble. How can I obtain "Bengali Anji" ঀ (U+0980) by using group A only in a portion of a work? – Woonsaan Seok Aug 23 at 14:45
  • 1
  • Thank you very much for your kind advice. I'll visit the page as soon as possible. – Woonsaan Seok Aug 24 at 14:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.