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
1
vote
1answer
36 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}{\...
0
votes
0answers
36 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 ...
0
votes
1answer
34 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}}{\...
0
votes
0answers
37 views

Hyphenation and text support for two languages

Is there a way to have a document having both Greek and English text, without having to switch with a command between the two, AND have correct hyphenation for both languages? The closest I have ...
0
votes
1answer
22 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 ...
1
vote
0answers
48 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{...
4
votes
1answer
96 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 ...
0
votes
0answers
29 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]{...
1
vote
2answers
42 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} \...
5
votes
1answer
88 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\...
5
votes
3answers
250 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\...
1
vote
0answers
161 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 ...
2
votes
1answer
245 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 ...
2
votes
1answer
114 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 ...
5
votes
2answers
494 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 ...
1
vote
1answer
210 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 ...
1
vote
0answers
125 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?
3
votes
1answer
187 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{...
2
votes
1answer
232 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 ...
4
votes
1answer
235 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 ...
5
votes
3answers
826 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} \...
3
votes
2answers
623 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=...
5
votes
1answer
273 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 ...
5
votes
2answers
278 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 ...
5
votes
2answers
954 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, ...
4
votes
2answers
318 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 ...