Hello List, hello Wolfgang, I was google-ing how to use MnSymbol with context an (only) found an old mail from late '09 where you said you'd have to figure out how to use the greek letters from the text font. Any progress on that? Is there any way to use MnSymbol in context? If not, does someone know a decent alternative? And why does it work in Latex? Please tell me it's possible, I don't want to go back to Latex, context is much cooler. Greetings Christian
On Sat, Feb 19, 2011 at 01:26, C.
Is there any way to use MnSymbol in context?
It is, but somebody needs to write support for it. Both for MKII and MKIV.
And why does it work in Latex?
Simply because the author created fonts and LaTeX support files at the same time, but he doesn't know ConTeXt well enough.
Please tell me it’s possible
It should be, but not yet out of the box. Somebody needs to take a look and write a few support files. Mojca
Is there any way to use MnSymbol in context?
It is, but somebody needs to write support for it. Both for MKII and MKIV.
The problem is, that luatex refuses to load any of the MnSymbol*.otf font files available from CTAN with an error message. I don't know what is broken with the fonts. Should you just be interested in the symbols you can fix the otf font with fontforge by reencoding and saving it to a unicode font again. Glyphs with undefined unicode value will be assigned to unicode slots starting from 0xF0000. Then you can do this: \definefontsynonym [MnSymbol12U] [name:MnSymbol12Uni] \starttext \definedfont [MnSymbol12U at 16pt] ABC XYZ \char"25B7 \char"2660 \char"2720 \char"10391 \char"10393 \char"10335 \stoptext To print a table with glyphs and unicode values do: \usemodule[fnt-10] \starttext \ShowCompleteFont{name:MnSymbol12Uni}{11pt}{1} % MnSymbol12Uni.otf \stoptext I used the following fontforge script to re-generate the font: #begin fontforge script #usage: fontforge -script fontBMP2Full.ff MnSymbol12.otf Open($1); F1 = $fontname+"Uni" # fontname F2 = "" # familyname F3 = $fullname+"Uni" # fullname F4 = "" # weight F5 = "" # copyright F6 = "" # fontversion #SetFontNames(fontname[,family[,fullname[,weight[,copyright-notice[,fontversion]]]]]) #Sets various postscript names associated with a font. If a name is omitted (or is the #empty string) it will not be changed. SetFontNames(F1,F2,F3,F4,F5,F6) Reencode("unicode"); Generate($fontname+".otf"); Quit(0); #end fontforge script Florian
On Sun, Feb 20, 2011 at 08:30:53PM +0100, Florian Wobbe wrote:
Is there any way to use MnSymbol in context?
It is, but somebody needs to write support for it. Both for MKII and MKIV.
The problem is, that luatex refuses to load any of the MnSymbol*.otf font files available from CTAN with an error message. I don't know what is broken with the fonts.
Reporting the errors would help finding what is wrong. Regards, Khaled -- Khaled Hosny Egyptian
-- Florian Wobbe Alfred Wegener Institute for Polar and Marine Research Division of Geosciences, Section of Geophysics Postfach 120161 27515 Bremerhaven On Feb 20, 2011, at 20:38 , Khaled Hosny wrote:
On Sun, Feb 20, 2011 at 08:30:53PM +0100, Florian Wobbe wrote:
Is there any way to use MnSymbol in context?
It is, but somebody needs to write support for it. Both for MKII and MKIV.
The problem is, that luatex refuses to load any of the MnSymbol*.otf font files available from CTAN with an error message. I don't know what is broken with the fonts.
Reporting the errors would help finding what is wrong.
Hi Khaled,
luatax says:
)
On 02/20/2011 09:01 PM, Florian Wobbe wrote:
-- Florian Wobbe Alfred Wegener Institute for Polar and Marine Research Division of Geosciences, Section of Geophysics Postfach 120161 27515 Bremerhaven
On Feb 20, 2011, at 20:38 , Khaled Hosny wrote:
On Sun, Feb 20, 2011 at 08:30:53PM +0100, Florian Wobbe wrote:
Is there any way to use MnSymbol in context?
It is, but somebody needs to write support for it. Both for MKII and MKIV.
The problem is, that luatex refuses to load any of the MnSymbol*.otf font files available from CTAN with an error message. I don't know what is broken with the fonts.
Reporting the errors would help finding what is wrong.
Hi Khaled,
luatax says: )
It is the CFF parser in the backend that gives up on the font. I have no idea why that is, but a (re-)"generate fonts" in fontforge fixed it for me. Best wishes, Taco
Ok, that explains why context is literally ignoring the font. But will the described procedure allow the usage like in the attached example? It's done with latex and the minion package. Looks beautiful to me (except maybe some small scaling issues with the big '(' ) Sorry for the crappy screenshot, the 64k-Limit blocked attaching the one page >200k PDF. As a side note: Is mathdesign available for context? I remember reading about it somewhere, but the third-party module site has nothing listed. Also: the 64K-Limit is a pain in the ass. Had to try 4 times to get it out :(
Am 23.02.2011 um 11:59 schrieb C.:
Ok, that explains why context is literally ignoring the font. But will the described procedure allow the usage like in the attached example? It's done with latex and the minion package. Looks beautiful to me (except maybe some small scaling issues with the big '(' ) Sorry for the crappy screenshot, the 64k-Limit blocked attaching the one page >200k PDF.
You can use Dropbox are any other service to provide large files.
As a side note: Is mathdesign available for context? I remember reading about it somewhere, but the third-party module site has nothing listed.
I made a package [1] with all necessary font files a while ago but it’s Mojcas job to include them in the minimals. The typescripts are already part of context. [1] http://d.pr/CC5aF Wolfgang
-----Ursprüngliche Nachricht----- Von: Wolfgang Schuster [mailto:schuster.wolfgang@googlemail.com] Gesendet: Mittwoch, 23. Februar 2011 12:38 An: mailing list for ConTeXt users Cc: Mojca Miklavec Betreff: Re: [NTG-context] MnSymbol in ConText
Am 23.02.2011 um 11:59 schrieb C.:
Ok, that explains why context is literally ignoring the font. But will the described procedure allow the usage like in the attached example? It's done with latex and the minion package. Looks beautiful to me (except maybe some small scaling issues with the big '(' ) Sorry for the crappy screenshot, the 64k-Limit blocked attaching the one page 200k PDF.
You can use Dropbox are any other service to provide large files.
True, that's a workaround. But those who read the archive may find expired links.
As a side note: Is mathdesign available for context? I remember reading about it somewhere, but the third-party module site has nothing listed.
I made a package [1] with all necessary font files a while ago but its Mojcas job to include them in the minimals. The typescripts are already part of context.
Thank you very much. I installed the URW-Garamond manually from CTAN and now it's working. Some minor troubles like too much italic (brackets and numbers in math mode are italic O_o) but it's a start.
On Wed, Feb 23, 2011 at 12:37, Wolfgang Schuster wrote:
As a side note: Is mathdesign available for context? I remember reading about it somewhere, but the third-party module site has nothing listed.
I made a package [1] with all necessary font files a while ago but it’s Mojcas job to include them in the minimals. The typescripts are already part of context.
I still have complete rewrite of minimals in my as-soon-as-i-can-take-some-time todo list. The idea back then was to use the same switch for mathdesign as for modules. The fonts are already here: http://minimals.contextgarden.net/current/fonts/extra/ but I sent (and probably also already lost) a patch to Hans to allow adding extra fonts. Three lines have to be added to mtx-update.lua to fetch fonts from the extra tree. (And something else to fetch testing files inside "context" directory.) (An alternative is simply to take all the fonts into default distribution, but that might start growing "to infinity".) Mojca
Hi C., hi Taco, I followed Florians path, re-"generated font" MnSymbol now is found. But I am wondering, too: how can MnSymbol be made available as a true context-math- font, eg. to produce an example like C. posted it (with latex and minion-package)? Steffen Am 23.02.2011 um 11:59 schrieb C.:
Ok, that explains why context is literally ignoring the font. But will the described procedure allow the usage like in the attached example? It's done with latex and the minion package. Looks beautiful to me (except maybe some small scaling issues with the big '(' ) Sorry for the crappy screenshot, the 64k-Limit blocked attaching the one page >200k PDF.
On 5-3-2011 2:58, Steffen Wolfrum wrote:
Hi C., hi Taco,
I followed Florians path, re-"generated font" MnSymbol now is found.
But I am wondering, too: how can MnSymbol be made available as a true context-math- font, eg. to produce an example like C. posted it (with latex and minion-package)?
sure, if you cook up the definition for the virtualization (if the encoding is default tex it's no big deal, otherwise some extra tables are needed) ... 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 -----------------------------------------------------------------
sure, if you cook up the definition for the virtualization (if the encoding is default tex it's no big deal, otherwise some extra tables are needed) ...
Since I don't even know how to check the encoding of a font - let alone creating/changing it - I must pass on this one. Can someone with more background on the subject have a look? I'd love to use MnSymbol with Context.
Am 07.03.2011 um 17:31 schrieb C.:
sure, if you cook up the definition for the virtualization (if the encoding is default tex it's no big deal, otherwise some extra tables are needed) ...
Since I don't even know how to check the encoding of a font - let alone creating/changing it - I must pass on this one. Can someone with more background on the subject have a look?
Same for me ... but it would be nice to learn these things! Can someone explain what is needed and how to start? Steffen
On Mon, 7 Mar 2011, Steffen Wolfrum wrote:
Am 07.03.2011 um 17:31 schrieb C.:
sure, if you cook up the definition for the virtualization (if the encoding is default tex it's no big deal, otherwise some extra tables are needed) ...
Since I don't even know how to check the encoding of a font - let alone creating/changing it - I must pass on this one. Can someone with more background on the subject have a look?
Same for me ... but it would be nice to learn these things! Can someone explain what is needed and how to start?
I must confess that I no longer understand how the math virtual fonts work are implemented. I understood how things worked a year ago (see the tugboat article for details), but I have not been able to keep up with all the internal rearrangements. Aditya
On 7-3-2011 7:32, Aditya Mahajan wrote:
On Mon, 7 Mar 2011, Steffen Wolfrum wrote:
Am 07.03.2011 um 17:31 schrieb C.:
sure, if you cook up the definition for the virtualization (if the encoding is default tex it's no big deal, otherwise some extra tables are needed) ...
Since I don't even know how to check the encoding of a font - let alone creating/changing it - I must pass on this one. Can someone with more background on the subject have a look?
Same for me ... but it would be nice to learn these things! Can someone explain what is needed and how to start?
I must confess that I no longer understand how the math virtual fonts work are implemented. I understood how things worked a year ago (see the tugboat article for details), but I have not been able to keep up with all the internal rearrangements.
Don't worry, it didn't really change that much. The most important change is that font specific definitions moved to the lfg files (only the default vectors are preloaded). For a non standard font lucida can be taken as example. 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 -----------------------------------------------------------------
On Tue, 8 Mar 2011, Hans Hagen wrote:
On 7-3-2011 7:32, Aditya Mahajan wrote:
On Mon, 7 Mar 2011, Steffen Wolfrum wrote:
Am 07.03.2011 um 17:31 schrieb C.:
sure, if you cook up the definition for the virtualization (if the encoding is default tex it's no big deal, otherwise some extra tables are needed) ...
Since I don't even know how to check the encoding of a font - let alone creating/changing it - I must pass on this one. Can someone with more background on the subject have a look?
Same for me ... but it would be nice to learn these things! Can someone explain what is needed and how to start?
I must confess that I no longer understand how the math virtual fonts work are implemented. I understood how things worked a year ago (see the tugboat article for details), but I have not been able to keep up with all the internal rearrangements.
Don't worry, it didn't really change that much. The most important change is that font specific definitions moved to the lfg files
Ah... that is why I could not search for them :) Aditya
Am 05.03.2011 um 22:41 schrieb Hans Hagen:
On 5-3-2011 2:58, Steffen Wolfrum wrote:
Hi C., hi Taco,
But I am wondering, too: how can MnSymbol be made available as a true context-math- font, eg. to produce an example like C. posted it (with latex and minion-package)?
sure, if you cook up the definition for the virtualization (if the encoding is default tex it's no big deal, otherwise some extra tables are needed) ...
the symbols aren’t the problem, what’s difficult is greek because the greek letters are taken from minion pro (the text font) and not from a special math font and this is where it gets tricky Wolfgang
sure, if you cook up the definition for the virtualization (if the encoding is default tex it's no big deal, otherwise some extra tables are needed) ...
the symbols aren’t the problem, what’s difficult is greek because the greek letters are taken from minion pro (the text font) and not from a special math font and this is where it gets tricky
Why not just merge Minion with MnSymbol and create a new font if virtualisation is tricky? Of cause you cannot redistribute the new font but you could distribute a fontforge script which does the merge. This way you could create an OpenType Math font with greek already in the right slots. Maybe also merge with Cronos to get sans math into the font. Florian
Seems like a good idea, but it's harder than it sounds. Here is what I tried: -Load MnSymbol12 in FontForge -Run the script (by Florian, see email from 20. Feb 2011) -Merge in Minion Pro (all of it :D ) -Generate OTF ...but the font (I also renamed it to be sure) does not show up in the output. Instead LM-Math is used. If someone succeeds, please let me know how you did it.
-----Ursprüngliche Nachricht----- Von: Florian Wobbe [mailto:Florian.Wobbe@awi.de] Gesendet: Montag, 7. März 2011 19:41 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] MnSymbol in ConText
sure, if you cook up the definition for the virtualization (if the encoding is default tex it's no big deal, otherwise some extra tables are needed) ...
the symbols arent the problem, whats difficult is greek because the greek letters are taken from minion pro (the text font) and not from a special math font and this is where it gets tricky
Why not just merge Minion with MnSymbol and create a new font if virtualisation is tricky? Of cause you cannot redistribute the new font but you could distribute a fontforge script which does the merge. This way you could create an OpenType Math font with greek already in the right slots. Maybe also merge with Cronos to get sans math into the font.
Florian
participants (10)
-
Aditya Mahajan
-
Arthur Reutenauer
-
C.
-
Florian Wobbe
-
Hans Hagen
-
Khaled Hosny
-
Mojca Miklavec
-
Steffen Wolfrum
-
Taco Hoekwater
-
Wolfgang Schuster