Re: [XeTeX] Hyphenation exceptions for German -- how?

2011-07-14 Thread Thomas Fehige

 Thank you all, that's much better ;)

While we're at it: Is there a ready way to define different hyphenation 
exceptions for each language used in one document?


All the best -- Thomas

Am 13.07.2011 23:17, schrieb Ross Moore:

Hello Arno,

On 14/07/2011, at 6:38 AM, Arno Trautmann wrote:


Hi Thomas,

short answer: use \hyphenation after \begin{document}, then it works.
However, I've been wondering for a while now why this is the case – can someone 
explain this behaviour?

It could well be that the hyphenation patterns defined using
polyglossia are not actually loaded until the \begin{document}
by loading the appropriate commands using
   \AtBeginDocument{... whatever ...}

LaTeX has an internal macro  \@begindocumenthook
that is expanded at that time.
There can be many good reasons for delaying some commands
until LaTeX has read the complete preamble.

For example, this is a standard way to resolve conflicts due
to the order of loading packages. One package can have a piece
of coding that detects whether or not another has been loaded,
then expands an appropriate macro to deal with the potential
conflict, only if necessary.


You can use this too, within the preamble, by doing:

\AtBeginDocument{\hyphenation{%
einer
Me-ta-ethik
}}


cheers
Arno

Thomas Fehige wrote:

%---
\documentclass[12pt]{article}
\usepackage{fontspec}
\usepackage{xltxtra}
\usepackage{polyglossia}
\setdefaultlanguage{german}

\hyphenation{
einer
Me-ta-ethik
}

\begin{document}
\showhyphens{Metaethik, einer}
% that gives me "Me-tae-thik" and "ei-ner",
% the former wrong, the latter ugly.
\end{document}

Hope this help,

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] How to mix math fonts?

2011-07-14 Thread Mojca Miklavec
Wow, Ulrik, Perfect!

I will simply use your version now (not trying to learn the syntax).
Will - Maybe it makes sense to incorporate some of the changes into
your original document?

Or at least create a second copy or style file with the purpose to
compare different fonts?

Mojca


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


Re: [XeTeX] Hyphenation exceptions for German -- how?

2011-07-14 Thread Arno Trautmann

Ross Moore wrote:

Hello Arno,

On 14/07/2011, at 6:38 AM, Arno Trautmann wrote:


Hi Thomas,

short answer: use \hyphenation after \begin{document}, then it works.
However, I've been wondering for a while now why this is the case – can someone 
explain this behaviour?


It could well be that the hyphenation patterns defined using
polyglossia are not actually loaded until the \begin{document}
by loading the appropriate commands using
   \AtBeginDocument{... whatever ...}


Yes, apparently … but /why/?


You can use this too, within the preamble, by doing:

\AtBeginDocument{\hyphenation{%
einer
Me-ta-ethik
}}


d'oh … I have to admit, I've never thought about using AtBeginDocument 
for this … more convenient than putting it after \begin{document}, indeed.


cheers
Arno


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


Re: [XeTeX] Hyphenation exceptions for German -- how?

2011-07-14 Thread Ulrike Fischer
Am Thu, 14 Jul 2011 09:00:35 +0200 schrieb Thomas Fehige:

> While we're at it: Is there a ready way to define different hyphenation 
> exceptions for each language used in one document?

Activate the languages before using \hyphenation:


\documentclass[12pt]{article}
\usepackage{fontspec}
\usepackage{xltxtra}
\usepackage{polyglossia}
\setdefaultlanguage{german}
\setotherlanguage{english}
\selectlanguage{german}
\hyphenation{
einer
Me-ta-ethik}

\selectlanguage{english}
\hyphenation{met-ae-th-ik}



\begin{document}
\showhyphens{Metaethik, einer}

\selectlanguage{english}
\showhyphens{Metaethik, einer}

\end{document}


(With babel the \selectlanguage is not necessary for the main
language as babel loads its patterns directly. Polyglossia loads
everything only at begin document.)

-- 
Ulrike Fischer 



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


Re: [XeTeX] Hyphenation exceptions for German -- how?

2011-07-14 Thread Thomas Fehige
 Thanks Ulrike, that's logical /and/ works :) I had thought that you 
can only have one \hyphenation{...} per document.


Cheers -- Thomas

Am 14.07.2011 12:00, schrieb Ulrike Fischer:

Am Thu, 14 Jul 2011 09:00:35 +0200 schrieb Thomas Fehige:


While we're at it: Is there a ready way to define different hyphenation
exceptions for each language used in one document?

Activate the languages before using \hyphenation:


\documentclass[12pt]{article}
\usepackage{fontspec}
\usepackage{xltxtra}
\usepackage{polyglossia}
\setdefaultlanguage{german}
\setotherlanguage{english}
\selectlanguage{german}
\hyphenation{
einer
Me-ta-ethik}

\selectlanguage{english}
\hyphenation{met-ae-th-ik}



\begin{document}
\showhyphens{Metaethik, einer}

\selectlanguage{english}
\showhyphens{Metaethik, einer}

\end{document}


(With babel the \selectlanguage is not necessary for the main
language as babel loads its patterns directly. Polyglossia loads
everything only at begin document.)





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


[XeTeX] epsdice package.

2011-07-14 Thread Michael Joyner
I am trying to use the epsdice package from inside LyX, and when I switch to
using xelatex as the formatting engine, the package malfunctions.

Instead of drawing a single die, it draws all 12 possible combinations of
dice on two lines. :(

Is there a working dice or dominoes or "grouped dots" package for xelatex ?
The document I am writing is in Cherokee, so xelatex is my only choice for
font reasons.

-- 
---

   - Learn to speak Cherokee: http://www.cherokeelessons.com/
   - Cherokee Language Help BBS/Chat:
   http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6
   - Cherokee Lessons PDF made with: http://www.lyx.org/


die test-BAD.tex
Description: TeX document


die test-BAD.pdf
Description: Adobe PDF document


die test.tex
Description: TeX document


die test.pdf
Description: Adobe PDF document


die test.lyx
Description: Binary data


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