## LaTeX forum ⇒ TeXShop ⇒ fontenc | Hyphenation for accented Characters in Romanian Topic is solved

Information and discussion about TeXShop, an integrated LaTeX environment for Mac OS X
Posts: 9
Joined: Tue Jul 24, 2012 8:35 am

### Re: fontenc | Hyphenation for accented Characters in Romania

localghost wrote:The typesetting engine is not responsible for the problem with BibTeX. I answered correspondingly in the other thread.

You're absolutely right of course... it was a BibTex issue not a typesetting one.
That seems to solve this, thanks very much to you both cgnieder and Thorsten.

XeLaTeX (which natively works with UTF8) plus the fontspec package hits the nail right in the head.

Best wishes,

cgnieder
Site Moderator
Posts: 1974
Joined: Sat Apr 16, 2011 7:27 pm
Location: Germany
Contact:
dusadrian wrote:That error dissapears by using:
\usepackage[utf8x]{inputenc}

As previously mentioned, "please note the usage of utf8x..." (the key is the last letter "x" after the utf8, which allows for an extended list of characters

This also defines ș to be a macro:
\documentclass{article}\usepackage[utf8x]{inputenc}\usepackage[T1]{fontenc} \begin{document} \ttfamily\meaning ș \end{document}

For pdflatex it comes down to what the FAQ entry I linked to earlier says:
The solution is to use a font that contains the character in question, and to express the \hyphenation command in terms of that character; this “hides” the accent from the hyphenation mechanisms.

I guess XeLaTeX is the easiest way...
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

Posts: 9
Joined: Tue Jul 24, 2012 8:35 am
cgnieder wrote:I guess XeLaTeX is the easiest way...

Very much agree with that, XeLaTeX is the easiest way because it natively deals with UTF8 so that I don't have to worry about all these issues.

Thanks very much again, I learned a lot out of this discussion (and I hope others will benefit as well).

Best wishes,