Hi, (1) See previous mails on the list (those who requested it have to wikify): - mixed bars (with limitations) - horizontal registers (flushing) (2) As a side effect of reshuffling some code (as well as being complete): - \boxshift 0 = 10pt - hbox shift -10pt{...} These box shifts are what \moveleft, \raise etc use as well as some internal constructors like math. (3) Because there is no reason for a limitation to rules and boxes we can now also do: - x\cleaders \glyph`! \hfill x where as usual \glyph taking some options. (4) A few internals that users are unlikely to encounter (unless they mess with weird tokens in lua). Hopefully no bad side effects of all this (and if so, easy to solve). Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Thank you, Hans! I don't understand 2, 3, and 4, but I can wikify 1. Just two question: What exactly are the limitations? And what is meant by horizontal registers? Regarding the implementation: I've just tried it, and I wondered whether the stacking of bars should not happen the other way round. As in \underbar{\underdot{asdf}} I would have expected the bar to be below the dot. But maybe that's wrong expectations... Denis
-----Ursprüngliche Nachricht----- Von: ntg-context
Im Auftrag von Hans Hagen via ntg-context Gesendet: Dienstag, 30. November 2021 19:56 An: mailing list for ConTeXt users Cc: Hans Hagen Betreff: [NTG-context] new upload Hi,
(1) See previous mails on the list (those who requested it have to wikify):
- mixed bars (with limitations) - horizontal registers (flushing)
(2) As a side effect of reshuffling some code (as well as being complete):
- \boxshift 0 = 10pt - hbox shift -10pt{...}
These box shifts are what \moveleft, \raise etc use as well as some internal constructors like math.
(3) Because there is no reason for a limitation to rules and boxes we can now also do:
- x\cleaders \glyph`! \hfill x
where as usual \glyph taking some options.
(4) A few internals that users are unlikely to encounter (unless they mess with weird tokens in lua).
Hopefully no bad side effects of all this (and if so, easy to solve).
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net __________________________________________________________ _________________________
On 12/1/2021 9:49 AM, denis.maier@unibe.ch wrote:
Thank you, Hans!
I don't understand 2, 3, and 4, but I can wikify 1. Just two question: What exactly are the limitations? And what is meant by horizontal registers?
Regarding the implementation: I've just tried it, and I wondered whether the stacking of bars should not happen the other way round. As in \underbar{\underdot{asdf}} I would have expected the bar to be below the dot. But maybe that's wrong expectations...
% this is a variant of an example on the mailing list \mainlanguage[es] \setupbodyfont[dejavu] \defineregister [Russian] [n=1, command=\Words, pagenumber=no, language=ru, textalternative=horizontal, distance=0pt] \setupregister [Russian] [2] [textstyle=bold,left={, }] \setupregister [Russian] [3] [textstyle=italic,left={, }] % word category meaning \setregisterentry [Russian] [entries:1={исчисление}, entries:2={n. neutr.}, entries:3={cálculo}] \setregisterentry [Russian] [entries:1={исчисление}, entries:2={n. neutr.}, entries:3={cálculo}] \setregisterentry [Russian] [entries:1={вероятность}, entries:2={n. fem.}, entries:3={probabilidad}] \setregisterentry [Russian] [entries:1={обозначать}, entries:2={v.}, entries:3={denotar}] \setregisterentry [Russian] [entries:1={область}, entries:2={n. fem}, entries:3={región, área}] \setregisterentry [Russian] [entries:1={событие}, entries:2={n. neutr.}, entries:3={evento}] \setregisterentry [Russian] [entries:1={определение}, entries:2={n. neutr.}, entries:3={definición}] \setregisterentry [Russian] [entries:1={знание}, entries:2={n. neutr,}, entries:3={conocimiento}] \setregisterentry [Russian] [entries:1={бесконечно}, entries:2={adv.}, entries:3={infinitamente}] \setregisterentry [Russian] [entries:1={сборник}, entries:2={n. masc.}, entries:3={colección, compilación, compendio}] \setregisterentry [Russian] [entries:1={неравенство}, entries:2={n. neutr.}, entries:3={desigualdad}] \starttext \starttitle[title=Ruso-español] \placeRussian \stoptitle \stoptext that would become rather messy and hard to analyze (this is already a runtime consuming feature) and never be consistent, think of \underbar{% \underdot{xxxxxxxx} xxxxxxxxx \underdot{xxxxxxxx}% } ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
denis.maier@unibe.ch
-
Hans Hagen