ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Baskervald ADF Virtual Math Fonts
@ 2014-04-18 16:36 joasyannick
  0 siblings, 0 replies; 12+ messages in thread
From: joasyannick @ 2014-04-18 16:36 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 176 bytes --]

Hi,


Thank you all. The commands of Wolfang work perfectly.

The fallback mechanism is even easier than virtual fonts.

ConTeXt is truly great.


Thank you,

Joas.

[-- Attachment #1.2: Type: text/html, Size: 1248 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

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

* Re: Baskervald ADF Virtual Math Fonts
  2014-04-18 14:28   ` Wolfgang Schuster
@ 2014-04-18 17:59     ` Mikael P. Sundqvist
  0 siblings, 0 replies; 12+ messages in thread
From: Mikael P. Sundqvist @ 2014-04-18 17:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thank you for the clarification, Wolfgang.

I think this is a really nice feature.

Best regards, Mikael

On Fri, Apr 18, 2014 at 4:28 PM, Wolfgang Schuster
<schuster.wolfgang@gmail.com> wrote:
>
> Am 18.04.2014 um 08:38 schrieb Mikael P. Sundqvist <mickep@gmail.com>:
>
>> \definefallbackfamily [mainface] [math] [Minion Pro]
>> [math:uppercasenormal] [force=yes]
>
> 1. You don’t need “force=yes” because this a default setting.
>
> 2. When you want additional setups you have to change the fourth argument to
>
>      \definefallbackfamily […] […] […] [preset=math:uppercasenormal,force=yes]
>
>    because
>
>      \definefallbackfamily […] […] […] [math:uppercasenormal]
>
>    is only a simpler way to write
>
>      \definefallbackfamily […] […] […] [preset=math:uppercasenormal]
>
>    This is possible because I can check if the argument is a assignment or a keyword
>    and when you have a keyword I use it as argument for the preset key.
>
> 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
___________________________________________________________________________________

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

* Re: Baskervald ADF Virtual Math Fonts
  2014-04-18  6:38 ` Mikael P. Sundqvist
@ 2014-04-18 14:28   ` Wolfgang Schuster
  2014-04-18 17:59     ` Mikael P. Sundqvist
  0 siblings, 1 reply; 12+ messages in thread
From: Wolfgang Schuster @ 2014-04-18 14:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 18.04.2014 um 08:38 schrieb Mikael P. Sundqvist <mickep@gmail.com>:

> \definefallbackfamily [mainface] [math] [Minion Pro]
> [math:uppercasenormal] [force=yes]

1. You don’t need “force=yes” because this a default setting.

2. When you want additional setups you have to change the fourth argument to

     \definefallbackfamily […] […] […] [preset=math:uppercasenormal,force=yes]

   because

     \definefallbackfamily […] […] […] [math:uppercasenormal]

   is only a simpler way to write

     \definefallbackfamily […] […] […] [preset=math:uppercasenormal]

   This is possible because I can check if the argument is a assignment or a keyword
   and when you have a keyword I use it as argument for the preset key.

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
___________________________________________________________________________________


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

* Re: Baskervald ADF Virtual Math Fonts
  2014-04-18  6:20 joasyannick
  2014-04-18  6:38 ` Mikael P. Sundqvist
@ 2014-04-18 14:23 ` Wolfgang Schuster
  1 sibling, 0 replies; 12+ messages in thread
From: Wolfgang Schuster @ 2014-04-18 14:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 18.04.2014 um 08:20 schrieb joasyannick@gmail.com:

> Ok. You may also answer my question:
> 
> Let us consider the statememt:
> 
> \definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic]   [0x1D44E-0x1D467] [\check=yes,force=yes]
> 
> I understand it as: “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z)
> of the source font with the glyphs from Baskervald italic having the same code.”
> 
> But how do you map 0x1D44E-0x1D467 of the source font to 0x61-0x7a.
> 
> How do you say:  “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z) of
> the source font with the glyphs  0x61-0x7a (text a-z) from Baskervald italic”?
> 
> For example something like:
> 
> \definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic]   [0x1D44E-0x1D467] [0x61-0x7a] [\check=yes,force=yes]

\definefontfallback [baskervaldmath] [file:baskervaldadfstditalic] [lowercasenormal] [offset=lowercaseitalic,force=yes]
%\definefontfallback [baskervaldmath] [file:baskervaldadfstditalic] [uppercasenormal] [offset=uppercaseitalic,force=yes]

\starttypescript [math] [baskervald]
  \loadfontgoodies[texgyre]
  \definefontsynonym [MathRoman] [file:texgyre-termes-math-regular.otf] [features=math\mathsizesuffix,fallbacks=baskervaldmath]
\stoptypescript

\definetypeface [baskervald] [rm] [serif] [termes]     [default]
\definetypeface [baskervald] [mm] [math]  [baskervald] [default]

\setupbodyfont[termes]

\starttext

\math{ABC abc}

\setupbodyfont[baskervald]

\math{ABC abc}

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


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

* Re: Baskervald ADF Virtual Math Fonts
  2014-04-18  6:20 joasyannick
@ 2014-04-18  6:38 ` Mikael P. Sundqvist
  2014-04-18 14:28   ` Wolfgang Schuster
  2014-04-18 14:23 ` Wolfgang Schuster
  1 sibling, 1 reply; 12+ messages in thread
From: Mikael P. Sundqvist @ 2014-04-18  6:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Joas,

I do not have that font to try (and sorry if I misunderstand the
question), but the following works to get Minion italic as
"lowercaseitalic" and so on instead of Pagella. Maybe using the names
instead of the glyph ranges work for you aswell?

\definefontfamily [mainface] [rm] [Minion Pro][opticalsize=yes]
\definefontfamily [mainface] [ss] [Myriad Pro][opticalsize=yes]

\definefallbackfamily [mainface] [math] [Minion Pro]
[math:uppercasenormal] [force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[math:uppercaseitalic] [force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[math:lowercasenormal] [force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[math:lowercaseitalic] [force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[math:digitsnormal]    [force=yes]
\definefontfamily [mainface] [math] [TeX Gyre Pagella Math]

Best regards, Mikael

On Fri, Apr 18, 2014 at 8:20 AM,  <joasyannick@gmail.com> wrote:
>>>
>>>
>>>
>>> Hello,
>>>
>>>
>>>
>>>> Replacing certain symbols in a math font with a text font is very easy
>>>> with the fallback
>>>
>>>> mechanism and the \definefallbackfamily command makes things even
>>>> simpler.
>>>
>>> The command \definefallbackfamily seems not to be a typescript-level
>>> command.
>
> You need a newer version of ConTeXt to get that command.
>
>
> Ok. You may also answer my question:
>
> Let us consider the statememt:
>
>
> \definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic]
> [0x1D44E-0x1D467] [\check=yes,force=yes]
>
>
>
>
> I understand it as: “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z)
>
> of the source font with the glyphs from Baskervald italic having the same
> code.”
>
> But how do you map 0x1D44E-0x1D467 of the source font to 0x61-0x7a.
>
> How do you say:  “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z) of
>
> the source font with the glyphs  0x61-0x7a (text a-z) from Baskervald
> italic”?
>
> For example something like:
>
>
> \definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic]
> [0x1D44E-0x1D467] [0x61-0x7a] [\check=yes,force=yes]
>
>
> Thank you,
> Joas
>
> ___________________________________________________________________________________
> 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
___________________________________________________________________________________

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

* Baskervald ADF Virtual Math Fonts
@ 2014-04-18  6:20 joasyannick
  2014-04-18  6:38 ` Mikael P. Sundqvist
  2014-04-18 14:23 ` Wolfgang Schuster
  0 siblings, 2 replies; 12+ messages in thread
From: joasyannick @ 2014-04-18  6:20 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1157 bytes --]

>>
>>
>>
>> Hello,
>>
>>
>>
>>> Replacing certain symbols in a math font with a text font is very easy with the fallback
>>
>>> mechanism and the \definefallbackfamily command makes things even simpler.
>>
>> The command \definefallbackfamily seems not to be a typescript-level command.

You need a newer version of ConTeXt to get that command.


Ok. You may also answer my question:


Let us consider the statememt:



\definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic]   [0x1D44E-0x1D467] [\check=yes,force=yes]




I understand it as: “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z)

of the source font with the glyphs from Baskervald italic having the same code.”

But how do you map 0x1D44E-0x1D467 of the source font to 0x61-0x7a.

How do you say:  “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z) of

the source font with the glyphs  0x61-0x7a (text a-z) from Baskervald italic”?

For example something like:


\definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic]   [0x1D44E-0x1D467] [0x61-0x7a] [\check=yes,force=yes]


Thank you,

Joas

[-- Attachment #1.2: Type: text/html, Size: 2655 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

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

* Re: Baskervald ADF Virtual Math Fonts
  2014-04-17 18:17 joasyannick
@ 2014-04-17 19:05 ` Aditya Mahajan
  0 siblings, 0 replies; 12+ messages in thread
From: Aditya Mahajan @ 2014-04-17 19:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 17 Apr 2014, joasyannick@gmail.com wrote:

>
>
>
> Hello,
>
>
>
>> Replacing certain symbols in a math font with a text font is very easy with the fallback
>
>> mechanism and the \definefallbackfamily command makes things even simpler.
>
> The command \definefallbackfamily seems not to be a typescript-level command.

You need a newer version of ConTeXt to get that command.

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
___________________________________________________________________________________


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

* Baskervald ADF Virtual Math Fonts
@ 2014-04-17 18:17 joasyannick
  2014-04-17 19:05 ` Aditya Mahajan
  0 siblings, 1 reply; 12+ messages in thread
From: joasyannick @ 2014-04-17 18:17 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1200 bytes --]




Hello,



> Replacing certain symbols in a math font with a text font is very easy with the fallback

> mechanism and the \definefallbackfamily command makes things even simpler.




Thank you for your answer.




The command \definefallbackfamily seems not to be a typescript-level command.

Let us try \definefontfallback.




Let us consider the statememt:




\definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic]   [0x1D44E-0x1D467] [\check=yes,force=yes]




I understand it as: “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z)

of the source font with the glyphs from Baskervald italic having the same code.”

But how do you map 0x1D44E-0x1D467 of the source font to 0x61-0x7a.

How do you say:  “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z) of

the source font with the glyphs  0x61-0x7a (text a-z) from Baskervald italic”?

For example something like:


\definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic]   [0x1D44E-0x1D467] [0x61-0x7a] [\check=yes,force=yes]




Other question: What do check, force and offset means?




Thank you.


Best regards,

Joas.

[-- Attachment #1.2: Type: text/html, Size: 2565 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

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

* Re: Baskervald ADF Virtual Math Fonts
  2014-04-13 19:01 joasyannick
@ 2014-04-13 19:47 ` Wolfgang Schuster
  0 siblings, 0 replies; 12+ messages in thread
From: Wolfgang Schuster @ 2014-04-13 19:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 718 bytes --]


Am 13.04.2014 um 21:01 schrieb <joasyannick@gmail.com> <joasyannick@gmail.com>:

> Hello,
> 
> Thank you for the answer.
> 
> >if you have a proper opentype math Font…
> 
> As you know, Baskervald doesn’t come with an open type math version.
> Moreover the mapping mechanism works well with open type text fonts and is
> powerful and very general. It’s my prefered way of solving my problem. So I reiterate
> my questions:

Replacing certain symbols in a math font with a text font is very easy with the fallback mechanism
and the \definefallbackfamily command makes things even simpler:

http://tex.stackexchange.com/questions/150566/minionpro-including-math-in-context/150823#150823

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 2152 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

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

* Baskervald ADF Virtual Math Fonts
@ 2014-04-13 19:01 joasyannick
  2014-04-13 19:47 ` Wolfgang Schuster
  0 siblings, 1 reply; 12+ messages in thread
From: joasyannick @ 2014-04-13 19:01 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1006 bytes --]




Hello,


Thank you for the answer.


>if you have a proper opentype math Font…


As you know, Baskervald doesn’t come with an open type math version.

Moreover the mapping mechanism works well with open type text fonts and is
powerful and very general. It’s my prefered way of solving my problem. So I reiterate

my questions:


Question 1:

Where do I define my own vector mapping? Should I modify ConTeXt’s source code in the math-ttv.lua file? How do I define my own baskervald-math.lua and what should I write in it (for example for mapping Pagella’s upright mathematic glyphs to Baskervald’s upright glyphs)?


Question 2:

I am forced to put the goodies file baskervald-math.lfg in Book/Volume1/Chapter1. When I put it in Book and compiled chapter1.tex separately, ConTeXt failed to find it. What should I do to have the file baskervald-math.lfg in the Book directory and make ConTeXt find it when invoked from Book/Volume1/Chapter1.


Thank you.

Joas.

[-- Attachment #1.2: Type: text/html, Size: 2712 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

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

* Re: Baskervald ADF Virtual Math Fonts
  2014-04-13  6:32 joasyannick
@ 2014-04-13 15:52 ` Hans Hagen
  0 siblings, 0 replies; 12+ messages in thread
From: Hans Hagen @ 2014-04-13 15:52 UTC (permalink / raw)
  To: ntg-context

On 4/13/2014 8:32 AM, joasyannick@gmail.com wrote:
> Hello,
>
> I am going to solve my problem here:
>
>     http://tex.stackexchange.com/questions/123647/from-xelatexs-unicode-math-to-contexts-typescript
>
>
> with virtual math fonts. I use Baskervald ADF instead of Libertine. I
> was pleased to see that the following files produced effects:
>
> Extract from environment file fonts.tex:
> ------------------------------------------------
> \startenvironment fonts
>      \starttypescript [math] [fonts]
>          \loadfontgoodies[baskervald-math]
>
> \definefontsynonym[MathRoman][file:texgyrepagella-math@baskervald-math]
>      \stoptypescript
>      \definetypeface [fonts] [mm] [math] [fonts] [default]
> [features=default]
>      \setupbodyfont [fonts, 12pt]
> \stopenvironment
> -------------------------------------------------------------------------------------------------------
>
> Extract from goodies file baskervald-math.lfg:
> ------------------------------------------
> return {
>      name = "baskervald-math",
>      version = "1.00",
>      comment = "Goodies that give math support for the Baskervald ADF
> font.",
>      author = "author",
>      copyright = "copyrigth",
>      mathematics = {
>          virtuals = {
>              ["baskervald-math"] = {
>                  { name = "texgyrepagella-math.otf", features =
> "virtualmath", main = true },
>                  { name = "BaskervaldADFStd.otf", features =
> "virtualmath", vector = "tex-mr-missing" } ,
>                  { name = "BaskervaldADFStd-Italic", vector = "tex-it" } ,
>                  { name = "BaskervaldADFStd-Bold.otf", vector =
> "tex-bf", skewchar=0x7F } ,
>                  { name = "BaskervaldADFStd-BoldItalic.otf", vector =
> "tex-bi" } ,
>                  { name = "corbel.ttf", vector = "tex-ss", optional=true },
>                  { name = "UbuntuMono-R.ttf", vector = "tex-tt",
> optional=true },
>              },
>          }
>      }
> }
> ---------------------------------------------------------------------------------------------------------
>
> Now I have two questions.
>
> The first and most important question is: Where do I define my own
> vector mapping? Should I modify ConTeXt’s source code in the
> math-ttv.lua file? How do I define my own baskervald-math.lua and what
> should I write in it (for example for mapping Pagella’s upright
> mathematic glyphs to Baskervald’s upright glyphs)?

the virtual math font mechanism is normally used for type one math fonts 
overlayed over open type text fonts

if you have a proper opentype math font you can better use fallbacks 
(the fallback mechanism for math looks the same as for text but is 
implemented differently)

see type-imp-euler.mkiv for an example


> The second question is this. I have the following Project structure:
>
> Book (root directory)
> Book/book.tex (Project file)
> Book/fonts.tex (environment file)
> Book/Volume1 (subdirectory)
> Book/Volume1/volume1.tex (product file)
> Book/Volume1/Chapter1 (subsubdirectory)
> Book/Volume1/Chapter1/chapter1.tex (component file)
>
> I am forced to put the goodies file baskervald-math.lfg in
> Book/Volume1/Chapter1. When I put it in Book and compiled chapter1.tex
> separately ConTeXt failed to find it. What should I do to have the file
> baskervald-math.lfg in the Book directory and make ConTeXt find it when
> invoked from Book/Volume1/Chapter1.





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


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

* Baskervald ADF Virtual Math Fonts
@ 2014-04-13  6:32 joasyannick
  2014-04-13 15:52 ` Hans Hagen
  0 siblings, 1 reply; 12+ messages in thread
From: joasyannick @ 2014-04-13  6:32 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 3007 bytes --]

Hello,


I am going to solve my problem here:



http://tex.stackexchange.com/questions/123647/from-xelatexs-unicode-math-to-contexts-typescript


with virtual math fonts. I use Baskervald ADF instead of Libertine. I was pleased to see that the following files produced effects:


Extract from environment file fonts.tex: ------------------------------------------------

\startenvironment fonts

    \starttypescript [math] [fonts]
        \loadfontgoodies[baskervald-math]
        \definefontsynonym[MathRoman][file:texgyrepagella-math@baskervald-math]

    \stoptypescript

    \definetypeface [fonts] [mm] [math] [fonts] [default] [features=default]

    \setupbodyfont [fonts, 12pt]

\stopenvironment

-------------------------------------------------------------------------------------------------------


Extract from goodies file baskervald-math.lfg: ------------------------------------------

return {
    name = "baskervald-math",
    version = "1.00",
    comment = "Goodies that give math support for the Baskervald ADF font.",
    author = "author",
    copyright = "copyrigth",
    mathematics = {
        virtuals = {
            ["baskervald-math"] = {
                { name = "texgyrepagella-math.otf", features = "virtualmath", main = true },
                { name = "BaskervaldADFStd.otf", features = "virtualmath", vector = "tex-mr-missing" } ,
                { name = "BaskervaldADFStd-Italic", vector = "tex-it" } ,
                { name = "BaskervaldADFStd-Bold.otf", vector = "tex-bf", skewchar=0x7F } ,
                { name = "BaskervaldADFStd-BoldItalic.otf", vector = "tex-bi" } ,
                { name = "corbel.ttf", vector = "tex-ss", optional=true },
                { name = "UbuntuMono-R.ttf", vector = "tex-tt", optional=true },
            },
        }
    }
}

---------------------------------------------------------------------------------------------------------


Now I have two questions.


The first and most important question is: Where do I define my own vector mapping? Should I modify ConTeXt’s source code in the math-ttv.lua file? How do I define my own baskervald-math.lua and what should I write in it (for example for mapping Pagella’s upright mathematic glyphs to Baskervald’s upright glyphs)?


The second question is this. I have the following Project structure:


Book (root directory)

Book/book.tex (Project file)

Book/fonts.tex (environment file)

Book/Volume1 (subdirectory)

Book/Volume1/volume1.tex (product file)

Book/Volume1/Chapter1 (subsubdirectory)

Book/Volume1/Chapter1/chapter1.tex (component file)


I am forced to put the goodies file baskervald-math.lfg in Book/Volume1/Chapter1. When I put it in Book and compiled chapter1.tex separately ConTeXt failed to find it. What should I do to have the file baskervald-math.lfg in the Book directory and make ConTeXt find it when invoked from Book/Volume1/Chapter1.


Best regards,

Joas.

[-- Attachment #1.2: Type: text/html, Size: 6095 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

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

end of thread, other threads:[~2014-04-18 17:59 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-18 16:36 Baskervald ADF Virtual Math Fonts joasyannick
  -- strict thread matches above, loose matches on Subject: below --
2014-04-18  6:20 joasyannick
2014-04-18  6:38 ` Mikael P. Sundqvist
2014-04-18 14:28   ` Wolfgang Schuster
2014-04-18 17:59     ` Mikael P. Sundqvist
2014-04-18 14:23 ` Wolfgang Schuster
2014-04-17 18:17 joasyannick
2014-04-17 19:05 ` Aditya Mahajan
2014-04-13 19:01 joasyannick
2014-04-13 19:47 ` Wolfgang Schuster
2014-04-13  6:32 joasyannick
2014-04-13 15:52 ` Hans Hagen

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