ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Florent Michel <florent.m42@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Hyphenated word in html export
Date: Thu, 7 Nov 2024 22:35:58 +0000	[thread overview]
Message-ID: <CALOhoe+Y1EyvRy9n4vQu8L7wyHecqijuX18ociT9eHY=hH=6Zw@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 504 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 598 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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	other threads:[~2024-11-07 22:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-07 22:35 Florent Michel [this message]
2024-11-07 22:56 ` [NTG-context] " Florent Michel
2024-11-08  2:48   ` Rik Kabel
2024-11-08  7:04     ` Florent Michel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALOhoe+Y1EyvRy9n4vQu8L7wyHecqijuX18ociT9eHY=hH=6Zw@mail.gmail.com' \
    --to=florent.m42@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).