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 people 
probably would enter them as you did.  And both ways work if you load 
xunicode (and fontspec, of course).


David 




--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


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, so I just typed them 
in, but you could equally well paste the actual characters from BabelMap or 
Character Viewer or whatever utility you have.


David

% !TEX TS-program = xelatex
% !TEX encoding = UTF-8

\documentclass[11pt]{article}

\usepackage{fontspec}
\defaultfontfeatures{Mapping=tex-text}
\usepackage{xunicode}
\usepackage{xltxtra}

\setmainfont{Junicode}

\begin{document}

\LARGE
la\char"0304 \char"0323 m
hy\char"0304\char"0301 s

\end{document}


- Original Message - 
From: "Alexander Schultheiß" 

To: 
Sent: Monday, August 30, 2010 8:50 PM
Subject: [XeTeX] misplaced diacritical marks



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 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}} macron misplaced

I tried it with my own font as well as with Junicode. The problem does
not depend on the choice of font, it seems. Also, if I try to place an
acute above a+macron the diacritics do not stack. Even worse, if
a+macron is not pre-composed within the font, xelatex is unable to
assemble it (Why?!). So my suspicion is that xelatex doen't honor
anchors within GPOS tables. Is this correct or do I miss something? If
correct, is there a way to make xelatex recognize anchors?

Thanks


--
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] 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}} macron misplaced
  




This has been treated before (but I forget when on this list) --- you 
can achieve what I think you desire with this definition in your preamble:


%put accent (or whatever) over glyph
\def\overstrike#1#2{\leavevmode
  \setbox0=\hbox{#1}\setbox1=\hbox{#2}\copy0
  \kern -0.5\wd0 \kern -0.5\wd1 \copy1 \kern -0.5\wd1 \kern 0.5\wd0}


And then here's an example in the document:



\overstrike{\d{a}}{¯}



HTH.



--
United in adoration of Jesus, 




fr. michael gilmary, mma

Most Holy Trinity Monastery
67 Dugway Road
Petersham, MA 01366-9725

www.MaroniteMonks.org






--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


[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 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}} macron misplaced

I tried it with my own font as well as with Junicode. The problem does
not depend on the choice of font, it seems. Also, if I try to place an
acute above a+macron the diacritics do not stack. Even worse, if
a+macron is not pre-composed within the font, xelatex is unable to
assemble it (Why?!). So my suspicion is that xelatex doen't honor
anchors within GPOS tables. Is this correct or do I miss something? If
correct, is there a way to make xelatex recognize anchors?

Thanks


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


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 
at will. And let's not forget that there are some remarkably good manuals, for 
instance the memoir documentation, and the documentation of PGF/TikZ. I agree 
that it would be better if a developer (or developing team) releases a proper 
manual. But indeed the open source model is such that __anybody__ can write a 
manual if you really want to.

Wilfred


Yeah, thanks... slightly counter-productive answer, potentially
preventing others from adding a useful answer to the question by
considering it wrapped up with a witty remark. This is not a simple
open source project, it's a project centered around a typesetting
engine. If there's no documentation for a documentation system, all
hope is already lost ;)




I found the
XeTeX Companion: TeX meets Opentype and Unicode, currently
under construction by Michel Goossens [1], but XeTeX has been around
since 2004. I find it hard to believe that his work is the first
atttempt at documenting XeTeX, so I'm going to go with not believing it
and asking the key players in XeTeX development where documentation can
be found.



- Mike



[1] http://xml.web.cern.ch/XML/lgc2/xetexmain.pdf
 

-Inline Attachment Follows-



--
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] 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 ("Card 25 FORMAT 8i3 
EXPANDA options" - no word what the EXPANDA options are or what they do for 
you). I have often thought that it should be made mandatory to allow at 
least 25% of the budget of software development to be spent on the manual (I 
guess for most open source projects 25% of 0 is still 0). I can totally see how 
it works on the managerial level: "No, you don't get money to write manuals. 
You get money to write codes. Besides, nobody uses the software outside of our 
lab." "Yes, but if we write a manual, more people can use the code, and that 
will ultimately improve our knowledge, the quality of the code and our 
relationship with other research
 establishments." "Certainly, but nobody uses our code." "Because there is no 
manual." "But if nobody uses the code, who needs a manual?" ;-))

Cheers,
Wilfred

--- On Mon, 30/8/10, Avi Wollman  wrote:

From: Avi Wollman 
Subject: Re: [XeTeX] XeTeX documentation? (from "Checking if a font exists")
To: "Unicode-based TeX for Mac OS X and other platforms" 
Date: Monday, 30 August, 2010, 10:23 PM

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  
wrote:

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 
web page that describes the various commands available in XeTeX to make life 
easier? TeX has the TeX book and TeX by Topic, LaTeX has fairly large number of 
publications dedicated to it, where might one find something similar for XeTeX? 
(and if possible, can it be linked to from the SIL XeTeX page so it's easy to 
find?)




- Mike "Pomax" Kamermans

nihongoresources.com





--

Subscriptions, Archive, and List information, etc.:

 http://tug.org/mailman/listinfo/xetex




-- 

Avi Wollman אבי וולמן
http://www.google.com/profiles/avi.wollman






-Inline Attachment Follows-



--
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] 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).
> 
> \newcommand\NL{\tabularnewline}
> \begin{tabular}{lI}
> foo & {B}AR \tabularnewline % fails if \NL instead of \tabularnewline
> foo & {B}AR
> \end{tabular}

This is because 'N' and 'L' are active characters.
So \NL is not at all a single macro.

Lowercase letters are not altered, so  \tabularnewline
should continue to work.

> -- 
> Alan Munn
> am...@gmx.com


Hope this helps,

Ross


Ross Moore   ross.mo...@mq.edu.au 
Mathematics Department   office: E7A-419  
Macquarie University tel: +61 (0)2 9850 8955
Sydney, Australia  2109  fax: +61 (0)2 9850 8114







--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


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 not made active there, 
whereas the \setTIPAcatcodes makes them effectively macros,
expanding to the IPA characters.

It could be done differently, by writing a parser that
looks at each letter in sequence, and choosing whether
to map it to something else or leave it as it is.
But that strategy would only be reliable if you could 
guarantee that only IPA characters were appearing within 
your environment. 

It would be really tricky to get this working if you allowed 
other macros to be in there;
e.g. \textcolor{...}{.. IPA characters ... }. 
You would have to program the parser to be able to recognise
every single construction that you might want to use, since
it needs to know when to turn itself off, and back on again.

The active character mechanism is both easier and more
efficient, so far as the TeX processing is concerned.
If it means editing your legacy source to put in \relax
in a lot of places, then that's the price you pay for getting
proper Unicode output, rather than staying with the old, 
hacky  tipa.sty  methods.

Using a CMap with the tipa fonts is another possible approach.


> 
> Alan
> 
> 
> -- 
> Alan Munn
> am...@gmx.com

Hope this helps,

Ross


Ross Moore   ross.mo...@mq.edu.au 
Mathematics Department   office: E7A-419  
Macquarie University tel: +61 (0)2 9850 8955
Sydney, Australia  2109  fax: +61 (0)2 9850 8114







--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


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  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}

\begin{tabular}{I}
PoP
\end{tabular}

\end{document}

For some reason, the first character of the the IPA environment  
(whether with a newcolumntype or explicitly encoded into the  
column) specification fails to do the correct TIPA mapping.   
Enclosing the character in braces solves the problem, but this  
doesn't seem ideal.


Any suggestions?


This is a general feature of alignment environments.
The first character in a cell is examined, in case it is (or expands  
to) \omit , which is the signal to ignore the template coding. This  
can lead to the \catcode becoming not what you want, as in your  
example, since it is the template coding that is going to establish  
what you want.


A simple work-around is to start any cell, whose contents start with  
a macro, with \relax .


Thanks, Ross.

Why does the same code work with the IPA environment using tipa.sty  
and regular latex?


Alan


--
Alan Munn
am...@gmx.com






--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


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

2010-08-30 Thread Ross Moore
Hi Alan,

On 31/08/2010, at 2:12 AM, Alan Munn  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}
> 
> \begin{tabular}{I}
> PoP
> \end{tabular}
> 
> \end{document}
> 
> For some reason, the first character of the the IPA environment (whether with 
> a newcolumntype or explicitly encoded into the column) specification fails to 
> do the correct TIPA mapping.  Enclosing the character in braces solves the 
> problem, but this doesn't seem ideal.
> 
> Any suggestions?

This is a general feature of alignment environments.
The first character in a cell is examined, in case it is (or expands to) \omit 
, which is the signal to ignore the template coding. This can lead to the 
\catcode becoming not what you want, as in your example, since it is the 
template coding that is going to establish what you want.

A simple work-around is to start any cell, whose contents start with a macro, 
with \relax .

> 
> Thanks
> 
> Alan
> 
> -- 
> Alan Munn
> am...@gmx.com


Hope this helps.

Ross



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


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}{%
\let\stone\TIPAstonebar
\let\tone\TIPAtonebar
\setTIPAcatcodes\activatetipa
\csname useTIPAfont\endcsname
}{}

\newcolumntype{I}{>{\begin{ipa}[}l<{]\end{ipa}}}

\begin{document}
\begin{ipa}[PoP]\end{ipa}

\begin{tabular}{I}
PoP
\end{tabular}

\end{document}

For some reason, the first character of the the IPA environment  
(whether with a newcolumntype or explicitly encoded into the column)  
specification fails to do the correct TIPA mapping.  Enclosing the  
character in braces solves the problem, but this doesn't seem ideal.


Any suggestions?


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).


\newcommand\NL{\tabularnewline}
\begin{tabular}{lI}
foo & {B}AR \tabularnewline % fails if \NL instead of \tabularnewline
foo & {B}AR
\end{tabular}



--
Alan Munn
am...@gmx.com






--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Checking if a font exists

2010-08-30 Thread Heiko Oberdiek
On Mon, Aug 30, 2010 at 04:50:56PM +0100, Philip Taylor (Webmaster, Ret'd) 
wrote:

> 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 :
> 
> > \suppressfontnotfounderror = 0
> >
> > and
> >
> > \suppressfontnotfounderror = 1
> 
> i.e., one variable, two possible values to be assigned,
> rather than (as some less experienced TeXxies might
> conceivably think) two variables differing subtly in name ...

Also in a real application the previous value should be
saved, then the setting to zero follows and after the
font business the old value is restored. There are many
ways to do it, e.g.
* Doing the font business inside a group, then
  TeX will restore the old value automatically
  after the group.
* \edef\RestoreSuppressFontNotFoundError{%
\suppressfontnotfounderror=\the\suppressfontnotfounderror\relax
  }%
  \suppressfontnotfounderror=0 %
  % font business
  \RestoreSuppressFontNotFoundError

Yours sincerely
  Heiko Oberdiek


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


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

2010-08-30 Thread Heiko Oberdiek
On Mon, Aug 30, 2010 at 03:54:57PM +0200, Khaled Hosny wrote:

> On Mon, Aug 30, 2010 at 06:49:44AM -0700, Michiel Kamermans wrote:
> > Hi Khaled,
> > 
> > "texdoc xetex" only generates a man page style html file for the
> > xetex command line program when I run it.
> 
> Here I get "XeTeX reference", which is on CTAN:
> http://tug.ctan.org/pkg/xetexref

texdoc xetex
loads .../texmf-dist/doc/xetex/xetexref/XeTeX-reference.pdf
with date 2010-07-12.

However it's quite incomplete, two examples:
* \suppressfontnotfounderror is missing
* For the correct syntax of \XeTeXpdffile I had to look into
  the sources of XeTeX.

But better a good start than none at all.

Yours sincerely
  Heiko Oberdiek


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


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

2010-08-30 Thread Alan Munn

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}{%
\let\stone\TIPAstonebar
\let\tone\TIPAtonebar
\setTIPAcatcodes\activatetipa
\csname useTIPAfont\endcsname
}{}

\newcolumntype{I}{>{\begin{ipa}[}l<{]\end{ipa}}}

\begin{document}
\begin{ipa}[PoP]\end{ipa}

\begin{tabular}{I}
PoP
\end{tabular}

\end{document}

For some reason, the first character of the the IPA environment  
(whether with a newcolumntype or explicitly encoded into the column)  
specification fails to do the correct TIPA mapping.  Enclosing the  
character in braces solves the problem, but this doesn't seem ideal.


Any suggestions?

Thanks

Alan

--
Alan Munn
am...@gmx.com






--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


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 :

> \suppressfontnotfounderror = 0
>
> and
>
> \suppressfontnotfounderror = 1

i.e., one variable, two possible values to be assigned,
rather than (as some less experienced TeXxies might
conceivably think) two variables differing subtly in name ...

** Phil.


--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] embedding fonts

2010-08-30 Thread Martin Schröder
2010/8/28 Herbert Schulz :
> 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 there's only one machine involved, but also rather obviously
it isn't really a single user environment... - the vendor wasn't able
to handle this case and in the end they took the normal license (n
installations on m machines).

Best
   Martin


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


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 prefer to use, especially since I have no  
knowledge of how Windows machines work...


Thanks again to everyone.

Alan

--
Alan Munn
am...@gmx.com






--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] xunicode, tipa (again) plus amsmath

2010-08-30 Thread Alan Munn

Hi Ross,

On Aug 29, 2010, at 4:40 PM, Ross Moore wrote:


On 30/08/2010, at 3:45 AM, Alan Munn wrote:

Hi, a while ago, Ulrike posted an nice way to allow legacy tipa  
code to be used with xelatex.  Unfortunately I've encountered a  
problem: it doesn't work inside math mode.  Is there a way to fix  
this?  Thanks


% !TEX TS-program = XeLaTeX

\documentclass{article}
\usepackage{amsmath}
\usepackage{xltxtra}
\newfontfamily{\ipafont}{Doulos SIL}
\def\useTIPAfont{\ipafont}
\newenvironment{ipa}{%
\let\stone\TIPAstonebar
\let\tone\TIPAtonebar
\setTIPAcatcodes\activatetipa
\csname useTIPAfont\endcsname
}{}
\begin{document}
\textipa{RPAQIOE2} % This will give you correct phonetic characters
\begin{ipa}
RPAQIOE
\end{ipa}
$\text{\textipa{RPAQIOE2}}$ % unfortunately this doesn't

  This works fine for me.


Thanks.  Installing the version of xunicode.sty that you attached  
solves the problem.





$\textipa{RPAQIOE2}$ % and neither does this

  This does not, since it is logically wrong.
  The text characters have no meaning in math mode;
  i.e., they do not exist in the font for the
  usual math-italics of variable names.


Yes, and I knew that.  I think I just included it out of frustration :-)




Changing this, so that these and other TIPA characters
are recognised in math-mode, would require a fair bit
of work to get right and be safe.


Absolutely.  That's what the amsmath \text command is for anyway.

Thanks again.

Alan


--
Alan Munn
am...@gmx.com






--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


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ß :
> 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):
>
> /usr/local/texlive/2009/bin/i386-linux/fmtutil: line 341: 12667
> Aborted                 ${1+"$@"}
> Error: `xetex -ini  -jobname=xelatex -progname=xelatex -etex xelatex.ini' 
> failed
>
> ###
> fmtutil: Error! Not all formats have been built successfully.
> Visit the log files in directory
>  /usr/local/texlive/2009/texmf-var/web2c
> for details.
> ###
>
> This is a summary of all `failed' messages:
> `xetex -ini  -jobname=xelatex -progname=xelatex -etex xelatex.ini' failed
>
> That's actually the second error message; the first is identical only
> that '12667 Aborted' in the first line reads '12316 Aborted'. I
> visited the logfiles and grep'ed for errors (find /usr/.../web2c |
> xargs grep -i error) but nothing came up, except this:
> ./pdftex/texsis.log:\...@balncerrormsg=\toks15, but it doesn't look like
> an error.
>
> The install script finished however. Yet, when I try to install
> xdvipdfmx (v. 0.4) the configure script doesn't find libkpathsea.a. I
> searched my system and found the libs in the xetex dir from where I
> started the xetex scripts. Thus my suspicion is that xetex didn't
> install correctly and xdvipdfmx consequently got thrown off. What did
> I miss?
>
> Thanks in advance
>



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


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

2010-08-30 Thread Khaled Hosny
On Mon, Aug 30, 2010 at 06:49:44AM -0700, Michiel Kamermans wrote:
> Hi Khaled,
> 
> "texdoc xetex" only generates a man page style html file for the
> xetex command line program when I run it.

Here I get "XeTeX reference", which is on CTAN:
http://tug.ctan.org/pkg/xetexref


-- 
 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] 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 
that you might be used to doing from TeX/LaTeX *shouldn't* you do in 
XeTeX, etc.


- Mike


--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


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 adding a useful answer to the question by 
considering it wrapped up with a witty remark. This is not a simple open 
source project, it's a project centered around a typesetting engine. If 
there's no documentation for a documentation system, all hope is already 
lost ;)


I found /the XeTeX Companion: TeX meets Opentype and Unicode/, currently 
under construction by Michel Goossens [1], but XeTeX has been around 
since 2004. I find it hard to believe that his work is the first 
atttempt at documenting XeTeX, so I'm going to go with not believing it 
and asking the key players in XeTeX development where documentation can 
be found.


- Mike

[1] http://xml.web.cern.ch/XML/lgc2/xetexmain.pdf


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


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

2010-08-30 Thread Khaled Hosny
On Mon, Aug 30, 2010 at 04:14:46AM -0700, Michiel Kamermans wrote:
> 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 web page that describes the various commands available
> in XeTeX to make life easier? TeX has the TeX book and TeX by Topic,
> LaTeX has fairly large number of publications dedicated to it, where
> might one find something similar for XeTeX? (and if possible, can it
> be linked to from the SIL XeTeX page so it's easy to find?)

Here, texlive2010, `texdoc xetex` gives me such a document, but I don't
think it would be very useful for this particular case since the
solution Jonathan posted is not xetex-specific.

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] 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 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 web page that describes the various commands available in XeTeX to make
> life easier? TeX has the TeX book and TeX by Topic, LaTeX has fairly large
> number of publications dedicated to it, where might one find something
> similar for XeTeX? (and if possible, can it be linked to from the SIL XeTeX
> page so it's easy to find?)
>
> - Mike "Pomax" Kamermans
> nihongoresources.com
>
>
> --
> Subscriptions, Archive, and List information, etc.:
>  http://tug.org/mailman/listinfo/xetex
>



-- 

Avi Wollman אבי וולמן
http://www.google.com/profiles/avi.wollman



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


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
\suppressfontnotfounderror0
\font\xx="Foo Bar"
\xx test
\bye

and

\suppressfontnotfounderror1
\font\xx="Foo Bar"
\xx test
\bye

Best,
Akira



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


[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):

/usr/local/texlive/2009/bin/i386-linux/fmtutil: line 341: 12667
Aborted ${1+"$@"}
Error: `xetex -ini  -jobname=xelatex -progname=xelatex -etex xelatex.ini' failed

###
fmtutil: Error! Not all formats have been built successfully.
Visit the log files in directory
  /usr/local/texlive/2009/texmf-var/web2c
for details.
###

This is a summary of all `failed' messages:
`xetex -ini  -jobname=xelatex -progname=xelatex -etex xelatex.ini' failed

That's actually the second error message; the first is identical only
that '12667 Aborted' in the first line reads '12316 Aborted'. I
visited the logfiles and grep'ed for errors (find /usr/.../web2c |
xargs grep -i error) but nothing came up, except this:
./pdftex/texsis.log:\...@balncerrormsg=\toks15, but it doesn't look like
an error.

The install script finished however. Yet, when I try to install
xdvipdfmx (v. 0.4) the configure script doesn't find libkpathsea.a. I
searched my system and found the libs in the xetex dir from where I
started the xetex scripts. Thus my suspicion is that xetex didn't
install correctly and xdvipdfmx consequently got thrown off. What did
I miss?

Thanks in advance


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


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 trunk.
However 1.50.0 is not maintained recently.
For example, 1.50.0 does not merge the new synctex.

Best,
Akira



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


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 best of my knowledge, it does. But an explicit \errmessage
was given in the example code.

Best wishes,
Taco


--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


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 negative, even if the font is installed (and with the 
proper settings in fontspec, available to xelatex).

But I subscribe to Martin's statement: let xelatex report which fonts it knows, 
rather than an auxiliary program.

Wilfred


> 
> --
> Greetings
> 
>   Pete
> 
> Programming today is a race between software engineers
> striving to build bigger and better idiot-proof programs,
> and the Universe trying to produce bigger and better idiots.
> So far, the Universe is winning.
>            
>     – Rich Cook
> 
> 
> 
> 
> --
> 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] 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
> problem?

I thought it is a luatex-only addition (it is implied in the manual). I
found this pdftex tracker issue which gives some background:
http://sarovar.org/tracker/?func=detail&atid=495&aid=864&group_id=106

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


[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 web page that describes the various commands available in 
XeTeX to make life easier? TeX has the TeX book and TeX by Topic, LaTeX 
has fairly large number of publications dedicated to it, where might one 
find something similar for XeTeX? (and if possible, can it be linked to 
from the SIL XeTeX page so it's easy to find?)


- Mike "Pomax" Kamermans
nihongoresources.com


--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


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


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Checking if a font exists

2010-08-30 Thread Martin Schröder
2010/8/30 Heiko Oberdiek :
> 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


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


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
approach (IMHO, of course).


What kind of philosophy? An error as part of normal behaviour? ;-)


I meant the philosophy of Jonathan's approach (use only [Xe]TeX)
rather than [Xe]TeX's behaviour in the presence of his approach
and in the absence of one of more fonts ...

** Phil.


--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


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, change the input file to the other font and retry.
> 
> I'm surprised no-one has suggested the straightforward, pure-xetex approach: 
> something along these lines (untested).

Well, I thought about comparing to nullfont, but I don't know enough TeX
to know how to do it (I didn't even know there a \nullfont CS :).

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] 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).
> 
> 
> 
> >* 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
> approach (IMHO, of course).

What kind of philosophy? An error as part of normal behaviour? ;-)

Yours sincerely
  Heiko Oberdiek


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


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).





* 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
approach (IMHO, of course).

Philip Taylor


--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Checking if a font exists

2010-08-30 Thread Peter Dyballa


Am 30.08.2010 um 06:56 schrieb Wilfred van Rooijen:

In fact, I have had to copy some of the Adobe fonts to my  
$HOME/.fonts to do some testing.



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.


--
Greetings

  Pete

Programming today is a race between software engineers striving to  
build bigger and better idiot-proof programs, and the Universe trying  
to produce bigger and better idiots. So far, the Universe is winning.

– Rich Cook




--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


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 not, change the input file to the other font and retry.
> 
> I'm surprised no-one has suggested the straightforward, pure-xetex approach: 
> something along these lines (untested).
> 
>   \def\myfont{"Myriad Pro"}
>   \def\myfallback{"Arial"}
>   \count255=\interactionmode
>   \batchmode
>   \font\foo=\myfont\space at 10pt
>   \ifx\foo\nullfont
> \font\foo = \myfallback\space at 10pt
> \ifx\foo\nullfont
>   \errorstopmode
>   \errmessage{no suitable font found}
> \else
>   \let\myfont=\myfallback
> \fi
>   \fi
>   \interactionmode=\count255
>   % and now proceed to use \myfont.

* 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.

Yours sincerely
  Heiko Oberdiek


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


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
> >\immediate\openin\fontcheck="fontcheck.tex"
> >\ifeof \fontcheck ???
> 
> Is the "\immediate" necessary before the \openin at line 3 ?

No. (But it doesn't any harm either.)

There are lots of other problems (apart from the question,
whether fc-list is the correct test):

* \write18 might be disabled, then the write line isn't executed.
  At least this can be tested by \pdfshellescape
  (0 is disabled, 1 is unrestricted enabled, 2 is restricted enabled)
* \write18 can be enabled, but restricted (\pdfshellescape is 2).
  The command might not be part of the allowed program list.
  There is no way to test it except trying the feature.
* fontcheck.tex is generated in the current directory.
  However it can be read from a different directory, depending
  on the TeX configuration (TEXINPUTS, ...).
  Especially problematic if \write18 is not enabled and the
  existence of the file is used as check, whether the \write18
  line has worked.
This can be cured by the pipe feature:
  \openin\fontcheck "|fc-list 'Myriad Pro'"
  Does it (especially the single quotes) work in Windows?
* A first line is also read, if the file is empty.
  The macro that stores the line contains the character,
  configured by \endlinechar and is empty if \endlinechar=-1.
* ...

Yours sincerely
  Heiko Oberdiek


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


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 no-one has suggested the straightforward, pure-xetex approach: 
something along these lines (untested).

  \def\myfont{"Myriad Pro"}
  \def\myfallback{"Arial"}
  \count255=\interactionmode
  \batchmode
  \font\foo=\myfont\space at 10pt
  \ifx\foo\nullfont
\font\foo = \myfallback\space at 10pt
\ifx\foo\nullfont
  \errorstopmode
  \errmessage{no suitable font found}
\else
  \let\myfont=\myfallback
\fi
  \fi
  \interactionmode=\count255
  % and now proceed to use \myfont.

JK




--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex