Re: [NTG-context] ConTeXt mkiv and rsfs fonts

2014-05-22 Thread Otared Kavian
Hi Aditya,

Thanks for the hints: actually what I wanted to do was to use a calligraphic 
font which is a little bit more « script-y » as you put it (in particular for 
the letters A, B, D, S, U). Indeed using Khaled Hosny’s setup of xits one may 
get what I wanted to do.

The solution suggested by Mikael is perfect when using Latin Modern in mkiv, 
since it shows that in mkiv it is possible, and very easy, to use any opentype 
font for the slots corresponding to uppercasescript and lowercasescript.
When using palatino, I have to uderstand yet how to use palatino also in math 
mode… I don’t know what has to be changed in the following setup:

\definefontfamily [mainface] [math] [Latin Modern Math]

since replacing « Latin Modern Math » with « Palatino » does not work. Here is 
the example in which I would like to have palatino in math mode (for instance 
in \sin, or the variable x):

 begin example
\definefallbackfamily[mainface][math][Asana 
Math][range={uppercasescript,lowercasescript}]
\definefontfamily [mainface] [rm] [Palatino]
\definefontfamily [mainface] [math] [Latin Modern Math]
\setupbodyfont[mainface]

\starttext
This is \type{\cal}: 
${\cal ABCDEFGHIJKLMNOPQRSTUVWXYZ}$

This is \type{\cal}: 
${\cal abcdefghijklmnopqrstuvwxyz}$

The space of distributions on $\Omega$ is denoted by ${\cal D}'(\Omega)$, while 
${\cal S}({\Bbb R}^n)$ is the space of Schwartz functions, and ${\cal S}'({\Bbb 
R}^n)$ is its dual.

Let $\phi(x) := \sin(|x|^2){\rm e}^{-|x|^2}$ and $T \in {\cal S}'({\Bbb R}^n)$ 
given above.
\stoptext
 end example

When one says
\setupbodyfont[palatino]
instead of 
\setupbodyfont[mainface]
then the font used in math mode is also palatino, but then the uppercasescript 
is not what I would like to have…

Best regards: OK

On 21 May 2014, at 23:33, Aditya Mahajan adit...@umich.edu wrote:

 On Wed, 21 May 2014, Aditya Mahajan wrote:
 
 On Wed, 21 May 2014, Otared Kavian wrote:
 
 Hi all,
 It seems that the rsfs fonts (Ralph Smith’s Formal Script fonts) do not 
 work: the procedure explained at the page
 
 http://wiki.contextgarden.net/rsfs
 works fine with mkii, but not in mkiv.
 
 I do not have the time to look into this in detail. But hopefully the hint 
 below will help you get started.
 
 If I understand you correctly, you are looking for a caligraphic font that 
 is more script-y than the default \cal.
 
 From what I understand, such glyphs are present as stylistic alternatives in 
 unicode math fonts. See for example this thread
 
 http://www.ntg.nl/pipermail/ntg-context/2010/050885.html
 
 (I remember that there was another thread along these lines, but I cannot 
 find it right now).
 
 Found it: http://www.ntg.nl/pipermail/ntg-context/2011/061665.html
 
 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
 ___

___
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] ConTeXt mkiv and rsfs fonts

2014-05-22 Thread Mikael P. Sundqvist
On Thu, May 22, 2014 at 10:36 AM, Otared Kavian ota...@gmail.com wrote:
 \definefontfamily [mainface] [rm] [Palatino]
 \definefontfamily [mainface] [math] [Latin Modern Math]

What if you change those lines to

\definefontfamily [mainface] [rm] [TeX Gyre Pagella]
\definefontfamily [mainface] [math] [TeX Gyre Pagella Math]
?

My guess is that palatino is a pointer to TeX Gyre Pagella.

/Mikael
___
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] ConTeXt mkiv and rsfs fonts

2014-05-22 Thread Otared Kavian
Thanks Mikael!
That’s it: the real name of palatino in mkiv is TeX Gyre Pagella, and in math 
mode one has to use TeX Gyre Pagella Math… 
I am going to update the page on the wiki about calligraphic math.

Another question (maybe Wolfgang has more to say about it): is the word « 
mainface » is a mandatory name for the font family which is defined? Because if 
I change it to « MyMainFace » then mkiv reports an error:

 Math error: parameter \Umathquad\displaystyle is not set

Thanks again and best regards: OK

On 22 May 2014, at 10:40, Mikael P. Sundqvist mic...@gmail.com wrote:

 On Thu, May 22, 2014 at 10:36 AM, Otared Kavian ota...@gmail.com wrote:
 \definefontfamily [mainface] [rm] [Palatino]
 \definefontfamily [mainface] [math] [Latin Modern Math]
 
 What if you change those lines to
 
 \definefontfamily [mainface] [rm] [TeX Gyre Pagella]
 \definefontfamily [mainface] [math] [TeX Gyre Pagella Math]
 ?
 
 My guess is that palatino is a pointer to TeX Gyre Pagella.
 
 /Mikael
 ___
 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
 ___

___
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] ConTeXt mkiv and rsfs fonts

2014-05-22 Thread Wolfgang Schuster

Am 22.05.2014 um 11:02 schrieb Otared Kavian ota...@gmail.com:

 Thanks Mikael!
 That’s it: the real name of palatino in mkiv is TeX Gyre Pagella, and in math 
 mode one has to use TeX Gyre Pagella Math… 
 I am going to update the page on the wiki about calligraphic math.
 
 Another question (maybe Wolfgang has more to say about it): is the word « 
 mainface » is a mandatory name for the font family which is defined? Because 
 if I change it to « MyMainFace » then mkiv reports an error:
 
Math error: parameter \Umathquad\displaystyle is not set


It doesn’t matter which name you use for the typeface but all styles (serif, 
sans, math etc.) need the same name for the first argument of \definefontfamily.

\definefontfamily [typefaceone] [serif] [Latin Modern Roman]
\definefontfamily [typefaceone] [math]  [Latin Modern Math]

\definefontfamily [typefacetwo] [serif] [TeX Gyre Pagella]
\definefontfamily [typefacetwo] [math]  [TeX Gyre Pagella Math]

\setupbodyfont[typefacetwo]

\starttext

\input knuth

\setupbodyfont[typefaceone]

\input knuth

\stoptext

Wolfgang
___
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
___


[NTG-context] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Otared Kavian
Hi all,

It seems that the rsfs fonts (Ralph Smith’s Formal Script fonts) do not work: 
the procedure explained at the page

http://wiki.contextgarden.net/rsfs

works fine with mkii, but not in mkiv.

Is it possible to use the capabilities of simplefonts, which are now included 
in mkiv, to use this script font in place of the usual \cal when using LM fonts 
(or even Palatino)?

Thanks in advance for any insight.
Best regards: OK
___
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] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Wolfgang Schuster

Am 21.05.2014 um 14:15 schrieb Otared Kavian ota...@gmail.com:

 Hi all,
 
 It seems that the rsfs fonts (Ralph Smith’s Formal Script fonts) do not work: 
 the procedure explained at the page
 
   http://wiki.contextgarden.net/rsfs
 
 works fine with mkii, but not in mkiv.
 
 Is it possible to use the capabilities of simplefonts, which are now included 
 in mkiv, to use this script font in place of the usual \cal when using LM 
 fonts (or even Palatino)?

No, simplefonts won’t help you because the fallback mechanism for math works 
only with another opentype math font and truetype/opentype text fonts.

Wolfgang
___
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] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Otared Kavian

On 21 May 2014, at 15:55, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:
 […]
 No, simplefonts won’t help you because the fallback mechanism for math works 
 only with another opentype math font and truetype/opentype text fonts.
 

Thanks for the answer. 
Is there another script font for LM, or for Palatino, which looks a little bit 
more readable than \cal in those fonts, and which can be used with the 
simplefonts mechanism?

Best regards: OK___
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] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Mikael P. Sundqvist
On Wed, May 21, 2014 at 4:43 PM, Otared Kavian ota...@gmail.com wrote:
 Thanks for the answer.
 Is there another script font for LM, or for Palatino, which looks a little
 bit more readable than \cal in those fonts, and which can be used with the
 simplefonts mechanism?

 Best regards: OK

Personally, I think that the \cal from Latin Modern is very readable
(thus, I don't know what you are after). I tried some others, maybe
you like one of them (I hope that the line breaks in the email will be
OK):

\definefallbackfamily[mainface][math][TeX Gyre Termes
Math][range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
%\definefallbackfamily[mainface][math][TeX Gyre Pagella
Math][range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
%\definefallbackfamily[mainface][math][Asana
Math][range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
\definefontfamily [mainface] [rm] [Latin Modern]
\definefontfamily [mainface] [math] [Latin Modern Math]

\setupbodyfont[mainface]

\starttext
${\cal abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ}$
\stoptext

/Mikael
___
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] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Otared Kavian
Hi Mikael,

Thanks for your quick answer!
Actually I used probably an inappropriate word when speaking about readability 
of the standard \cal in LM. 
Indeed they are readable, but for the particular case of ${\cal D}$, or ${\cal 
U}$ or ${\cal S}$, they do not correspond to the corresponding shape one finds 
in classical books of Analysis. On the other hand it does not contain lower 
case letters.

In any case your solution below gives me exactly what I was looking for:

 begin example
\definefallbackfamily[mainface][math][Asana 
Math][range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]

\definefontfamily [mainface] [rm] [palatino]
% or
% \definefontfamily [mainface] [rm] [Latin Modern]

\definefontfamily [mainface] [math] [Latin Modern Math]

\setupbodyfont[mainface]

\starttext
${\cal ABCDEFGHIJKLMNOPQRSTUVWXYZ}$

${\cal abcdefghijklmnopqrstuvwxyz}$

The space of distributions on $\Omega$ is denoted by ${\cal D}'(\Omega)$, while 
${\cal S}({\Bbb R}^n)$ is the space of Schwartz functions, and ${\cal S}'({\Bbb 
R}^n)$ is its dual.

\stoptext
 end example

Since other people may benefit from it, I would like to update the wiki on the 
matter. But actually I do not understand what does the « range » mean in the 
example 

[range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
Could you please give a brief explanation so that I don’t write nonsense on the 
wiki?

Best regards: OK

On 21 May 2014, at 20:10, Mikael P. Sundqvist mic...@gmail.com wrote:

 On Wed, May 21, 2014 at 4:43 PM, Otared Kavian ota...@gmail.com wrote:
 Thanks for the answer.
 Is there another script font for LM, or for Palatino, which looks a little
 bit more readable than \cal in those fonts, and which can be used with the
 simplefonts mechanism?
 
 Best regards: OK
 
 Personally, I think that the \cal from Latin Modern is very readable
 (thus, I don't know what you are after). I tried some others, maybe
 you like one of them (I hope that the line breaks in the email will be
 OK):
 
 \definefallbackfamily[mainface][math][TeX Gyre Termes
 Math][range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
 %\definefallbackfamily[mainface][math][TeX Gyre Pagella
 Math][range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
 %\definefallbackfamily[mainface][math][Asana
 Math][range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
 \definefontfamily [mainface] [rm] [Latin Modern]
 \definefontfamily [mainface] [math] [Latin Modern Math]
 
 \setupbodyfont[mainface]
 
 \starttext
 ${\cal abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ}$
 \stoptext
 
 /Mikael
 ___
 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
 ___

___
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] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Mikael P. Sundqvist
On Wed, May 21, 2014 at 9:01 PM, Otared Kavian ota...@gmail.com wrote:
 Since other people may benefit from it, I would like to update the wiki on 
 the matter. But actually I do not understand what does the « range » mean in 
 the example
 
 [range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
 Could you please give a brief explanation so that I don’t write nonsense on 
 the wiki?

 Best regards: OK


I'm glad it helped. The range gives the unicode slots where these
letters live.

Hans: Maybe this is a stupid suggestion, but could it be possible to have

\definefontfamilypreset [math:lowercasecalligraphic]
as range={1D4B6-1D4CF,212F,210A,2134}
and
\definefontfamilypreset [math:uppercasecalligraphic]
as range={1D49C-1D4B5,212C,2130,2131,210B,2110,2112,2133,211B}
?

Otared, If what I write above makes sense, then the setup will be the
more readable

\definefallbackfamily[mainface][math][Asana
Math][range={lowercasecalligraphic,uppercasecalligraphic}]
\definefontfamily [mainface] [rm] [palatino]
\definefontfamily [mainface] [math] [Latin Modern Math]
\setupbodyfont[mainface]

/Mikael
___
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] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Hans Hagen

On 5/21/2014 8:10 PM, Mikael P. Sundqvist wrote:

On Wed, May 21, 2014 at 4:43 PM, Otared Kavian ota...@gmail.com wrote:

Thanks for the answer.
Is there another script font for LM, or for Palatino, which looks a little
bit more readable than \cal in those fonts, and which can be used with the
simplefonts mechanism?

Best regards: OK


Personally, I think that the \cal from Latin Modern is very readable
(thus, I don't know what you are after). I tried some others, maybe
you like one of them (I hope that the line breaks in the email will be
OK):

\definefallbackfamily[mainface][math][TeX Gyre Termes
Math][range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
%\definefallbackfamily[mainface][math][TeX Gyre Pagella
Math][range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
%\definefallbackfamily[mainface][math][Asana
Math][range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
\definefontfamily [mainface] [rm] [Latin Modern]
\definefontfamily [mainface] [math] [Latin Modern Math]

\setupbodyfont[mainface]

\starttext
${\cal abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ}$
\stoptext


you can run s-math-repertoire.mkiv and compare shapes

(you might want to comment some at the end)

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
___


Re: [NTG-context] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Wolfgang Schuster

Am 21.05.2014 um 21:10 schrieb Mikael P. Sundqvist mic...@gmail.com:

 On Wed, May 21, 2014 at 9:01 PM, Otared Kavian ota...@gmail.com wrote:
 Since other people may benefit from it, I would like to update the wiki on 
 the matter. But actually I do not understand what does the « range » mean in 
 the example

 [range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
 Could you please give a brief explanation so that I don’t write nonsense on 
 the wiki?
 
 Best regards: OK
 
 
 I'm glad it helped. The range gives the unicode slots where these
 letters live.
 
 Hans: Maybe this is a stupid suggestion, but could it be possible to have
 
 \definefontfamilypreset [math:lowercasecalligraphic]
 as range={1D4B6-1D4CF,212F,210A,2134}
 and
 \definefontfamilypreset [math:uppercasecalligraphic]
 as range={1D49C-1D4B5,212C,2130,2131,210B,2110,2112,2133,211B}
 ?
 
 Otared, If what I write above makes sense, then the setup will be the
 more readable
 
 \definefallbackfamily[mainface][math][Asana
 Math][range={lowercasecalligraphic,uppercasecalligraphic}]
 \definefontfamily [mainface] [rm] [palatino]
 \definefontfamily [mainface] [math] [Latin Modern Math]
 \setupbodyfont[mainface]

This does already exist, take a look into math-act.lua.

The presets are only needed when you want to use a text font as fallback 
because you have to set more values.

Wolfgang
___
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] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Otared Kavian
Hi Mikael,

I created a page on the wiki where it is explained how to change calligraphic 
fonts in math:

http://wiki.contextgarden.net/math_calligraphic

I’ll add more comments and correct things on that page each time I learn 
something new in this regard…
Thanks again: OK

On 21 May 2014, at 21:10, Mikael P. Sundqvist mic...@gmail.com wrote:

 On Wed, May 21, 2014 at 9:01 PM, Otared Kavian ota...@gmail.com wrote:
 Since other people may benefit from it, I would like to update the wiki on 
 the matter. But actually I do not understand what does the « range » mean in 
 the example

 [range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
 Could you please give a brief explanation so that I don’t write nonsense on 
 the wiki?
 
 Best regards: OK
 
 
 I'm glad it helped. The range gives the unicode slots where these
 letters live.
 
 Hans: Maybe this is a stupid suggestion, but could it be possible to have
 
 \definefontfamilypreset [math:lowercasecalligraphic]
 as range={1D4B6-1D4CF,212F,210A,2134}
 and
 \definefontfamilypreset [math:uppercasecalligraphic]
 as range={1D49C-1D4B5,212C,2130,2131,210B,2110,2112,2133,211B}
 ?
 
 Otared, If what I write above makes sense, then the setup will be the
 more readable
 
 \definefallbackfamily[mainface][math][Asana
 Math][range={lowercasecalligraphic,uppercasecalligraphic}]
 \definefontfamily [mainface] [rm] [palatino]
 \definefontfamily [mainface] [math] [Latin Modern Math]
 \setupbodyfont[mainface]
 
 /Mikael
 ___
 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
 ___

___
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] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Otared Kavian

On 21 May 2014, at 21:54, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 This does already exist, take a look into math-act.lua.

Thanks Wolfgang: indeed one may use 
\definefallbackfamily[mainface][math][Asana 
Math][range={uppercasescript,lowercasescript}]
so what Mikael suggested exists but it is named uppercasescript,lowercasescript.
I changes the wiki page

http://wiki.contextgarden.net/math_calligraphic

accordingly.
Best regards: OK

 
 The presets are only needed when you want to use a text font as fallback 
 because you have to set more values.
 
 Wolfgang
 ___
 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
 ___

___
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] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Hans Hagen

On 5/21/2014 10:38 PM, Otared Kavian wrote:

Hi Mikael,

I created a page on the wiki where it is explained how to change calligraphic 
fonts in math:

http://wiki.contextgarden.net/math_calligraphic

I’ll add more comments and correct things on that page each time I learn 
something new in this regard…
Thanks again: OK


However this does not work properly in mkiv ...

this suggests that it could work in mkiv but math in mkiv has a 
completely different implementation so it isn't even supposed to work


maybe it's better to talk about mkiv as being the standard way and mkii 
being the 'old way' or so



On 21 May 2014, at 21:10, Mikael P. Sundqvist mic...@gmail.com wrote:


On Wed, May 21, 2014 at 9:01 PM, Otared Kavian ota...@gmail.com wrote:

Since other people may benefit from it, I would like to update the wiki on the 
matter. But actually I do not understand what does the « range » mean in the 
example

[range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
Could you please give a brief explanation so that I don’t write nonsense on the 
wiki?

Best regards: OK



I'm glad it helped. The range gives the unicode slots where these
letters live.

Hans: Maybe this is a stupid suggestion, but could it be possible to have

\definefontfamilypreset [math:lowercasecalligraphic]
as range={1D4B6-1D4CF,212F,210A,2134}
and
\definefontfamilypreset [math:uppercasecalligraphic]
as range={1D49C-1D4B5,212C,2130,2131,210B,2110,2112,2133,211B}
?

Otared, If what I write above makes sense, then the setup will be the
more readable

\definefallbackfamily[mainface][math][Asana
Math][range={lowercasecalligraphic,uppercasecalligraphic}]
\definefontfamily [mainface] [rm] [palatino]
\definefontfamily [mainface] [math] [Latin Modern Math]
\setupbodyfont[mainface]

/Mikael
___
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
___


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




--

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


Re: [NTG-context] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Otared Kavian

On 21 May 2014, at 21:39, Hans Hagen pra...@wxs.nl wrote:
 
 you can run s-math-repertoire.mkiv and compare shapes
 
 (you might want to comment some at the end)

Thanks for the hint! I did run that file and then I thought my Mac was going to 
die since mkiv kept running and running… 
After several minutes I obtained an amazing PDF file of 2166 pages where every 
glyph can be seen on a beautiful page. 
Great stuff!

Best regards: OK
___
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] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Aditya Mahajan

On Wed, 21 May 2014, Otared Kavian wrote:


Hi all,

It seems that the rsfs fonts (Ralph Smith’s Formal Script fonts) do not work: 
the procedure explained at the page

http://wiki.contextgarden.net/rsfs

works fine with mkii, but not in mkiv.


I do not have the time to look into this in detail. But hopefully the 
hint below will help you get started.


If I understand you correctly, you are looking for a caligraphic font that 
is more script-y than the default \cal.


From what I understand, such glyphs are present as stylistic alternatives 
in unicode math fonts. See for example this thread


http://www.ntg.nl/pipermail/ntg-context/2010/050885.html

(I remember that there was another thread along these lines, but I cannot 
find it right now).


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
___

Re: [NTG-context] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Otared Kavian

On 21 May 2014, at 23:08, Hans Hagen pra...@wxs.nl wrote:

 On 5/21/2014 10:38 PM, Otared Kavian wrote:
 Hi Mikael,
 
 I created a page on the wiki where it is explained how to change 
 calligraphic fonts in math:
 
  http://wiki.contextgarden.net/math_calligraphic
 
 I’ll add more comments and correct things on that page each time I learn 
 something new in this regard…
 Thanks again: OK
 
 However this does not work properly in mkiv ...
 
 this suggests that it could work in mkiv but math in mkiv has a completely 
 different implementation so it isn't even supposed to work
 
 maybe it's better to talk about mkiv as being the standard way and mkii being 
 the 'old way' or so

You are right: I changed that page accordingly.

All the best: OK
___
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] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Hans Hagen

On 5/21/2014 11:11 PM, Otared Kavian wrote:


On 21 May 2014, at 21:39, Hans Hagen pra...@wxs.nl wrote:


you can run s-math-repertoire.mkiv and compare shapes

(you might want to comment some at the end)


Thanks for the hint! I did run that file and then I thought my Mac was going to 
die since mkiv kept running and running…
After several minutes I obtained an amazing PDF file of 2166 pages where every 
glyph can be seen on a beautiful page.
Great stuff!


indeed it takes some time to finish (also because it's interactive) but 
you can gain some 15% by using luajittex


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
___


Re: [NTG-context] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Aditya Mahajan

On Wed, 21 May 2014, Aditya Mahajan wrote:


On Wed, 21 May 2014, Otared Kavian wrote:


Hi all,

It seems that the rsfs fonts (Ralph Smith’s Formal Script fonts) do not 
work: the procedure explained at the page


http://wiki.contextgarden.net/rsfs

works fine with mkii, but not in mkiv.


I do not have the time to look into this in detail. But hopefully the hint 
below will help you get started.


If I understand you correctly, you are looking for a caligraphic font that is 
more script-y than the default \cal.


From what I understand, such glyphs are present as stylistic alternatives in 
unicode math fonts. See for example this thread


http://www.ntg.nl/pipermail/ntg-context/2010/050885.html

(I remember that there was another thread along these lines, but I cannot 
find it right now).


Found it: http://www.ntg.nl/pipermail/ntg-context/2011/061665.html

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
___