From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15668 Path: main.gmane.org!not-for-mail From: olivier Turlier Newsgroups: gmane.comp.tex.context Subject: accents in "funny frame" Date: Wed, 07 Jul 2004 15:31:40 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <40EBFB3C.1050704@wanadoo.fr> 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 1089207301 22950 80.91.224.253 (7 Jul 2004 13:35:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Jul 2004 13:35:01 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Wed Jul 07 15:34:48 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 1BiCZT-0000We-00 for ; Wed, 07 Jul 2004 15:34:47 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 89CC410B10; Wed, 7 Jul 2004 15:34:39 +0200 (MEST) Original-Received: from mwinf0109.wanadoo.fr (smtp1.wanadoo.fr [193.252.22.30]) by ref.ntg.nl (Postfix) with ESMTP id D9C8510B03 for ; Wed, 7 Jul 2004 15:31:42 +0200 (MEST) Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf0109.wanadoo.fr (SMTP Server) with SMTP id 9B1B618001D9 for ; Wed, 7 Jul 2004 15:31:42 +0200 (CEST) Original-Received: from wanadoo.fr (ca-marseille-21-71.w80-8.abo.wanadoo.fr [80.8.148.71]) by mwinf0109.wanadoo.fr (SMTP Server) with ESMTP id 6E90F1800104 for ; Wed, 7 Jul 2004 15:31:41 +0200 (CEST) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: 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:15668 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15668 Hello Contexers, I play with the "funny frame" code given by Hans et al. How put accentuation (french) in the frame title ? I use latest context .iso image (ConTeXt ver. 2004.6.21 fmt: 2004.6.21 int: english mes: english) Below is the source (compiled with : texmfstart texexec.pl --autopdf --pdf funny-french-frame.tex): ---------------------------------------- %funny-french-frame.tex \enableregime[il1] \useencoding[ffr] \mainlanguage[fr] \enableregime[windows] \setupindenting[medium] \usetypescript[palatino][texnansi] \setupbodyfont[palatino,rm,12pt] \setupcolors[state=start] %---------------------------------------------------- funny frame \startMPenvironment \enableregime[il1] % \useencoding[ffr] % \mainlanguage[fr] % not working \enableregime[windows] % \usetypescript[palatino][texnansi] \setupbodyfont[palatino,rm,14pt] \stopMPenvironment % \startuseMPgraphic{FunnyFrame} %--------- white background, blue square frame % 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 \startuseMPgraphic{FunnyFrame} %---------- grey background, red randomized frame picture p ; numeric o ; path a, b ; pair c ; p := textext.rt(\MPstring{FunnyFrame}) ; a := unitsquare xyscaled(OverlayWidth,OverlayHeight) ; o := BodyFontSize ; p := p shifted (2o,OverlayHeight+ypart center p) ; drawoptions (withpen pencircle scaled 1.5pt withcolor .625red) ; b := a randomized (o/2) ; fill b withcolor .95white ; draw b ; %---- color of main text c := center p ; c := b intersectionpoint (c shifted (0,-o)--c shifted(0,o)) ; p := p shifted (c-center p) ; b := (boundingbox p) randomized (o/4) ; fill b withcolor .90white ; draw b ; %----- color of title draw p withcolor blue ; setbounds currentpicture to a ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[FunnyText][frame=off,background=FunnyFrame] \def\StartFrame{\startFunnyText} \def\StopFrame{\stopFunnyText} \def\FrameTitle#1% {\setMPtext{FunnyFrame}{\hbox spread 3em {\ss\bf\hss\strut#1\hss}}} \setMPtext{FunnyFrame}{} %------------------------------------------------------- \setupheadertexts[\currentpage~/~\lastpage] \starttext \FrameTitle{Introduction } \StartFrame On présente tout ce qui a un rapport avec {\it l'origine} du stage \StopFrame \page \FrameTitle{Développement} %---------------------- accent not working \StartFrame On présente tout le {\it déroulement} du stage, par groupe de tâches \StopFrame \page \FrameTitle{Conclusion} \StartFrame \startlines On {\it analyse} le stage point par point -- négatif et positif -- on {\it synthétise} l'ensemble des apports, et on entrevoit le {\it futur} professionnel {\it concrètement} \stoplines \StopFrame \page \stoptext --------------------- Thanks for your answer(s) -- olivier TURLIER