ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* CharisSIL doesn't load
@ 2010-08-03  4:21 Martin Althoff
  2010-08-03  4:50 ` Aditya Mahajan
  0 siblings, 1 reply; 9+ messages in thread
From: Martin Althoff @ 2010-08-03  4:21 UTC (permalink / raw)
  To: ntg-context

Using the typescript for CharisSIL as given doesn't work for me. "Modern" is substituted (as should be). It appears to load the mkiv file, but not the fonts, What am I doing wrong? Example below.

(on Mac: MTXrun | current version: 2010.07.30 11:35, LuaTeX, Version beta-0.61.0-2010072816)

-- I have adapted to the type-charissil.mkiv to fit the font names as reported on my system  and set OSFONTDIR=/System/Library/Fonts;~/FontLib/opensource;/Library/Fonts;~/FontLib/context-use;


mtxrun --script font --list --all --name --pattern=charis

charissil             charissil             /Users/martin/FontLib/opensource/CharisSIL/CharisSILR.ttf
charissilbold         charissilbold         /Users/martin/FontLib/opensource/CharisSIL/CharisSILB.ttf
charissilbolditalic   charissilbolditalic   /Users/martin/FontLib/opensource/CharisSIL/CharisSILBI.ttf
charissilitalic       charissilitalic       /Users/martin/FontLib/opensource/CharisSIL/CharisSILI.ttf
charissilnormal       charissilitalic       /Users/martin/FontLib/opensource/CharisSIL/CharisSILI.ttf


The output shows that the the mkiv file is certainly found:
(/Users/martin/contextMini/tex/texmf-context/tex/context/third/typescripts/type-charissil.mkiv) 


It _will_ work perfectly fine, i.e. work-around, if I combine the type-charissil.tex and type-charissil.mkiv into a single file! See my working type-charissil.mkiv below. I also hide the .tex file!




Example:

\setupbodyfont[charissil,12pt]
\starttext
\showbodyfont
\input tufte
\stoptext



Working type-charissil.mkiv
----------------------------
%D \module
%D   [       file=type-charissil,
%D        version=2008.04.21,
%D          title=\CONTEXT\ Typescript Macros,
%D       subtitle=Charis SIL Font Definitions,
%D         author=Wolfgang Schuster,
%D           date=\currentdate,
%D      copyright=Wolfgang Schuster]
%C
%C Copyright 2009 Wolfgang Schuster.
%C This file may be distributed under the GNU General Public License v. 2.0.
\starttypescript [serif] [charissil]
    \setups[font:fallback:serif]
    \definefontsynonym [Serif]           [CharisSIL-Regular]    [features=default]
    \definefontsynonym [SerifItalic]     [CharisSIL-Italic]     [features=default]
    \definefontsynonym [SerifBold]       [CharisSIL-Bold]       [features=default]
    \definefontsynonym [SerifBoldItalic] [CharisSIL-BoldItalic] [features=default]
\stoptypescript

\starttypescript [charissil]
    \definetypeface [charissil] [rm] [serif] [charissil] [default]
\stoptypescript

\starttypescript [serif] [charissil]
    \definefontsynonym [CharisSIL-Regular]    [name:charissil]             [features=default]
    \definefontsynonym [CharisSIL-Italic]     [name:charissilitalic]      [features=default]
    \definefontsynonym [CharisSIL-Bold]       [name:charissilbold]        [features=default]
    \definefontsynonym [CharisSIL-BoldItalic] [name:charissilbolditalic] [features=default]
\stoptypescript

\endinput




___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: CharisSIL doesn't load
  2010-08-03  4:21 CharisSIL doesn't load Martin Althoff
@ 2010-08-03  4:50 ` Aditya Mahajan
  2010-08-03  5:43   ` Martin Althoff
  0 siblings, 1 reply; 9+ messages in thread
From: Aditya Mahajan @ 2010-08-03  4:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, 2 Aug 2010, Martin Althoff wrote:

> Using the typescript for CharisSIL as given doesn't work for me. "Modern" is substituted (as should be). It appears to load the mkiv file, but not the fonts, What am I doing wrong? Example below.
>
> (on Mac: MTXrun | current version: 2010.07.30 11:35, LuaTeX, Version beta-0.61.0-2010072816)
>
> -- I have adapted to the type-charissil.mkiv to fit the font names as reported on my system  and set OSFONTDIR=/System/Library/Fonts;~/FontLib/opensource;/Library/Fonts;~/FontLib/context-use;

There is a typo in the last line of type-charissil.tex: Change

\loadmarkfile{charissil}

to

\loadmarkfile{type-charissil}

Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: CharisSIL doesn't load
  2010-08-03  4:50 ` Aditya Mahajan
@ 2010-08-03  5:43   ` Martin Althoff
  2010-08-03  5:47     ` luigi scarso
  2010-08-03  6:19     ` Aditya Mahajan
  0 siblings, 2 replies; 9+ messages in thread
From: Martin Althoff @ 2010-08-03  5:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> There is a typo in the last line of type-charissil.tex:
> Change
> 
> \loadmarkfile{charissil}
> 
> to
> 
> \loadmarkfile{type-charissil}
> 
> Aditya
> 

Aditya, thanks for that -- hope that typo gets fixed in the sources. Unfortunately that did not fix the problem. Despite runs of  

mtxrun --script font --reload
context --generate





___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: CharisSIL doesn't load
  2010-08-03  5:43   ` Martin Althoff
@ 2010-08-03  5:47     ` luigi scarso
  2010-08-03  6:50       ` Martin Althoff
  2010-08-03  6:19     ` Aditya Mahajan
  1 sibling, 1 reply; 9+ messages in thread
From: luigi scarso @ 2010-08-03  5:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Aug 3, 2010 at 7:43 AM, Martin Althoff <martin.althoff@yahoo.com> wrote:
>> There is a typo in the last line of type-charissil.tex:
>> Change
>>
>> \loadmarkfile{charissil}
>>
>> to
>>
>> \loadmarkfile{type-charissil}
>>
>> Aditya
>>
>
> Aditya, thanks for that -- hope that typo gets fixed in the sources. Unfortunately that did not fix the problem. Despite runs of
>
> mtxrun --script font --reload
> context --generate
luatools --generate
mtxrun --script fonts --reload
context --make

-- 
luigi
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: CharisSIL doesn't load
  2010-08-03  5:43   ` Martin Althoff
  2010-08-03  5:47     ` luigi scarso
@ 2010-08-03  6:19     ` Aditya Mahajan
  2010-08-03  6:21       ` Aditya Mahajan
  2010-08-03  7:59       ` Hans Hagen
  1 sibling, 2 replies; 9+ messages in thread
From: Aditya Mahajan @ 2010-08-03  6:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, 2 Aug 2010, Martin Althoff wrote:

>> There is a typo in the last line of type-charissil.tex:
>> Change
>>
>> \loadmarkfile{charissil}
>>
>> to
>>
>> \loadmarkfile{type-charissil}
>>
>> Aditya
>>
>
> Aditya, thanks for that -- hope that typo gets fixed in the sources.


> Unfortunately that did not fix the problem. Despite runs of

\usetypescriptfile has changed. Earlier it used to load file.tex, but now 
it loads file.mkiv and therefore, none of the typescripts from the 
typescript module work. A short-term work around is to add

\ReadFile{type-charissil}

somewhere befoer \setupbodyfont. (you loose all the fancy loading 
of \usetypescirptfile, but for one-off typescripts that is not too bad).

In the long term, all the typescripts in the typescript module need to be 
modified. (At present, it appears that \usetypescript does not load .mkii 
file in mkii, but I did not test extensively).

Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: CharisSIL doesn't load
  2010-08-03  6:19     ` Aditya Mahajan
@ 2010-08-03  6:21       ` Aditya Mahajan
  2010-08-03  6:59         ` Martin Althoff
  2010-08-03  7:59       ` Hans Hagen
  1 sibling, 1 reply; 9+ messages in thread
From: Aditya Mahajan @ 2010-08-03  6:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 3 Aug 2010, Aditya Mahajan wrote:

> On Mon, 2 Aug 2010, Martin Althoff wrote:
>
>> >  There is a typo in the last line of type-charissil.tex:
>> >  Change
>> > 
>> >  \loadmarkfile{charissil}
>> > 
>> >  to
>> > 
>> >  \loadmarkfile{type-charissil}
>> > 
>> >  Aditya
>> > 
>>
>>  Aditya, thanks for that -- hope that typo gets fixed in the sources.
>
>
>>  Unfortunately that did not fix the problem. Despite runs of
>
> \usetypescriptfile has changed. Earlier it used to load file.tex, but now it 
> loads file.mkiv and therefore, none of the typescripts from the typescript 
> module work. A short-term work around is to add
>
> \ReadFile{type-charissil}
>
> somewhere befoer \setupbodyfont. (you loose all the fancy loading of 
> \usetypescirptfile, but for one-off typescripts that is not too bad).
>
> In the long term, all the typescripts in the typescript module need to be 
> modified. (At present, it appears that \usetypescript does not load .mkii 
> file in mkii, but I did not test extensively).

Another option is to use simplefonts module.

\usemodule[simplefonts]
\setmainfont[Charis Sil]

should work.

Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: CharisSIL doesn't load
  2010-08-03  5:47     ` luigi scarso
@ 2010-08-03  6:50       ` Martin Althoff
  0 siblings, 0 replies; 9+ messages in thread
From: Martin Althoff @ 2010-08-03  6:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thanks Luigi, I note that down. But it didn't do the trick to solve the problem. Guess it is as Aditya said: there is a problem in principle at this point in time. 

Best, Martin


> luatools --generate
> mtxrun --script fonts --reload
> context --make
> 




___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: CharisSIL doesn't load
  2010-08-03  6:21       ` Aditya Mahajan
@ 2010-08-03  6:59         ` Martin Althoff
  0 siblings, 0 replies; 9+ messages in thread
From: Martin Althoff @ 2010-08-03  6:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> > \usetypescriptfile has changed. Earlier it used to
> load file.tex, but now it loads file.mkiv and therefore,
> none of the typescripts from the typescript module work. A
> short-term work around is to add

Ok, so a more fundamental problem. 

Both suggestions you made, work for me:

%workaround1
\ReadFile{type-charissil}
\setupbodyfont[charissil]

%workaround 2
%\usemodule[simplefonts]
%\setmainfont[Charis Sil]

Saves me copying my "fixed" and combined mkiv file after every update.

Best,
Martin



___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: CharisSIL doesn't load
  2010-08-03  6:19     ` Aditya Mahajan
  2010-08-03  6:21       ` Aditya Mahajan
@ 2010-08-03  7:59       ` Hans Hagen
  1 sibling, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2010-08-03  7:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 3-8-2010 8:19, Aditya Mahajan wrote:

> \usetypescriptfile has changed. Earlier it used to load file.tex, but
> now it loads file.mkiv and therefore, none of the typescripts from the
> typescript module work. A short-term work around is to add

first a file file the mk suffix is checked and when not found, a tex 
file is searched for, so in mkiv the first try is given.mkiv (which 
itself could load given.tex) and when not found given.tex

> \ReadFile{type-charissil}

this will not load the typescripts in the same way

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2010-08-03  7:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-03  4:21 CharisSIL doesn't load Martin Althoff
2010-08-03  4:50 ` Aditya Mahajan
2010-08-03  5:43   ` Martin Althoff
2010-08-03  5:47     ` luigi scarso
2010-08-03  6:50       ` Martin Althoff
2010-08-03  6:19     ` Aditya Mahajan
2010-08-03  6:21       ` Aditya Mahajan
2010-08-03  6:59         ` Martin Althoff
2010-08-03  7:59       ` 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).