From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107705 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Jan Willem Flamma Newsgroups: gmane.comp.tex.context Subject: Re: using modeset Date: Fri, 12 Jun 2020 11:26:43 +0200 Message-ID: <2DC545CA-C12B-4C1F-B8B2-C7022C32F114@hxcore.ol> References: , Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3826161252792260036==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="59304"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 12 11:27:16 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jjfy0-000FI2-2z for gctc-ntg-context-518@m.gmane-mx.org; Fri, 12 Jun 2020 11:27:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 732C1163AA2; Fri, 12 Jun 2020 11:26:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rkh1iW_YCh5S; Fri, 12 Jun 2020 11:26:46 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BC732163869; Fri, 12 Jun 2020 11:26:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8C84E163869 for ; Fri, 12 Jun 2020 11:26:45 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GQCqXIGu6g24 for ; Fri, 12 Jun 2020 11:26:44 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.48; helo=mail-ed1-f48.google.com; envelope-from=register12c@gmail.com; receiver= Original-Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id B08F71633A2 for ; Fri, 12 Jun 2020 11:26:44 +0200 (CEST) Original-Received: by mail-ed1-f48.google.com with SMTP id d15so5927521edm.10 for ; Fri, 12 Jun 2020 02:26:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:date:from:subject:thread-topic:in-reply-to:message-id :references:to:content-transfer-encoding; bh=28Orylgny5tNyXXHJCTNAXMOImeix7KNV6zeZCOpn2w=; b=SwcsfRJmHoJUo34q74yjc8F5H32nfGCg2exxaUNxJjCx7fP1K9a1cblr3/MLNOktvH 2NqDQdAqDouLq5wJYVzAtTBXy8Tr3CEM2R6b/HzSYS8Z/KYucl3+Ha9Rd0j2JubDb8Bh cG8+JcccbOkroUIz82RR31Qa0o5Vd/Hy6zz7UTxC0ewDbFx8B5os2NFzYvJEb9pj2Clw qCVBPuO9ePXu/LJ23siEbIIlZgzKPYOHZzzgaEOD1eEoWZVysUN3a7u6wJ8jJ1C61vjE VO5foR5RdhpM6I5YiC35fcBoOxOVdFyz2iPMt4thzK9FZX0HqEp4dqAEIC40OfkmofhH YXQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:from:subject:thread-topic :in-reply-to:message-id:references:to:content-transfer-encoding; bh=28Orylgny5tNyXXHJCTNAXMOImeix7KNV6zeZCOpn2w=; b=L1suUE3sbQhyYpOBhY2U7moc54uqLRR99ESzB4OAiMQDZJCOuXD6zRt+iVl3yYgaiJ vs0wtpVshMz+mNhrq0oyrXaJdE8R8BXYsJ+WPHmXtoWYGVnDtQrOAIrWrDASrbyMwysF o7VMTChnLy4x/NqDyOArg8WGEz5vTzx6xdGckJXsQRdpEq8Mo/bqENWDLg0NReA3ByGY 8cm39YCUW1qZzT8mGeqQMSO0ab/n8Plicw1ZV8BVHNpGo5Mtdoh/eDWeYWX3GdDdJaaC xD1KHyndT7BWvtQeIMB2VTwv92XNIGajva51R036XH+1UQEMDoo/0mhjn8lNRpcWbaSz JqCQ== X-Gm-Message-State: AOAM531rcb/q34Tp2Jdhd7qSDsA9XYsBND4zQaA5ZDhB38Ey15Ayr4NY tOfNd4qbU5yVoj1s2i9HXUsvsgiebsA= X-Google-Smtp-Source: ABdhPJyBjk4+gfM8URnpAu6RMCHGzEQevZ9lr38tWtTtflwXHf0EQvYL3mraNryA7gdkNZ7muZ4YCg== X-Received: by 2002:a50:c219:: with SMTP id n25mr10908319edf.306.1591954003954; Fri, 12 Jun 2020 02:26:43 -0700 (PDT) Original-Received: from smtp.gmail.com ([2001:984:3852:1:f8f3:95d:256b:8545]) by smtp.gmail.com with ESMTPSA id k23sm3289899ejg.89.2020.06.12.02.26.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Jun 2020 02:26:43 -0700 (PDT) Thread-Topic: RE: [NTG-context] using modeset In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:107705 Archived-At: --===============3826161252792260036== Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"

Thank you Wolfgang, BPJ and Robert for your answers and feedback. Much app= reciated.

 

I will explorer the solutions that have been offe= red to extend my knowledge on using ConTeXt but at the same time I value th= e advice of not going down that route for large document.=

 

In= any case, I have learned something!

 

Kind regards,

Jan W= illem Flamma

 

 

From: r.ermers@hccnet.nl
Sent: Friday, 12 June 2020 07:56
<= b>To: mailing list for ConTeXt us= ers
Subject: Re: [NTG-context] using modeset

 =

I tried this too, a number of times. For leng= thy texts it makes little sense. One important thing is that, as BPJ says, = you loose the flow during writing. When the document is finished, it is dif= ficult to get an overview.

 

If you consider it using= for lengthy documents, I would consider to set up an xml file. You can the= n have the overview via scripts.

 

Yet for short text= s it can be a solution. I have case material for my trainings in both Engli= sh and Dutch in the same file. Instead of modes, I use blocks. Like this:

 

\defineblock[ENblok]

<= p class=3DMsoNormal>\defineblock[NLblok]

 

\setupblock[NLblok][before=3D{\mainlanguage[nl]},after=3D]

<= /div>

\setupblock[ENblok][before=3D{\mainlan= guage[en]},after=3D]

&nb= sp;

Then, determine which blocks y= ou want to use in your file:

=  

\hideblocks[NLblo= k]

%\hideblocks[ENblok]<= /o:p>

 

<= div>

For the titles I use another method:

 

%\def\NL#1{#1}

\def\NL#1{{}}

%\def\EN#1{}<= o:p>

\def\EN#1{#1}

<= /div>

 

You have to comment and uncomment, depending on the language= , but I think you can put them in the NLblok or ENbloks instead.=

 

\definecomplexenumeration[Casus]

=E2=80=A6 definition

=

 

\= def\refno#1{{\em{(no. \small #1})}}

 

My files look l= ike this:

 

\starttext

 

\start= Casus[casus-349][\NL{Een moeilijke zaak}\EN{A complicated case}] \refno{cas= us-349}\crlf

 

The casus-349 element is used as a lab= el. After the text I have a list of questions for this case in a separate b= lock for questions, introduced by \in[casus-349]).

 

= You can probably also use something like 

\section[\NL{Een moeilijke zaak}\EN{A complicated case}]{= xxxx}

 

\begin[NLblok]

\startlinenumbering

text ...

 

\stoplinenumbering

\end[NLblok]

 

\begin[E= nblok]

\startlinenumbering

text...

 

\stoplinenumbering

\end[Enbl= ok]

\stoptext

<= /div>

 

I hope this helps finding a solution.

 

Robe= rt

 

 


Op 11 jun. 2020, om 20:53 heeft BPJ <bpj@melroch.se> het volgende geschreven:<= o:p>

 

Den tors 11 juni 2020 10:45Jan Willem Flamma <register12c@gmail.com> skrev:<= o:p>

 

<= span lang=3Den-NL>Dear list members,

 

I write trai= ning manuals and use the Modes mechanism a lot to create documents at vario= us competency levels using a single set of source files. So far the manuals= have been written in English but now a separate Dutch translation has to b= e created.

 =

It is important that the two manuals a= re setup similarly so the section/subsection numbers and question numbers a= re the same in the English manual and the Dutch manual. Note: I do not inte= nd to create a manual that has the English and Dutch text at opposite sides= (as can be done using streams)

 

I=E2=80=99m keen = to continue using a single set of source files and thought it would be best= to simply type the translated sections and subsections just below the orig= inal English sections and subsections using modeset. This gives me the opti= on of creating an English case and a Dutch case. Within this two cases I wo= uld still apply all sorts of other modes using \startmode and \doifmode.

 

I have done that with= LaTeX and IMHO that way lies madness. It may work for shorter text but for= text(s) of any length it gets messy. You lose the "flow"  i= n both texts, and it shows when you read the typeset text, and the source b= ecomes hard to navigate. You are probably better off using an editor which = allows you to have the two versions open side by side in their own viewport= s (I use what Vim calls "windows").  If each section heading= is on its own line you might try something like a Perl script to loop over= the lines in the English version and print only the section headings to a = new file, where you translate them and build up the Dutch version around th= em. It's even better if the editor has the capacity to show an outline pane= for each version =E2=80=94 if there is an outline mode which understands C= onTeXt.

 

=

I'm sorry to discourage you but chances are= that you end up with an intractable mess which you will have to spend much= time disentangling later.

_= ___________________________________________________________________________= _______
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 &nb= sp;: http://www.pragma-ade.nl / http://context.aanhet.net
archiv= e  : htt= ps://bitbucket.org/phg/context-mirror/commits/
wiki   &nbs= p; : http://contextgarden.net=
_______________________________________________________________________= ____________

 

 

= --===============3826161252792260036== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============3826161252792260036==--