From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15070 Path: main.gmane.org!not-for-mail From: Helmut Schwertner Newsgroups: gmane.comp.tex.context Subject: special characters and \startuseMPgraphic{FunnyFrame} Date: Mon, 03 May 2004 20:40:11 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <4096920B.8070209@gmx.de> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1083609760 30465 80.91.224.253 (3 May 2004 18:42:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 May 2004 18:42:40 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Mon May 03 20:42:27 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BKiOZ-0002o5-00 for ; Mon, 03 May 2004 20:42:27 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id E999C10AE9; Mon, 3 May 2004 20:38:20 +0200 (MEST) Original-Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by ref.ntg.nl (Postfix) with SMTP id 9477C10ACE for ; Mon, 3 May 2004 20:36:34 +0200 (MEST) Original-Received: (qmail 20497 invoked by uid 65534); 3 May 2004 18:40:34 -0000 Original-Received: from p5086BF13.dip.t-dialin.net (EHLO gmx.de) (80.134.191.19) by mail.gmx.net (mp027) with SMTP; 03 May 2004 20:40:34 +0200 X-Authenticated: #1905432 User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: de-de, de-at, de, en-us, en Original-To: ntg-context@ntg.nl Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:15070 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15070 Hello, the following example does not work if the text in the \FrameTitle{Blockflötenspielen} contains special characters like öäßé etc. Has someone a solution for this problem? Thanks a lot, Helmut *********************************************************** \mainlanguage[de] \language[de] \enableregime[windows] \setuppapersize[a4][a4] \setupoutput[pdftex] \pdfcompresslevel=0 \runMPgraphicstrue \setupcolors[state=start] \startuseMPgraphic{FunnyFrame} picture p; numeric w, h, o; p:=textext.rt(\MPstring{FunnyFrame}); w:=OverlayWidth; h:=OverlayHeight; o:=BodyFontSize; p:=p shifted (2o,h-ypart center p); draw p; drawoptions (withpen pencircle scaled 1pt withcolor .625blue); draw (2o,h)--(0,h)--(0,0)--(w,0)--(w,h)--(xpart urcorner p, h) ; draw boundingbox p; setbounds currentpicture to unitsquare xyscaled (w,h); \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[FunnyText][frame=off,background=FunnyFrame] \def\StartFrame{\startFunnyText} \def\StopFrame{\stopFunnyText} \def\FrameTitle#1% {\setMPtext{FunnyFrame}{\hbox spread 2em {\hss\strut#1\hss}}} \setMPtext{FunnyFrame}{} \starttext \FrameTitle{Blockflötenspielen} \StartFrame These: Blockflötenspielen macht Spaß! \StopFrame \stoptext