[NTG-context] Bidi-related register problem
Recent betas have introduced a bidi-related problem with register processing. In the following example, compilation generates a recoverable error when register processing has to trim an entry to fit maxwidth. The error is: luatex warning > node filter: error: ...eXt/tex/texmf-context/tex/context/base/mkiv/typo-dub.lua:496: attempt to index local 'stacktop' (a nil value) Removing the maxwidth constraint, or setting it to a much wider value, allows error-free compilation. Without \setupdirections[bidi=on,method=two] there is no problem, but without it RTL texts are not handled properly. This is a recent change; bidi=global worked a few months ago. (I have not tried with LTR text in a default-RTL document). % macros=mkvi \defineregister[Mindex] \setupregister [Mindex] [n=2, maxwidth=4cm, balance=no] \starttexdefinition unexpanded MIndex \dosinglegroupempty\doMIndex \stoptexdefinition \starttexdefinition unexpanded doMIndex #MARKER \def\Marker{#MARKER}% \dosinglegroupempty\doMIndexFull \stoptexdefinition \starttexdefinition doMIndexFull #ITEM \doifelse{#ITEM}{} {\expanded{\Mindex{\Marker}}} {\expanded{\Mindex{\Marker+#ITEM}}} \stoptexdefinition \setupdirections [bidi=on,method=two] \setupbodyfont [libertinus,11pt] \starttext \startparagraph \MIndex{One}{Mairzy doats and dozy doats and liddle lamzy divey} \input jojomayer \stopparagraph \startparagraph סלאם שלום \stopparagraph \placeregister[Mindex] \stoptext -- Rik Kabel ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Command \hyphenatedurl{} doesn't work
On 25/01/19 10:56 AM, Lars wrote: > Hi there, > > the \hyphenatedurl{} command doesn't seem to work. Only the first line > of the link is clickable and only the first line is being pasted into > the browser, resulting in a 404. I tested Sumatra and Adobe. MWE: \hyphenatedurl does not create a link in the PDF file at all. What you are observing is the heuristics of your PDF viewer to detect links, which fails at the line break. See this post on TeX.SX: https://tex.stackexchange.com/questions/376939/typesetting-long-urls-with-context > > %--- > \setupinteraction[state=start] > > > \starttext > hyphenatedurl on its own is only clickable in the first line and > pastes wrong URL to browser: > \blank > \hyphenatedurl{https://www.telegraph.co.uk/news/2018/11/05/heart-surgeon-turned-training-pioneering-robot-used-operation/} > > \blank > Same in the > footnote:\footnote{\hyphenatedurl{https://www.telegraph.co.uk/news/2018/11/05/heart-surgeon-turned-training-pioneering-robot-used-operation/}} > > > \emptylines[5] > > useurl...url behaves the very same: > \blank > \useURL[urlVar][https://www.telegraph.co.uk/news/2018/11/05/heart-surgeon-turned-training-pioneering-robot-used-operation/]\url[urlVar] > > \blank > Same in the footnote:\footnote{\url[urlVar]} > \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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Command \hyphenatedurl{} doesn't work
Hi there, the \hyphenatedurl{} command doesn't seem to work. Only the first line of the link is clickable and only the first line is being pasted into the browser, resulting in a 404. I tested Sumatra and Adobe. MWE: %--- \setupinteraction[state=start] \starttext hyphenatedurl on its own is only clickable in the first line and pastes wrong URL to browser: \blank \hyphenatedurl{https://www.telegraph.co.uk/news/2018/11/05/heart-surgeon-turned-training-pioneering-robot-used-operation/} \blank Same in the footnote:\footnote{\hyphenatedurl{https://www.telegraph.co.uk/news/2018/11/05/heart-surgeon-turned-training-pioneering-robot-used-operation/}} \emptylines[5] useurl...url behaves the very same: \blank \useURL[urlVar][https://www.telegraph.co.uk/news/2018/11/05/heart-surgeon-turned-training-pioneering-robot-used-operation/]\url[urlVar] \blank Same in the footnote:\footnote{\url[urlVar]} \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___