Thank you Rik! I confirm this works, both on my minimal example and longer
document.

On Fri, Nov 8, 2024, 02:51 Rik Kabel <cont...@rik.users.panix.com> wrote:

> On 2024-11-07 17:56, Florent Michel wrote:
>
> Apologies for the double email.
>
> I raised just after sending the previous one that using the ‘proper’ 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 à 22:35, Florent Michel <florent....@gmail.com> a
> écrit :
>
>> 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=yes]
>> \starttext
>> co-worker
>> \stoptext
>>
>> The resulting .html file contains:
>> <div>
>> co­worker</div>
>>
>> (There is apparently a soft hyphen between ‘co’ and ‘worker’. The pdf
>> seems to render correctly.)
>>
>> Cheers,
>> Florent
>>
> If you use *\setupbackend[export=yes,hyphen=no]* 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/Command/setupexport>.
>
> --
> Rik
>
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to