From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48003 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: overarc Date: Thu, 5 Mar 2009 15:09:54 +0100 Message-ID: <9F69970E-ADAF-4D34-9B98-70D31E093CCA@uni-bonn.de> References: <78E26B6C-7DC5-4516-BADD-EE3EF39F538A@suddenlink.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1236262271 6101 80.91.229.12 (5 Mar 2009 14:11:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Mar 2009 14:11:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 05 15:12:27 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LfEJ8-0000ZS-HF for gctc-ntg-context-518@m.gmane.org; Thu, 05 Mar 2009 15:12:18 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 062BB1FBC1; Thu, 5 Mar 2009 15:10:55 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11043-02-4; Thu, 5 Mar 2009 15:10:14 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A10D01FB8F; Thu, 5 Mar 2009 15:10:14 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A87F11FB64 for ; Thu, 5 Mar 2009 15:10:12 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09017-04-5 for ; Thu, 5 Mar 2009 15:10:00 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by ronja.ntg.nl (Postfix) with ESMTP id D87F11FB8F for ; Thu, 5 Mar 2009 15:10:00 +0100 (CET) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by filter3-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n25EA0Qj019126 for ; Thu, 5 Mar 2009 15:10:00 +0100 Original-Received: from [87.178.75.254] (account tschmit1@uni-bonn.de HELO [192.168.0.2]) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.2.12) with ESMTPA id 12915402 for ntg-context@ntg.nl; Thu, 05 Mar 2009 15:09:59 +0100 In-Reply-To: X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=131.220.15.113; country=DE; region=07; city=Bonn; latitude=50.7333; longitude=7.1000; http://maps.google.com/maps?q=50.7333,7.1000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 189128325 - 47033a02468f X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:48003 Archived-At: On Mar 5, 2009, at 2:39 PM, Aditya Mahajan wrote: > Currently, there is no such feature. Are you looking at the > functionality of the arcs package of latex? If so, it will be easy > to add it to ConTeXt. The main trouble is that the glyph for > \overarc is missing from the fonts. Arcs.sty takes the glyphs for > \frown and \smile, and scales them appropriately. An ugly solution, > but it looks ok if you are just placing it over one or two letters. I had a similar wish a while ago and hacked something with a MPpositiongraphic. It is certainly not very elegant, but IMHO better than the LaTeX code you posted (scaling a glyph like that will look ugly when you want to span more than just two letters). Wolfgang Schuster supplied the neat trick with the counter. It is quite fast when run with mkiv, but I suspect would be slow with mkii (and leave quite a few .mp files behind). Maybe this can help: \newcount\arcnumber \startMPpositiongraphic{placeoverarc} StartPage ; begingroup ; initialize_box(\MPpos{\MPvar{self}}) ; numeric c ; c = ExHeight/6 ; z1 = llxy ; z2 = lrxy ; z7 = 1/2[z1,z2] ; z4 = ((x1 + 2*c), (y1 + 2*c)) ; z5 = (x7, (y7 + 4*c)) ; z6 = ((x2 - 2*c), (y2 + 2*c)) ; path syn ; syn := z4 .. z5 .. z6 ; pickup pencircle scaled (0.75*c) ; draw syn ; anchor_box(\MPanchor{\MPvar{self}}) ; endgroup ; save c ; StopPage ; \stopMPpositiongraphic% \define[1]\overarc {\advance\arcnumber\plusone% \setMPpositiongraphic{POS-\number\arcnumber}{placeoverarc}% \hpos{POS-\number\arcnumber}{#1}} Maybe that can be the starting point for some better code... Thomas ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________