[NTG-context] error: unable to define unbatangRegular as \*Myface12ptrmtfa*

2010-05-27 Thread Jeong Dalyoung
Dear all,

Today, I updated ConTeXt Minimal using first-setup.sh in my Mac.

I compiled a file which was compiled well before update.
But I got a strange result in the output.

All english sentences are shown well except korean sentences. In the log file,

...
systems : end file myBstyle at line 4
(/Users/graph/ConTeXtMini/tex/texmf-local/tex/context/type-kor.tex)
!define font: font with name unbatangRegular is not found
!define font: unknown font unbatangRegular, loading aborted
!define font: unable to define unbatangRegular as \*Myface12ptrmtf*
systems : begin file geo-euclid at line 11
(/Users/graph/Documents/Mathematics/geometry/geo-euclid.tex
structure   : chapter @ level 2 : 0.1 - Euclidean Geoemtry
!define font: font with name unbatangRegular is not found
!define font: unknown font unbatangRegular, loading aborted
!define font: unable to define unbatangRegular as \*Myface12ptrmtfc*
!define font: font with name unbatangRegular is not found
...

There is no change in the typescript file and the location of the fonts.

Here is a part of typescript file type-kor defining unbatangRegular;

% unfonts batang
\starttypescript[serif][unbatang][uc]
% Regular variant:
\definefontsynonym[unbatangRegular][file:UnBatang.ttf][encoding=uc]
\definefontsynonym[unbatangBold][file:UnBatangBold.ttf][encoding=uc]
\definefontsynonym[unbatangItalic][file:UnGraphic.ttf][encoding=uc]
\definefontsynonym[unbatangBoldItalic][file:UnGraphicBold.ttf] [encoding=uc]
\stoptypescript
% mid-level names:
\starttypescript[serif][unbatang][name]
\definefontsynonym[Serif][unbatangRegular]
\definefontsynonym[SerifBold][unbatangBold]
\definefontsynonym[SerifItalic][unbatangItalic]
\definefontsynonym[SerifBoldItalic][unbatangBoldItalic]
% The fallbacks
\definefontsynonym[SerifSlanted][Serif]
\definefontsynonym[SerifBoldSlanted][SerifBold]
\definefontsynonym[SerifCaps][Serif]
\stoptypescript
...

More interesting thing is that korean defined as bold face is shown. So I 
change the whole text as bold using {\bf whole text (english + korean)}, then 
every sentences is clearly shown in bold face. I checked luatools 
UnBatang.ttf which is defined as unbatangregular, it locates where it is.

ConTeXtMini graph$ luatools UnBatang.ttf
/Users/graph/Library/Fonts/UnBatang.ttf

Both current version and ConTeXt  ver: 2010.05.24 13:05 MKIV  fmt: 2010.5.27  
int: english/english version work same.

Why isn't it able to define unbatangRegular while it can use the 
unbatangBold?

I am using Mac, ConTeXtMinimal.
Thank you.

Best regards,

Dalyoung

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] error: unable to define unbatangRegular as \*Myface12ptrmtfa*

2010-05-27 Thread Taco Hoekwater
Hi,

Jeong Dalyoung wrote:
 
 Both current version and ConTeXt  ver: 2010.05.24 13:05 MKIV  fmt:
 2010.5.27  int: english/english version work same.
 
 Why isn't it able to define unbatangRegular while it can use the
 unbatangBold?

Drop the [uc] and '[encoding=uc]' from your typescript:

\starttypescript[serif][unbatang]
\definefontsynonym[unbatangRegular][file:UnBatang.ttf]
\definefontsynonym[unbatangBold][file:UnBatangBold.ttf]
\definefontsynonym[unbatangItalic][file:UnGraphic.ttf]
\definefontsynonym[unbatangBoldItalic][file:UnGraphicBold.ttf]
\stoptypescript

Explanation: The extra encoding arguments you had meant that mkiv
did not actually interpret that block of code.  As a result, it
only saw

\definefontsynonym[Serif][unbatangRegular]

and that is interpreted as 'name:unbatangRegular', which is a
non-existing font name. unbatangBold worked ok because name:unbatangBold
actually *is* a valid font name.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] error: unable to define unbatangRegular as \*Myface12ptrmtfa*

2010-05-27 Thread dalyoung
Dear Taco,

Thank you advice.

After deleting [uc] and [encoding=uc], it worked fine.
Every sentences was appeared correctly.

Best regards,

Dalyoung

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___