From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12494 invoked from network); 13 Sep 2023 06:50:14 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 13 Sep 2023 06:50:14 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 64610482EE1 for ; Wed, 13 Sep 2023 08:49:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lrG7QctzZ23P for ; Wed, 13 Sep 2023 08:49:21 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 26730482FBD for ; Wed, 13 Sep 2023 08:48:28 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 3F47F482E74 for ; Wed, 13 Sep 2023 08:48:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bAsmD602e4Hm for ; Wed, 13 Sep 2023 08:48:02 +0200 (CEST) Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id CB41B482E71 for ; Wed, 13 Sep 2023 08:48:02 +0200 (CEST) Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1bc0d39b52cso49069025ad.2 for ; Tue, 12 Sep 2023 23:48:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694587680; x=1695192480; darn=ntg.nl; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=CE7N1WtVogl886U1KQH6xiCdVZXOGQcVEAwWy364lZY=; b=ee0DADTj202zPhQi6eP53OpOcUEQ7S2aFe+BreOhR/Ail592Q4UkPv8FHYU/4TdjQH 1mXPWZewKxLs+/eZNB9TOBgIwU25Y/ZT9XZBCR/OZOw6bm61X034ycwlQ+LWwfKGGSYS CuL2cbiMpySXfyAB57gDq5D6gEP8xRzmIDjQSMyHCSvdLnL8vWT/LMALkJmfC1Ld+yBI qSofiizpYvlnEk7c3GOGOyKTGs8LRhJ/yvbWsVBCGCMO7964/QYu1jZ+5uXHnlYCcHqe wqxCEGVnKXiQF63BjenB1X+jCbYUdqm4+r9kpvYgEJZc5zEHHclfdrQmiBzNb4SyX4X9 llMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694587680; x=1695192480; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CE7N1WtVogl886U1KQH6xiCdVZXOGQcVEAwWy364lZY=; b=kDxghaaNtRBUzqhGUtZMJE+O1lnlI82LwFbEGrSDluRTN35JUwnVp7sBElcy6sWWE+ RLx1yTGKyw3DKYGnlOVwQjcbc+4cmisPIN3k8/2XWqTRUSh2Z9HYjgTTVNufnwx28zGf imKwn7ixAPHauyDXYFSfj3stmtX76nAsexYTN6uIF+rxAQsMt4LNMLD1edp9En8/aQHT Uq7BhBrUt2qWBua4bYCeIKpSWgmvpr6r4HQP7lRmP2E7Qvh7pc4PWoGzCi7igMstN3OD sZS8ZjdN719hc5S5S0FyxwJv8SLjQo6HCLyatGoBBsqGImvOhOTMjYSGLbwZu3iyf/Em IQfA== X-Gm-Message-State: AOJu0YxdT3UPkq2nIRjkKWlHCQtfpYUdWmKTyDSstfCgQEGdoIFgMDEw mIo6jVAt0jkdVOiQwTeWOsqI76+MLRnmjw== X-Google-Smtp-Source: AGHT+IGPmfzAF7gF+flPLrIp7FPMZoMT/TJU6EtPHY0xgM0+0OqUGSWFXUDgWM9fxix5yM6Chb0/3g== X-Received: by 2002:a17:903:2589:b0:1bf:3c10:1d70 with SMTP id jb9-20020a170903258900b001bf3c101d70mr1736948plb.6.1694587680106; Tue, 12 Sep 2023 23:48:00 -0700 (PDT) Received: from [192.168.1.5] ([101.115.128.167]) by smtp.gmail.com with ESMTPSA id d2-20020a170902654200b001aaf2e8b1eesm9809646pln.248.2023.09.12.23.47.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Sep 2023 23:47:59 -0700 (PDT) Message-ID: <20f6346e-2e52-f65b-e716-fd281285e070@gmail.com> Date: Wed, 13 Sep 2023 16:47:56 +1000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Content-Language: en-AU To: mailing list for ConTeXt users From: jbf Message-ID-Hash: J7N4XVH7OH7RA455XXC456ZTC5YFGA74 X-Message-ID-Hash: J7N4XVH7OH7RA455XXC456ZTC5YFGA74 X-MailFrom: roma83537@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] streams reversed? List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============8270960876336593259==" This is a multi-part message in MIME format. --===============8270960876336593259== Content-Type: multipart/alternative; boundary="------------xjsdqV5IsTDia3iXaXcf6k0C" Content-Language: en-AU This is a multi-part message in MIME format. --------------xjsdqV5IsTDia3iXaXcf6k0C Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit I am making some progress with a bilingual text using the streams mechanism suggested by Wolfgang: https://wiki.contextgarden.net/Columns, but see below. The aim has been to have en and vi on facing pages (en left, vi right). It works correctly for the Foreword in two languages (en, vi) in frontmatter. When I come to bodymatter and Chapter 1, again it works, except that the positions of the languages are reversed, so I end up with vi on the left and en on the right. By Chapter 2 we are back to the correct position once more (en left and vi right). I want to know why this is happening, and if I can prevent it happening. I am using the code you can see below, except that instead of \startoutputstream[one] and \startoutputstream[two] etc.  I am using [en-front][vi-front], and then in bodymatter [en-chap1][vi-chap1] etc. etc. with the relevant repetitions of these identifiers where needed. I assume that to get a degree of synchronization I need to use this approach for each set of chapters. But I cannot understand why the languages alternate their starting page positions each chapter. There are other issues I have to solve, but first of all I wish to resolve this one. Julian The original (Wolfgang) code is as follows: \starttext \startoutputstream[one] \startcolor[red] \dorecurse{10}{\input knuth\par} \stopcolor \stopoutputstream \startoutputstream[two] \startcolor[green] \dorecurse{10}{\input zapf\par} \stopcolor \stopoutputstream \synchronizestreams[one,two] \setbox\scratchboxone\outputstreambox[one] \setbox\scratchboxtwo\outputstreambox[two] \doloop {\ifvoid\scratchboxone \exitloop \else \setbox\scratchboxfour\vsplit\scratchboxone to\textheight \vbox to\vsize{\box\scratchboxfour\vss}% \setbox\scratchboxfive\vsplit\scratchboxtwo to\textheight \vbox to\vsize{\box\scratchboxfive\vss}% \fi} \stoptext --------------xjsdqV5IsTDia3iXaXcf6k0C Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

I am making some progress with a bilingual text using the streams mechanism suggested by Wolfgang: https://wiki.contextgarden.net/Columns, but see below.

The aim has been to have en and vi on facing pages (en left, vi right).

It works correctly for the Foreword in two languages (en, vi) in frontmatter.

When I come to bodymatter and Chapter 1, again it works, except that the positions of the languages are reversed, so I end up with vi on the left and en on the right. By Chapter 2 we are back to the correct position once more (en left and vi right).

I want to know why this is happening, and if I can prevent it happening.

I am using the code you can see below, except that instead of \startoutputstream[one] and \startoutputstream[two] etc.  I am using [en-front][vi-front], and then in bodymatter [en-chap1][vi-chap1] etc. etc. with the relevant repetitions of these identifiers where needed. I assume that to get a degree of synchronization I need to use this approach for each set of chapters. But I cannot understand why the languages alternate their starting page positions each chapter.

There are other issues I have to solve, but first of all I wish to resolve this one.

Julian


The original (Wolfgang) code is as follows:

\starttext

\startoutputstream[one]
   \startcolor[red]
   \dorecurse{10}{\input knuth\par}
   \stopcolor
\stopoutputstream

\startoutputstream[two]
   \startcolor[green]
   \dorecurse{10}{\input zapf\par}
   \stopcolor
\stopoutputstream

\synchronizestreams[one,two]

\setbox\scratchboxone\outputstreambox[one]
\setbox\scratchboxtwo\outputstreambox[two]

\doloop
 {\ifvoid\scratchboxone
    \exitloop
  \else
    \setbox\scratchboxfour\vsplit\scratchboxone to \textheight
    \vbox to \vsize{\box\scratchboxfour\vss}%
    \setbox\scratchboxfive\vsplit\scratchboxtwo to \textheight
    \vbox to \vsize{\box\scratchboxfive\vss}%
  \fi}

\stoptext

--------------xjsdqV5IsTDia3iXaXcf6k0C-- --===============8270960876336593259== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ --===============8270960876336593259==--