Re: [XeTeX] Checking if a font exists

2010-08-30 Thread Jonathan Kew
On 30 Aug 2010, at 05:56, Wilfred van Rooijen wrote: The (more dificult) solution could be to make a shell script which will run the compilation of the xelatex source and detect whether or not the run was succesfull - if not, change the input file to the other font and retry. I'm surprised

Re: [XeTeX] Checking if a font exists

2010-08-30 Thread Heiko Oberdiek
On Sun, Aug 29, 2010 at 10:55:10PM +0100, Philip Taylor (Webmaster, Ret'd) wrote: Grzegorz Murzynowski wrote: And when the 18th output is on (writing to shell), you can put \immediate\write 18{fc-list Myriad Pro fontcheck.tex} \newread\fontcheck

Re: [XeTeX] Checking if a font exists

2010-08-30 Thread Heiko Oberdiek
On Mon, Aug 30, 2010 at 08:22:53AM +0100, Jonathan Kew wrote: On 30 Aug 2010, at 05:56, Wilfred van Rooijen wrote: The (more dificult) solution could be to make a shell script which will run the compilation of the xelatex source and detect whether or not the run was succesfull - if

Re: [XeTeX] Checking if a font exists

2010-08-30 Thread Philip Taylor (Webmaster, Ret'd)
Heiko Oberdiek wrote: On Mon, Aug 30, 2010 at 08:22:53AM +0100, Jonathan Kew wrote: I'm surprised no-one has suggested the straightforward, pure-xetex approach: something along these lines (untested). snip * It takes lots of time if the font cannot be found. * kpsathea complains

Re: [XeTeX] Checking if a font exists

2010-08-30 Thread Heiko Oberdiek
On Mon, Aug 30, 2010 at 09:58:20AM +0100, Philip Taylor (Webmaster, Ret'd) wrote: Heiko Oberdiek wrote: On Mon, Aug 30, 2010 at 08:22:53AM +0100, Jonathan Kew wrote: I'm surprised no-one has suggested the straightforward, pure-xetex approach: something along these lines (untested).

Re: [XeTeX] Checking if a font exists

2010-08-30 Thread Khaled Hosny
On Mon, Aug 30, 2010 at 08:22:53AM +0100, Jonathan Kew wrote: On 30 Aug 2010, at 05:56, Wilfred van Rooijen wrote: The (more dificult) solution could be to make a shell script which will run the compilation of the xelatex source and detect whether or not the run was succesfull - if not,

Re: [XeTeX] Checking if a font exists

2010-08-30 Thread Philip Taylor (Webmaster, Ret'd)
Heiko Oberdiek wrote: * It takes lots of time if the font cannot be found. * kpsathea complains Invalid fontname `Myriad Pro', contains ' ' * The error code is set because of the error message, if the font cannot be found. None the less, it still seems to be the philosophically correctly

Re: [XeTeX] Checking if a font exists

2010-08-30 Thread Martin Schröder
2010/8/30 Heiko Oberdiek heiko.oberd...@googlemail.com: What kind of philosophy? An error as part of normal behaviour? ;-) If you want to know if XeTeX knows a font you should ask XeTeX and not fontcache. If that's hard, XeTeX should be improved. Best Martin

Re: [XeTeX] Checking if a font exists

2010-08-30 Thread Arthur Reutenauer
* The error code is set because of the error message, if the font cannot be found. Doesn't XeTeX implement \suppressfontnotfounderror that was added to pdfTeX two or three years ago, precisely to deal with this kind of problem? Arthur

[XeTeX] XeTeX documentation? (from Checking if a font exists)

2010-08-30 Thread Michiel Kamermans
Jonathan, I'm surprised no-one has suggested the straightforward, pure-xetex approach: something along these lines (untested). [snip] Nice... I didn't know there was a \nullfont command for checking against. That does bring up a question though: is there a comprehensive pdf document or

Re: [XeTeX] Checking if a font exists

2010-08-30 Thread Khaled Hosny
On Mon, Aug 30, 2010 at 01:21:11PM +0200, Arthur Reutenauer wrote: * The error code is set because of the error message, if the font cannot be found. Doesn't XeTeX implement \suppressfontnotfounderror that was added to pdfTeX two or three years ago, precisely to deal with this kind of

Re: [XeTeX] Checking if a font exists

2010-08-30 Thread Wilfred van Rooijen
You can edit the file fonts.conf (for example in /etc/fonts or /usr/X11/lib/X11/fontconfig) or ~/.fonts.conf, your personal copy that fonts are searched additionally in particular places. Certainly, but on a standard system this may not be set. Thus testing in fc-list would return a

Re: [XeTeX] Checking if a font exists

2010-08-30 Thread Taco Hoekwater
On 08/30/2010 01:21 PM, Arthur Reutenauer wrote: * The error code is set because of the error message, if the font cannot be found. Doesn't XeTeX implement \suppressfontnotfounderror that was added to pdfTeX two or three years ago, precisely to deal with this kind of problem? To the

Re: [XeTeX] Checking if a font exists

2010-08-30 Thread Akira Kakuto
* The error code is set because of the error message, if the font cannot be found. Doesn't XeTeX implement \suppressfontnotfounderror that was added to pdfTeX two or three years ago, precisely to deal with this kind of problem? The primitive exists in 1.50.0-alpha-20080414 in the

[XeTeX] fmutil throws error on installation

2010-08-30 Thread Alexander Schultheiß
Hey, I ran into a problem when installing XeTeX (v. 0.996) TeXLive 2009. The build script works w/o problem (after temporarily changing my PATH to include the TeX binaries) but when I try to install ($ shell ./install-xetex) I get the following error (two times):

Re: [XeTeX] Checking if a font exists

2010-08-30 Thread Akira Kakuto
Doesn't XeTeX implement \suppressfontnotfounderror that was added to pdfTeX two or three years ago, precisely to deal with this kind of problem? To the best of my knowledge, it does. But an explicit \errmessage was given in the example code. Thanks. There is a difference between

Re: [XeTeX] XeTeX documentation? (from Checking if a font exists)

2010-08-30 Thread Avi Wollman
you know what happens when you ask questions like the in the opensouce community ? you get answers like: When you finish making one please send us all a copy. :-) Avi On Mon, Aug 30, 2010 at 2:14 PM, Michiel Kamermans po...@nihongoresources.com wrote: Jonathan, I'm surprised no-one has

Re: [XeTeX] XeTeX documentation? (from Checking if a font exists)

2010-08-30 Thread Michiel Kamermans
On 8/30/2010 6:23 AM, Avi Wollman wrote: you know what happens when you ask questions like the in the opensouce community ? you get answers like: When you finish making one please send us all a copy. Yeah, thanks... slightly counter-productive answer, potentially preventing others from

Re: [XeTeX] XeTeX documentation? (from Checking if a font exists)

2010-08-30 Thread Michiel Kamermans
Hi Khaled, texdoc xetex only generates a man page style html file for the xetex command line program when I run it. I was more enquiring about the existence of normal application documentation. I.e., which commands are supported by XeTeX, how do you do certain things in XeTeX, which things

Re: [XeTeX] fmutil throws error on installation

2010-08-30 Thread Alexander Schultheiß
Sorry, that was my bad! TeXLive has XeTeX already included :|. Sorry for the hassle. 2010/8/30 Alexander Schultheiß aschu...@googlemail.com: Hey, I ran into a problem when installing XeTeX (v. 0.996) TeXLive 2009. The build script works w/o problem (after temporarily changing my PATH to

Re: [XeTeX] Checking if a font exists

2010-08-30 Thread Alan Munn
Wow, I never imagined my question would produce such a flurry of responses (and since I was without internet access for a mere 18 hours, I've not been able to respond.) Thanks to everyone for their suggestions; as others have noted, Jonathan's approach is certainly the kind that I would

Re: [XeTeX] embedding fonts

2010-08-30 Thread Martin Schröder
2010/8/28 Herbert Schulz he...@wideopenwest.com: Hmmm... I wonder how many font licenses this requirement violates? Font licenses don't work. Customer of us tried to get from a major font vendor a server license for a font (i.e. license for a server that generates pdf from xml). Obviously

Re: [XeTeX] Checking if a font exists

2010-08-30 Thread Philip Taylor (Webmaster, Ret'd)
Akira Kakuto wrote: Thanks. There is a difference between \suppressfontnotfounderror0 and \suppressfontnotfounderror1 I think it might be helpful for those unfamiliar with the most terse form of TeX syntax to explain that these are more conventionally written :

Re: [XeTeX] Another tipa/xunicode puzzle: interaction with array.sty?

2010-08-30 Thread Alan Munn
On Aug 30, 2010, at 12:12 PM, Alan Munn wrote: Hi again, I've encountered another puzzle. % !TEX TS-program = XeLaTeX \listfiles \documentclass{article} \usepackage{xltxtra} \usepackage{array} \newfontfamily{\ipafont}{Doulos SIL} \def\useTIPAfont{\ipafont} \newenvironment{ipa}{%

Re: [XeTeX] Another tipa/xunicode puzzle: interaction with array.sty?

2010-08-30 Thread Alan Munn
On Aug 30, 2010, at 3:33 PM, Ross Moore wrote: Hi Alan, On 31/08/2010, at 2:12 AM, Alan Munn am...@gmx.com wrote: Hi again, I've encountered another puzzle. % !TEX TS-program = XeLaTeX \newcolumntype{I}{{\begin{ipa}[}l{]\end{ipa}}} \begin{document} \begin{ipa}[PoP]\end{ipa}

Re: [XeTeX] Another tipa/xunicode puzzle: interaction with array.sty?

2010-08-30 Thread Ross Moore
Hi Alan, On 31/08/2010, at 5:36 AM, Alan Munn wrote: On Aug 30, 2010, at 3:33 PM, Ross Moore wrote: Why does the same code work with the IPA environment using tipa.sty and regular latex? There you are using a font that has the TIPA characters in regular ASCII positions. The characters are

Re: [XeTeX] Another tipa/xunicode puzzle: interaction with array.sty?

2010-08-30 Thread Ross Moore
Hi Alan, On 31/08/2010, at 5:28 AM, Alan Munn wrote: And I'll add another problem while I'm at it: I have lots of tables of the sort described above. I've defined \NL to be equivalent to \tabularnewline, but this no longer works with these tables: (copy into the document above).

Re: [XeTeX] XeTeX documentation? (from Checking if a font exists)

2010-08-30 Thread Wilfred van Rooijen
I guess that in the Closed Source community you get a similar answer, it is just that __nobody__ outside those directly involved knows about it :-)) I have complained before on this list about the (scientific) community in which I am involved, where manuals are often outdated, or too short

Re: [XeTeX] XeTeX documentation? (from Checking if a font exists)

2010-08-30 Thread Wilfred van Rooijen
Come on, let's not get mad at each other. Avi's remark is both good-witted and true, and that last aspect makes it somewhat painful :-)) Indeed, the open source architecture should make it possible for non-developers to write a manual of the same quality, because you can access the source code

[XeTeX] misplaced diacritical marks

2010-08-30 Thread Alexander Schultheiß
Hey, I'm new to xetex/xelatex and I have problems with diacritical marks. I found another thread describing a similar problem but the original question sadly isn't addressed (http://tug.org/pipermail/xetex/2004-August/000668.html). Does xelatex honor anchors in GPOS tables of otf/ttf fonts? If I

Re: [XeTeX] misplaced diacritical marks

2010-08-30 Thread Fr. Michael Gilmary
Alexander Schulthei wrote: Does xelatex honor anchors in GPOS tables of otf/ttf fonts? If I try to place, say, a macron above an 'a' as well as a dot below it one of the two diacritical marks is always misplaced; depending on the oder of xelatex commands: \d{\={a}} dot misplaced \={\d{a}}

Re: [XeTeX] misplaced diacritical marks

2010-08-30 Thread David J. Perry
Alexander, Are you including the xunicode package, which translates the traditional TeX keystrokes into their Unicode equivalents? The following minimal example works for me (Windows, MiKTeX 2.7) with marks correctly placed. I happen to have the Unicode values for the diacritics memorized,

Re: [XeTeX] misplaced diacritical marks

2010-08-30 Thread David J. Perry
Add to my previous reply (sorry, forgot): Your keystrokes \d{\={a}} \={\d{a}} also work correctly in my little sample file. I was concerned first to make sure that Junicode would handle the accents correctly (I thought it would) so I typed in the characters the fastest way for me. But most