Sujet : Re: SLRTR 000000: ZWJ in Sphinx
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.pythonDate : 07. May 2025, 20:17:04
Autres entêtes
Organisation : Stefan Ram
Message-ID : <literal-20250507201601@ram.dialup.fu-berlin.de>
References : 1 2
Mark Bourne <
nntp.mbourne@spamgourmet.com> wrote or quoted:
Does using U+2060 "WORD JOINER" instead avoid the need to modify Sphinx?
I haven't seen any code in Sphinx that fixes width calculations
for this special character, so I'm guessing you'd still have to
change Sphinx. But here's the thing:
My issue was that some characters just can't be used inside ``...``
for inline code, and I wasn't sure what to do when I needed to
generate inline code with those "forbidden" characters. But now
I found out about the ":literal:" role, which apparently lets you
include /any/ character - even if it's a bit more to type. That would
be really helpful for my program that generates reStructuredText.