unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: MON KEY <monkey@sandpframing.com>
To: joakim@verona.se
Cc: emacs-devel@gnu.org
Subject: Re: Drawing in images?
Date: Fri, 28 Aug 2009 12:22:17 -0400	[thread overview]
Message-ID: <d2afcfda0908280922u3ad98f56o236eb09437214d5@mail.gmail.com> (raw)
In-Reply-To: <m3fxbd9ixe.fsf@verona.se>

Joakim,

On Thu, Aug 27, 2009 at 3:05 PM, <joakim@verona.se> wrote:
>
> Maybe so, but how does one place Emacs glyphs on pixel coordinates then?
>

Presumably the same way one places an SVG.

>
> One aproach doesnt exclude the other however.
>
Which mutual exclusion are you dereferencing?
UZBL /<-> Xxidgets
or
SVG /<-> text-glyph-based

>
> For my current use-case, interactively defining areas in an image, using
> text would be fine, even though I'm having trouble seeing how one would
> achieve pixel precision that way.
>

Most likely one can't it would have to be ``good enough''.

That said, I'm having trouble understanding how one can achieve
reasonable pixel prec. when placing an SVG non-interactively. I don't
see where this will be better than ``good-enough''.

If the precision of the SVG is to rely on the use of mouse-events in
Emacs to record Emacs posn(s) x,y and subsequent mapping of these
posn(s) to corresponding pixel positions in the source image and SVG
`overlay' there _will_ be multiple user overshoots and mis-placements.
It is difficult enough to set a dynamically scalable box with a GUI
let alone reliably setting posn(s) without the aid of an interactively
scalable box.

This is exactly the issue with setting a slice in docview (see
Stefan's comments above). In the absence of visual feedback from Emacs
it is _very_ difficult to be sure which box is getting set and by the
time you find out if you did it correctly Emacs is already well into
the process of regenerating the image cache.

What I am suggesting is that barring an entirely embedded external GUI
within an Emacs window (which is your use case) non-interactive SVG
layering will in many instances none the less remain less precise than
an inexact but interactive placement of a text base rectangle. Where
this is the case, and where an artist.el style text based rectangle
would otherwise suffice it seems more in keeping with Emacs WODT to
use a text based approach of an existing package and would allow
easier integration with emacs procedures which are not as-yet
Xembed/UZBL aware.

> Joakim Verona

s_P




  reply	other threads:[~2009-08-28 16:22 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-27  0:52 Drawing in images? MON KEY
2009-08-27  6:31 ` joakim
2009-08-27 18:07   ` MON KEY
2009-08-27 19:05     ` joakim
2009-08-28 16:22       ` MON KEY [this message]
2009-08-27 22:21   ` Chong Yidong
2009-08-27 23:51     ` joakim
2009-09-16 19:04     ` joakim
2009-09-17 19:13       ` MON KEY
2009-09-17 21:04         ` Lennart Borgman
2009-09-17 21:08           ` Lennart Borgman
2009-09-17 23:00           ` Jason Rumney
2009-09-17 23:09             ` Lennart Borgman
2009-09-17 21:46         ` joakim
2009-09-17 22:09           ` Lennart Borgman
2009-09-17 22:46             ` Juanma Barranquero
2009-09-17 22:56               ` Lennart Borgman
2009-09-17 22:56         ` Jason Rumney
2009-09-17 22:59           ` Lennart Borgman
  -- strict thread matches above, loose matches on Subject: below --
2009-09-29  0:31 MON KEY
2009-09-29  5:29 ` martin rudalics
2009-09-29 20:25   ` MON KEY
2009-08-25 22:57 joakim
2009-08-26  1:07 ` Stefan Monnier
2009-08-26  5:58   ` joakim
2009-08-26 14:45     ` Stefan Monnier
2009-08-26  9:05   ` Jason Rumney
2009-08-28  0:49 ` YAMAMOTO Mitsuharu

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=d2afcfda0908280922u3ad98f56o236eb09437214d5@mail.gmail.com \
    --to=monkey@sandpframing.com \
    --cc=emacs-devel@gnu.org \
    --cc=joakim@verona.se \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).