Re: [XeTeX] Diacritics in color (was Re: XETEX cannot access OpenType features in PUA?)

2011-11-29 Thread Aleksandr Andreev
Ross Moore writes:

 Would you be so kind as to post the PDF from this? And where does one obtain 
 the font MezenetsUnicode ?

Mezenets Unicode is a font I'm developing for Znamenny neumatic
notation and it is available here:
http://www.ponomar.net/files/mezen_uni.ttf

Attempting to encode Znamenny Notation in Unicode seems to be a
mind-boggling task because each character is able to take several
diacritical marks, each of which is governed by its own position rules
and each of which can have its own color.

The attached image shows what I am and am not able to do right now in
XeTeX and LuaTeX.

The code was:

\documentclass{article}
\usepackage{fontspec}
\usepackage{xcolor}
\usepackage{xunicode}
\usepackage{luacolor}
\newfontface\moo{MezenetsUnicode}
\begin{document}
\Huge
\moo
 \\
\textcolor{red}{} \\
\textcolor{red}{} \\
\textcolor{red}{} \\
\textcolor{red}{} \\
 \\
\end{document}

In XeTeX I am using the color package instead of luacolor.

Now, I realize that comparing TeX to Firefox is like apples to
oranges, but I'm just giving the Firefox example to show what is
supposed to happen.

Aleks
attachment: znamenny.png

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


Re: [XeTeX] Diacritics in color (was Re: XETEX cannot access OpenType features in PUA?)

2011-11-29 Thread Philip TAYLOR



Aleksandr Andreev wrote:


Mezenets Unicode is a font I'm developing for Znamenny neumatic notation


Oohhh, this is exciting : [p]nuematic notation as in [p]neumes
and as in [p]neumatic music ?  Will this be a first for TeX, if
you succeed ?

Philip Taylor


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


[XeTeX] Diacritics in color (was Re: XETEX cannot access OpenType features in PUA?)

2011-11-28 Thread Aleksandr Andreev
Jonathan Kew writes:

 Making this work in xetex would require a different approach to implementing 
 color.

I have been able to get it to work (the base glyph in black and the
diacritic in red) in LuaTeX using the luacolor package.

Here's a minimal example:

\documentclass{minimal}
\usepackage{fontspec}
\usepackage{xcolor}
\usepackage{luacolor}

\newfontface\moo{MezenetsUnicode}

\begin{document}
\moo
\textcolor{red}{}
\end{document}

I'm not much of an expert in the inner workings of TeX and I know
absolutely nothing about Lua (is that a derivative of LISP?) so I
can't comment on whether the luacolor package could be ported to
XeTeX.

Any insights?

Aleks



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


Re: [XeTeX] Diacritics in color (was Re: XETEX cannot access OpenType features in PUA?)

2011-11-28 Thread Ross Moore
Hi Aleks,

On 29/11/2011, at 6:18 AM, Aleksandr Andreev wrote:

 Jonathan Kew writes:
 
 Making this work in xetex would require a different approach to 
 implementing color.
 
 I have been able to get it to work (the base glyph in black and the
 diacritic in red) in LuaTeX using the luacolor package.
 
 Here's a minimal example:
 
 \documentclass{minimal}
 \usepackage{fontspec}
 \usepackage{xcolor}
 \usepackage{luacolor}
 
 \newfontface\moo{MezenetsUnicode}
 
 \begin{document}
 \moo
 \textcolor{red}{}
 \end{document}

Would you be so kind as to post the PDF from this?
And where does one obtain the font MezenetsUnicode ?
 --- Google gives nothing with this name.

Furthermore my LuaTeX gives a Segmentation Fault, so I cannot
just try with a different font!

 
 I'm not much of an expert in the inner workings of TeX and I know
 absolutely nothing about Lua (is that a derivative of LISP?) so I
 can't comment on whether the luacolor package could be ported to
 XeTeX.

I'd doubt that this could work currently.

My guess is that you would need to do some post-processing
of the PDF code snippet returned from the OS positioning
the glyphs. Once positioned, you would need to wrap the colour
commands around the part which places the diacritic.


 Any insights?

But XeTeX currently does not give you access to that PDF string,
and it is well past the place of macro-expansion in LaTeX, so 
there wouldn't be a mechanism for such late adjustments.

It can be done with LuaTeX, since it does have the appropriate
mechanism for such post-processing.

Others more familiar with how LuaTeX works can confirm this
explanation -- or shoot it down, as appropriate.


 Aleks


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] Diacritics in color (was Re: XETEX cannot access OpenType features in PUA?)

2011-11-28 Thread Heiko Oberdiek
On Mon, Nov 28, 2011 at 02:18:56PM -0500, Aleksandr Andreev wrote:

 Jonathan Kew writes:
 
  Making this work in xetex would require a different approach to 
  implementing color.
 
 I have been able to get it to work (the base glyph in black and the
 diacritic in red) in LuaTeX using the luacolor package.
 
 Here's a minimal example:
 
 \documentclass{minimal}
 \usepackage{fontspec}
 \usepackage{xcolor}
 \usepackage{luacolor}
 
 \newfontface\moo{MezenetsUnicode}
 
 \begin{document}
 \moo
 \textcolor{red}{}
 \end{document}
 
 I'm not much of an expert in the inner workings of TeX and I know
 absolutely nothing about Lua (is that a derivative of LISP?) so I
 can't comment on whether the luacolor package could be ported to
 XeTeX.

No. Package luacolor uses LuaTeX's attributes and LuaTeX's ability
to process node lists.

Yours sincerely
  Heiko Oberdiek


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