[NTG-context] tooltip and buttom for footnotes?

2016-01-14 Thread Ursula Hermann
Hello Wolfgang or Hans?

 

Can one of you help me please. Iwant something like this: 

 

\setuppapersize[S6][S6]

\setupinteraction[state=start]

\setupcolors[state=start]

 

\starttext

Here is an example: by saying

\type{\tooltip[left]{Example}{Is it nice}}, we get

\blank

\midaligned{\tooltip[bottom]{Example}{Isn't it nice?}}

\blank

 

This file when opened in Adobe Acrobat will show the tooltip "Isn't it
nice?" when one hovers over the word "Example".

 

\blank

\midaligned{\tooltip[bottom]{an example}{Isn't it nice?}  of tooltip on the
bottom}

\blank

\midaligned{an example of tooltip on the \tooltip[right]{right}{Isn't it
nice?}}

\blank

\midaligned{\tooltip[left]{an}{Isn't it nice?}  example of tooltip on the
left}

 

\stoptext

 

But i would need it for footnotes in pdf. Is this possible, or do I have to
define somehting?

 

Thanks 

 

Uschi 

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

[NTG-context] Translate tooltip on button in pdf

2012-03-18 Thread Jan Heinen

Hello

how to change the tooltipps from english First page to  
german Erste Seite?


\setupinteraction[state=start]
\starttext
\button {\scale[height=2em] {\symbol[navigation 
1][nextpage]}}  [NextPage]

\page
\button {\scale[height=2em] {\symbol[navigation 
1][previouspage]}}  [PreviousPage]

\page
\stoptext


Regards
Jannis

--
Better organization and integration of all ConTeXT-information:

http://wiki.contextgarden.net/Category:ConTeXt   
All information arround ConTeXt


http://wiki.contextgarden.net/Category:Commands  
Commands


!!! new: One-Click from every command in the wiki to the 
rich resources of the ConTeXt-mailinglist


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


Re: [NTG-context] Translate tooltip on button in pdf

2012-03-18 Thread Wolfgang Schuster

Am 18.03.2012 um 19:08 schrieb Jan Heinen:

 Hello
 
 how to change the tooltipps from english First page to  german Erste 
 Seite?
 
 \setupinteraction[state=start]
 \starttext
 \button {\scale[height=2em] {\symbol[navigation 1][nextpage]}}  [NextPage]
 \page
 \button {\scale[height=2em] {\symbol[navigation 1][previouspage]}}  
 [PreviousPage]
 \page
 \stoptext

I think the texts are generated from your PDF viewer because Reader.app on the 
Mac
shows for me “Zur nächsten Seite” on the first page and “Zur vorherigen Seite” 
on
the second page but with Adobe Reader I don’t get any tooltips.

Wolfgang
___
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
___


[NTG-context] tooltip in a buffer (beta)

2011-01-28 Thread Peter Rolf
Hi Hans,

I have overseen an unwanted horizontal skip in my menu test graphic. Mh,
donno what this is... it's no skip nor a simple spurious space (as I use
\removeunwantedspaces in front of that macro).
A minimal example is attached. No urgent case...

Best wishes,  Peter
\setupinteraction[state=start]

\definelayer[foo][width=300pt,height=300pt]
\setlayerframed[foo][width=300pt,height=300pt]{foo}


\starttext

\startbuffer[test]
\framed[offset=overlay]{\tooltip{\CONTEXT}{a \TEX\ macropackage}}
\stopbuffer

\setlayerframed[foo][x=0pt,y=0pt][offset=overlay]{\getbuffer[test]} % big skip 
in front of text
\flushlayer[foo]

\stoptext
___
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
___


Re: [NTG-context] tooltip in a buffer (beta)

2011-01-28 Thread Hans Hagen

On 28-1-2011 4:20, Peter Rolf wrote:

Hi Hans,

I have overseen an unwanted horizontal skip in my menu test graphic. Mh,
donno what this is... it's no skip nor a simple spurious space (as I use
\removeunwantedspaces in front of that macro).
A minimal example is attached. No urgent case...


if you're bored and have enough time you can run with \tracinglal and 
see where a blank space is inserted



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] tooltip in a buffer (beta)

2011-01-28 Thread Wolfgang Schuster

Am 28.01.2011 um 18:58 schrieb Hans Hagen:

 On 28-1-2011 4:20, Peter Rolf wrote:
 Hi Hans,
 
 I have overseen an unwanted horizontal skip in my menu test graphic. Mh,
 donno what this is... it's no skip nor a simple spurious space (as I use
 \removeunwantedspaces in front of that macro).
 A minimal example is attached. No urgent case...
 
 if you're bored and have enough time you can run with \tracinglal and see 
 where a blank space is inserted

The spaces come from java-imp-fld.mkiv, you can get rid of them by modifying
the “javascripts.usescripts” function in java-ini.lua (end of the file):

function javascripts.usescripts(name)
if name ~= variables.reset then
commands.uselibrary(name,patterns,function(name,foundname)
context.startnointerference()
context.startreadingfile()
context.input(foundname)
context.showcolormessage(javascript,1,name)
context.stopreadingfile()
context.stopnointerference()
end)
end
end

Wolfgang

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


Re: [NTG-context] tooltip in a buffer (beta)

2011-01-28 Thread Peter Rolf
Am 28.01.2011 20:02, schrieb Wolfgang Schuster:
 
 Am 28.01.2011 um 18:58 schrieb Hans Hagen:
 
 On 28-1-2011 4:20, Peter Rolf wrote:
 Hi Hans,

 I have overseen an unwanted horizontal skip in my menu test graphic. Mh,
 donno what this is... it's no skip nor a simple spurious space (as I use
 \removeunwantedspaces in front of that macro).
 A minimal example is attached. No urgent case...

 if you're bored and have enough time you can run with \tracinglal and see 
 where a blank space is inserted

\tracingall is information overkill for me :-D


 The spaces come from java-imp-fld.mkiv, you can get rid of them by modifying
 the “javascripts.usescripts” function in java-ini.lua (end of the file):
 
 function javascripts.usescripts(name)
 if name ~= variables.reset then
 commands.uselibrary(name,patterns,function(name,foundname)
 context.startnointerference()
 context.startreadingfile()
 context.input(foundname)
 context.showcolormessage(javascript,1,name)
 context.stopreadingfile()
 context.stopnointerference()
 end)
 end
 end


Many thanks Wolfgang!


 Wolfgang
 
 ___
 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
 ___
 

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


Re: [NTG-context] tooltip in a buffer (beta)

2011-01-28 Thread Hans Hagen

On 28-1-2011 8:02, Wolfgang Schuster wrote:


 context.startnointerference()


ok, patched


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


[NTG-context] \pdfannot and \tooltip won't work with Chinese

2008-07-29 Thread Suman_Tripathy
Can I get the .tex file? I am not expert in Latex and not understanding what 
exactly is the solution. Where is \doPDFinsertcomment defined?
-Suman


DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \pdfannot and \tooltip won't work with Chinese characters

2007-04-17 Thread Zhichu Chen

Thanks Hans,

It works. But only the /Contents part was converted correctly, the /T part
is still not so good. So I redefined your \doPDFinsertcomment macro and
changed the third line from

  \doifelsenothing{#1}
{\let\PDFidentifier\empty}
{\def\PDFidentifier{/T (#1)}}%

to

  \doifelsenothing{#1}
{\let\PDFidentifier\empty}
{\sanitizePDFencoding#1\to\PDFcommenttitle\def\PDFidentifier{/T
\ifPDFunicode \PDFcommenttitle\else (\PDFcommenttitle)\fi}}%


Now it's OK for me. I hope there's a more clever way that I don't need to
copy such long codes to my source file.


On 4/17/07, Hans Hagen [EMAIL PROTECTED] wrote:


Zhichu Chen wrote:
 Hi

 I've been looking at some core codes and the PDF reference, still have
no
 idea.

 Somehow, I was told that LaTeX can do such things using hyperref
 package
 and \pdfstringdef\temp{???}, then \pdfannot{... /Contents(\temp) ...}
 should
 be OK.

can you try

\PDFunicodetrue

Hans



-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context





--
Sincerely yours,
Chen


 Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
  | www.sinap.ac.cn

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \pdfannot and \tooltip won't work with Chinese characters

2007-04-17 Thread Hans Hagen
Zhichu Chen wrote:
 Hi

 I've been looking at some core codes and the PDF reference, still have no
 idea.

 Somehow, I was told that LaTeX can do such things using hyperref 
 package
 and \pdfstringdef\temp{???}, then \pdfannot{... /Contents(\temp) ...} 
 should
 be OK.

can you try 

\PDFunicodetrue 

Hans 



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \pdfannot and \tooltip won't work with Chinese characters

2007-04-17 Thread Hans Hagen
Zhichu Chen wrote:
 Thanks Hans,

 It works. But only the /Contents part was converted correctly, the /T 
 part
 is still not so good. So I redefined your \doPDFinsertcomment macro and
 changed the third line from
 
   \doifelsenothing{#1}
 {\let\PDFidentifier\empty}
 {\def\PDFidentifier{/T (#1)}}%
 
 to
 
   \doifelsenothing{#1}
 {\let\PDFidentifier\empty}
 {\sanitizePDFencoding#1\to\PDFcommenttitle\def\PDFidentifier{/T
 \ifPDFunicode \PDFcommenttitle\else (\PDFcommenttitle)\fi}}%
 

 Now it's OK for me. I hope there's a more clever way that I don't need to
 copy such long codes to my source file.
just patch spec-fdf 

i changed it here so it will be in the next release 

(which reminds me that for luatex i need to make a driver file dealing with 
such issues) 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \pdfannot and \tooltip won't work with Chinese characters

2007-04-17 Thread Zhichu Chen

Hi, Hans

It may be useless, but I really hope I can pass some options to the comment.
e.g., use \comment[color=blue][title]{some contents} will make some
contents blue. So I think we can use /RC instead of /Contents.


On 4/17/07, Hans Hagen [EMAIL PROTECTED] wrote:


Zhichu Chen wrote:
 Thanks Hans,

 It works. But only the /Contents part was converted correctly, the /T
 part
 is still not so good. So I redefined your \doPDFinsertcomment macro and
 changed the third line from
 
   \doifelsenothing{#1}
 {\let\PDFidentifier\empty}
 {\def\PDFidentifier{/T (#1)}}%
 
 to
 
   \doifelsenothing{#1}
 {\let\PDFidentifier\empty}
 {\sanitizePDFencoding#1\to\PDFcommenttitle\def\PDFidentifier{/T
 \ifPDFunicode \PDFcommenttitle\else (\PDFcommenttitle)\fi}}%
 

 Now it's OK for me. I hope there's a more clever way that I don't need
to
 copy such long codes to my source file.
just patch spec-fdf

i changed it here so it will be in the next release

(which reminds me that for luatex i need to make a driver file dealing
with such issues)

Hans

-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context





--
Sincerely yours,
Chen


 Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
  | www.sinap.ac.cn

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \pdfannot and \tooltip won't work with Chinese characters

2007-04-13 Thread Zhichu Chen

Hi

I've been looking at some core codes and the PDF reference, still have no
idea.

Somehow, I was told that LaTeX can do such things using hyperref package
and \pdfstringdef\temp{???}, then \pdfannot{... /Contents(\temp) ...} should
be OK.


On 4/11/07, Zhichu Chen [EMAIL PROTECTED] wrote:


Hi everybody,

Since \inmargin won't break through pages and I've tried everything but
still can't make it, I bended. Now I want to comment some words with
\pdfannot. It seems that this command don't support Chinese very well, the
annotations appeared like lookaheaduchar 73 and something. Then I turned
to \tooltip, and this time it showed nothing.

Can anybody help me?

--
Sincerely yours,
Chen


  Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
 tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
   | www.sinap.ac.cn






--
Sincerely yours,
Chen


 Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
  | www.sinap.ac.cn

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \pdfannot and \tooltip won't work with Chinese characters

2007-04-10 Thread Zhichu Chen

Hi everybody,

Since \inmargin won't break through pages and I've tried everything but
still can't make it, I bended. Now I want to comment some words with
\pdfannot. It seems that this command don't support Chinese very well, the
annotations appeared like lookaheaduchar 73 and something. Then I turned
to \tooltip, and this time it showed nothing.

Can anybody help me?

--
Sincerely yours,
Chen


 Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
  | www.sinap.ac.cn

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context