ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: highlighting chars on a path
Date: Mon, 19 Oct 2009 14:34:07 +0200	[thread overview]
Message-ID: <fe8d59da0910190534h3497f410q58b3a33c1f1bcac7@mail.gmail.com> (raw)
In-Reply-To: <6faad9f00910190510s4bf89cf8rae0b3bbedcd5eee0@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1214 bytes --]

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...) 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?
>
> 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 | ≤ 𝛜

where
(xc,yc) are the coordinate of the circle respect to the page
r >0 is the radius
𝛜 >0 is the tolerance

-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 1652 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

      reply	other threads:[~2009-10-19 12:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-18 19:11 Aurelien Giraud
2009-10-19  8:33 ` luigi scarso
2009-10-19 13:58   ` Willi Egger
2009-10-19 12:10 ` Mojca Miklavec
2009-10-19 12:34   ` luigi scarso [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fe8d59da0910190534h3497f410q58b3a33c1f1bcac7@mail.gmail.com \
    --to=luigi.scarso@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).