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
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
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
On Tue, Aug 3, 2010 at 7:43 AM, Martin Althoff
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
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
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
\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
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 -----------------------------------------------------------------
participants (4)
-
Aditya Mahajan
-
Hans Hagen
-
luigi scarso
-
Martin Althoff