<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi everybody,<br>
<br>
I finally got my typescript work. It was the "serif" typeface that
failed me. When I defined the fixed size type:<br>
===================================================================<br>
<tt> \definetypeface [mathtimespro] [rm] [serif]
[times] [default]</tt><tt><br>
</tt><tt> \definetypeface [mathtimespro] [ss] [sans]
[helvetica] [default] [rscale=0.9]</tt><tt><br>
</tt><tt> \definetypeface [mathtimespro] [tt] [mono]
[courier] [default] [rscale=1.1]</tt><tt><br>
</tt><tt> \definetypeface [mathtimespro] [mm] [math]
[mathtimespro] [default]</tt><br>
===================================================================<br>
where mathtimespro in the last line was defined as:<br>
===================================================================<br>
<tt> \definefontsynonym [MathTimeProA-Regular]
[MTP06A-Regular@mtpro06a-regular]</tt><br>
===================================================================<br>
Everything was fine. But the designsize version needs to be:<br>
===================================================================<br>
<tt> \definetypeface [mathtimespro] [rm] [serif]
[times] [default]</tt><tt> [designsize=auto]</tt><tt><br>
</tt><tt>
\definetypeface [mathtimespro] [ss] [sans] [helvetica]
[default] [rscale=0.9]</tt><tt><br>
</tt><tt>
\definetypeface [mathtimespro] [tt] [mono] [courier]
[default] [rscale=1.1]</tt><tt><br>
</tt><tt>
\definetypeface [mathtimespro] [mm] [math]
[mathtimespro] [default]</tt><tt> [designsize=auto]</tt><br>
===================================================================<br>
Without the last parameter in the serif definition, the math font
could not be remapped (WHY???).<br>
<br>
Fix me if I'm wrong about this conclusion.<br>
<br>
<br>
Best regards,<br>
Zhichu<br>
<br>
On 06/23/2015 01:20 PM, Zhichu Chen wrote:<br>
</div>
<blockquote cite="mid:5588ECB6.9020904@sinap.ac.cn" type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div class="moz-cite-prefix">Hi Aditya,<br>
<br>
<br>
On 06/23/2015 11:57 AM, Aditya Mahajan wrote:<br>
</div>
<blockquote
cite="mid:alpine.OSX.2.02.1506222352430.66332@nqv-znpobbx"
type="cite">I don't have the fonts, so I cannot describe the
exact method. But see below and also have a look at Section 5 of
<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://www.tug.org/TUGboat/tb30-2/tb95mahajan-cmath.pdf">https://www.tug.org/TUGboat/tb30-2/tb95mahajan-cmath.pdf</a>
The description is old, and some of the file locations have
changes, but the basic infrastructure is still the same. <br>
</blockquote>
Thank you for sharing this article. It seems that the<br>
===================================================================<br>
<tt>return {</tt><tt><br>
</tt><tt> mathematics = {</tt><tt><br>
</tt><tt> mapfiles = {</tt><tt><br>
</tt><tt> "mtpro2.map",</tt><tt><br>
</tt><tt> },</tt><tt><br>
</tt><tt> virtuals = {</tt><tt><br>
</tt><tt> ["mtpro06a-regular"] = {</tt><tt><br>
</tt><tt>...</tt><br>
===================================================================<br>
codes may have done the job in the <font face="Courier New,
Courier, monospace">mathematics.make_font</font> function.<br>
<br>
In this snippet:<br>
===================================================================<br>
<tt>\definefontsynonym<br>
[LMMathRoman10-Regular]<br>
[LMMath10-Regular@lmroman10-math]</tt><br>
===================================================================<br>
I know that <font face="Courier New, Courier, monospace">LMMathRoman10-Regular</font>
will be used as the font synonym, <font face="Courier New,
Courier, monospace">@lmroman10-math</font> is the<br>
virtual font, but what does <font face="Courier New, Courier,
monospace">LMMath10-Regular</font> stand for? I chose some
random names in my typescript<br>
but maybe there's some magic there? <br>
<blockquote
cite="mid:alpine.OSX.2.02.1506222352430.66332@nqv-znpobbx"
type="cite">The vectors mptpro2-mi etc are not defined. Look at
math-ttv.lua for a list of predefined vectors (mapping type1
fonts to unicode symbols. It is quite likely that the mtpro
fonts would follow the "standard" mappings; if not, you will
need to create an approrpriate mapping for each font. This is
not difficult (just monotonous). <br>
</blockquote>
I've already defined these vectors in the same .lfg file. What a
tedious work it was, by the way. I thought<br>
that would be irrelevant, so I skipped those codes. I'm sorry I
didn't make that clear.<br>
<br>
I almost forgot to mention. The font has its own \Relbar and
\relbar characters rather than the equality<br>
and the dash marks. What is the best way to use them? I currently
put them in a private-use-area slot<br>
in the vectors' definitions, but I'm not sure that's a good
solution.<br>
<blockquote
cite="mid:alpine.OSX.2.02.1506222352430.66332@nqv-znpobbx"
type="cite"> <br>
<blockquote type="cite">===================================================================
<br>
I guess the suffixes "f" "s" and "t" may correspond to "five"
"seven" and "ten", but that's <br>
not important. I could use one of them as the virtual font in
the typescript: <br>
</blockquote>
<br>
Once this is done, rest of the typescript should work. It may be
a good idea to try to see if you can get roman letters from
mtpro. <br>
</blockquote>
If I claimed the font synonym with the virtual font directly:<br>
===================================================================<br>
# typescripts<br>
<tt>\definefontsynonym [\s!MathRoman]
[MTPro10a-Regular@mtpro10a-regular]<br>
</tt>===================================================================
<br>
the 10-size-version fonts were loaded without any problem. But if
I want to use the designsize feature:<br>
===================================================================<br>
-- lfg<br>
<tt> designsizes = {</tt><tt><br>
</tt><tt> ["MathTimeProA-Regular"] = {</tt><tt><br>
</tt><tt> ["4pt"] =
"MTPro06a-Regular@mtpro06a-regular",</tt><tt><br>
</tt><tt> ["5pt"] =
"MTPro06a-Regular@mtpro06a-regular",</tt><tt><br>
</tt><tt> ["6pt"] =
"MTPro06a-Regular@mtpro06a-regular",</tt><tt><br>
</tt><tt> ...</tt><br>
# typescripts<br>
<tt>\definefontsynonym [\s!MathRoman] [\v!<a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="file:mathtimeproa-regular">file:mathtimeproa-regular</a>]<br>
</tt>===================================================================
<br>
the <font face="Courier New, Courier, monospace">mathtimeproa-regular</font>
font could not be remapped to the correct virtual font with the
appropriate size.<br>
I just want to know how <font face="Courier New, Courier,
monospace">type-imp-ebgaramond.mkiv</font> managed to remap the
designsize filename<br>
"<font face="Courier New, Courier, monospace"><a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="file:ebgaramond-regular">file:ebgaramond-regular</a></font>"
to "<font face="Courier New, Courier, monospace"><a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="file:EBGaramond12-Regular">file:EBGaramond12-Regular</a></font>".<br>
<blockquote
cite="mid:alpine.OSX.2.02.1506222352430.66332@nqv-znpobbx"
type="cite"> <br>
Aditya <br>
___________________________________________________________________________________
<br>
If your question is of interest to others as well, please add an
entry to the Wiki! <br>
<br>
maillist : <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:ntg-context@ntg.nl">ntg-context@ntg.nl</a> / <a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.ntg.nl/mailman/listinfo/ntg-context">http://www.ntg.nl/mailman/listinfo/ntg-context</a>
<br>
webpage : <a moz-do-not-send="true"
class="moz-txt-link-freetext" href="http://www.pragma-ade.nl">http://www.pragma-ade.nl</a>
/ <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://tex.aanhet.net">http://tex.aanhet.net</a> <br>
archive : <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://foundry.supelec.fr/projects/contextrev/">http://foundry.supelec.fr/projects/contextrev/</a>
<br>
wiki : <a moz-do-not-send="true"
class="moz-txt-link-freetext" href="http://contextgarden.net">http://contextgarden.net</a>
<br>
___________________________________________________________________________________<br>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : <a class="moz-txt-link-abbreviated" href="mailto:ntg-context@ntg.nl">ntg-context@ntg.nl</a> / <a class="moz-txt-link-freetext" href="http://www.ntg.nl/mailman/listinfo/ntg-context">http://www.ntg.nl/mailman/listinfo/ntg-context</a>
webpage : <a class="moz-txt-link-freetext" href="http://www.pragma-ade.nl">http://www.pragma-ade.nl</a> / <a class="moz-txt-link-freetext" href="http://tex.aanhet.net">http://tex.aanhet.net</a>
archive : <a class="moz-txt-link-freetext" href="http://foundry.supelec.fr/projects/contextrev/">http://foundry.supelec.fr/projects/contextrev/</a>
wiki : <a class="moz-txt-link-freetext" href="http://contextgarden.net">http://contextgarden.net</a>
___________________________________________________________________________________</pre>
</blockquote>
<br>
</body>
</html>