On 1/6/2022 10:36 PM, Henning Hraban Ramm via ntg-context wrote:
Am 06.01.22 um 20:00 schrieb Hans Hagen via ntg-context:
Hi,

Maybe this is of interest to critical users:

\setupsynchronize [paralleltext] [color=darkblue]
% \setupsynchronize [paralleltext] [style=\tx,color=darkred]
% \setupsynchronize [paralleltext] [style=\txx,color=darkgreen]

I played a bit with it:


\mainlanguage[de]
\setupbodyfont[dejavu]
\setupsynchronize [paralleltext] [color=darkblue]

\starttext

\paralleltext{Dies}{This}\space
\paralleltext{könnte}{could}\space
\paralleltext{für}{for}\space
\paralleltext{Übersetzungen}{translations}\space
\paralleltext{interessant}{interesting}\space
\paralleltext{sein.}{be.}\space
\blank

\paralleltext{Dies}{This}\space
\paralleltext{könnte}{could}\space
\paralleltext{sein}{be}\space
\paralleltext{interessant}{interesting}\space
\paralleltext{für}{for}\space
\paralleltext{Übersetzungen.}{translations.}\space
\blank[2*line]

\paralleltext{Dies}{Это}\space
\paralleltext{könnte}{может}\space
\paralleltext{für}{для}\space
\paralleltext{Übersetzungen}{переводов}\space
\paralleltext{interessant}{интересно}\space
\paralleltext{sein.}{быть.}\space
\blank

\paralleltext{Dies}{Это}\space
\paralleltext{könnte}{может}\space
\paralleltext{sein}{быть}\space
\paralleltext{interessant}{интересно}\space
\paralleltext{für}{для}\space
\paralleltext{Übersetzungen.}{переводов.}\space
\blank[2*line]

\paralleltext{\m{E}}{Energie}\space
\paralleltext{\m{=}}{ist}\space
\paralleltext{\m{m}}{Masse}\space
\paralleltext{\m{·}}{mal}\space
\paralleltext{\m{c^2}}{Lichtgeschwindigkeit im Quadrat}\space

\stoptext


I guess it could be useful for short educational examples.
If I needed this, I might have tried the steps module.

for single words the 'ruby' might work too

this one is more for sentences (and it hyphenates)

It doesn’t work with more than two versions, and the syntax is a bit verbose.
that's what i meant with the 'todo sync points' which would avoid commands (if useful)

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
___________________________________________________________________________________

Reply via email to