ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Fourier in ConTeXt (was Fonts readily available in Context)
@ 2009-01-14  8:50 Mikael Persson
  2009-01-14 12:16 ` Mojca Miklavec
  0 siblings, 1 reply; 13+ messages in thread
From: Mikael Persson @ 2009-01-14  8:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

I am starting a new thread about this:

Is there really support for fourier in current ConTeXt? I've not been
able to get it
working since long time ago. I get utopia text working, but not
fourier math. See the previous threads:
http://archive.contextgarden.net/message/20070830.154143.005528b8.en.html
and
http://archive.contextgarden.net/message/20080928.193441.874bb515.en.html

1) Can anyone explain to me why these fonts are not working at the moment?
2) Is there any plan on fixing this issue?
3) If there is anything I (as a simple user) can do, please tell me.

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


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

* Re: Fourier in ConTeXt (was Fonts readily available in Context)
  2009-01-14  8:50 Fourier in ConTeXt (was Fonts readily available in Context) Mikael Persson
@ 2009-01-14 12:16 ` Mojca Miklavec
  2009-01-14 12:57   ` Mikael Persson
  0 siblings, 1 reply; 13+ messages in thread
From: Mojca Miklavec @ 2009-01-14 12:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Jan 14, 2009 at 9:50 AM, Mikael Persson wrote:
> Hi,
>
> I am starting a new thread about this:
>
> Is there really support for fourier in current ConTeXt? I've not been
> able to get it
> working since long time ago. I get utopia text working, but not
> fourier math. See the previous threads:
> http://archive.contextgarden.net/message/20070830.154143.005528b8.en.html
> and
> http://archive.contextgarden.net/message/20080928.193441.874bb515.en.html
>
> 1) Can anyone explain to me why these fonts are not working at the moment?
> 2) Is there any plan on fixing this issue?
> 3) If there is anything I (as a simple user) can do, please tell me.
>
> Kindest regards, Mikael

Hello Mikael,

I did all kinds of experiments, so I'm not sure if it will work for
you, but it did work for me. Can you try to put this on top of your
document?

\startmathcollection[default]
\definemathsymbol [rbrace]        [close]   [sy] ["67] [ex] ["AA]
\definemathsymbol [lbrace]        [open]    [sy] ["66] [ex] ["A9]
\stopmathcollection

It seems that mathcollection[fou] is not loaded properly, so the
definitions from math-fou.tex are ignored.

Mojca

PS: fourier is not in minimals. At least not yet.
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: Fourier in ConTeXt (was Fonts readily available in Context)
  2009-01-14 12:16 ` Mojca Miklavec
@ 2009-01-14 12:57   ` Mikael Persson
  2009-01-14 13:38     ` Mojca Miklavec
  2009-01-14 14:10     ` Mojca Miklavec
  0 siblings, 2 replies; 13+ messages in thread
From: Mikael Persson @ 2009-01-14 12:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Jan 14, 2009 at 1:16 PM, Mojca Miklavec
<mojca.miklavec.lists@gmail.com> wrote:
> On Wed, Jan 14, 2009 at 9:50 AM, Mikael Persson wrote:
>> Hi,
>>
>> I am starting a new thread about this:
>>
>> Is there really support for fourier in current ConTeXt? I've not been
>> able to get it
>> working since long time ago. I get utopia text working, but not
>> fourier math. See the previous threads:
>> http://archive.contextgarden.net/message/20070830.154143.005528b8.en.html
>> and
>> http://archive.contextgarden.net/message/20080928.193441.874bb515.en.html
>>
>> 1) Can anyone explain to me why these fonts are not working at the moment?
>> 2) Is there any plan on fixing this issue?
>> 3) If there is anything I (as a simple user) can do, please tell me.
>>
>> Kindest regards, Mikael
>
> Hello Mikael,
>
> I did all kinds of experiments, so I'm not sure if it will work for
> you, but it did work for me. Can you try to put this on top of your
> document?
>
> \startmathcollection[default]
> \definemathsymbol [rbrace]        [close]   [sy] ["67] [ex] ["AA]
> \definemathsymbol [lbrace]        [open]    [sy] ["66] [ex] ["A9]
> \stopmathcollection
>
> It seems that mathcollection[fou] is not loaded properly, so the
> definitions from math-fou.tex are ignored.
>
> Mojca
>
> PS: fourier is not in minimals. At least not yet.

Hi Mojca,

thank you for your answer. Now it actually works with these braces. I
tried to do the same to get \hat working. Adding

  \definemathsymbol [hat]      [accent] [mr] ["2]

(inside \startmahtcollection[default] \stopmathcollection) from
math-fou.tex, however $\hat{f}$ now gives f without a hat. Do I
missunderstand something?

However, it would be nice to get these math-fou.tex working. I read
from the LaTeX file fourier.sty the line
\DeclareMathAccent{\hat}{\mathalpha}{operators}{2}
but I'm not sure howto translate that into ConTeXt code, the naive

  \definemathsymbol [hat]      [alpha] [op] ["2]

did not work...

Once this is fixed I can collect the needed files and send them to
you(?) to get them included in the minimals if that is what people
want (or make a package of it if that is better)

Best regards, Mikael

PS, I'm currently testing with mkiv, with a first-setup.sh:ed updated
minimal context.
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: Fourier in ConTeXt (was Fonts readily available in Context)
  2009-01-14 12:57   ` Mikael Persson
@ 2009-01-14 13:38     ` Mojca Miklavec
  2009-01-14 14:10     ` Mojca Miklavec
  1 sibling, 0 replies; 13+ messages in thread
From: Mojca Miklavec @ 2009-01-14 13:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Jan 14, 2009 at 1:57 PM, Mikael Persson wrote:
>
> Hi Mojca,
>
> thank you for your answer. Now it actually works with these braces. I
> tried to do the same to get \hat working. Adding
>
>  \definemathsymbol [hat]      [accent] [mr] ["2]
>
> (inside \startmahtcollection[default] \stopmathcollection) from
> math-fou.tex, however $\hat{f}$ now gives f without a hat. Do I
> missunderstand something?
>
> However, it would be nice to get these math-fou.tex working.

I agree with that, but fonts have always been something that I hated
most in TeX :) :) :)
Does anyone else have an idea about that? I'm almost sure that the
same problem happened to lucida or some other math font, but I don't
remember which one.

> I read from the LaTeX file fourier.sty the line
> \DeclareMathAccent{\hat}{\mathalpha}{operators}{2}
> but I'm not sure howto translate that into ConTeXt code, the naive
>
>  \definemathsymbol [hat]      [alpha] [op] ["2]
>
> did not work...

Try:
    \definemathsymbol [hat] [accent] [tf] ["2]

(I thought there was a \definemathaccent, but apparently I was wrong.)

> Once this is fixed I can collect the needed files and send them to
> you(?) to get them included in the minimals if that is what people
> want (or make a package of it if that is better)

It's easiest to fetch the files directly from CTAN, the only question
is how to best organize that: it would be nice to split some fonts, so
that those who don't need extra fonts don't need to fetch them all.

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


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

* Re: Fourier in ConTeXt (was Fonts readily available in Context)
  2009-01-14 12:57   ` Mikael Persson
  2009-01-14 13:38     ` Mojca Miklavec
@ 2009-01-14 14:10     ` Mojca Miklavec
  2009-01-14 14:54       ` Mikael Persson
  1 sibling, 1 reply; 13+ messages in thread
From: Mojca Miklavec @ 2009-01-14 14:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Jan 14, 2009 at 1:57 PM, Mikael Persson <mickep@gmail.com> wrote:
>
> However, it would be nice to get these math-fou.tex working.

\enablemathcollection[fou]

... but it should be automatic. Hans - what's the intended usage of
\enablemathcollection? I mean - at what place should it be called?

Mojca


PS: minimal example:

\usetypescript[fourier][ec]
\setupbodyfont[fourier,10pt]
% \enablemathcollection[fou]
\starttext
\startformula
\left\{a^{b^{c^{d^{e^{f^{g^{h}}}}}}}\right\}
\stopformula
\stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: Fourier in ConTeXt (was Fonts readily available in Context)
  2009-01-14 14:10     ` Mojca Miklavec
@ 2009-01-14 14:54       ` Mikael Persson
  2009-01-14 17:26         ` Mojca Miklavec
  0 siblings, 1 reply; 13+ messages in thread
From: Mikael Persson @ 2009-01-14 14:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Jan 14, 2009 at 3:10 PM, Mojca Miklavec
<mojca.miklavec.lists@gmail.com> wrote:
> On Wed, Jan 14, 2009 at 1:57 PM, Mikael Persson <mickep@gmail.com> wrote:
>>
>> However, it would be nice to get these math-fou.tex working.
>
> \enablemathcollection[fou]

Adding \enablemathcollection[fou] to my document seem to enable the
\lbrace and \rbrace and greek capital letters and probably more.

>
> ... but it should be automatic. Hans - what's the intended usage of
> \enablemathcollection? I mean - at what place should it be called?
>
> Mojca
>
>
> PS: minimal example:
>
> \usetypescript[fourier][ec]
> \setupbodyfont[fourier,10pt]
> % \enablemathcollection[fou]
> \starttext
> \startformula
> \left\{a^{b^{c^{d^{e^{f^{g^{h}}}}}}}\right\}
> \stopformula
> \stoptext

With
\definemathsymbol [hat]      [accent] [tf] ["2]
instead of
\definemathsymbol [hat]      [accent] [mr] ["2]

the \hat command works in mkii (if I change
    \definefontsynonym [MathRoman]     [Utopia-Regular]
to
    \definefontsynonym [MathRoman]     [futr8r]
in the type script)

Mojca, does it work both in mkii and mkiv for you?

Best regards, Mikael
/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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Fourier in ConTeXt (was Fonts readily available in Context)
  2009-01-14 14:54       ` Mikael Persson
@ 2009-01-14 17:26         ` Mojca Miklavec
  2009-01-15 13:11           ` Mikael Persson
  0 siblings, 1 reply; 13+ messages in thread
From: Mojca Miklavec @ 2009-01-14 17:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Jan 14, 2009 at 3:54 PM, Mikael Persson wrote:
>
> Mojca, does it work both in mkii and mkiv for you?

I only tested in mkii so far (I suspect that mkiv suffers from the
lack of Utopia in proper format, so one would need to check
typescripts).

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


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

* Re: Fourier in ConTeXt (was Fonts readily available in Context)
  2009-01-14 17:26         ` Mojca Miklavec
@ 2009-01-15 13:11           ` Mikael Persson
  2009-01-15 16:15             ` Mojca Miklavec
  0 siblings, 1 reply; 13+ messages in thread
From: Mikael Persson @ 2009-01-15 13:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Jan 14, 2009 at 6:26 PM, Mojca Miklavec
<mojca.miklavec.lists@gmail.com> wrote:
> On Wed, Jan 14, 2009 at 3:54 PM, Mikael Persson wrote:
>>
>> Mojca, does it work both in mkii and mkiv for you?
>
> I only tested in mkii so far (I suspect that mkiv suffers from the
> lack of Utopia in proper format, so one would need to check
> typescripts).
>
> Mojca

Thank you Mojca for your help!

I'm also being a bit curious about the [tf] in

\definemathsymbol [hat]      [accent] [tf] ["2]

In math-fou.tex I see
mi (Math Italics?)
sy (Symbols?)
ex (Extension?)
mr (Math Roman?)

0) Are those names correct?
1) What does the [tf] stand for? Text Font? And what happened with the [mr]?
2) I guess all [mr] (10 or so) in math-fou.tex safely can be changed to [tf]?
3) Does anyone know what has to be done to get this working in mkiv?
(I'll stick with mkii in the mean time)

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


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

* Re: Fourier in ConTeXt (was Fonts readily available in Context)
  2009-01-15 13:11           ` Mikael Persson
@ 2009-01-15 16:15             ` Mojca Miklavec
  2009-01-15 17:37               ` Aditya Mahajan
  0 siblings, 1 reply; 13+ messages in thread
From: Mojca Miklavec @ 2009-01-15 16:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Jan 15, 2009 at 2:11 PM, Mikael Persson wrote:
> On Wed, Jan 14, 2009 at 6:26 PM, Mojca Miklavec
> <mojca.miklavec.lists@gmail.com> wrote:
>> On Wed, Jan 14, 2009 at 3:54 PM, Mikael Persson wrote:
>>>
>>> Mojca, does it work both in mkii and mkiv for you?
>>
>> I only tested in mkii so far (I suspect that mkiv suffers from the
>> lack of Utopia in proper format, so one would need to check
>> typescripts).
>>
>> Mojca
>
> Thank you Mojca for your help!
>
> I'm also being a bit curious about the [tf] in
>
> \definemathsymbol [hat]      [accent] [tf] ["2]
>
> In math-fou.tex I see
> mi (Math Italics?)
> sy (Symbols?)
> ex (Extension?)
> mr (Math Roman?)
>
> 0) Are those names correct?

More or less yes.

> 1) What does the [tf] stand for? Text Font?

Yes.

> And what happened with the [mr]?

I wonder that as well. You can try one thing:

\usetypescript[fourier][ec]
\setupbodyfont[fourier]

\showfont[MathRoman]
\showfont[MathSymbol]
\showfont[MathExtension]

Then, repeat the same with

\usetypescript[antykwa-torunska][ec]
\setupbodyfont[antykwa]

You'll notice that MathRoman differs in Antykwa Torunska and in
Fourier. (You can also try \showfont[rm-lmr12].) Fourier is just a
tiny bit non-standard.

The slightly weird thing is this:
\definefontsynonym [MathRoman]     [Fourier-Math-Letters]
\definefontsynonym [Fourier-Math-Letters]         [futr8t]
[encoding=ec] % maybe one should remove encoding=ec?

The "math roman" equals ec encoding in this particular case. So in
theory rm should be equal to tf here; I have no idea why it is not.

The problem with tf is that it depends on encoding being used, in
particular it means that it will be different in mkiv (if you manage
to make it work in the first place).

> 2) I guess all [mr] (10 or so) in math-fou.tex safely can be changed to [tf]?

I would not just bet on it. I would try it first. If mr works, one
should better leave mr, but I have no idea why it fails.

> 3) Does anyone know what has to be done to get this working in mkiv?

Hans, what's the strategy with non-unicode fonts, in particular
Utopia? It doesn't come in otf format, but could still be used in both
mkiv and XeTeX. Is there some type-something.tex foreseen for such
fonts?

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


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

* Re: Fourier in ConTeXt (was Fonts readily available in Context)
  2009-01-15 16:15             ` Mojca Miklavec
@ 2009-01-15 17:37               ` Aditya Mahajan
  2009-01-16  7:34                 ` Mikael Persson
  2009-01-16  8:09                 ` Yue Wang
  0 siblings, 2 replies; 13+ messages in thread
From: Aditya Mahajan @ 2009-01-15 17:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 15 Jan 2009, Mojca Miklavec wrote:

> On Thu, Jan 15, 2009 at 2:11 PM, Mikael Persson wrote:
>> On Wed, Jan 14, 2009 at 6:26 PM, Mojca Miklavec
>> <mojca.miklavec.lists@gmail.com> wrote:
>>> On Wed, Jan 14, 2009 at 3:54 PM, Mikael Persson wrote:
>>>>
>>>> Mojca, does it work both in mkii and mkiv for you?
>>>
>>> I only tested in mkii so far (I suspect that mkiv suffers from the
>>> lack of Utopia in proper format, so one would need to check
>>> typescripts).
>>>
>>> Mojca
>>
>> Thank you Mojca for your help!
>>
>> I'm also being a bit curious about the [tf] in
>>
>> \definemathsymbol [hat]      [accent] [tf] ["2]
>>
>> In math-fou.tex I see
>> mi (Math Italics?)
>> sy (Symbols?)
>> ex (Extension?)
>> mr (Math Roman?)
>>
>> 2) I guess all [mr] (10 or so) in math-fou.tex safely can be changed to [tf]?
>
> I would not just bet on it. I would try it first. If mr works, one
> should better leave mr, but I have no idea why it fails.

The reason \hat is defined using tf is because the math font does not have 
accents. This is the same thing with Euler, and last I checked (about a
months ago), Euler accents work perfectly in MKIV. So, in principle it 
should  work with Fourier also.

I do not have time right now to look into it, maybe sometime next week.

>> 3) Does anyone know what has to be done to get this working in mkiv?
>
> Hans, what's the strategy with non-unicode fonts, in particular
> Utopia? It doesn't come in otf format, but could still be used in both
> mkiv and XeTeX. Is there some type-something.tex foreseen for such
> fonts?

Another possibility is to redistribute the fonts as otf. From what I 
understand from the license 
(http://tug.ctan.org/tex-archive/fonts/utopia/) it is ok to modify the 
fonts (ie change the format) as long as you do not call the modified font 
utopia, and remove all references to Adobe. Are there tools to convert 
type 1 to otf?

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
___________________________________________________________________________________


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

* Re: Fourier in ConTeXt (was Fonts readily available in Context)
  2009-01-15 17:37               ` Aditya Mahajan
@ 2009-01-16  7:34                 ` Mikael Persson
  2009-01-16 12:02                   ` Mikael Persson
  2009-01-16  8:09                 ` Yue Wang
  1 sibling, 1 reply; 13+ messages in thread
From: Mikael Persson @ 2009-01-16  7:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Jan 15, 2009 at 6:37 PM, Aditya Mahajan <adityam@umich.edu> wrote:
> On Thu, 15 Jan 2009, Mojca Miklavec wrote:
>
>> On Thu, Jan 15, 2009 at 2:11 PM, Mikael Persson wrote:
>>>
>>> On Wed, Jan 14, 2009 at 6:26 PM, Mojca Miklavec
>>> <mojca.miklavec.lists@gmail.com> wrote:
>>>>
>>>> On Wed, Jan 14, 2009 at 3:54 PM, Mikael Persson wrote:
>>>>>
>>>>> Mojca, does it work both in mkii and mkiv for you?
>>>>
>>>> I only tested in mkii so far (I suspect that mkiv suffers from the
>>>> lack of Utopia in proper format, so one would need to check
>>>> typescripts).
>>>>
>>>> Mojca
>>>
>>> Thank you Mojca for your help!
>>>
>>> I'm also being a bit curious about the [tf] in
>>>
>>> \definemathsymbol [hat]      [accent] [tf] ["2]
>>>
>>> In math-fou.tex I see
>>> mi (Math Italics?)
>>> sy (Symbols?)
>>> ex (Extension?)
>>> mr (Math Roman?)
>>>
>>> 2) I guess all [mr] (10 or so) in math-fou.tex safely can be changed to
>>> [tf]?
>>
>> I would not just bet on it. I would try it first. If mr works, one
>> should better leave mr, but I have no idea why it fails.
>
> The reason \hat is defined using tf is because the math font does not have
> accents. This is the same thing with Euler, and last I checked (about a
> months ago), Euler accents work perfectly in MKIV. So, in principle it
> should  work with Fourier also.
>
> I do not have time right now to look into it, maybe sometime next week.
>
>>> 3) Does anyone know what has to be done to get this working in mkiv?
>>
>> Hans, what's the strategy with non-unicode fonts, in particular
>> Utopia? It doesn't come in otf format, but could still be used in both
>> mkiv and XeTeX. Is there some type-something.tex foreseen for such
>> fonts?
>
> Another possibility is to redistribute the fonts as otf. From what I
> understand from the license (http://tug.ctan.org/tex-archive/fonts/utopia/)
> it is ok to modify the fonts (ie change the format) as long as you do not
> call the modified font utopia, and remove all references to Adobe. Are there
> tools to convert type 1 to otf?
>
> Aditya

Thanks Mojca and Aditya for your help. I just found out that if I change

    \definefontsynonym [MathRoman]     [Utopia-Regular]
to
    \definefontsynonym [MathRoman]     [futr8t]
in the typescript file, and define the math accents as:

\def\grave{\mathaccent"7000}
\def\acute{\mathaccent"7001}
\def\hat{\mathaccent"7002}
\def\tilde{\mathaccent"7003}
\def\ddot{\mathaccent"7004}
\def\mathring{\mathaccent"7006}
\def\check{\mathaccent"7007}
\def\breve{\mathaccent"7008}
\def\bar{\mathaccent"7009}
\def\dot{\mathaccent"700A}

they all work (both in mkii and mkiv). Can someone explain how to
convert these definitions to context versions, for example like
  \definemathsymbol [acute]    [accent] [tf] ["1]?

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


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

* Re: Fourier in ConTeXt (was Fonts readily available in Context)
  2009-01-15 17:37               ` Aditya Mahajan
  2009-01-16  7:34                 ` Mikael Persson
@ 2009-01-16  8:09                 ` Yue Wang
  1 sibling, 0 replies; 13+ messages in thread
From: Yue Wang @ 2009-01-16  8:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Jan 16, 2009 at 1:37 AM, Aditya Mahajan <adityam@umich.edu> wrote:
> On Thu, 15 Jan 2009, Mojca Miklavec wrote:
>
>> On Thu, Jan 15, 2009 at 2:11 PM, Mikael Persson wrote:
>>>
>>> On Wed, Jan 14, 2009 at 6:26 PM, Mojca Miklavec
>>> <mojca.miklavec.lists@gmail.com> wrote:
>>>>
>>>> On Wed, Jan 14, 2009 at 3:54 PM, Mikael Persson wrote:
>>>>>
>>>>> Mojca, does it work both in mkii and mkiv for you?
>>>>
>>>> I only tested in mkii so far (I suspect that mkiv suffers from the
>>>> lack of Utopia in proper format, so one would need to check
>>>> typescripts).
>>>>
>>>> Mojca
>>>
>>> Thank you Mojca for your help!
>>>
>>> I'm also being a bit curious about the [tf] in
>>>
>>> \definemathsymbol [hat]      [accent] [tf] ["2]
>>>
>>> In math-fou.tex I see
>>> mi (Math Italics?)
>>> sy (Symbols?)
>>> ex (Extension?)
>>> mr (Math Roman?)
>>>
>>> 2) I guess all [mr] (10 or so) in math-fou.tex safely can be changed to
>>> [tf]?
>>
>> I would not just bet on it. I would try it first. If mr works, one
>> should better leave mr, but I have no idea why it fails.
>
> The reason \hat is defined using tf is because the math font does not have
> accents. This is the same thing with Euler, and last I checked (about a
> months ago), Euler accents work perfectly in MKIV. So, in principle it
> should  work with Fourier also.
>
> I do not have time right now to look into it, maybe sometime next week.
>
>>> 3) Does anyone know what has to be done to get this working in mkiv?
>>
>> Hans, what's the strategy with non-unicode fonts, in particular
>> Utopia? It doesn't come in otf format, but could still be used in both
>> mkiv and XeTeX. Is there some type-something.tex foreseen for such
>> fonts?
>
> Another possibility is to redistribute the fonts as otf. From what I
> understand from the license (http://tug.ctan.org/tex-archive/fonts/utopia/)
> it is ok to modify the fonts (ie change the format) as long as you do not
> call the modified font utopia, and remove all references to Adobe. Are there
> tools to convert type 1 to otf?
>
fontforge can do the job, but you have to do some extra work: like
manually editing the kerning/ligature/onum feature table.

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


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

* Re: Fourier in ConTeXt (was Fonts readily available in Context)
  2009-01-16  7:34                 ` Mikael Persson
@ 2009-01-16 12:02                   ` Mikael Persson
  0 siblings, 0 replies; 13+ messages in thread
From: Mikael Persson @ 2009-01-16 12:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Jan 16, 2009 at 8:34 AM, Mikael Persson <mickep@gmail.com> wrote:
> On Thu, Jan 15, 2009 at 6:37 PM, Aditya Mahajan <adityam@umich.edu> wrote:
>> On Thu, 15 Jan 2009, Mojca Miklavec wrote:
>>
>>> On Thu, Jan 15, 2009 at 2:11 PM, Mikael Persson wrote:
>>>>
>>>> On Wed, Jan 14, 2009 at 6:26 PM, Mojca Miklavec
>>>> <mojca.miklavec.lists@gmail.com> wrote:
>>>>>
>>>>> On Wed, Jan 14, 2009 at 3:54 PM, Mikael Persson wrote:
>>>>>>
>>>>>> Mojca, does it work both in mkii and mkiv for you?
>>>>>
>>>>> I only tested in mkii so far (I suspect that mkiv suffers from the
>>>>> lack of Utopia in proper format, so one would need to check
>>>>> typescripts).
>>>>>
>>>>> Mojca
>>>>
>>>> Thank you Mojca for your help!
>>>>
>>>> I'm also being a bit curious about the [tf] in
>>>>
>>>> \definemathsymbol [hat]      [accent] [tf] ["2]
>>>>
>>>> In math-fou.tex I see
>>>> mi (Math Italics?)
>>>> sy (Symbols?)
>>>> ex (Extension?)
>>>> mr (Math Roman?)
>>>>
>>>> 2) I guess all [mr] (10 or so) in math-fou.tex safely can be changed to
>>>> [tf]?
>>>
>>> I would not just bet on it. I would try it first. If mr works, one
>>> should better leave mr, but I have no idea why it fails.
>>
>> The reason \hat is defined using tf is because the math font does not have
>> accents. This is the same thing with Euler, and last I checked (about a
>> months ago), Euler accents work perfectly in MKIV. So, in principle it
>> should  work with Fourier also.
>>
>> I do not have time right now to look into it, maybe sometime next week.
>>
>>>> 3) Does anyone know what has to be done to get this working in mkiv?
>>>
>>> Hans, what's the strategy with non-unicode fonts, in particular
>>> Utopia? It doesn't come in otf format, but could still be used in both
>>> mkiv and XeTeX. Is there some type-something.tex foreseen for such
>>> fonts?
>>
>> Another possibility is to redistribute the fonts as otf. From what I
>> understand from the license (http://tug.ctan.org/tex-archive/fonts/utopia/)
>> it is ok to modify the fonts (ie change the format) as long as you do not
>> call the modified font utopia, and remove all references to Adobe. Are there
>> tools to convert type 1 to otf?
>>
>> Aditya
>
> Thanks Mojca and Aditya for your help. I just found out that if I change
>
>    \definefontsynonym [MathRoman]     [Utopia-Regular]
> to
>    \definefontsynonym [MathRoman]     [futr8t]
> in the typescript file, and define the math accents as:
>
> \def\grave{\mathaccent"7000}
> \def\acute{\mathaccent"7001}
> \def\hat{\mathaccent"7002}
> \def\tilde{\mathaccent"7003}
> \def\ddot{\mathaccent"7004}
> \def\mathring{\mathaccent"7006}
> \def\check{\mathaccent"7007}
> \def\breve{\mathaccent"7008}
> \def\bar{\mathaccent"7009}
> \def\dot{\mathaccent"700A}
>
> they all work (both in mkii and mkiv). Can someone explain how to
> convert these definitions to context versions, for example like
>  \definemathsymbol [acute]    [accent] [tf] ["1]?
>
> Best regards, Mikael
>

I thought I tested this before, but

\startmathcollection [fou]
  \definemathsymbol [acute]    [accent] [mr] ["1]
  \definemathsymbol [grave]    [accent] [mr] ["0]
  \definemathsymbol [ddot]     [accent] [mr] ["4]
  \definemathsymbol [tilde]    [accent] [mr] ["3]
  \definemathsymbol [bar]      [accent] [mr] ["9]
  \definemathsymbol [breve]    [accent] [mr] ["8]
  \definemathsymbol [check]    [accent] [mr] ["7]
  \definemathsymbol [hat]      [accent] [mr] ["2]
  \definemathsymbol [dot]      [accent] [mr] ["A]
  \definemathsymbol [mathring] [accent] [mr] ["6]
\stopmathcollection

works as long as one has

\definefontsynonym [MathRoman]     [futr8t]

and not

\definefontsynonym [MathRoman]     [Utopia-Roman]% putr8a

or

\definefontsynonym [MathRoman]     [futr8r]

or ...

It thus seems that type-fou.tex does not need any changes.

Below is a working type script:

%%%%%%%%% type-fourier.tex
\starttypescript [serif] [utopia]
    \setups[font:fallback:serif]
    \definefontsynonym [Serif]           [Utopia-Regular]
    \definefontsynonym [SerifItalic]     [Utopia-Italic]
    \definefontsynonym [SerifBold]       [Utopia-Bold]
    \definefontsynonym [SerifBoldItalic] [Utopia-BoldItalic]
\stoptypescript

\starttypescript [serif] [utopia]
    \definefontsynonym [Utopia-Regular]    [file:putr8a][features=default]
    \definefontsynonym [Utopia-Italic]     [file:putri8a][features=default]
    \definefontsynonym [Utopia-Bold]       [file:putb8a][features=default]
    \definefontsynonym [Utopia-BoldItalic] [file:putbi8a][features=default]
\stoptypescript

\starttypescript [math] [fourier] [name]
    \definefontsynonym [MathRoman]     [futr8t]
    \definefontsynonym [MathItalic]    [futmii]
    \definefontsynonym [MathSymbol]    [futsy]
    \definefontsynonym [MathExtension] [fourier-mex]
    \loadmapfile[fourier.map]
\stoptypescript

\starttypescript [fourier,utopia]
    \definetypeface [\typescriptone] [rm] [serif] [utopia]  [default]
    \definetypeface [\typescriptone] [ss] [sans]  [modern]
[default][rscale=1.07]
    \definetypeface [\typescriptone] [tt] [mono]  [modern]
[default][rscale=1.07]
    \definetypeface [\typescriptone] [mm] [math]  [fourier]
[default][encoding=default]
    \usemathcollection[fou]
    \quittypescriptscanning
\stoptypescript
%%%%%%%%%%%%%%

And a working test file:

%%%%%%%% Test file
\usetypescriptfile[type-fourier]
\usetypescript[fourier][ec]
\setupbodyfont[fourier]

\enablemathcollection[fou]
\starttext

Test: acute $\acute{a}$ grave $\grave{a}$ ddot $\ddot{a}$ tilde
$\tilde{a}$ bar $\bar{a}$ breve $\breve{a}$ check $\check{a}$ hat
$\hat{a}$ dot $\dot{a}$ mathring $\mathring{a}$ widetilde
$\widetilde{ab}$.
\startformula
\hat{f}(x)=
\startcases
\NC x \MC x>0\NR
\NC -x \MC x<0\NR
\stopcases
\stopformula
\stoptext
%%%%%%%

Could this \enablemathcollection[fou] go somewhere else?

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


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

end of thread, other threads:[~2009-01-16 12:02 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-14  8:50 Fourier in ConTeXt (was Fonts readily available in Context) Mikael Persson
2009-01-14 12:16 ` Mojca Miklavec
2009-01-14 12:57   ` Mikael Persson
2009-01-14 13:38     ` Mojca Miklavec
2009-01-14 14:10     ` Mojca Miklavec
2009-01-14 14:54       ` Mikael Persson
2009-01-14 17:26         ` Mojca Miklavec
2009-01-15 13:11           ` Mikael Persson
2009-01-15 16:15             ` Mojca Miklavec
2009-01-15 17:37               ` Aditya Mahajan
2009-01-16  7:34                 ` Mikael Persson
2009-01-16 12:02                   ` Mikael Persson
2009-01-16  8:09                 ` Yue Wang

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).