From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 0C43A24BB7 for ; Sat, 12 Oct 2024 13:04:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 594A248592A for ; Sat, 12 Oct 2024 13:04:52 +0200 (CEST) Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=ntg.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntg.nl; h= content-type:content-type:list-unsubscribe:list-subscribe :list-post:list-owner:list-help:list-archive:archived-at:list-id :subject:subject:reply-to:precedence:mime-version:references :in-reply-to:message-id:from:from:date:date:received:received :received:received:received:received:received; s=cgl; t= 1728731088; x=1731323089; bh=2EYcDTBLuG3bMuf6hTAte/3L/4eeS6DqIld j7j6rfFs=; b=VGlmBse7lGGLzGE8vavDrLTvJxrjv0fMveboez7wUR3g2GeTnEk e1gmCcJcYnFRlmOLeKj6E9bwVqZSmwxTBeC1D7zeRsQym+GVx8c7FoS+NWiYCgnL es5A83cw0AzdNWG+3gD16IsHaw2HqIcZZ6++HXbvhOSuR36AQBnKI/IE= X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=gmail.com 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 fnw97BWODz19 for ; Sat, 12 Oct 2024 13:04:48 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 73BA8485524 for ; Sat, 12 Oct 2024 13:00:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id CF73B485376 for ; Sat, 12 Oct 2024 12:59:46 +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 Ha4rBjL9Bj-Y for ; Sat, 12 Oct 2024 12:59:46 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.53; helo=mail-wr1-f53.google.com; envelope-from=desdechaves@gmail.com; receiver= Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 6F8CE485364 for ; Sat, 12 Oct 2024 12:59:46 +0200 (CEST) Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-37d462c91a9so1693031f8f.2 for ; Sat, 12 Oct 2024 03:59:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728730785; x=1729335585; darn=ntg.nl; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=5Pp0GgJmULZ7bBJfXs1hA9fnz5urtNpexCgg/zu6cdc=; b=XVWSrt2ePSduDYfZpPmQwSqOLrW5nBIUb6F/Ag8BpPg4jiZcHCLjn+B+a5xSMnzpqR E6rL3sEXEHyifHdKYBUT9QHE9CYMmsuPsiNlAfLY3FLByy4WFpzXGYFF0j7XF03rrRPv PJ+RV00giKAsNH64wQg0cSIJHAEdWmGZrNt0zMyEQ56RXlSCHI7KfPMxpZmv6ccqeS9h ndw+hFlZuchS3YiGt2avXQGaJbVp83x7W5yqABvN0+g7dZlmIRs6M0fNbd7Yfuy9xJd2 gaSJe3L9K+DcNoMTFTWTTsH6BAoNBIpqcODlhs0CLD5tHsmVQLEe+EEEHzwOg7anjJTn FJdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728730785; x=1729335585; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5Pp0GgJmULZ7bBJfXs1hA9fnz5urtNpexCgg/zu6cdc=; b=FpLRsaFDGHLKntQg7MbiKUaOG2d0VgEoExfjpDICxmqek23s8aTvJRkGHPE5B4PmfT wrf7CzQyZ9vW+oWXxdIgBnkUNu8Lfn1Vos+Ldct6Z9XdciC2Xyf4Xg/88lFDn/DHyuww FQ59j0v+bCRxn8FKKNyNKlpIz/iem1H0bX4X3oUmrZ+dWkPU8/VednWzYpvlLuJCMKJv 4Be4Z5a2LVdEoU6vKtrrPW9JptS0TfE2NTIgPIkps5eKr8eYE8vywiIr5gR/VHwg/bU5 HCzTsSSVPBZNE8mJ469YQ5QOCgIqfkouqyCDmMK30cuWtl0J85cEG2N9o7YXb39zlJ0R aLSQ== X-Gm-Message-State: AOJu0YyyQjXzUVM8LMMjTE3uSgDkKAE1quVfPPm0qu+S0cT7trAGLvFj 4NWkj8QEY5d2P6xyxKNPqhIQ2CUpvaJWl3lGoQuTMVknpZcSR5eK X-Google-Smtp-Source: AGHT+IGbswsNX1+x2qnPa+zjTGFrbZSUGm3DhO3mSkgnYQdKxDq/Ct+gndIqW0Yhw3WvkRtDACllUQ== X-Received: by 2002:adf:ef11:0:b0:37d:4610:dc5 with SMTP id ffacd0b85a97d-37d55262d68mr3935126f8f.44.1728730785412; Sat, 12 Oct 2024 03:59:45 -0700 (PDT) Received: from [192.168.1.216] (a94-133-39-243.cpe.netcabo.pt. [94.133.39.243]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37d4b6ce6a7sm6053513f8f.46.2024.10.12.03.59.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 12 Oct 2024 03:59:45 -0700 (PDT) Date: Sat, 12 Oct 2024 11:59:37 +0100 From: Jorge Manuel To: Wolfgang Schuster Message-ID: <95005a33-5c13-4e0a-8cb9-da33b86fa5be@Spark> In-Reply-To: References: <385b6085-f741-a7c8-f6c9-c0428fab17dd@gmail.com> <172864688458.1601626.15010054578069456025@cgl.ntg.nl> <6f8a48ed-ef4f-09f7-71cb-7c102d7ec1f3@gmail.com> X-Readdle-Message-ID: 95005a33-5c13-4e0a-8cb9-da33b86fa5be@Spark MIME-Version: 1.0 Message-ID-Hash: C3TCKLFFQE7H464MNN6WDJIIYZDHMGEE X-Message-ID-Hash: C3TCKLFFQE7H464MNN6WDJIIYZDHMGEE X-MailFrom: desdechaves@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 CC: mailing list for ConTeXt users X-Mailman-Version: 3.3.9 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Issue with Custom Conversion Code in Latest Version of ConTeXt 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="===============2596646094072805334==" --===============2596646094072805334== Content-Type: multipart/alternative; boundary="670a569e_507ed7ab_135" --670a569e_507ed7ab_135 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline To achieve a=C2=A0norepeat=C2=A0in a specific=C2=A0itemize=C2=A0block, I = need to introduce the=C2=A0norepeat=C2=A0at a higher level. This affects = all the children of that=C2=A0itemize. See the example below, please. In = the multiple-choice block, I want to avoid repetition, but afterward, I w= ant to restore the default behavior. =5Cdefine=5B1=5D=5CBoxedNumber=7B=5Cinframed=5Bwidth=3D3ex=5D=7B=5Cconver= tnumber=7Bn=7D=7B=231=7D=7D=7D =5Cdefineconversion =5BBoxedNumber=5D =5B=5CBoxedNumber=5D =5Cstarttext =5Cstartitemize=5BBoxedNumber,fit,repeat=5D=5Bstopper=3D,distance=3D=5Csp= aceamount=5D =C2=A0 =C2=A0=5Citem xxx =C2=A0 =C2=A0=5Cstartitemize=5BBoxedNumber,fit, norepeat=5D=5Bstopper=3D,= distance=3D=5Cspaceamount=5D =C2=A0 =C2=A0 =C2=A0=5Citem multiple choice =C2=A0=5Cstartitemize=5BA, columns, two, random, fit=5D=5Bstopper=3D=7B)=7D= ,style=3Dbold=5D %% =C2=A0=5Citem choice 1 =C2=A0=5Citem choice 2 =C2=A0=5Citem choice 3 =C2=A0=5Citem choice 4 =C2=A0=5Cstopitemize =C2=A0=5Citem normal question 1 =C2=A0=5Cstartitemize=5BBoxedNumber, repeat=5D %% =C2=A0=5Citem question 1 =5Cpar=5Cthinrules=5Bn=3D2=5D =C2=A0=5Citem question2 =5Cpar=5Cthinrules=5Bn=3D2=5D =C2=A0=5Cstopitemize =C2=A0 =C2=A0=5Cstopitemize =5Cstopitemize =5Cstoptext --670a569e_507ed7ab_135 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
To achieve a&=23160;norepeat= &=23160;in a specific&=23160;itemize= &=23160;block, I need to introduce the&=23160;nore= peat&=23160;at a higher level. This affects all the chil= dren of that&=23160;itemize. See the exampl= e below, please. In the multiple-choice block, I want to avoid repetition= , but afterward, I want to restore the default behavior.

=5Cdefine=5B1=5D=5CBoxedNumber=7B=5Cinframed=5Bwidth=3D= 3ex=5D=7B=5Cconvertnumber=7Bn=7D=7B=231=7D=7D=7D

=5Cdefineconversion =5BBoxedNumber=5D =5B=5CBoxedNumber=5D

=5Cstarttext

=5Cstartitemize=5BBoxedNumber,fit,repeat=5D=5Bstopper=3D,distance=3D=5Csp= aceamount=5D
&=23160; &=23160;=5Citem xxx
&=23160; &=23160;=5Cstartitemize=5BBoxedNumber,fit, norepeat=5D=5Bstopper= =3D,distance=3D=5Cspaceamount=5D
&=23160; &=23160; &=23160;=5Citem multiple choice
&=23160;=5Cstartitemize=5BA, columns, two, random, fit=5D=5Bstopper=3D=7B= )=7D,style=3Dbold=5D %%
&=23160;=5Citem choice 1
&=23160;=5Citem choice 2
&=23160;=5Citem choice 3
&=23160;=5Citem choice 4
&=23160;=5Cstopitemize

&=23160;=5Citem normal question 1
&=23160;=5Cstartitemize=5BBoxedNumber, repeat=5D %%
&=23160;=5Citem question 1 =5Cpar=5Cthinrules=5Bn=3D2=5D
&=23160;=5Citem question2 =5Cpar=5Cthinrules=5Bn=3D2=5D

&=23160;=5Cstopitemize


&=23160; &=23160;=5Cstopitemize
=5Cstopitemize

=5Cstoptext
--670a569e_507ed7ab_135-- --===============2596646094072805334== 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ --===============2596646094072805334==--