Re: [XeTeX] Test for font presence

2011-05-10 Thread Ron Aaron
Was that a sarcastic answer?   How would one go about accomplishing that?

 Teach it to use OS font services instead of TeX mechanisms!




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


Re: [XeTeX] Test for font presence

2011-05-10 Thread Peter Dyballa


Am 10.05.2011 um 10:53 schrieb Ron Aaron:


Was that a sarcastic answer?


Not really. It's more of an inability to imagine something else, which  
is not complicated.



  How would one go about accomplishing that?


Writing code that fits into xdvipdfmx and augments it.

--
Greetings

  Pete

Eternity is a terrible thought. I mean, where's it going to end?
- Tom Stoppard



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


Re: [XeTeX] Test for font presence

2011-05-10 Thread Ron Aaron
So the correct answer would have been: I don't know of a way to do that
without changing xdvipdfmx.

On 05/10/2011 12:12 PM, Peter Dyballa wrote:

 Not really. It's more of an inability to imagine something else, which
 is not complicated.

   How would one go about accomplishing that?

 Writing code that fits into xdvipdfmx and augments it.




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


Re: [XeTeX] Test for font presence

2011-05-10 Thread Peter Dyballa


Am 10.05.2011 um 14:09 schrieb Ron Aaron:

So the correct answer would have been: I don't know of a way to do  
that

without changing xdvipdfmx.



No. (Could you be so kind to read my answers again? Maybe my English  
is a bit too bad to express in a comprehensible way what I thought I  
could annotate.) It's also possible to teach the TeX search service to  
use the OS' font services. (Might become state-of-the-art in TeX 3.2.)


--
Greetings

  Pete

No matter which way you ride, it's uphill and against the wind.
– First Law of Bicycling




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


Re: [XeTeX] Oldstyle figures in seperate file

2011-05-10 Thread Wolfgang Keller
Hello,

Probably I mis-explained my objective...

 I'd use another font instance for the small caps and the old-style  
 figures

The point is that I already _have_ the oldstyle figures in another font
file. And I _don't_ want _another_ font instance just for oldstyle
numbers.

 and use this font to set the small caps and the old-style  
 figures with. As in:
 
 This text is set in the main font, which stems from the year  
 \OSF{194711}.

My point was that I want to _avoid_ having to type extra \foo{}s around
all numbers.

Again:
- Oldstyle numbers are in a seperate font file
- I want to use them just as if they were available through
\setmainfont[..., Numbers={Proportional,OldStyle}]{foo}

Is there any way to do this with XeTeX? If so, how?

TIA,

Sincerely,

Wolfgang


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


[XeTeX] Tracking for small caps?

2011-05-10 Thread Wolfgang Keller
Hello,

with Microtype, it's easy to get automatic tracking for all small caps
text within the entire document by putting 

%\DeclareMicrotypeSet*[tracking]{my}{ font = */*/*/sc/* }
\SetTracking {encoding = *,shape = sc }{foo}

into the preamble. What would be the corresponding preamble line(s) for
XeTeX?

Please note that the point is to _avoid_ having to add

\addfontfeature{LetterSpace=foo}

to every piece of small caps text all over the entire document. And
also to _avoid_ using a seperate font instance for small caps text.

TIA,

Sincerely,

Wolfgang


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


Re: [XeTeX] Test for font presence

2011-05-10 Thread Mojca Miklavec
On Mon, May 9, 2011 at 18:28, Ron Aaron wrote:
 Hi all -

 Is there a way to test -- from within a XeTeX document -- for the
 presence of a font, without causing the run to fail if the font doesn't
 exist?

There is a parameter
\suppressfontnotfounderror
that you probably want to set to 1 and then reset to zero (or previous
value) again.


Here's Jonathan's example:

\def\checkforfont#1{\begingroup \suppressfontnotfounderror=1
 \font\test=#1 \relax
 \ifx\test\nullfont \message{Font #1 was not found}
 \else \message{Font #1 is available}\fi
 \endgroup}

\checkforfont{Times Roman}
\checkforfont{Lucida Grande}
\checkforfont{cmr12}
\checkforfont{Mistyped Name}

\end

A few examples also exist in font-xtx.mkii file in ConTeXt sources
(for example \doiffoundXTXfontelse).

Mojca


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


Re: [XeTeX] hyphenation in Ethiopian languages

2011-05-10 Thread Mojca Miklavec
On Fri, May 6, 2011 at 19:24, Jonathan Kew wrote:

 For line-breaking after the word separators, doesn't it work to just set

  \XeTeXlinebreaklocale en
  \XeTeXlinebreakskip 0pt plus 1pt

 or similar?

Yes, thanks a lot. This does work. However there are two problems with it:

- Only ETHIOPIC WORDSPACE has BA (Break After) mark while ETHIOPIC
FULL STOP has AL (Alphabetic) mark, so text won't break after the
full stop. This is probably a bug in Unicode standard.

- We cannot control the space before ethiopic wordspace with that,
just the space after it. Without some stretching glue it is impossible
to align/justify text.



And another nasty issue (that might deserve its own thread). We wanted
to have no hyphenchar at all, but using \hyphenchar\font=0 has a nasty
consequence that lines with broken words are not properly justified
(some extra space is squeezed between the last character in line and
the non-existent hyphen char). It took me a while before realizing
that
\hyphenchar\font=10
solves the issue somehow, but I still find that totally weird and I'm
not sure if using number 10 only solved the issue for that particular
font or if that is a stable behaviour for other fonts as well.

I wanted to compare the bahaviour with pdfTeX, but I realized that
pdfTeX doesn't offer any option to really remove the hyphen char; one
can only disable hyphenation with -1 or use a number between 0 and 255
(which usually points to an existing glyph).

Mojca



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


[XeTeX] xelatex and table of contents

2011-05-10 Thread François Patte
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bonsoir,

I am using xelatex with linux libertine fonts and everything seems OK.

Today, I added at the the end of the document:

\tableofcontents

And, in the table of contents,  every letters with a diacritical mark
used in \chapter \section ... commands have desappeared! (They are
correctly displayed in the chapter, section... titles)

The title of the table of contents only is ok:

Table des matières

What happened?

Thanks for helping.

- --
François Patte
UFR de mathématiques et informatique
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)1 8394 5849
http://www.math-info.univ-paris5.fr/~patte
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk3Jq6oACgkQdE6C2dhV2JVqQACgwly0dMc8ZCbLb7JgntMo5rAD
lEUAoMkjLAcnBsu7W+0sN/CAxJ+0oUoG
=Q0dW
-END PGP SIGNATURE-


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


Re: [XeTeX] xelatex and table of contents

2011-05-10 Thread Wilfred van Rooijen
Hi,

Please send a minimal example file which illustrates the problem. Then we can 
try to reproduce and fix the error.

Cheers,
Wilfred

--- On Wed, 11/5/11, Ross Moore ross.mo...@mq.edu.au wrote:

 From: Ross Moore ross.mo...@mq.edu.au
 Subject: Re: [XeTeX] xelatex and table of contents
 To: Unicode-based TeX for Mac OS X and other platforms xetex@tug.org
 Date: Wednesday, 11 May, 2011, 6:32 AM
 Hi Francois,
 
 On 11/05/2011, at 7:18 AM, François Patte wrote:
 
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
  
  Bonsoir,
  
  I am using xelatex with linux libertine fonts and
 everything seems OK.
  
  Today, I added at the the end of the document:
  
  \tableofcontents
  
  And, in the table of contents,  every letters
 with a diacritical mark
  used in \chapter \section ... commands have
 desappeared! (They are
  correctly displayed in the chapter, section...
 titles)
  
  The title of the table of contents only is ok:
  
  Table des matières
  
  What happened?
 
 Which font is being used in the ToC ?
 Are you sure it is Linux Libertine, with all the same
 settings as in the body of your document?
 
 Also, have a look inside the .toc file.
 Is it perfectly readable, or is there extra expanded
 primitives,
 related to how the diacritical marks are constructed?
 
 Are there any messages in the .log file that might be
 related?
 
 Some explicit files, and a PDF, would help.
 
  
  Thanks for helping.
  
  - --
  François Patte
 
 
 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
 



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


Re: [XeTeX] xelatex and table of contents

2011-05-10 Thread Herbert Schulz

On May 10, 2011, at 6:37 PM, Wilfred van Rooijen wrote:

 Hi,
 
 Please send a minimal example file which illustrates the problem. Then we can 
 try to reproduce and fix the error.
 
 Cheers,
 Wilfred
 
 

Howdy,

Without the example I can't tell since I can't reproduce the problem with my 
simple example.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






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