From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66204 Path: news.gmane.org!not-for-mail From: Florian Wobbe Newsgroups: gmane.comp.tex.context Subject: Re: MnSymbol in ConText Date: Sun, 20 Feb 2011 20:30:53 +0100 Message-ID: References: <003f01cbcfcb$a9e48e70$fdadab50$@gmx.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1298230302 12961 80.91.229.12 (20 Feb 2011 19:31:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Feb 2011 19:31:42 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Feb 20 20:31:37 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PrF0L-0000M6-Ia for gctc-ntg-context-518@m.gmane.org; Sun, 20 Feb 2011 20:31:37 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 12F63CAA39; Sun, 20 Feb 2011 20:31:37 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id YfRcm1Eb4BRA; Sun, 20 Feb 2011 20:31:23 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BCA29CAA32; Sun, 20 Feb 2011 20:31:23 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 336BFCAA32 for ; Sun, 20 Feb 2011 20:31:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id EfsyINIOVS89 for ; Sun, 20 Feb 2011 20:31:01 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 45564CAA16 for ; Sun, 20 Feb 2011 20:31:01 +0100 (CET) Original-Received: from mails3.awi.de (mails3.awi.de [134.1.2.14]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p1KJV0Vp014357 for ; Sun, 20 Feb 2011 20:31:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mails3.awi.de (Postfix) with ESMTP id 90A2110F579 for ; Sun, 20 Feb 2011 20:30:59 +0100 (MET) X-Virus-Scanned: amavisd-new at awi.de Original-Received: from localhost ([127.0.0.1]) by localhost (mails3.awi.de [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id cSdlPWBI2H4r for ; Sun, 20 Feb 2011 20:30:54 +0100 (MET) Original-Received: from msg.awi.de (msg.awi.de [134.1.3.16]) by mails3.awi.de (Postfix) with ESMTP id 49B6210F573 for ; Sun, 20 Feb 2011 20:30:54 +0100 (MET) Original-Received: from [192.168.22.12] ([unknown] [77.188.169.235]) by msg.awi.de (Sun Java(tm) System Messaging Server 7u3-12.01 64bit (built Oct 15 2009)) with ESMTPSA id <0LGX0050BKVHZ170@msg.awi.de> for ntg-context@ntg.nl; Sun, 20 Feb 2011 20:30:54 +0100 (MET) In-reply-to: X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=134.1.2.14; country=DE; region=03; city=Bremerhaven; latitude=53.5500; longitude=8.5833; http://maps.google.com/maps?q=53.5500,8.5833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rEajv0ro - 14db640cf870 - 20110220 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:66204 Archived-At: >> 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________