From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/53548 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: highlighting chars on a path Date: Mon, 19 Oct 2009 14:10:47 +0200 Message-ID: <6faad9f00910190510s4bf89cf8rae0b3bbedcd5eee0@mail.gmail.com> References: 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: ger.gmane.org 1255954275 3009 80.91.229.12 (19 Oct 2009 12:11:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Oct 2009 12:11:15 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 19 14:11:04 2009 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.50) id 1Mzr4n-0001en-Bx for gctc-ntg-context-518@m.gmane.org; Mon, 19 Oct 2009 14:11:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 02982C9AAA; Mon, 19 Oct 2009 14:10:58 +0200 (CEST) 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 wEc1t6yOkbKV; Mon, 19 Oct 2009 14:10:55 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 08989C9A97; Mon, 19 Oct 2009 14:10:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 24325C9A97 for ; Mon, 19 Oct 2009 14:10:51 +0200 (CEST) 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 HgJBXC7h3U6C for ; Mon, 19 Oct 2009 14:10:48 +0200 (CEST) Original-Received: from mail-ew0-f221.google.com (mail-ew0-f221.google.com [209.85.219.221]) by balder.ntg.nl (Postfix) with ESMTP id 593EAC9A41 for ; Mon, 19 Oct 2009 14:10:48 +0200 (CEST) Original-Received: by ewy21 with SMTP id 21so2725616ewy.8 for ; Mon, 19 Oct 2009 05:10:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=X20EytD7FyjHBEVWTAmXXCXVq3AJvaJKqblGybWWRY4=; b=lwbd4R7pCm3wnbKYkYnuoB7Br7TGl/Ap5eYsJJrdyFmlSmaoZmpiPgseStwSOnWsHd OlutTGrlKhl5uhN3JAmGZ1qFLhmAIsGt8SAp88Eg5dKItvD+40EhHISpSOc0id83kNFD l52HoB/6jKBlRdVomVFnr+YlYUPPdMFvzwLSk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=uf2r4QeyWnZ0TZmu8B4w+HwH4lMmeZ50R9QYxsBZp1pRr/HAdVhMjbxTzhr74n81+j WO8sgR46dKv43rAEc9wjzecKsGi+9t01qBbqx6+IWCtwgNEoQVsgK4XaxzOM0lUVL7DG 470ysB1DeJvsz7eu6Lk4tQrzpm1EMskzyOscY= Original-Received: by 10.216.89.11 with SMTP id b11mr1626972wef.171.1255954247933; Mon, 19 Oct 2009 05:10:47 -0700 (PDT) In-Reply-To: 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:53548 Archived-At: On Sun, Oct 18, 2009 at 21:11, Aurelien Giraud wrote: > Hello, > > I am new to ConTeXt and I have looked on the internet for a way to do > something special. Unfortunately I have not found any solution. > > I hope this is the right place for such a question. I apologise otherwise. > > I would like to highlight (e.g. put in bold, or change the color...) any > character on a page which sits on a chosen path. I would like to be able to > position for instance an invisible circle on a page and have all the > characters "in contact" with this circle change color so that the circle > become visible via these characters. Is it something I could do with > ConTeXt? This won't be of any help to you ... ... but I remember seeing one of early luatex showcases with characters colored in the shape of circular wave (smoothly varying color - really impressive), but I have no idea if that has ever been published anywhere. (I'm writing this because I'm also interested to see that masterpiece again.) Mojca I don't know how to do it, but I would bet that it is possible to misuse luatex for it (before printing out a character you check its position on page, do some basic math and output the desired color). It's usually done by overwriting some lua function. Just a tiny warning if you do get a solution from someone: LuaTeX might not be absolutely stable in this respect yet, so you need to take in account some slight possibility that the low level interface undergoes some changes in future. In that case you might need to adapt your code after a while. You should not worry about it now, it's just good to keep it in mind. ___________________________________________________________________________________ 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 ___________________________________________________________________________________