ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Apostrophe entity using \xmltexentity is ignored
@ 2022-10-08 19:20 Thangalin via ntg-context
  2022-10-08 21:49 ` Max Chernoff via ntg-context
  0 siblings, 1 reply; 2+ messages in thread
From: Thangalin via ntg-context @ 2022-10-08 19:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Thangalin

Has the handling for the apostrophe character entity changed recently?

In the following example, the \xmltexentity for apostrophe is ignored,
resulting in a straight apostrophe instead of a curled one:

% SOT
\xmltexentity{apos}{’}
\xmltexentity{lsquo}{‘}
\xmltexentity{rsquo}{’}
\xmltexentity{laquo}{«}
\xmltexentity{raquo}{»}

\startbuffer[document]
<body>
  &lsquo;Sylvia&apos;s spilled &laquo;wine&raquo;.&rsquo;
</body>
\stopbuffer

\startxmlsetups xml:xhtml
  \xmlsetsetup{\xmldocument}{body}{xml:*}
\stopxmlsetups

\startxmlsetups xml:body
  \xmlflush{#1}
\stopxmlsetups

\xmlregistersetup{xml:xhtml}

\starttext
  \xmlprocessbuffer{xhtml}{document}{}
\stoptext
% EOT

Any ideas on how to fix it?

Thank you.

mtx-context     | current version: 2022.09.11 20:44
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-08 21:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-08 19:20 Apostrophe entity using \xmltexentity is ignored Thangalin via ntg-context
2022-10-08 21:49 ` Max Chernoff via ntg-context

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).