From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58521 Path: news.gmane.org!not-for-mail From: Philipp Gesang Newsgroups: gmane.comp.tex.context Subject: Re: tooltips and glossary Date: Wed, 5 May 2010 09:02:18 +0200 Message-ID: <20100505070218.GA21609@aides> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0567233843==" X-Trace: dough.gmane.org 1273043004 12359 80.91.229.12 (5 May 2010 07:03:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 May 2010 07:03:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 05 09:03:20 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1O9Ydb-0006N3-Os for gctc-ntg-context-518@m.gmane.org; Wed, 05 May 2010 09:03:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 50138C9BA1; Wed, 5 May 2010 09:03:19 +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 Zbah5+8-xmRi; Wed, 5 May 2010 09:03:15 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ABC25C9B8D; Wed, 5 May 2010 09:03:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E2249C9B8D for ; Wed, 5 May 2010 09:03:13 +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 1Vcc9pC-LoSX for ; Wed, 5 May 2010 09:03:11 +0200 (CEST) Original-Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by balder.ntg.nl (Postfix) with ESMTP id 40CA6C9AF9 for ; Wed, 5 May 2010 09:03:10 +0200 (CEST) Original-Received: from ix.urz.uni-heidelberg.de (cyrus-portal.urz.uni-heidelberg.de [129.206.100.176]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id o4572uwX021764 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 5 May 2010 09:02:57 +0200 Original-Received: from extmail.urz.uni-heidelberg.de (extmail.urz.uni-heidelberg.de [129.206.100.140]) by ix.urz.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id o45736ck023288 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 5 May 2010 09:03:06 +0200 Original-Received: from localhost (mnhm-4d010ce9.pool.mediaWays.net [77.1.12.233]) (authenticated bits=0) by extmail.urz.uni-heidelberg.de (8.13.4/8.13.1) with ESMTP id o4572wL8003500 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Wed, 5 May 2010 09:02:59 +0200 In-Reply-To: X-Operating-System: Linux aides 2.6.34-rc3 User-Agent: Mutt/1.5.20 (2010-04-22) 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:58521 Archived-At: --===============0567233843== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GvXjxJ+pjyke8COw" Content-Disposition: inline --GvXjxJ+pjyke8COw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello again, On 2010-05-04 <23:36:17>, Michael Saunders wrote: > III. Philipp Gesang's lua-based solution connects headwords to > entries just as \definesynonyms[gentry][gentries][\infull][\inshort] > does, and it produces something that looks like a glossary, but the > entries have no link back to the text. Also, I don't see the point of > the \usegloss{word} command unless it references the substantive > discussion(s) of the word. I think that is what his > "\usegloss[exp]{word}" is for, but then there should be a reference to > it in the entry. Something like: > {\bd headword}---entry text, p.\at[g:headword] Here you are! Now the link back to the main explanation (yes, that's what \usegloss[#1]#2 with a nonempty first argument does) is carried by a page reference at the end of the entry. Let me know if you want me to change the formatting. > There probably is some advantage in using the lua script for this, but > I don't know what it is. No advantage other than time saving =E2=80=A6 =20 > About tooltips: > \tooltip surprised me, and I was impressed that it appears to typeset > the tooltip text with Context, but there are some problems with it: >=20 > 1. It's stretched horizontally. > 2. The active area begins at the baseline and stretches about 1 ex > _under_ the word. > 3. It appears without a border and under the cursor. >=20 > I have seen tooltips in pdf files before, and they looked better than > this. I suspect the reason is that, as you say, \tooltip uses > Javascript, and the ones I saw use a different mechanism. I dug > around and found this reference which describes how it's done with > form fields and invisible buttons: > http://gilbertconsulting.com/pdf/Build_tool_tips_in_InDesign.pdf I had a look at that, he is creating pdf forms and uses them as tooltips -- consequentially I couldn't even see them in xpdf. > (Notice how tidy the tooltips in it look.) That document describes > setting them up manually in a point-and-click interface, but surely > Context could automate this by putting an invisible frame around the > word and creating a form field/button over it? > And, correct me if I'm wrong, but that mechanism is not > Javascript-based at all, is it? Well, it is form-(=E2=80=9Cwidget=E2=80=9D-)based and at least some forms u= se js. The omniscient landfill has some info about this: http://en.wikipedia.org/wiki/Pdf#Interactive_elements But with those elements not even working I have no way to tell them apart. You might be interested in a thread on c.t.t. where widgets and the phantom-box approach are used to accomplish the same in latex: http://groups.google.com/group/comp.text.tex/browse_thread/thread/863613f3d= 13337f1/989369a06aaf7a34?lnk=3Draot > (by the way: I've not broken the thread again, have I?) Unfortunately, yes, gmail is again misbehaving. Phg --=20 () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments --GvXjxJ+pjyke8COw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkvhF/oACgkQ02lYlJYWs9KOZgCfWKLJScTnmQ7so1dGeujiEGS8 WzUAn1zZ7zgCGT625eCmSQwju/4p+CE4 =vN3d -----END PGP SIGNATURE----- --GvXjxJ+pjyke8COw-- --===============0567233843== 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 ___________________________________________________________________________________ --===============0567233843==--