Fonts & Character Setsmissing characters on Hebrew/Mac

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
ggran
Posts: 13
Joined: Fri May 09, 2008 9:16 pm

missing characters on Hebrew/Mac

Post by ggran »

Hey All,
I'm trying to write a Hebrew document using unicode (UTF8) encoding, on a Mac machine,
using babel and IvritTex packages.

A typical paper looks like:

Code: Select all

\documentclass{article}
\usepackage{ucs}  
\usepackage[utf8x]{inputenc}
\usepackage{hebfont}
\usepackage[hebrew,english]{babel}

\begin{document}
%some English 
Hello World!

%some Hebrew text
\R{שלום עולם}   % using unicode rather than apple native encoding

\end{document}
The problem:
Everything works great, but the hyphen sign ("-") is omitted from hebrew text.
For instance, the code

Code: Select all

aaa-bbb
\R{אאא-בבב}
produces
aaa-bbb
אאאבבב
Any suggestions?

thanks...

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
ggran
Posts: 13
Joined: Fri May 09, 2008 9:16 pm

missing characters on Hebrew/Mac

Post by ggran »

Checking the log files, I see the following lines

Code: Select all

Missing character: There is no - in font david!
Missing character: There is no ' in font david!
Missing character: There is no - in font david!
Which is weird. Maybe a mapping should be fixed?
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

missing characters on Hebrew/Mac

Post by localghost »

Typesetting multilingual documents with babel, you have to switch to the language you want to write in. The last option to babel specifies the default language for the whole document. Switching to Hebrew works for your example as follows.

Code: Select all

\selectlanguage{hebrew}
Refer to the babel manual for more information. You can call it on the command prompt of your system.

Code: Select all

texdoc babel

Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Post Reply