ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Please fix this
@ 2009-01-30  3:30 Yue Wang
  2009-01-30  3:53 ` Yue Wang
  0 siblings, 1 reply; 5+ messages in thread
From: Yue Wang @ 2009-01-30  3:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,
Myriad Pro is not working in recent version of ConTeXt (the same
source works well in last release).
Here is the code:
\starttypescript[all][myfont][name]
        \definefontsynonym[Myriad][MyriadPro-Regular]
        \definefontsynonym[MyriadBold][MyriadPro-Bold]
        \definefontsynonym[MyriadItalic][MyriadPro-It]
        \definefontsynonym[MyriadBoldItalic][MyriadPro-BoldIt]
\stoptypescript

\starttypescript[sans][myfont][name]
        \definefontsynonym[Sans][Myriad]
        \definefontsynonym[SansBold][MyriadBold]
        \definefontsynonym[SansItalic][MyriadItalic]
        \definefontsynonym[SansBoldItalic][MyriadBoldItalic]
        \definefontsynonym[SansSlanted][MyriadItalic]
        \definefontsynonym[SansBoldSlanted][MyriadBoldItalic]
        \definefontsynonym[SansCaps][Myriad]
\stoptypescript

\definetypeface [myfont] [ss] [sans] [myfont]   [default]
\usetypescript[myfont]
\setupbodyfont[myfont,ss, 12pt]
\starttext
\input zapf
\stoptext

Here is the log:

This is luaTeX, Version snapshot-0.31.3-2008122922
(a1.tex

ConTeXt  ver: 2009.01.18 14:39 MKIV  fmt: 2009.1.30  int: english/english

system         : cont-new loaded
(D:/context/tex/texmf-context/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
(D:/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
(D:/context/tex/texmf-context/tex/context/base/cont-mtx.tex))
system         : cont-fil loaded
(D:/context/tex/texmf-context/tex/context/base/cont-fil.tex
loading        : Context File Synonyms
)
system         : cont-sys.rme loaded
(D:/context/tex/texmf-context/tex/context/user/cont-sys.rme
(D:/context/tex/texmf-context/tex/context/base/type-tmf.tex)
(D:/context/tex/texmf-context/tex/context/base/type-siz.tex)
(D:/context/tex/texmf-context/tex/context/base/type-otf.tex))
bodyfont       : 12pt rm is loaded
specials       : pdftex loaded
language       : language en is active
system         : a1.top loaded
(a1.top)
load otf | loading: D:/context/tex/texmf-fonts/fonts/opentype/Myriad
Pro/MyriadPro-Regular.otf
load otf | warning: The following table(s) in the font have been
ignored by FontForge
load otf | warning:   Ignoring 'DSIG' digital signature table
load otf | warning: Warning: Mac and Windows entries in the 'name'
table differ for the
 Fullname string in the language English (US)
 Mac String: Myriad Pro
Windows String: MyriadPro-Regular
load otf | warning: The glyph named mu is mapped to U+00B5.
But its name indicates it should be mapped to U+03BC.
load otf | enhance: patch bugs
load otf | enhance: merge cid fonts
load otf | enhance: prepare unicode
load otf | 11 glyph are reused: space hyphen Tcommaaccent tcommaaccent
macron Omega fraction periodcentered Delta Scedilla scedilla
load otf | enhance: cleanup ttf tables
load otf | enhance: compact glyphs
load otf | enhance: reverse coverage
load otf | enhance: enrich with features
load otf | enhance: registering tlig feature
load otf | enhance: registering trep feature
load otf | enhance: reorganize kerns
load otf | replacing 'kerns' tables by 'mykerns' tables
load otf | removing global 'kern' table
load otf | adding kernclass pp_l_1_k_1 with 72 times 62 pairs
! LuaTeX error ...text/tex/texmf-context/tex/context/base/font-otf.lua:828:
attempt to index local 'glyph' (a nil value)
stack traceback:
	...text/tex/texmf-context/tex/context/base/font-otf.lua:828: in
function 'enhancer'
	...text/tex/texmf-context/tex/context/base/font-otf.lua:300: in
function 'enhance'
	...text/tex/texmf-context/tex/context/base/font-otf.lua:350: in function 'load'
	...text/tex/texmf-context/tex/context/base/font-otf.lua:1113: in
function 'otf_to_tfm'
	...text/tex/texmf-context/tex/context/base/font-otf.lua:1252: in
function 'read_from_open_type'
	...text/tex/texmf-context/tex/context/base/font-def.lua:352: in
function <...text/tex/texmf-context/tex/context/base/font-def.lua:334>
	(tail call): ?
	...text/tex/texmf-context/tex/context/base/font-def.lua:279: in function 'read'
	...text/tex/texmf-context/tex/context/base/font-def.lua:661: in function 'read'
	...text/tex/texmf-context/tex/context/base/font-def.lua:767: in
function 'command_2'
	<main ctx instance>:1: in main chunk.
\lowleveldefinefont ...s ", "\@@fontfallbacks " )}
                                                  \edef \somefontspec {at \s...
\xxdododefinefont ...efont {#4}\newfontidentifier
                                                  \let \localrelativefontsiz...
\fontstrategy ...me \fontclass #2#3#4#5\endcsname
                                                  \tryingfontfalse \fi
<inserted text> ...yle \fontalternative \fontsize
                                                  \fi \iftryingfont \fontstr...
\synchronizefont ...strategy \the \fontstrategies
                                                  \relax \fi \iftryingfont \...
<argument> \getvalue {\@style@ \fontstyle }
                                           \edef \fontstyle {\fontstyle }\if...
...
l.20 \setupbodyfont[myfont,ss, 12pt]

?


Hope this helps debugging.

Yue Wang
___________________________________________________________________________________
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: Please fix this
  2009-01-30  3:30 Please fix this Yue Wang
@ 2009-01-30  3:53 ` Yue Wang
  2009-01-30  4:24   ` Yue Wang
  0 siblings, 1 reply; 5+ messages in thread
From: Yue Wang @ 2009-01-30  3:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

sorry for the noise, after switching to experimental, the problem is solved.

On Fri, Jan 30, 2009 at 11:30 AM, Yue Wang <yuleopen@gmail.com> wrote:
> Hi,
> Myriad Pro is not working in recent version of ConTeXt (the same
> source works well in last release).
> Here is the code:
> \starttypescript[all][myfont][name]
>        \definefontsynonym[Myriad][MyriadPro-Regular]
>        \definefontsynonym[MyriadBold][MyriadPro-Bold]
>        \definefontsynonym[MyriadItalic][MyriadPro-It]
>        \definefontsynonym[MyriadBoldItalic][MyriadPro-BoldIt]
> \stoptypescript
>
> \starttypescript[sans][myfont][name]
>        \definefontsynonym[Sans][Myriad]
>        \definefontsynonym[SansBold][MyriadBold]
>        \definefontsynonym[SansItalic][MyriadItalic]
>        \definefontsynonym[SansBoldItalic][MyriadBoldItalic]
>        \definefontsynonym[SansSlanted][MyriadItalic]
>        \definefontsynonym[SansBoldSlanted][MyriadBoldItalic]
>        \definefontsynonym[SansCaps][Myriad]
> \stoptypescript
>
> \definetypeface [myfont] [ss] [sans] [myfont]   [default]
> \usetypescript[myfont]
> \setupbodyfont[myfont,ss, 12pt]
> \starttext
> \input zapf
> \stoptext
>
> Here is the log:
>
> This is luaTeX, Version snapshot-0.31.3-2008122922
> (a1.tex
>
> ConTeXt  ver: 2009.01.18 14:39 MKIV  fmt: 2009.1.30  int: english/english
>
> system         : cont-new loaded
> (D:/context/tex/texmf-context/tex/context/base/cont-new.tex
> systems         : beware: some patches loaded from cont-new.tex
> (D:/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
> (D:/context/tex/texmf-context/tex/context/base/cont-mtx.tex))
> system         : cont-fil loaded
> (D:/context/tex/texmf-context/tex/context/base/cont-fil.tex
> loading        : Context File Synonyms
> )
> system         : cont-sys.rme loaded
> (D:/context/tex/texmf-context/tex/context/user/cont-sys.rme
> (D:/context/tex/texmf-context/tex/context/base/type-tmf.tex)
> (D:/context/tex/texmf-context/tex/context/base/type-siz.tex)
> (D:/context/tex/texmf-context/tex/context/base/type-otf.tex))
> bodyfont       : 12pt rm is loaded
> specials       : pdftex loaded
> language       : language en is active
> system         : a1.top loaded
> (a1.top)
> load otf | loading: D:/context/tex/texmf-fonts/fonts/opentype/Myriad
> Pro/MyriadPro-Regular.otf
> load otf | warning: The following table(s) in the font have been
> ignored by FontForge
> load otf | warning:   Ignoring 'DSIG' digital signature table
> load otf | warning: Warning: Mac and Windows entries in the 'name'
> table differ for the
>  Fullname string in the language English (US)
>  Mac String: Myriad Pro
> Windows String: MyriadPro-Regular
> load otf | warning: The glyph named mu is mapped to U+00B5.
> But its name indicates it should be mapped to U+03BC.
> load otf | enhance: patch bugs
> load otf | enhance: merge cid fonts
> load otf | enhance: prepare unicode
> load otf | 11 glyph are reused: space hyphen Tcommaaccent tcommaaccent
> macron Omega fraction periodcentered Delta Scedilla scedilla
> load otf | enhance: cleanup ttf tables
> load otf | enhance: compact glyphs
> load otf | enhance: reverse coverage
> load otf | enhance: enrich with features
> load otf | enhance: registering tlig feature
> load otf | enhance: registering trep feature
> load otf | enhance: reorganize kerns
> load otf | replacing 'kerns' tables by 'mykerns' tables
> load otf | removing global 'kern' table
> load otf | adding kernclass pp_l_1_k_1 with 72 times 62 pairs
> ! LuaTeX error ...text/tex/texmf-context/tex/context/base/font-otf.lua:828:
> attempt to index local 'glyph' (a nil value)
> stack traceback:
>        ...text/tex/texmf-context/tex/context/base/font-otf.lua:828: in
> function 'enhancer'
>        ...text/tex/texmf-context/tex/context/base/font-otf.lua:300: in
> function 'enhance'
>        ...text/tex/texmf-context/tex/context/base/font-otf.lua:350: in function 'load'
>        ...text/tex/texmf-context/tex/context/base/font-otf.lua:1113: in
> function 'otf_to_tfm'
>        ...text/tex/texmf-context/tex/context/base/font-otf.lua:1252: in
> function 'read_from_open_type'
>        ...text/tex/texmf-context/tex/context/base/font-def.lua:352: in
> function <...text/tex/texmf-context/tex/context/base/font-def.lua:334>
>        (tail call): ?
>        ...text/tex/texmf-context/tex/context/base/font-def.lua:279: in function 'read'
>        ...text/tex/texmf-context/tex/context/base/font-def.lua:661: in function 'read'
>        ...text/tex/texmf-context/tex/context/base/font-def.lua:767: in
> function 'command_2'
>        <main ctx instance>:1: in main chunk.
> \lowleveldefinefont ...s ", "\@@fontfallbacks " )}
>                                                  \edef \somefontspec {at \s...
> \xxdododefinefont ...efont {#4}\newfontidentifier
>                                                  \let \localrelativefontsiz...
> \fontstrategy ...me \fontclass #2#3#4#5\endcsname
>                                                  \tryingfontfalse \fi
> <inserted text> ...yle \fontalternative \fontsize
>                                                  \fi \iftryingfont \fontstr...
> \synchronizefont ...strategy \the \fontstrategies
>                                                  \relax \fi \iftryingfont \...
> <argument> \getvalue {\@style@ \fontstyle }
>                                           \edef \fontstyle {\fontstyle }\if...
> ...
> l.20 \setupbodyfont[myfont,ss, 12pt]
>
> ?
>
>
> Hope this helps debugging.
>
> Yue Wang
>
___________________________________________________________________________________
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: Please fix this
  2009-01-30  3:53 ` Yue Wang
@ 2009-01-30  4:24   ` Yue Wang
       [not found]     ` <6faad9f00901300021s2283f596gb4ed3bf05ef8d1c2@mail.gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Yue Wang @ 2009-01-30  4:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi, Hans

On Fri, Jan 30, 2009 at 11:53 AM, Yue Wang <yuleopen@gmail.com> wrote:
> sorry for the noise, after switching to experimental, the problem is solved.

by the way, this used to be working in MKIV:
\definefontfeature[zh][mode=node, script=hang, lang=zhs]
\definefontsynonym[zhserif][AdobeSongStd-Light][features=zh]
\definefont[ChineseFont][zhserif at 12pt]

however, in experimental version, it will report zhserif not found.
So I can only write something like:
\definefont[ChineseFont][AdobeSongStd-Light*zh at 12pt]

Bug or feature?

btw, I can use setfontfeature, how can I unset a font feature?


Also, Another experimental bug to report, the following source won't
compile on experimental:


\usetypescript[palatino]
\setupbodyfont[palatino,rm,10pt]

\usemodule[units,pictex,chemic]
\starttext
 \chemical{SO_2}
\stoptext

It reports:

This is luaTeX, Version snapshot-0.33.0-2009012823
(untitled-2.tex

ConTeXt  ver: 2009.01.29 22:33 MKIV  fmt: 2009.1.30  int: english/english

system         : cont-new loaded
(D:/context/tex/texmf-context/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
(D:/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
(D:/context/tex/texmf-context/tex/context/base/cont-mtx.tex))
system         : cont-fil loaded
(D:/context/tex/texmf-context/tex/context/base/cont-fil.tex
loading        : Context File Synonyms
)
system         : cont-sys.rme loaded
(D:/context/tex/texmf-context/tex/context/user/cont-sys.rme
(D:/context/tex/texmf-context/tex/context/base/type-tmf.tex)
(D:/context/tex/texmf-context/tex/context/base/type-siz.tex)
(D:/context/tex/texmf-context/tex/context/base/type-otf.tex))
bodyfont       : 12pt  is loaded
bodyfont       : style  is not defined
specials       : pdftex loaded
language       : language en is active
system         : untitled-2.top loaded
(untitled-2.top)
bodyfont       : style mm (mm) defined
system         : module units loaded
(D:/context/tex/texmf-context/tex/context/base/m-units.tex
check          : unit Angstrom replaces a macro, use CAPITALS!
)
system         : module pictex loaded
(D:/context/tex/texmf-context/tex/context/base/m-pictex.tex
(D:/context/tex/texmf-context/tex/context/base/thrd-pic.tex))
system         : module chemic loaded
(D:/context/tex/texmf-context/tex/context/base/m-chemic.tex
system         : module pictex (line 21) already loaded
(D:/context/tex/texmf-context/tex/context/base/ppchtex.tex
ppchtex        : using PiCTeX and MetaPost
))
systems        : begin file untitled-2 at line 6
! Font \*palatino10ptmmmrrm* has only 7 fontdimen parameters.
<to be read again>
                   \relax
\dosetsubscript ... #1\string #2}{\the #1#2\relax
                                                  }#1#2=\dimen 0\relax
\dodosetsubscript ...bscript {#1}{\textfont 2}{#2}
                                                  \dosetsubscript {#1}{\scri...
\setsubscripts ...setsubscript \mathsubnormal {.7}
                                                  \dodosetsubscript \mathsub...
<argument> \dosetsubscripts
                            $\@@dochemicalstyle {\@@localchemicalstyle \stru...
\chemicalinnerclip #1->{\setbox 0=\hbox {#1
                                           }\ht 0\ht \strutbox \dp 0\dp \str...
...
l.7  \chemical{SO_2}

?




Yue Wang
___________________________________________________________________________________
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: Please fix this
       [not found]     ` <6faad9f00901300021s2283f596gb4ed3bf05ef8d1c2@mail.gmail.com>
@ 2009-01-30  8:31       ` Yue Wang
  2009-01-30 14:11         ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Yue Wang @ 2009-01-30  8:31 UTC (permalink / raw)
  To: Mojca Miklavec; +Cc: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 582 bytes --]

> I'm impressed if any math works at all in experimental. Hans and Taco
> have just switched to OpenType math and the current state looks like a
> nightmare to me. (You can take a look at char-def.lua, math-vfu.lua
> and some other files. It all needs to be improved and fixed.)

Yes, the math in experimental is not working. see the attachment.

However, I have a document which uses
- Myriad Pro
- a lot of math
but I can use neither beta (failed to parse Myriad Pro) nor
experimental (cannot typeset math)

I use the nightly build version of LuaTeX provided by w32tex.

Yue Wang

[-- Attachment #2: untitled-1.pdf --]
[-- Type: application/pdf, Size: 13790 bytes --]

[-- Attachment #3: untitled-1.tex --]
[-- Type: application/x-tex, Size: 62 bytes --]

[-- Attachment #4: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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: Please fix this
  2009-01-30  8:31       ` Yue Wang
@ 2009-01-30 14:11         ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2009-01-30 14:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mojca Miklavec

Yue Wang wrote:
>> I'm impressed if any math works at all in experimental. Hans and Taco
>> have just switched to OpenType math and the current state looks like a
>> nightmare to me. (You can take a look at char-def.lua, math-vfu.lua
>> and some other files. It all needs to be improved and fixed.)
> 
> Yes, the math in experimental is not working. see the attachment.
> 
> However, I have a document which uses
> - Myriad Pro
> - a lot of math
> but I can use neither beta (failed to parse Myriad Pro) nor
> experimental (cannot typeset math)
> 
> I use the nightly build version of LuaTeX provided by w32tex.

there will be an update later today


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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:[~2009-01-30 14:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-30  3:30 Please fix this Yue Wang
2009-01-30  3:53 ` Yue Wang
2009-01-30  4:24   ` Yue Wang
     [not found]     ` <6faad9f00901300021s2283f596gb4ed3bf05ef8d1c2@mail.gmail.com>
2009-01-30  8:31       ` Yue Wang
2009-01-30 14:11         ` Hans Hagen

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