Re: [NTG-context] automatically splitting big images (calculation problem)

2017-09-10 Thread Henning Hraban Ramm
ure[#1][#2]{ >> \ifsecondargument >> \dorecurse{#1}{% >> \tooltip{\clip[ >> height=\textheight, >> voffset=\dimexpr((\recurselevel - 1)\textheight),]{% > > voffset=\numexpr(\recurselevel -1)\textheight]{% Aha, numexpr. Danke! Am 2017-09-10 um 10:09

Re: [NTG-context] automatically splitting big images (calculation problem)

2017-09-10 Thread Herbert Voss
Am 10.09.2017 um 09:13 schrieb Henning Hraban Ramm: My current code actually looks like % split in #1 page size parts \def\clipfigure{\dodoubleempty\doClipFigure} \def\doClipFigure[#1][#2]{ \ifsecondargument \dorecurse{#1}{% \tooltip{\clip[ height=\textheight, voffset=\dimexpr

Re: [NTG-context] automatically splitting big images (calculation problem)

2017-09-10 Thread Henning Hraban Ramm
easure (pt inserted)". My current code actually looks like % split in #1 page size parts \def\clipfigure{\dodoubleempty\doClipFigure} \def\doClipFigure[#1][#2]{ \ifsecondargument \dorecurse{#1}{% \tooltip{\clip[ height=\textheight, voffset=\dimexpr((\recurselevel - 1)\textheight),]{%

Re: [NTG-context] Accessibility and Tagged PDF/A, Footnotes showing

2016-01-19 Thread Ursula Hermann
; What I mean something, that shows in the Text the text from the > > footnote, when I click on the number from the footnote. > > > > > > Maybe with a tooltip? Or what is the right way? Which command? > > tooltips are widgets and not part of the document text stream

[NTG-context] Accessibility and Tagged PDF/A, Footnotes showing

2016-01-18 Thread Ursula Hermann
a question to this discussion, it is nessesary to know: How can footnotes be shown in the PDF/A tagged PDF, in a text? What I mean something, that shows in the Text the text from the footnote, when I click on the number from the footnote. Maybe with a tooltip? Or what is the right way? Which command

Re: [NTG-context] Accessibility and Tagged PDF/A, Footnotes showing

2016-01-18 Thread Hans Hagen
with a tooltip? Or what is the right way? Which command? tooltips are widgets and not part of the document text stream .. so i think they don't count as accessibility feature (but i might be wrong) maybe someone else on the list knows i wonder, as you use tex you can consider generating an additional

Re: [NTG-context] Accessibility and Tagged PDF/A, Footnotes showing

2016-01-18 Thread Alan BRASLAU
t; can footnotes be shown in the PDF/A tagged PDF, in a text? > > > > What I mean something, that shows in the Text the text from the > > footnote, when I click on the number from the footnote. > > > > > > Maybe with a tooltip? Or what is the right way? Which command?

[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

[NTG-context] Break links into items in the itemize list

2012-04-13 Thread Jaroslav Hajtmar
Hello all Once again I return to this issue. Lukas confirmed me that really links do not work. Where is error when links into items in the itemize list are not working. Links are active but not working... It is interesting that the chapter on the links when hovering tooltip will appear

Re: [NTG-context] Break links into items in the itemize list

2012-04-13 Thread Hans Hagen
when hovering tooltip will appear with the page number where the link leads, not the case for the line item. Here is Lukas example (my example is bottom ) \setupinteraction[state=start] \starttext Go to \in[sec:1] -- \about[sec:1] or \in[it:a] -- \about[it:a]. \page \section[sec:1]{Sec

Re: [NTG-context] Break links into items in the itemize list

2012-04-13 Thread Jaroslav Hajtmar
to this issue. Lukas confirmed me that really links do not work. Where is error when links into items in the itemize list are not working. Links are active but not working... It is interesting that the chapter on the links when hovering tooltip will appear with the page number where the link leads

[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]

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]

Re: [NTG-context] \setupfields needs linefeed

2011-08-25 Thread Hans Hagen
On 24-8-2011 16:39, Peter Rolf wrote: Hi, I use '\setupfields[reset]%' in a tooltip macro and this single line breaks compilation. [..] Runaway argument? ]\stoptext ! File ended while scanning use of \scrn_field_setup_fields. inserted text \par * ./tooltip

[NTG-context] \setupfields needs linefeed

2011-08-24 Thread Peter Rolf
Hi, I use '\setupfields[reset]%' in a tooltip macro and this single line breaks compilation. [..] Runaway argument? ]\stoptext ! File ended while scanning use of \scrn_field_setup_fields. inserted text \par * ./tooltip \stoptext ? ! Emergency stop. inserted text

[NTG-context] HTML-like title attribute

2011-02-16 Thread Khaled Hosny
I'm playing with some lua markdown parser[1], already added ConTeXt output support except for two minor features. HTML links and images can have a title attribute that shows like a tooltip, but I don't seem to find a way to do similar trick in ConTeXt, any ideas? \tooltip seems to be the closest

Re: [NTG-context] HTML-like title attribute

2011-02-16 Thread Khaled Hosny
a tooltip, but I don't seem to find a way to do similar trick in ConTeXt, any ideas? \tooltip seems to be the closest but it requires JS which means AR only, also seems one have to click for the tooltip ti show which is not exactly the same behaviour. Regards, Khaled -- Khaled Hosny

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

2011-01-28 Thread Peter Rolf
=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

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

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

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

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

[NTG-context] tooltips broken (beta)

2011-01-27 Thread Peter Rolf
\edef \currentfieldname {#... to be read again } \dotooltip ...fitfield [\currentsystemfield :txt]} }\dimen 0=\ifdim \wd 0=\ze... l.5 \tooltip{\CONTEXT}{a \TEX\ macropackage} ? mkii works, but I get black text on black

Re: [NTG-context] ntg-context Digest, Vol 72, Issue 9

2010-06-04 Thread Michael Saunders
more acrobat and initialization and so ... some of these things change per version; which version of acrobat? test file? I have Adobe Reader 9.3.2, which I think is the latest. The following test: \starttext \dorecurse{1000}{\tooltip[middle]{test}{test}} \stoptext produces a pdf which opens

Re: [NTG-context] Please fill out the following form

2010-06-04 Thread Michael Saunders
more acrobat and initialization and so ... some of these things change per version; which version of acrobat? test file? I have Adobe Reader 9.3.2, which I think is the latest. The following test: \starttext \dorecurse{1000}{\tooltip[middle]{test}{test}} \stoptext produces a pdf which opens

Re: [NTG-context] Please fill out the following form

2010-06-04 Thread Taco Hoekwater
Michael Saunders wrote: more acrobat and initialization and so ... some of these things change per version; which version of acrobat? test file? I have Adobe Reader 9.3.2, which I think is the latest. The following test: \starttext \dorecurse{1000}{\tooltip[middle]{test}{test}} \stoptext

Re: [NTG-context] tooltips and glossary

2010-05-06 Thread Hans Hagen
synoniem mechanisme op die manier uit te breiden met een tooltip. Er zijn inmiddels verschillende suggesties gedaan en ik ga daar niets aan toevoegen. Het is niet mijn probleem als een gebruiker gebrek heeft aan fantasie danwel suggesties niet gebruikt cq. zijn mails zodanig formuleert dat er

Re: [NTG-context] tooltips and glossary

2010-05-06 Thread Taco Hoekwater
mechanismes te combineren. Veel mechanismes hebben een 'command hook' en het is niet zo lastig om bijvoorbeeld het synoniem mechanisme op die manier uit te breiden met een tooltip. Because every user, however, what differently wants, it is impossible everything build in without it degenerated

Re: [NTG-context] tooltips and glossary

2010-05-06 Thread luigi scarso
for tooltips \definesynonyms[gentry][gentries][\infull][\inshort]%to connect headwords to entries \def\gdef#1#2#3{\gloss{#1}{#2}\gentry{#1}{#3}} \def\hint#1{\tooltip[middle]{#1}{\infull{#1}}} %then you have a file of definitions like this one: \gdef{vibrato}{a periodic fluctuation in pitch

Re: [NTG-context] tooltips and glossary

2010-05-06 Thread Michael Saunders
headwords to entries \definesynonyms[gloss][glosses][\tttext][\ttkey] %to make short glosses available for tooltips \def\gldef#1#2#3{\gloss{#1}{#2}\gentry{#1}{#3 {(p.\at[g:#1])}}} \def\hint#1{\tooltip[middle]{#1}{\tttext{#1}}} \def\glref#1{\reference[g:#1]{}} %to place at a substantive reference

Re: [NTG-context] tooltips and glossary

2010-05-05 Thread Philipp Gesang
the lua script for this, but I don't know what it is. No advantage other than time saving … 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: 1. It's stretched horizontally. 2. The active area

Re: [NTG-context] tooltips and glossary

2010-05-04 Thread Michael Saunders
strange word. When you hover over it with the cursor, a tooltip would appear saying short definition. It would be great if this were linked to a glossary mechanism so I wouldn't have to keep writing the short definition---I could say something like: \gloss{strange word} and its short definition

Re: [NTG-context] tooltips and glossary

2010-05-04 Thread Philipp Gesang
for glossaries in Context, there is no mechanism to build this into, but I'm still interested in doing it. The idea is, I could write something like: \gloss{strange word}{short definition} The text would read strange word. When you hover over it with the cursor, a tooltip would appear saying short

Re: [NTG-context] tooltips and glossary

2010-05-04 Thread Willi Egger
[Gloss][Glosses][\infull][\inshort] \Gloss{cooltip}{HEI! This is a longer text in a tooltip} \def\Hint#1{\tooltip[middle]{#1}{\infull{#1}}} \starttext This is a text. This sentence contains a \tooltip[middle]{cooltip}{HEI! This is a longer text in a tooltip} \blank This is a text. This sentence

Re: [NTG-context] tooltips and glossary

2010-05-04 Thread Marius
, there is no mechanism to build this into, but I'm still interested in doing it.  The idea is, I could write something like: \gloss{strange word}{short definition} The text would read strange word.  When you hover over it with the cursor, a tooltip would appear saying short definition

Re: [NTG-context] tooltips and glossary

2010-05-04 Thread Corsair
some random Asymptote file of mine. Though I find it pretty much ok, I may change that also in the future. Let's focus on the tooltip and external database issue you encountered, instead of discuss that document and my bad writing :-). -- There is no emotion; there is peace

Re: [NTG-context] tooltips and glossary

2010-05-04 Thread Michael Saunders
to entries \def\gdef#1#2#3{\gloss{#1}{#2}\gentry{#1}{#3}} \def\hint#1{\tooltip[middle]{#1}{\infull{#1}}} %then you have a file of definitions like this one: \gdef{vibrato}{a periodic fluctuation in pitch}{A periodic fluctuation of pitch, typically in the range 6--12~Hz.} %within the text, where

Re: [NTG-context] beta: \dopresetsymbol

2009-08-11 Thread Peter Rolf
] \starttext A simple \tooltip{tooltip}{tooltip}. \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

[NTG-context] beta (14.05.2009,16:44): PDF layer

2009-05-15 Thread Peter Rolf
={layer_A},state=start] \starttext \startproperty[layerA] text %\framed[width=160mm,height=120mm]{\tooltip{A text with...{a tooltip}}% \stopproperty \stoptext Peter ___ If your question is of interest to others

[NTG-context] beta (11.05.2009): js interaction

2009-05-11 Thread Peter Rolf
Hi, some problems with js interaction stuff. I get ! Undefined control sequence. \dopresetfieldsymbol #1-\checkobjectreferences for nearly all interaction fields in mkiv. Mkii compiles, but the pop-up tooltip is only a black box (not the text 'tooltip'). I also had some problems with PDF

Re: [NTG-context] beta (11.05.2009): js interaction

2009-05-11 Thread Hans Hagen
Peter Rolf wrote: Hi, some problems with js interaction stuff. I get ! Undefined control sequence. \dopresetfieldsymbol #1-\checkobjectreferences for nearly all interaction fields in mkiv. Mkii compiles, but the pop-up tooltip is only a black box (not the text 'tooltip'). I also had some

[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

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
} \tab{text} text # \tbox \tex{text} \textreference[reference]{text} \textrule[top|bottom]{text} \textvariable[name] \thinrule \thinrules[settings] # \tightlayer \title[references]{text} # \to \tooltip[left|right|middle]{text}{text} \translate[name=text] \typ{text} \type{text} \typebuffer[name

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

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

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}

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

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

2007-04-13 Thread Zhichu Chen
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

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

2007-04-10 Thread Zhichu Chen
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

Re: [NTG-context] beta: bug with transparent colors in fields

2006-11-14 Thread Hans Hagen
] [s=1,a=1,t=.9] There is another problem with field activation (not in this example). When the doc opens, the fields (region in/out) are kind of inactive. Normally a tooltip note is shown/hidden, if the area is entered/left. Only after activating the fields by pressing R and H in Acrobat

Re: [NTG-context] beta: bug with transparent colors in fields

2006-11-14 Thread Peter Rolf
[notebackgroundcolor] % [s=.85] [s=1,a=1,t=.9] There is another problem with field activation (not in this example). When the doc opens, the fields (region in/out) are kind of inactive. Normally a tooltip note is shown/hidden, if the area is entered/left. Only after activating the fields by pressing R

[NTG-context] beta: bug with transparent colors in fields

2006-11-13 Thread Peter Rolf
] There is another problem with field activation (not in this example). When the doc opens, the fields (region in/out) are kind of inactive. Normally a tooltip note is shown/hidden, if the area is entered/left. Only after activating the fields by pressing R and H in Acrobat, they become alive. After

[NTG-context] widgets in layers (property)

2006-01-04 Thread Peter Rolf
New year, old problem... Hi all, I want to use widgets (tooltip, buttons,..) in some stacked pdf layers. My problem is, that the widgets are somehow not bound to the state of their layer. They are still active, even if the surrounding layer is deactivated. I add a mimimal example (it's best

[NTG-context] widgets in layers (property)

2005-12-30 Thread Peter Rolf
Hi all, I want to use widgets (tooltip, buttons,..) in some stacked pdf layers. My problem is, that the widgets are somehow not bound to the state of their layer. They are still active, even if the surrounding layer is deactivated. I add a mimimal example (it's best to open the 'Layers' tab