From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/53550 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: highlighting chars on a path Date: Mon, 19 Oct 2009 14:34:07 +0200 Message-ID: References: <6faad9f00910190510s4bf89cf8rae0b3bbedcd5eee0@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0166475867==" X-Trace: ger.gmane.org 1255955681 7612 80.91.229.12 (19 Oct 2009 12:34:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Oct 2009 12:34:41 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 19 14:34:31 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 1MzrRR-0003Nv-GX for gctc-ntg-context-518@m.gmane.org; Mon, 19 Oct 2009 14:34:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BE125C9A97; Mon, 19 Oct 2009 14:34:24 +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 itnBzaAmz78K; Mon, 19 Oct 2009 14:34:21 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A900FC9A81; Mon, 19 Oct 2009 14:34:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6F5FAC9A81 for ; Mon, 19 Oct 2009 14:34:20 +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 M4Ut3ItWTA5S for ; Mon, 19 Oct 2009 14:34:08 +0200 (CEST) Original-Received: from mail-fx0-f221.google.com (mail-fx0-f221.google.com [209.85.220.221]) by balder.ntg.nl (Postfix) with ESMTP id 18DD7C9A63 for ; Mon, 19 Oct 2009 14:34:07 +0200 (CEST) Original-Received: by fxm21 with SMTP id 21so4931980fxm.9 for ; Mon, 19 Oct 2009 05:34:07 -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=X2MUfEUAmyfDNTaPDzK2IUM008Z7sFbES2t04SwpSJE=; b=PxpA4WESBODc8y0tVaqhu03c21P/JWwkSHKGi3zGZb1/C8mOa3Q/8Ojfv1gpCxAPCR JxsduUtB3dpnpNM0d4loU9R+0Gr6M/TQz85nOMprcsPq+0UB6OcxezgAqitCPkLzW0Me FSHvBL4SdjZj6x7oSVqo4WolFKjpVcKWS8HY8= 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=KtZsWkP7MazFo+t98FMTJz8O7rEWPUR/X3yZZeQRx9ckGBgAdcqMXeWpsFu7IZa9CP 8CL5Bks2MIg5qRl0L86NokOFI9uBAIEj0ZE3RHZP0qSszH+kos3FiUpXTgWlyJBH7i55 elvT7Txxk7tw4Gpyj6+qQQKqHJAcduf0B07qY= Original-Received: by 10.204.155.79 with SMTP id r15mr5017022bkw.142.1255955647340; Mon, 19 Oct 2009 05:34:07 -0700 (PDT) In-Reply-To: <6faad9f00910190510s4bf89cf8rae0b3bbedcd5eee0@mail.gmail.com> 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:53550 Archived-At: --===============0166475867== Content-Type: multipart/alternative; boundary=0015175d07d236a046047648f69d --0015175d07d236a046047648f69d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Oct 19, 2009 at 2:10 PM, Mojca Miklavec < mojca.miklavec.lists@gmail.com> wrote: > 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...) an= y > > character on a page which sits on a chosen path. I would like to be abl= e > 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 circl= e > > become visible via these characters. Is it something I could do with > > ConTeXt? > > If I remember well, there are in pdftex some primitives about (x,y) positions of an object in a page. Maybe one can use these primitives to dissect a vbox and analyze its nodelist to mark the glyph node that have x y such that | (x-xc)^2 + (y-yc)^2 - r | =E2=89=A4 =F0=9D=9B=9C where (xc,yc) are the coordinate of the circle respect to the page r >0 is the radius =F0=9D=9B=9C >0 is the tolerance --=20 luigi --0015175d07d236a046047648f69d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Mon, Oct 19, 2009 at 2:10 PM, Mojca M= iklavec <mojca.miklavec.lists@gmail.com> wrote:=
On Sun, Oct 18, 2009 at 21:11, Aurelien Giraud wrote:<= br> > Hello,
>
> I am new to ConTeXt and I have looked on the internet for a way to do<= br> > something special. Unfortunately I have not found any solution.
>
> I hope this is the right place for such a question. I apologise otherw= ise.
>
> I would like to highlight (e.g. put in bold, or change the color...) a= ny
> character on a page which sits on a chosen path. I would like to be ab= le to
> position for instance an invisible circle on a page and have all the > characters "in contact" with this circle change color so tha= t the circle
> become visible via these characters. Is it something I could do with > ConTeXt?

If I remember well, there are in pdftex s= ome primitives about (x,y) positions of an object
in a page.
Maybe on= e can use these primitives to dissect a vbox
and analyze its nodelist t= o mark the glyph node that have x y such that

| (x-xc)^2 + (y-yc)^2 - r | =E2=89=A4 =F0=9D=9B=9C

where
(xc,= yc) are the coordinate of the circle respect to the page
r >0 is the = radius
=F0=9D=9B=9C >0 is the tolerance

--
lui= gi

--0015175d07d236a046047648f69d-- --===============0166475867== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0166475867==--