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_SIGNED,DKIM_VALID, DKIM_VALID_EF,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 9529D23EB4 for ; Fri, 8 Nov 2024 03:54:04 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 5CD8C484AB0 for ; Fri, 8 Nov 2024 03:51:31 +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:in-reply-to:from:from :content-language:references:user-agent:mime-version:date:date :message-id:received:received:received:received:received :received; s=cgl; t=1731034290; x=1733626291; bh=B5vM5fSxC3hXLw1 JJo7BFmU2Fopul03PKykVNMII1zE=; b=P2y8GlgXRNGGLoIoV/T7n2Kcujk5Q9Q 4Bwb9QgwATKKuDCeuF9RekpZkRzqChdx9M7fHpVg9IbUtaWJyUXS0zro0Bb3sziN HTJ1z9bmVKsPR60olB1Ls3SmkdCdFXuUheYDpxBvmS1IxcmBCTwgV2kW7Qy7bOTB p/z0BIXJRNGc= 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 NlNR6jafG3Ix for ; Fri, 8 Nov 2024 03:51:30 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 8CC53485051 for ; Fri, 8 Nov 2024 03:49:50 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id D3DCB484145 for ; Fri, 8 Nov 2024 03:49:00 +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 9mB3cSMmJQfa for ; Fri, 8 Nov 2024 03:49:00 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=166.84.1.89; helo=mailbackend.panix.com; envelope-from=context@rik.users.panix.com; receiver= Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 15F254806B6 for ; Fri, 8 Nov 2024 03:48:59 +0100 (CET) Received: from [192.168.5.71] (syn-024-194-002-237.res.spectrum.com [24.194.2.237]) by mailbackend.panix.com (Postfix) with ESMTPSA id 4Xl3L22hY3z46q7 for ; Thu, 7 Nov 2024 21:48:58 -0500 (EST) Message-ID: Date: Thu, 7 Nov 2024 21:48:57 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Beta To: ntg-context@ntg.nl References: Content-Language: en-US From: Rik Kabel In-Reply-To: Message-ID-Hash: 6TBMZK6MPAMVXXAQQORTHB4LZWZEVYXZ X-Message-ID-Hash: 6TBMZK6MPAMVXXAQQORTHB4LZWZEVYXZ X-MailFrom: ConTeXt@rik.users.panix.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="===============8895100346323089684==" This is a multi-part message in MIME format. --===============8895100346323089684== Content-Type: multipart/alternative; boundary="------------f9J7xgBMeTBvnpmtdNI0U3C2" Content-Language: en-US This is a multi-part message in MIME format. --------------f9J7xgBMeTBvnpmtdNI0U3C2 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable On 2024-11-07 17:56, Florent Michel wrote: > Apologies for the double email. > > I raised=C2=A0just after sending the previous one that=C2=A0using=C2=A0= the =E2=80=98proper=E2=80=99=20 > utf-8 hyphen character (0x2010) instead of 0x002d solves the=C2=A0issue= . > I'd be interested to hear if someone=C2=A0has an easier-to-type=20 > solution,=C2=A0though. > > Le=C2=A0jeu. 7 nov. 2024 =C3=A0=C2=A022:35, Florent Michel a=20 > =C3=A9crit=C2=A0: > > Hello, > > Is there a way to preserve hyphenated=C2=A0words in the html export= ? > When exporting a document with ConTeXt, hyphens in the middle of > words seem to be replaced by soft hyphens,=C2=A0which are not displ= ayed > 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 > If you use *\setupbackend[export=3Dyes,hyphen=3Dno]* you will get a hard=20 hyphen (hex 2D) where you show a soft hyphen (hex AD). Whether that=20 addresses your larger document I cannot say, but it solves the problem=20 for your example. See . --=20 Rik --------------f9J7xgBMeTBvnpmtdNI0U3C2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 2024-11-07 17:56, Florent Michel wrote:
Apologies for the double email.=C2=A0

I raised=C2=A0just after sending the previous one that=C2=A0using= =C2=A0the =E2=80=98proper=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.

Le=C2=A0jeu. 7 nov. 2024 =C3= =A0=C2=A022:35, Florent Michel <flor= ent.m42@gmail.com> a =C3=A9crit=C2=A0:
Hello,

Is there a way to preserve hyphenated=C2=A0words in the html export?
When exporting a document with ConTeXt, hyphens in the middle of words seem to be replaced by soft hyphens,=C2=A0whi= ch are not displayed by my web browser.

Minimal example:=C2=A0

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

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

(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
If you use \setupbackend[export=3Dyes,hyp= hen=3Dno] you will get a hard hyphen (hex 2D) where you show a soft hyphen (hex AD). Whether that addresses your larger document I cannot say, but it solves the problem for your example. See <https://wiki.contextgarden.net/Comm= and/setupexport>.

--
Rik

--------------f9J7xgBMeTBvnpmtdNI0U3C2-- --===============8895100346323089684== 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 ___________________________________________________________________________________ --===============8895100346323089684==--