ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: tooltips and glossary
Date: Tue, 4 May 2010 21:04:32 +0200	[thread overview]
Message-ID: <20100504190432.GA13155@aides> (raw)
In-Reply-To: <l2v54d7f5601005040632qf50952dcg55d4473e8d197821@mail.gmail.com>


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

On 2010-05-04 <08:32:36>, Michael Saunders wrote:
> > (Preliminary remark to M.S.: please, please, configure your MUA to
> > correctly reply to the current thread!)
> 
> (What's wrong with my subject line?  I'm merely hitting "reply" in gmail.)
Strange, judging from my inbox some of your replies are indeed threaded
correctly, but others are not because they are missing the “references”
and “in-reply-to” headers. Some inconsistency in the gmail frontend?

> > No, it's plain English. Unfamiliar phrases are just one consequence of a
> > language becoming the world standard. Do you want to flame Italians or
> > French for not adhering to the norms of classical Latin? You don't.
> > There's no point at all in even mentioning somebody's stylistic
> > idiosyncrasies on the internets. Just face it: the world won't adopt
> > English as a global means of communication without interfering with its
> > norms. If you don't understand something why don't you contact the
> > author, his email adress is right there on the first page.
> 
> I don't mind non-native speakers using bad grammar, strange usages, or
<snip: mostly right stuff/>
> Increasingly, I'm wondering whether the problem with Context is just
> bad docs or bad language design (it's hard to control, it looks bad
> most of the time).  I still don't know.  I'm hoping that Idris's book
> will shed light on this.
I agree with you in most points and don't want to discuss this here. My
expectations concerning the context book are high, too, I wonder whether
Idris accepts subscriptions … ?

> Thank you.  I'm not quite sure what to do with these files (the .lua
> file in particular).  Unfortunately, I won't be able to get to them
> until tomorrow.
The lua file should be placed in the same directory as your document.
The tex file contains the wrapper macros for the lua functions in the
preamble. Everything between \starttext and \stoptext is demonstration
of the humble functionality. As this is rather an ad-hoc “solution”,
don't expect much of it. To adapt it to a particular layout you'll have
to manipulate the lua source but that won't be hard. Just tell me when
you're in need of something special. (Expect breakage in footnotes! As
usual, \usegloss has to be made unexpanded to get this to work …)
> 
> > As for the tooltips, unfortunately
> > I don't know how to create them. The functionality would be nice,
> > though, as long as no javascript is involved.
> 
> It's not done with javascript.  As I understand it, the usual way is
> to place an invisible pdf  "forms"-style button over the word you want
> to gloss and then set its "short description" feature.   I think
> context knows how to make such buttons and to set bounding boxes
> around words, so I think it should be possible, no?
As pointed out by Willi, context in fact has tooltips functionality but
they _are_ implemented via js. These gimmicks are unsupported by most pdf
readers (or looking funny in okular, which has some basic js support), so
for now I'm personally opposed to using them. Let's hope “lua sponsor”
Adobe replaces js by lua scripting in pdf eventually.

Philipp

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

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 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:[~2010-05-04 19:04 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-04  9:44 Michael Saunders
2010-05-04 12:28 ` Philipp Gesang
     [not found]   ` <o2i54d7f5601005040628p90c28ea6s47eab9d212acce20@mail.gmail.com>
2010-05-04 13:32     ` Michael Saunders
2010-05-04 19:04       ` Philipp Gesang [this message]
2010-05-04 19:42       ` Corsair
2010-05-04 13:07 ` Willi Egger
2010-05-04 13:34 ` Marius
2010-05-06  9:45 ` Hans Hagen
2010-05-06 10:00   ` Taco Hoekwater
  -- strict thread matches above, loose matches on Subject: below --
2010-05-06 11:20 Michael Saunders
2010-05-06 11:49 ` luigi scarso
2010-05-05  4:36 Michael Saunders
2010-05-05  7:02 ` Philipp Gesang
2010-05-05  7:04   ` Philipp Gesang
2010-05-05  7:04 ` Marius
2010-05-06 10:31 ` luigi scarso
2010-05-03 19:18 Michael Saunders
2010-05-03 19:21 ` Wolfgang Schuster
2010-05-04  1:40 ` Michael Saunders
2010-05-04  8:18   ` Marius
2010-05-05  6:28   ` Taco Hoekwater
2010-05-02 22:51 Michael Saunders
2010-05-03 12:26 ` Wolfgang Schuster
2010-05-03 19:09 ` Wolfgang Schuster

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=20100504190432.GA13155@aides \
    --to=pgesang@ix.urz.uni-heidelberg.de \
    --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).