Re: [XeTeX] hyphenmins for default language
From: Vadim Radionov > Dear all, > > Consider the following example. The default value of > righthyphenmin (2 in Russian) depends on the order > in which language declarations occur: just transpose lines 4 and > 5. Is it OK? > > Yours, > > Vadim > > \documentclass{book} > \usepackage{xltxtra} > \usepackage{polyglossia} > \setdefaultlanguage{russian} > \setotherlanguage{english} > > \newfontfamily\russianfont{Linux Libertine} > \begin{document} > \showthe\righthyphenmin > \end{document} Of course it was wrong. :( I have committed a change in polyglossia.sty; change lines 219--222 with \def...@key[xpg@setup]{#1}{hyphenmins}[{2,3}]% {\begingroup\edef\x{\endgroup \noexpand\setlocalhyphenmins{#1}{\...@first##1}{\xpg@second##1}}\x} The problem with the former definition was that \...@tmpfirst and \...@tmpsecond were not expanded at the right time. Now we get \setlocalhyphenmins {english}{2}{3} ... \setlocalhyphenmins {russian}{2}{2} where, before, we got \setlocalhyphenmins {english...@tmpfirst}{\@tmpsecond} ... \setlocalhyphenmins {russian...@tmpfirst}{\@tmpsecond} and the order depended on the declaration of the languages. Ciao Enrico -- Enrico Gregorio + Dipartimento di Informatica + Tel: +39 045 8027937 enrico.grego...@univr.it + Università degli Studi di Verona + (grego...@math.unipd.it) + Strada le Grazie 15 / I-37134 Verona + Fax: +39 045 8027928 -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] irregular spaces between lines in Tibetan
From: Yves Codet > Hello. > > If I compile the attached file I get an irregular spacing of > lines, as you can see on the PDF: the space between the first > and the second line is smaller than between the other lines. But > if I replace: > \newfontfamily\tibetanfont[Script=Tibetan,Scale=3]{Tibetan > Machine Uni} > with: > \newfontfamily\tibetanfont[Script=Tibetan]{Tibetan Machine Uni} > the spacing becomes regular. Is there an option I should add to > the \tibetanfont command to get correct spaces with magnified glyphs? You should modify also \baselineskip; try \baselineskip=36pt and look at the result. Define \newenvironment{tibetan} {\par\linespread{3}\tibetanfont\noindent\ignorespaces} {\par} and use the new environment; \linespread{3} corresponds to \baselineskip=36pt (with the default 10pt size): it sets a multiplication factor. Modify at will. Ciao Enrico -- Enrico Gregorio + Dipartimento di Informatica + Tel: +39 045 8027937 enrico.grego...@univr.it + Università degli Studi di Verona + (grego...@math.unipd.it) + Strada le Grazie 15 / I-37134 Verona + Fax: +39 045 8027928 -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
[XeTeX] irregular spaces between lines in Tibetan
Hello. If I compile the attached file I get an irregular spacing of lines, as you can see on the PDF: the space between the first and the second line is smaller than between the other lines. But if I replace: \newfontfamily\tibetanfont[Script=Tibetan,Scale=3]{Tibetan Machine Uni} with: \newfontfamily\tibetanfont[Script=Tibetan]{Tibetan Machine Uni} the spacing becomes regular. Is there an option I should add to the \tibetanfont command to get correct spaces with magnified glyphs? Best wishes, Yves essai.tex Description: Binary data essai.pdf Description: Adobe PDF document -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] problem with fontspec
Hello. Many thanks, Herb. It took a while to update everything but now it works. Best wishes, Yves Le 6 déc. 2010 à 17:31, Herbert Schulz a écrit : > > > On Dec 6, 2010, at 9:59 AM, Yves Codet wrote: > >> Hello. >> >> I've updated fontspec to v2.1e through tlmgr and my documents don't compile >> anymore. With the following: >> >> \documentclass{article} >> \usepackage{fontspec} >> \setmainfont{Charis SIL} >> \begin{document} >> Essai. >> \end{document} >> >> I get this error message: >> >> ./essai.tex:3: Undefined control sequence. >> \int_compare_p:nNn >> >> l.3 \setmainfont{Charis SIL} >> >> ? >> >> Is anything wrong with my setup? Thanks in advance. >> >> Regards, >> >> Yves > > Howdy, > > Assuming you have MacTeX(TeX Live)-2010 installed have you updated > everything, not only fontspec? The fontspec package depends upon other > packages being up to date too. In this case I'd guess something in the expl3 > package group needs updating. > > If you're using OS X 10.5 or later use TeX Live Utility to do a full update > of everything. otherwise you'll have to use tlmgr directly. > > Good Luck, > > Herb Schulz > (herbs at wideopenwest dot com) > > > > > > > -- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex > -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] problem with fontspec
On Dec 6, 2010, at 9:59 AM, Yves Codet wrote: > Hello. > > I've updated fontspec to v2.1e through tlmgr and my documents don't compile > anymore. With the following: > > \documentclass{article} > \usepackage{fontspec} > \setmainfont{Charis SIL} > \begin{document} > Essai. > \end{document} > > I get this error message: > > ./essai.tex:3: Undefined control sequence. > \int_compare_p:nNn > > l.3 \setmainfont{Charis SIL} > > ? > > Is anything wrong with my setup? Thanks in advance. > > Regards, > > Yves Howdy, Assuming you have MacTeX(TeX Live)-2010 installed have you updated everything, not only fontspec? The fontspec package depends upon other packages being up to date too. In this case I'd guess something in the expl3 package group needs updating. If you're using OS X 10.5 or later use TeX Live Utility to do a full update of everything. otherwise you'll have to use tlmgr directly. Good Luck, Herb Schulz (herbs at wideopenwest dot com) -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
[XeTeX] problem with fontspec
Hello. I've updated fontspec to v2.1e through tlmgr and my documents don't compile anymore. With the following: \documentclass{article} \usepackage{fontspec} \setmainfont{Charis SIL} \begin{document} Essai. \end{document} I get this error message: ./essai.tex:3: Undefined control sequence. \int_compare_p:nNn l.3 \setmainfont{Charis SIL} ? Is anything wrong with my setup? Thanks in advance. Regards, Yves -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] [luatex] [Tex-nl] Some ligatures Romande ADF Style Std not shown
On 12/06/2010 04:02 PM, Khaled Hosny wrote: On Mon, Dec 06, 2010 at 03:55:13PM +0100, Pander wrote: On 2010-12-04 18:28, Taco Hoekwater wrote: On 12/04/2010 04:47 PM, Pander wrote: But the font "Romande ADF Style Std" has only the following ligatures: liga: f_f_i, f_i, f_f, f_f_l, f_l, germandbls dlig: s_t rlig: AE, ae, OE, oe According to TTX there are more, see If the target glyph does not exist, it seems fontforge& ICU silently remove the lookup entry, whereas TTX does not. There appears to really not be a uniE001 nor a uniE002 glyph in the font. Still the following needs attention. Rendered correctly by LuaLateX: AE OE ae ff fi fl oe ss rendered as white space: ffi ffl st not rendered because of missing glyphs: (reported at font's maintainer) ct cp I just tried this with context, and I get visible ligature renderings for all sequences, except for separate glyphs c,t and c,p instead of a ligature. I think that is exactly as it should be. My input was: \definefontfeature[romande][liga=yes,dlig=yes,rlig=yes] \definefontsynonym[romande][file:RomandeADFStyleStd-Regular][features=romande] \starttext \definedfont[romande] AE OE ae ff fi fl oe ss ffi ffl st ct cp \stoptext Best wishes, Taco -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] [luatex] [Tex-nl] Some ligatures Romande ADF Style Std not shown
On Mon, Dec 06, 2010 at 03:55:13PM +0100, Pander wrote: > On 2010-12-04 18:28, Taco Hoekwater wrote: > > On 12/04/2010 04:47 PM, Pander wrote: > >>> > >>> But the font "Romande ADF Style Std" has only the following ligatures: > >>> > >>> liga: f_f_i, f_i, f_f, f_f_l, f_l, germandbls > >>> dlig: s_t > >>> rlig: AE, ae, OE, oe > >> > >> According to TTX there are more, see > > > > If the target glyph does not exist, it seems fontforge & ICU silently > > remove the lookup entry, whereas TTX does not. There appears to really > > not be a uniE001 nor a uniE002 glyph in the font. > > Still the following needs attention. > > Rendered correctly by LuaLateX: > AE OE ae ff fi fl oe ss > rendered as white space: > ffi ffl st > not rendered because of missing glyphs: (reported at font's maintainer) > ct cp > > Rendered correctly by XeLaTeX: > rendered as white space: > ffi ffl st > rendered as empty squares because of missing glyphs: (reported at font's > maintainer) > ct cp > > How to fix rendering for ffi, ffl and st? Sorry, I've not been following the thread closely, but with which font is that? looks like a font bug to me. > How to render the identically for the missing glyphs ct and cp? XeLaTeX > renders empty squares but LuaLaTeX renders nothing at all. +1 The lack of any visual indication that there is a missing glyph is a bit annoying, and in some cases one might totally miss it and it can be embarrassing at times. AFAIK, the .notdef glyph should be used in place of missing glyphs, but I've no idea why luatex does not use it. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] [luatex] [Tex-nl] Some ligatures Romande ADF Style Std not shown
On 2010-12-04 18:28, Taco Hoekwater wrote: > On 12/04/2010 04:47 PM, Pander wrote: >>> >>> But the font "Romande ADF Style Std" has only the following ligatures: >>> >>> liga: f_f_i, f_i, f_f, f_f_l, f_l, germandbls >>> dlig: s_t >>> rlig: AE, ae, OE, oe >> >> According to TTX there are more, see > > If the target glyph does not exist, it seems fontforge & ICU silently > remove the lookup entry, whereas TTX does not. There appears to really > not be a uniE001 nor a uniE002 glyph in the font. Still the following needs attention. Rendered correctly by LuaLateX: AE OE ae ff fi fl oe ss rendered as white space: ffi ffl st not rendered because of missing glyphs: (reported at font's maintainer) ct cp Rendered correctly by XeLaTeX: rendered as white space: ffi ffl st rendered as empty squares because of missing glyphs: (reported at font's maintainer) ct cp How to fix rendering for ffi, ffl and st? How to render the identically for the missing glyphs ct and cp? XeLaTeX renders empty squares but LuaLaTeX renders nothing at all. Regards, Pander > Best wishes, > Taco > -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
[XeTeX] hyphenmins for default language
Dear all, Consider the following example. The default value of righthyphenmin (2 in Russian) depends on the order in which language declarations occur: just transpose lines 4 and 5. Is it OK? Yours, Vadim \documentclass{book} \usepackage{xltxtra} \usepackage{polyglossia} \setdefaultlanguage{russian} \setotherlanguage{english} \newfontfamily\russianfont{Linux Libertine} \begin{document} \showthe\righthyphenmin \end{document} -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] supplying missing glyphs?
On 2010-12-06 12:35, Michiel Kamermans wrote: > Adam, > > On 12/2/2010 4:20 PM, Adam McCollum wrote: >> Dear list members, >> I like the Hoefler Text font very much, but I see that it apparently >> doesn't have glyphs for a number of letters with diacritics, which I >> sometimes need for transliteration; please see the example text below. >> I've tried both unicode entry and the TeX way for entering these. Is >> there any way at all to "fake" these glyphs or otherwise supply them? Send a bug report to the maintainers. > My thought would be to simply use a different font for those characters, > by making use of the interchartok functionality of XeTeX. I do this for > Chinese transliteration when I'm using Palatino Linotype as base font. > It has virtually no extended Latin characters, so I rely on FreeSerif > for the additional characters (and Caslon Pro for quotation, because > Palatino's quotation symbols are dreadfully ugly). > > The snippet of preamble relevant to this: > > \XeTeXinterchartokenstate = 1 > > % set up the fonts > \newfontfamily{\mainlatinfont}{Palatino Linotype} > \newfontfamily{\extlatinfont}{FreeSerif} > \newfontfamily{\quotefont}{Adobe Caslon Pro} > > % character classes (xetex has 5 predefined classes: latin=0, > cjk=1,2,3, boundary=255) > \newcommand{\extlatinclass}{\newcharclass} > \newcommand{\quoteclass}{\newcharclass} > > % extended latin characters not found in Palatino > \XeTeXcharclass `\ǒ \extlatinclass > ... > % quotation looks dreadful in Palatino > \XeTeXcharclass `\’ \quoteclass > \XeTeXcharclass `\‚ \quoteclass > \XeTeXcharclass `\“ \quoteclass > \XeTeXcharclass `\” \quoteclass > > % transition to latin (including boundary) > \XeTeXinterchartoks \extlatinclass 0 = {\mainlatinfont} > \XeTeXinterchartoks \quoteclass 0 = {\mainlatinfont} > \XeTeXinterchartoks \quoteclass 255 = {\mainlatinfont} > > % transitions to extended latin > \XeTeXinterchartoks 0 \extlatinclass = {\extlatinfont} > \XeTeXinterchartoks \quoteclass \extlatinclass = {\extlatinfont} > > % transitions to quotation > \XeTeXinterchartoks 0 \quoteclass = {\quotefont} > \XeTeXinterchartoks \extlatinclass \quoteclass = {\quotefont} > > - Mike "Pomax" Kamermans > nihongoresources.com > > > > -- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] supplying missing glyphs?
Andrea, how can I upgrade the Times New Roman on my XP computer, which doesn't have some of the characters that are in the Times New Roman on my Vista laptop? First, you'll have to get a license that grants you the use of that font, for the machine you want to use it on. Typically this means just finding a software bundle that comes with the font you want, but Times New Roman is only 30 euro, so it's probably cheapest to just buy a copy of it. The complete family is 175 euro, which is actually still cheaper than most software bundles that come with Times, although of course these will also come with loads of other professional fonts that you can then use, so it might be more economical to buy a copy of Microsoft Windows or Office specifically for the rights that grants you with respects to using fonts. - Mike "Pomax" Kamermans nihongoresources.com -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] supplying missing glyphs?
Adam, On 12/2/2010 4:20 PM, Adam McCollum wrote: Dear list members, I like the Hoefler Text font very much, but I see that it apparently doesn't have glyphs for a number of letters with diacritics, which I sometimes need for transliteration; please see the example text below. I've tried both unicode entry and the TeX way for entering these. Is there any way at all to "fake" these glyphs or otherwise supply them? My thought would be to simply use a different font for those characters, by making use of the interchartok functionality of XeTeX. I do this for Chinese transliteration when I'm using Palatino Linotype as base font. It has virtually no extended Latin characters, so I rely on FreeSerif for the additional characters (and Caslon Pro for quotation, because Palatino's quotation symbols are dreadfully ugly). The snippet of preamble relevant to this: \XeTeXinterchartokenstate = 1 % set up the fonts \newfontfamily{\mainlatinfont}{Palatino Linotype} \newfontfamily{\extlatinfont}{FreeSerif} \newfontfamily{\quotefont}{Adobe Caslon Pro} % character classes (xetex has 5 predefined classes: latin=0, cjk=1,2,3, boundary=255) \newcommand{\extlatinclass}{\newcharclass} \newcommand{\quoteclass}{\newcharclass} % extended latin characters not found in Palatino \XeTeXcharclass `\ǒ \extlatinclass ... % quotation looks dreadful in Palatino \XeTeXcharclass `\’ \quoteclass \XeTeXcharclass `\‚ \quoteclass \XeTeXcharclass `\“ \quoteclass \XeTeXcharclass `\” \quoteclass % transition to latin (including boundary) \XeTeXinterchartoks \extlatinclass 0 = {\mainlatinfont} \XeTeXinterchartoks \quoteclass 0 = {\mainlatinfont} \XeTeXinterchartoks \quoteclass 255 = {\mainlatinfont} % transitions to extended latin \XeTeXinterchartoks 0 \extlatinclass = {\extlatinfont} \XeTeXinterchartoks \quoteclass \extlatinclass = {\extlatinfont} % transitions to quotation \XeTeXinterchartoks 0 \quoteclass = {\quotefont} \XeTeXinterchartoks \extlatinclass \quoteclass = {\quotefont} - Mike "Pomax" Kamermans nihongoresources.com -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex