Re: [XeTeX] Hyphenation rules problem in my french document
enrico.gregorio at univr.it enrico.gregorio at univr.it Mon Nov 29 00:16:52 CET 2010 With this document set up, you should teach XeTeX that a right quote should behave like an (ASCII) apostrophe, with respect to hyphenation. So, add \addto\extrasfrench{\lccode2019=`\' } Enrico, this indeed works too! I'm just wondering about the weird quotes needed here. Seems like \lccode keeps an associative table of symbols, and 2019 would be the unicode character to be redefined. Are the first (double quote) and last '\ characters always required when using the \lccode macro? (so would indicate start of redefinition and \' indicates en of it?). Also, the suggestion from Andréa Loyer of adding a \usepackage[T1]{fontenc} directive to my test document: From: Andréa Loyer andrea.lo...@crans.org I think the problem was lying in the need of an \usepackage[T1]{fontenc}needed by babel to correctly deal with accentuated words and probably words with elided article. But well polyglossia in anyway more adapted if you are using xetex. -- D. also results in the correct hyphenation of the l'oscilloscope word in my test document when using Babel. Thanks both for the advices. I'll keep this information for when I ever have problems related with hyphenation with Polyglossia! Now I just need to find an efficient way to input the required unicode characters « » directly from Emacs. Maxim -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
[XeTeX] Hyphenation rules problem in my french document
Dear fellow Xe(La)TeXers, I would appreciate any clues on the following problem: I am writing a french document, using the \usepackage[francais]{babel} directive in my preamble. Some lines of text aren't hyphenated automatically, most of the time because there doesn't seem to be hyphenation rules in the hyphenation dictionary for words preceded by l' such as in my test document, l'oscilloscope. I tried suggesting new rules using the \hyphenation{oscillo-scope} rule, but it does only affect the word oscilloscope when it is preceded and followed by a space. I can't seem to find a way to tell it to use \hyphenation{l'oscilloscope} without it issuing a warning such as: * Local config file frenchb.cfg used * (/usr/local/texlive/2010/texmf-dist/tex/generic/babel/frenchb.cfg))) (/usr/local/texlive/2010/texmf-dist/tex/latex/carlisle/scalefnt.sty) ! Not a letter. l.11 \hyphenation{l' oscillo-scope} Any ideas? I've included the test document below. Also, I guess I should test it with polyglossia, but I have never used it (and don't have much time to RTM for now). Is it hard to set up? % Test document \documentclass[12pt,letterpaper,oneside,draft]{memoir} \usepackage{fontspec} \usepackage{xunicode} \usepackage[francais]{babel} \hyphenation{l'oscillo-scope} \begin{document} l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope \end{document} Thanks, Maxim -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Hyphenation rules problem in my french document
Le dimanche 28 novembre 2010 à 18:04 -0500, Fr. Michael Gilmary a écrit : I used this: \hyphenation{oscillo-scope} and it hyphenated correctly (I think!) Also, I guess I should test it with polyglossia, but I have never used it (and don't have much time to RTM for now). Is it hard to set up? See above. HTH. Thank you, Sir! This is all very excellent. To say that I was scared to make the switch to polyglossia! I guess I had not so fond memories of my first clashes with Ubuntu's outdated TexLive packages. And the user manual is a mere 15 pages, I'm reading it right now! ;) Polyglossia seems a superior solution, indeed, there is not even the need to specify the hyphenation rule, it splits the l'oscilloscope word just fine with the defaults: % Test document \documentclass[12pt,letterpaper,oneside,draft]{memoir} \usepackage{fontspec} \usepackage{polyglossia} \setdefaultlanguage{french} \begin{document} l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope l'oscilloscope \end{document} Many thanks again! Maxim attachment: face-wink.png -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Combined \textsubscript and unicode character does not work.
Herbert Schulz herbs at wideopenwest.com Wed Nov 24 02:17:28 CET 2010 Howdy, Could be your version of `Linux Libertine O' or, maybe your version of fontspec? I'm on TL2010 (via MacTeX install) with all updates (via tlmgr via TeX Live Utility) and have [...] I'm using the latest Linux Libertine O (again all updates via...) found in .../texmf-dist/fonts/opentype/public/libertine/ e.g., v 4.8.7 of the ``regular'' font. Good Luck, Herb Schulz (herbs at wideopenwest dot com) Thanks for the remember about tlmgr updates!. I thought my freshly installed TeXLive 2010 form DVD image was fresh enough, but running tlmgr update --all, and recompiling the test document proved the contrary! The faulty behaviour is gone. I'm happily surprised that this was fixed in the recent updates! The problem was probably with the fontconfig package in the TexLive 2010 DVD release. I didn't need to update my Linux Libertine font. Thanks everyone, Maxim -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Combined \textsubscript and unicode character does not work.
Maybe the problem is related to my version of Linux Libertine fonts? I'm using version 4.4.1-4 from Ubuntu 10.04 repository. It seems to be the OpenType version, because I need to specify Linux Libertine O to find the fonts. So modifying your test document accordingly: % !TEX TS-program = XeLaTeX \listfiles \documentclass{article} \usepackage{fontspec} \setmainfont{Linux Libertine O} \begin{document} P\textsubscript{\textepsilon} \end{document} And running xelatex on it: This is XeTeX, Version 3.1415926-2.2-0.9997.4 (TeX Live 2010): [...] (/usr/local/texlive/2010/texmf-dist/tex/latex/base/article.cls Document Class: article 2007/10/19 v1.4h Standard LaTeX document class (/usr/local/texlive/2010/texmf-dist/tex/latex/base/size10.clo)) (/usr/local/texlive/2010/texmf-dist/tex/latex/fontspec/fontspec.sty (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/expl3.sty (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3names.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/etex-pkg/etex.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3basics.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3expan.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3tl.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3intexpr.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3quark.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3seq.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3toks.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3int.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3prg.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3clist.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3token.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3prop.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3msg.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3io.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3skip.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3box.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3keyval.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3keys.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3precom.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3xref.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3file.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3fp.sty) (/usr/local/texlive/2010/texmf-dist/tex/latex/tools/calc.sty)) (/usr/local/texlive/2010/texmf-dist/tex/latex/xpackages/xbase/xparse.sty) (/usr/local/texlive/2010/texmf-dist/tex/generic/kastrup/binhex.tex) (/usr/local/texlive/2010/texmf-dist/tex/latex/xkeyval/xkeyval.sty (/usr/local/texlive/2010/texmf-dist/tex/generic/xkeyval/xkeyval.tex (/usr/local/texlive/2010/texmf-dist/tex/generic/xkeyval/keyval.tex))) (/usr/local/texlive/2010/texmf-dist/tex/latex/fontspec/fontspec-patches.sty (/usr/local/texlive/2010/texmf-dist/tex/latex/base/fixltx2e.sty)) (/usr/local/texlive/2010/texmf-dist/tex/latex/base/fontenc.sty (/usr/local/texlive/2010/texmf-dist/tex/latex/euenc/eu1enc.def) (/usr/local/texlive/2010/texmf-dist/tex/latex/euenc/eu1lmr.fd)) fontspec.cfg loaded. (/usr/local/texlive/2010/texmf-dist/tex/latex/fontspec/fontspec.cfg)) (./lowercase_test.aux) ! Undefined control sequence. argument @size \z@ \selectfont \textepsilon So the problem seems to be coming from fontspec. What does it mean? That it cannot find \textepsilon for my font? Thanks, Maxim -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
[XeTeX] Combined \textsubscript and unicode character does not work.
Hello fellow Xe(La)TeX users, Would someone happen to know why the following does not work as intended in a XeLaTeX document? P\textsubscript{\textepsilon} Well, it does print Pɛ, but notice the epsilon is not in subscript. This behaviour affect any unicode character. Thanks, Maxim -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex