Re: [NTG-context] math and palatino

2009-06-19 Thread Taco Hoekwater


Idris Samawi Hamid ? ?  wrote:
 
 http://www.ctan.org/get/fonts/Asana-Math/Asana-Math.otf
 
 +
 
 This is LuaTeX, Version beta-0.41.0-2009061016
 
 I reported this to Taco so we'll see what he says...

That version of Asana works for me with a small test file, using

  This is LuaTeX, Version beta-0.41.0-2009061815 (Web2C 2009)

but it could be a problem with a specific glyph, so can you send a
minimal test file?

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


Re: [NTG-context] math and palatino

2009-06-18 Thread Aditya Mahajan

On Wed, 17 Jun 2009, Idris Samawi Hamid ادريس سماوي حامد wrote:


Dear gang,
[mkiv only]

What is the best available math font for use with Pagella/Palatino?


The math fonts compatible with Palatino are px math and math paza ConTeXt 
only has support for px math.


[Hint: 
it's not LM] I had to roll my own typescript so what I need to fill in is the 
commented line below


\definetypeface [pagella_ar] [rm] [serif] [pagella_arabic] % [pagella_arabic]
% \definetypeface [pagella_ar] [mm] [math]  [palatino]   [default]

Uncommenting the above gives me an incomplete math font



Currently, no math font in mkiv is complete. Which specific glyphs are 
missing for you?


The easiest opiton is to use asana math, which is an otf math font based 
on px fonts.


\starttypescript [math] [asana] [name]
\definefontsynonym [MathRoman] [name:Asana-Math] 
[features=math\mathsizesuffix]
\stoptypescript

and then

\definetypeface [pagella_ar] [mm] [math]  [asana]   [default]


that does not look good. Any ideas on getting this right?


I also find px math ugly (although I did use it for my thesis). math pazo 
is not much better, it uses most of the symbols from cm. There is a 
commerical math from micropress that is supposed to be compatible with 
palatino, but I have never used it myself.



Is there an otf euler option?


No. Also keep in mind that euler is no where close to being a complete 
math font. Mkii used a virtual font that took missing symbols from px 
math and cm.


I have a local half baked support for Euler, which uses missing symbols 
from iwona. I can send the patch if you want to experiment with it.


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


Re: [NTG-context] math and palatino

2009-06-18 Thread Johan Sandblom
 Is there an otf euler option?

 No. Also keep in mind that euler is no where close to being a complete math
 font. Mkii used a virtual font that took missing symbols from px math and
 cm.

 I have a local half baked support for Euler, which uses missing symbols from
 iwona. I can send the patch if you want to experiment with it.


I would love that as well. Is it on the wiki?

Johan


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





-- 
Johan Sandblom, MD PhD
m +46735521477  Sweden
What is wanted is not the will to believe, but the
will to find out, which is the exact opposite
- Bertrand Russell
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] math and palatino

2009-06-18 Thread Aditya Mahajan

On Thu, 18 Jun 2009, Johan Sandblom wrote:


Is there an otf euler option?


No. Also keep in mind that euler is no where close to being a complete math
font. Mkii used a virtual font that took missing symbols from px math and
cm.

I have a local half baked support for Euler, which uses missing symbols from
iwona. I can send the patch if you want to experiment with it.



I would love that as well. Is it on the wiki?


http://github.com/adityam/context-math/commit/ba9c49b5ac7c19900d851c1bcbbde599f672acd4

Keep in mind that this is/was an experiment. I am still trying to 
understand how to create virtual fonts on the fly. In order to use this, 
you need


\starttypescript [math][euler][all]
\definefontsynonym[mathroman][eu...@euler-math]
\loadmapfile[original-ams-euler.map]
\loadmapfile[iwona-ex.map]
\loadmapfile[iwona-sy.map]
\stoptypescript

then

\definetypescript[whatever][mm][euler][default][text=rm]

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


Re: [NTG-context] math and palatino

2009-06-18 Thread Idris Samawi Hamid ادريس سماوي ح امد

Hi Aditya,

On Thu, 18 Jun 2009 02:03:44 -0600, Aditya Mahajan adit...@umich.edu  
wrote:



The math fonts compatible with Palatino are px math and math paza ConTeXt
only has support for px math.


ok, good to know... [I rarely use math these past few years]


[Hint:
it's not LM] I had to roll my own typescript so what I need to fill in  
is the

commented line below

\definetypeface [pagella_ar] [rm] [serif] [pagella_arabic] %  
[pagella_arabic]

% \definetypeface [pagella_ar] [mm] [math]  [palatino]   [default]

Uncommenting the above gives me an incomplete math font



Currently, no math font in mkiv is complete. Which specific glyphs are
missing for you?


\alpha


The easiest opiton is to use asana math, which is an otf math font based
on px fonts.

\starttypescript [math] [asana] [name]
 \definefontsynonym [MathRoman] [name:Asana-Math]  
[features=math\mathsizesuffix]

\stoptypescript

and then

\definetypeface [pagella_ar] [mm] [math]  [asana]   [default]


LuaTeX warning (file  
C:/ConTeXt/tex/texmf-project/fonts/data/asana/Asana-Math.otf): Type2  
Charstring Parser: Unknown charstring operator: 0x00


!LuaTeX error (file  
C:/ConTeXt/tex/texmf-project/fonts/data/asana/Asana-Math.otf): Type2  
Charstring Parser: Parsing charstring failed: (status=-1, stack=0)

 == Fatal error occurred, no output PDF file produced!

Have any of you run into this before?

If this is a showstopper, then a fallback will have to do. Have any of you  
made fallbacks for math fonts? Are there any subtleties compared to  
regular fonts? What is the unicode slot for math \alpha?



that does not look good. Any ideas on getting this right?


I also find px math ugly (although I did use it for my thesis). math pazo
is not much better, it uses most of the symbols from cm. There is a
commerical math from micropress that is supposed to be compatible with
palatino, but I have never used it myself.


Is there an otf euler option?


No. Also keep in mind that euler is no where close to being a complete
math font. Mkii used a virtual font that took missing symbols from px
math and cm.

I have a local half baked support for Euler, which uses missing symbols
from iwona. I can send the patch if you want to experiment with it.


Thanks! time is very short, although I like Euler and think it would work  
for palatino... maybe we need to get the gyre people on it for the  
future:-)


Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] math and palatino

2009-06-18 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Thu, 18 Jun 2009 02:03:44 -0600, Aditya Mahajan adit...@umich.edu  
wrote:



What is the best available math font for use with Pagella/Palatino?


The math fonts compatible with Palatino are px math and math paza ConTeXt
only has support for px math.


Turns out that cambria is preset in mkiv and works, so I'll use that for  
now. I filed a report about the asana error so hopefully that will be  
solved as well.


[I use math so little I had completely forgotten about cambria].

Thanks, Aditya!

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] math and palatino

2009-06-18 Thread Aditya Mahajan

On Thu, 18 Jun 2009, Idris Samawi Hamid ادريس سماوي حامد wrote:


The easiest opiton is to use asana math, which is an otf math font based
on px fonts.

\starttypescript [math] [asana] [name]
\definefontsynonym [MathRoman] [name:Asana-Math] 
[features=math\mathsizesuffix]

\stoptypescript

and then

\definetypeface [pagella_ar] [mm] [math]  [asana]   [default]


LuaTeX warning (file 
C:/ConTeXt/tex/texmf-project/fonts/data/asana/Asana-Math.otf): Type2 
Charstring Parser: Unknown charstring operator: 0x00


!LuaTeX error (file 
C:/ConTeXt/tex/texmf-project/fonts/data/asana/Asana-Math.otf): Type2 
Charstring Parser: Parsing charstring failed: (status=-1, stack=0)

== Fatal error occurred, no output PDF file produced!

Have any of you run into this before?


No. I am using the minimals from 2009.05.26, and asana math works fine. 
Are you using the latest version of the font from 
http://openfontlibrary.org/media/files/asyropoulos/219


If this is a showstopper, then a fallback will have to do. Have any of you 
made fallbacks for math fonts? Are there any subtleties compared to regular 
fonts? What is the unicode slot for math \alpha?


Basic greek should work in math. I cannot get the latest minimals right 
now (slow internet connection), but px math and lm math use the same code 
to generate virtual fonts, so px math should work in the latest minimals.


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


Re: [NTG-context] math and palatino

2009-06-18 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Thu, 18 Jun 2009 10:06:07 -0600, Aditya Mahajan adit...@umich.edu  
wrote:



LuaTeX warning (file
C:/ConTeXt/tex/texmf-project/fonts/data/asana/Asana-Math.otf): Type2
Charstring Parser: Unknown charstring operator: 0x00

!LuaTeX error (file
C:/ConTeXt/tex/texmf-project/fonts/data/asana/Asana-Math.otf): Type2
Charstring Parser: Parsing charstring failed: (status=-1, stack=0)
== Fatal error occurred, no output PDF file produced!

Have any of you run into this before?


No. I am using the minimals from 2009.05.26, and asana math works fine.
Are you using the latest version of the font from
http://openfontlibrary.org/media/files/asyropoulos/219


seems the same date as

http://www.ctan.org/get/fonts/Asana-Math/Asana-Math.otf

+

This is LuaTeX, Version beta-0.41.0-2009061016

I reported this to Taco so we'll see what he says...

If this is a showstopper, then a fallback will have to do. Have any of  
you
made fallbacks for math fonts? Are there any subtleties compared to  
regular

fonts? What is the unicode slot for math \alpha?


Basic greek should work in math. I cannot get the latest minimals right
now (slow internet connection), but px math and lm math use the same code
to generate virtual fonts, so px math should work in the latest minimals.


Using the predefined

[mm] [math] [palatino]

You can test these formulas in px-math:

\starttext
\startformula
Y=AK^{\alpha{}}L^{1-\alpha{}} \eqno(1)
\stopformula

\startformula
y-l=a+\alpha(k-l) \eqno(2)
\stopformula

\startformula
a = (y-l) - \alpha{} (k-l) \eqno(3)
\stopformula

\startformula
A = (3-7)-(0.3) (5-3) = 3.4
\stopformula

\alpha{}
\stoptext

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] math and palatino

2009-06-18 Thread Aditya Mahajan

On Thu, 18 Jun 2009, Idris Samawi Hamid ادريس سماوي حامد wrote:


Basic greek should work in math. I cannot get the latest minimals right
now (slow internet connection), but px math and lm math use the same code
to generate virtual fonts, so px math should work in the latest minimals.


Using the predefined

[mm] [math] [palatino]

You can test these formulas in px-math:

\starttext
\startformula
Y=AK^{\alpha{}}L^{1-\alpha{}} \eqno(1)
\stopformula

\startformula
y-l=a+\alpha(k-l) \eqno(2)
\stopformula

\startformula
a = (y-l) - \alpha{} (k-l) \eqno(3)
\stopformula

\startformula
A = (3-7)-(0.3) (5-3) = 3.4
\stopformula

\alpha{}
\stoptext


I see. There is indeed something wrong with both px-math and tx-math, but 
I cannot see why it is behaving differently. In math-vfu.lua, if you 
replace pxmi.tfm with lmmi10.tfm and regenerate formats, greek in math 
works, so it is something specific with the font.


Hans, Taco: Any idea what is happening here? Minimal test file

\usetypescript[palatino] \setupbodyfont[palatino]
\starttext $\alpha \beta$ \stoptext

Idris: For greek outside the math mode, you should use \greekalpha etc, 
which works with palatino.


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


[NTG-context] math and palatino

2009-06-17 Thread Idris Samawi Hamid ادريس سماوي ح امد

Dear gang,
[mkiv only]

What is the best available math font for use with Pagella/Palatino? [Hint:  
it's not LM] I had to roll my own typescript so what I need to fill in is  
the commented line below


\definetypeface [pagella_ar] [rm] [serif] [pagella_arabic] %  
[pagella_arabic]

% \definetypeface [pagella_ar] [mm] [math]  [palatino]   [default]

Uncommenting the above gives me an incomplete math font that does not look  
good. Any ideas on getting this right? Is there an otf euler option?


Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___