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 29CFF201BB for ; Fri, 8 Nov 2024 00:00:44 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 1403D484D76 for ; Thu, 7 Nov 2024 23:58:42 +0100 (CET) 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:message-id:date:date:from :from:in-reply-to:references:mime-version:received:received :received:received:received:received; s=cgl; t=1731020321; x= 1733612322; bh=H1TTcL+6gLfxsp7pRrwzOqhqllBaBz1S6c8JPxAbw6U=; b=d +KHULggVne5VQIP1lT4BZmUNDPt23hbsy7Ww68f9pXFwwwBsputLbtogavWKozhn +ElMYedHR/Gsv5Of9XwQ5EtGXBYwePwvt1/SRwhUml77N7vZBS+2DJOdX0Fc3k3a SBTI01SwcmYndRliTS368JV7wKg7XLzDEuq8OZelto= 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 U0_6m_34P6w7 for ; Thu, 7 Nov 2024 23:58:41 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 227EE484E8C for ; Thu, 7 Nov 2024 23:57:27 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id A6496484C61 for ; Thu, 7 Nov 2024 23:56:41 +0100 (CET) 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 KejPwf9PQ3ep for ; Thu, 7 Nov 2024 23:56:41 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.216.51; helo=mail-pj1-f51.google.com; envelope-from=florent.m42@gmail.com; receiver= Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (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 515F5484C5C for ; Thu, 7 Nov 2024 23:56:41 +0100 (CET) Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-2e3fca72a41so1232143a91.1 for ; Thu, 07 Nov 2024 14:56:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731020199; x=1731624999; darn=ntg.nl; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=gocpBeNgv773Kdcqc8ax+mlHtG6MWyndDS7o8QIJNHM=; b=f6yCJxOsw+y/NVW0rP2ELdFo3MmqY6AEBugbnjwVxFeCE3NVu5FW6SdoOERQqSPToQ e4GaJG+QMTqkIs/CBIr2d44oZV0OmUcx1/y9inVAoHe+A1txQ3XILK+85IBq5NtKYxFP jSzVPUNltHVWx5XGGobcZ3Q+OqFVN5r61dJY6UjN4kco+XWKtSRJR7bWB9c3PinPDFVQ p3CvG3PXlXkU6StmaHaLMBM9P9cU+s6acw8xfoI+9VBgjGHgrwXGBcHf6KM6xUMDiSYa TvfURN+IZDgFosH4ypTxVN7JnZ5ZUZI7/Zf7aWRl61vFYH//f6W2gSqMH3d29zPZo5nm 9bDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731020199; x=1731624999; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gocpBeNgv773Kdcqc8ax+mlHtG6MWyndDS7o8QIJNHM=; b=IXadKQD+HtSE5szOe9Us7mySRh4d0M4XrqmXKN5V6FZadeTlr7dVm+/yXyvYARg5kN RBdllJcF/XQXL6udUkb8p6blV6Tv1VuNYZuxdNc+9pMDfwkTtZnP/byO3dheH6/PScza ENRjKSJI/17xIXypVHyLAfCKezh6ix38cHf+UPI41P5nEA9EjDYcaojgiTlapW0lS69W 6EnuuG+uSl/GIue97xtjIMUU3m5q780sCfsIxY5pNQUV1AIiNJkAGmVZoajlTh/2kSE1 R30mru15A8MJfhlG/8m2MtpCuky70QLpVFGMv5do4oRrPzhjyPVnB4b59TDqtmRuFlNW OyBg== X-Gm-Message-State: AOJu0YyunJXbknz3tC0pY9fShmxnQJGRS3Dc4Zn3VqQJ5MFdyzhAPzhh 41w6VjGKQXwuhogPNqff/EJVkCrzXrh68icHqYgZYl7wtKuXyfa5B1EDzOSkhG9+Xmz/M5EsjIT +bYmemjjEBgnTRmfhT8/blCTym8x9QQ== X-Google-Smtp-Source: AGHT+IGgvPRP9ZJEjvHqF0u4Y+Q7Z4ZDTN2pqZNj233VtvCfRODrUCGOvFma+hrvvR6EIdrHZYkXJT9Bb4u6IQt12Fk= X-Received: by 2002:a17:90b:1a90:b0:2d3:c638:ec67 with SMTP id 98e67ed59e1d1-2e9b147d4fcmr1286373a91.0.1731020199545; Thu, 07 Nov 2024 14:56:39 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Florent Michel Date: Thu, 7 Nov 2024 22:56:23 +0000 Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: TR3DRIRPBI55HYL5BIXCDFASFN54C2WJ X-Message-ID-Hash: TR3DRIRPBI55HYL5BIXCDFASFN54C2WJ X-MailFrom: florent.m42@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.9 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Hyphenated word in html export 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="===============0935137929998501054==" --===============0935137929998501054== Content-Type: multipart/alternative; boundary="00000000000017d5c506265a8ce5" --00000000000017d5c506265a8ce5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Apologies for the double email. I raised just after sending the previous one that using the =E2=80=98proper= =E2=80=99 utf-8 hyphen character (0x2010) instead of 0x002d solves the issue. I'd be interested to hear if someone has an easier-to-type solution, though= . Le jeu. 7 nov. 2024 =C3=A0 22:35, Florent Michel a =C3=A9crit : > Hello, > > Is there a way to preserve hyphenated words in the html export? > When exporting a document with ConTeXt, hyphens in the middle of words > seem to be replaced by soft hyphens, which are not displayed by my web > browser. > > Minimal example: > > \setupbackend[export=3Dyes] > \starttext > co-worker > \stoptext > > The resulting .html file contains: >
> co=C2=ADworker
> > (There is apparently a soft hyphen between =E2=80=98co=E2=80=99 and =E2= =80=98worker=E2=80=99. The pdf > seems to render correctly.) > > Cheers, > Florent > --00000000000017d5c506265a8ce5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Apologies for the double email.=C2=A0

I raised=C2= =A0just after sending the previous one that=C2=A0using=C2=A0the =E2=80=98pr= oper=E2=80=99 utf-8 hyphen character (0x2010) instead of 0x002d solves the= =C2=A0issue.=C2=A0
I'd be interested to hear if someone=C2=A0has an = easier-to-type solution,=C2=A0though.

<= div dir=3D"ltr" class=3D"gmail_attr">Le=C2=A0jeu. 7 nov. 2024 =C3=A0=C2=A02= 2:35, Florent Michel <florent.m= 42@gmail.com> a =C3=A9crit=C2=A0:
Hello,

Is there a way to p= reserve hyphenated=C2=A0words in the html export?
When exporting a docu= ment with ConTeXt, hyphens in the middle of words seem to be replaced by so= ft hyphens,=C2=A0which are not displayed by my web browser.

Minimal = example:=C2=A0

\setupbackend[export=3Dyes]
\starttext
co-worke= r
\stoptext

The resulting .html file contains:
<div>
co=C2=ADworker</div>

(There is apparently a sof= t hyphen between =E2=80=98co=E2=80=99 and =E2=80=98worker=E2=80=99. The pdf= seems to render correctly.)

Cheers,
Florent
--00000000000017d5c506265a8ce5-- --===============0935137929998501054== 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 ___________________________________________________________________________________ --===============0935137929998501054==--