ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* XeTeX typescripts in ver: 2007.07.24
@ 2007-08-01 22:03 Michael Green
  2007-08-02  8:27 ` Taco Hoekwater
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Green @ 2007-08-01 22:03 UTC (permalink / raw)
  To: ntg-context

In ver: 2007.01.12, a typescript like this works fine:

	\starttypescript[serif][minion][uc]
	\definefontsynonym	[MinionRegular]	['Minion Pro:mapping=tex-text; 
+onum;']	[encoding=uc]
	\stoptypescript

We get Minion Pro, mapping TeX markup to unicode characters and old- 
style numbers.

This seems not to work in ver: 2007.07.24: the font can't be found  
(I'll put a bit of the log file at the end). However, everything is  
fine when the typescript is changed to read like this.

	\starttypescript[serif][minion][uc]
	\definefontsynonym	[MinionRegular]	['Minion Pro']	[encoding=uc]
	\stoptypescript

Here's what looks to me to be the relevant part of the log.

systems         : begin file article at line 1
(/Users/michaelgreen/Library/texmf/tex/context/article.tex
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-exa.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-syn.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-enc.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-siz.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-map.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-spe.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-akb.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-xtx.tex)
(/Users/michaelgreen/Library/texmf/tex/context/myfonts.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-exa.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-syn.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-enc.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-siz.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-map.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-spe.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-akb.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-xtx.tex)
(/Users/michaelgreen/Library/texmf/tex/context/myfonts.tex)
! Font \*minion12ptrmtfrm*:='"mapping=tex-text;+onum; at 12.0pt"' not  
loadable:
installed font not found.

  ("myfonts.tex" is a file of typescripts for system fonts, made to  
match the those in the "creating your own typescripts section of the  
wiki page: http://wiki.contextgarden.net/Fonts_in_XeTeX).

Perhaps the old functionality being replaced with something different.

Thanks.

Michael Green
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: XeTeX typescripts in ver: 2007.07.24
  2007-08-01 22:03 XeTeX typescripts in ver: 2007.07.24 Michael Green
@ 2007-08-02  8:27 ` Taco Hoekwater
  2007-08-02 13:47   ` Thomas A. Schmitz
  0 siblings, 1 reply; 5+ messages in thread
From: Taco Hoekwater @ 2007-08-02  8:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users



Michael Green wrote:
> In ver: 2007.01.12, a typescript like this works fine:
> 
> 	\starttypescript[serif][minion][uc]
> 	\definefontsynonym	[MinionRegular]	['Minion Pro:mapping=tex-text; 
> +onum;']	[encoding=uc]
> 	\stoptypescript
> 
> We get Minion Pro, mapping TeX markup to unicode characters and old- 
> style numbers.


> This seems not to work in ver: 2007.07.24: the font can't be found  

The main problem is the explicit ":" in the definition above. The latest
context parses the string for the appearance of "name:" and "file:", and
for that it checks for explicit colons.  This change was introduced
when ConTeXT started supporting the new XeTeX way of specifying a 
(non-installed) OpenType font by its filename.

Either this:

    [name:Minion Pro\xetexcolon mapping=tex-text;+onum;]

or this:

    ['Minion Pro\xetexcolon mapping=tex-text;+onum;']

should work (I defined \xetexcolon in type-xtx.tex).

Yes, this is a backward incompatible change. But: the syntax with
inlined feature specifications will be removed in the near future
anyway (to be replaced by separately defined "font features"), so
IMO there is not much point in spending time now on fixing the
current behaviour.

All the best,
Taco

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: XeTeX typescripts in ver: 2007.07.24
  2007-08-02  8:27 ` Taco Hoekwater
@ 2007-08-02 13:47   ` Thomas A. Schmitz
  2007-08-02 14:24     ` Taco Hoekwater
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas A. Schmitz @ 2007-08-02 13:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On Aug 2, 2007, at 10:27 AM, Taco Hoekwater wrote:

> The main problem is the explicit ":" in the definition above. The  
> latest
> context parses the string for the appearance of "name:" and  
> "file:", and
> for that it checks for explicit colons.  This change was introduced
> when ConTeXT started supporting the new XeTeX way of specifying a
> (non-installed) OpenType font by its filename.
>
> Either this:
>
>     [name:Minion Pro\xetexcolon mapping=tex-text;+onum;]
>
> or this:
>
>     ['Minion Pro\xetexcolon mapping=tex-text;+onum;']
>
> should work (I defined \xetexcolon in type-xtx.tex).
>
> Yes, this is a backward incompatible change. But: the syntax with
> inlined feature specifications will be removed in the near future
> anyway (to be replaced by separately defined "font features"), so
> IMO there is not much point in spending time now on fixing the
> current behaviour.
>
> All the best,
> Taco

Hi Taco,

just so I'm sure I understand (I play with XeTeX from time to time,  
but usually give up after 20 minutes because I find it more trouble  
than it seems worth):

1. The syntax [name:Minion Pro\xetexcolon mapping=tex-text;+onum;]  
will only work for installed fonts, not for opentype fonts that are  
in the texmf-tree, but not system fonts. My experiments suggest that  
these can be found via the [file:<filename>] mechanism, but I can't  
append any "mapping" or other specials.

2. This syntax will go away soon, so it's no use spending time on  
experiments.

Thanks

Thomas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: XeTeX typescripts in ver: 2007.07.24
  2007-08-02 13:47   ` Thomas A. Schmitz
@ 2007-08-02 14:24     ` Taco Hoekwater
  2007-08-02 15:03       ` Thomas A. Schmitz
  0 siblings, 1 reply; 5+ messages in thread
From: Taco Hoekwater @ 2007-08-02 14:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users



Thomas A. Schmitz wrote:
> 
> 1. The syntax [name:Minion Pro\xetexcolon mapping=tex-text;+onum;]  
> will only work for installed fonts, not for opentype fonts that are  
> in the texmf-tree, 

correct

> My experiments suggest that these can be found via the [file:<filename>] 
> mechanism, but I can't  append any "mapping" or other specials.

almost certainly correct.

While nearly everything (except the engine-options) is supported by
XeTeX's low-level interface, I expect that context would interpret
such a specification as if you were asking for the file
"minionpro:mapping=tex-test.otf", and it would therefore generate
the wrong low-level syntax.

> 
> 2. This syntax will go away soon, so it's no use spending time on  
> experiments.

definately correct.

Best wishes,
Taco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: XeTeX typescripts in ver: 2007.07.24
  2007-08-02 14:24     ` Taco Hoekwater
@ 2007-08-02 15:03       ` Thomas A. Schmitz
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas A. Schmitz @ 2007-08-02 15:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On Aug 2, 2007, at 4:24 PM, Taco Hoekwater wrote:

> definately correct.
>
> Best wishes,
> Taco

Thanks for  the clarification Taco!

All best

Thomas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-08-02 15:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-01 22:03 XeTeX typescripts in ver: 2007.07.24 Michael Green
2007-08-02  8:27 ` Taco Hoekwater
2007-08-02 13:47   ` Thomas A. Schmitz
2007-08-02 14:24     ` Taco Hoekwater
2007-08-02 15:03       ` Thomas A. Schmitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).