Questions tagged [ucharclasses]

{ucharclasses} should be used for questions related to the `ucharclasses` package that allows executing commands when changing from one Unicode block to another .

Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

ucharclasses no longer does automatic Devanagari transitions in TeXLive 2021

I have recently updated to Fedora 35 and TeXLive 2021. I notice that the package ucharclasses no longer does automatic Devanagari transitions and I have to switch font manually. A MWE: \documentclass{...
user avatar
  • 313
0 votes
2 answers
30 views

How to make ucharclasses escape minted?

I am using ucharclasses to use multiple languages. I am using Noto Serif font for English. But ucharclasses is also changing minted codes into Noto Serif which should be Source Code Pro instead. How ...
user avatar
0 votes
2 answers
78 views

Switching between three scripts using `ucharclasses` does not seem to work

I wish to switch between three scripts, using ucharclasses. My MWE is: \documentclass{article} \usepackage{fontspec} \usepackage[Latin,Tamil,Devanagari]{ucharclasses} \setmainfont[Script=Latin]{Noto ...
user avatar
  • 2,882
1 vote
1 answer
69 views

Why hindi is not getting typeset in this example?

\documentclass[12pts, a4paper, twocolumn, columnsep= 4 mm]{article} \usepackage{fontspec, polyglossia} \usepackage[Devanagari]{ucharclasses} \setmainfont{Calibri} \setTransitionTo{Devanagari}{\...
user avatar
  • 6,267
0 votes
0 answers
103 views

Problem with csquotes, greek and bibliography

I cannot seem to be able to use quotation marks correctly. I have loaded csquotes package, and I am also using ucharclasses to automatically change hyphenation rules in my text. Below you can see the ...
user avatar
  • 193
0 votes
1 answer
82 views

Problem with TableOfContents whith XeLaTex+ucharclasses+Babel

I want to write a greek-english text. I am using babel+XeLaTex. I have a problem with the table of contents: When these lines are included in my code \setDefaultTransitions{\selectlanguage{english}}{\...
user avatar
  • 193
0 votes
1 answer
69 views

Using ucharclasses and XeLaTeX for ancient Greek

When I use ucharclasses with XeLaTeX to automatically change the font for Greek text, I find that it sometimes inserts transitions at the wrong point, within the Greek text. (Note: I am using the ...
user avatar
  • 1,303
1 vote
0 answers
74 views

Set font for numbers in Polyglossia

\documentclass[12pt,a4paper]{article} \usepackage{fontspec} \newfontfamily\englishfont{CMU Serif} % English font \newfontfamily\thaifont[Script=Thai]{TH Sarabun New} % Thai font \usepackage{...
user avatar
  • 133
4 votes
1 answer
183 views

Add single unicode character (euro symbol) to font under Xe(La)TeX

Maybe this has already been asked, but I could not find an answer. I just switched to XeTeX because I need to use a .ttf font in my project. Everything works fine except that the euro (€) symbol is ...
user avatar
  • 465
0 votes
0 answers
48 views

Is Emoticon recognized as a script by `fontspec`?

I am using xelatex to typeset different scripts that belong to disjoint Unicode blocks using the MWE file below: \documentclass{standalone} \usepackage{fontspec} \usepackage[Latin,Tamil,Greek]{...
user avatar
  • 2,882
1 vote
2 answers
56 views

Unexpected behavior when using Dingbats with ucharclasses

I'm trying to switch to and from a Dingbats font using ucharclasses, and I'm failing to obtain correct results. Here's my MWE: \documentclass[border=0.2in,varwidth]{standalone} \usepackage{fontspec} \...
user avatar
  • 1,676
5 votes
1 answer
135 views

What does ucharclasses do here?

I'm trying to understand how to use the ucharclasses package. See this example: \documentclass{article} \usepackage{fontspec} \usepackage{ucharclasses} \newfontfamily\latinfont{Arial} \newfontfamily\...
user avatar
  • 965
5 votes
3 answers
328 views

How to use different font families for the same unicode block in ucharclases?

Here is an MWE: \documentclass{article} \usepackage{fontspec} \usepackage[Sinhala,Latin]{ucharclasses} \newfontfamily\FooBarr{Noto Sans} \newfontfamily\sinhala{Noto Sans Sinhala} \newfontfamily\...
user avatar
1 vote
0 answers
185 views

Hyphenation problems when switching languages with ucharclasses

TL;DR version: How can I write a bilingual document, where the two languages use different scripts, such that (1) I don't need to manually set the font and language every time the document switches ...
user avatar
  • 2,912
2 votes
1 answer
288 views

Khmer script fails to render in parentheses

I'm creating a document where the main script is Roman but I switch inline to Khmer (Cambodian) using \ucharclasses. (Typesetting with XeLaTeX.) This works charmingly, unless I put the Khmer text in ...
user avatar
2 votes
1 answer
171 views

How do I apply boldface to multiple Khmer words in tabular environment?

I create documents that include both Latin and Khmer (Cambodian) characters. To type in Unicode, I use the fontspec package and typeset using XeLaTeX. To move between the two scripts I use the package ...
user avatar
6 votes
2 answers
584 views

Get ucharclasses transitions right for Unicode symbols

I am trying to come up with a universal-ish boilerplate that will let me use as many weird Unicode symbols as I like in my plaintext documents, and handle font fallback on those symbols gracefully ...
user avatar
  • 263
1 vote
1 answer
265 views

Spacing around CJK text with ucharclasses package

I'm modifying a .sty file that's used with documents that includes Latin, Arabic and Japanese text intermingled without specific markup. I am using xeCJK to identify the Japanese text and ...
user avatar
  • 600
1 vote
0 answers
155 views

LuaLaTeX æquivalent to ucharclasses [duplicate]

I am using the XeLaTeX ucharclasses package to switch language and font features on transition into the Greek and Latin unicode ranges. Is there a LuaLaTeX compatible alternative?
user avatar
  • 3,256
3 votes
1 answer
203 views

Conflict between polyglossia and ucharclasses

I have an issue with the following (Xe)LaTeX code where I want to get proper French spacing around the punctuation. Here goes: \documentclass{standalone} \usepackage{polyglossia} \setmainlanguage{...
user avatar
  • 33
2 votes
1 answer
255 views

TypeWriter font have no effect with polyglossia package

Using XeLaTeX engine, MWE1 works fine with fontspec and ucharclasses package. But when I change fontspec to polyglossia (MWE2), there is no TypeWriter font effect. Moreover, the first sentence of ...
user avatar
  • 1,683
4 votes
1 answer
248 views

how to specify font for superscripts using ucharclasses with xelatex

Lohit Tamil Classical font that I am using with Xelatex does not have a glyph for superscript 4. (please see https://github.com/pravins/lohit/issues/68) I have tried using ucharclasses for automatic ...
user avatar
5 votes
3 answers
932 views

XeLaTeX with ucharclasses and Greek Support

ucharclasses and Greek I find that the package ucharclasses cannot correctly identify all the Unicode Greek. e.g. if I use \usepackage{fontspec} \usepackage[Greek]{ucharclasses} \...
user avatar
3 votes
2 answers
790 views

fontspec has no effect on changing English font after using \setTransitionsForLatin

I want to write a paragraph with two languages, Khmer and English. And I want to change font sometimes. Here is the code: \documentclass{article} \usepackage[no-math]{fontspec} \setmainfont[Script=...
user avatar
  • 1,683
5 votes
1 answer
296 views

ucharclasses package does not work with TeX Live 2014's fontspec

With full TeX Live 2014 ucharclasses package no longer works with fontspec. It works with BasicTeX 2014 because BasicTeX 2014 uses old version of font spec from 2013. Here is an example document ...
user avatar
  • 113
5 votes
2 answers
304 views

Is there a way to speed up the use of ucharclasses?

The ucharclasses package is very helpful for automatic font switching based on Unicode blocks. However, it is very, very slow. One way to speed it up is to restrict its scope on certain Unicode ...
user avatar
  • 2,376
6 votes
2 answers
1k views

How can I use ucharclasses to change the font for a special script and then restore to what it was before?

I would like to change the font in XeLaTeX when I enter a new Unicode block with a certain Script (e.g. Devanagari for Hindi languages). The ucharclasses package seems to do exactly that. However, ...
user avatar
  • 2,376
4 votes
2 answers
334 views

Is the package ucharclasses not included in TeX Live?

I have completed the net install of TeX Live 2011 on Linux. I am trying to install the ucharclasses package through tlmgr but it seems that the package is missing. I am using this mirror. According ...
user avatar
  • 5,965