Sujet : Re: SLRTR 000000: ZWJ in Sphinx
De : nntp.mbourne (at) *nospam* spamgourmet.com (Mark Bourne)
Groupes : comp.lang.pythonDate : 07. May 2025, 19:44:45
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vvg9mv$16avl$1@dont-email.me>
References : 1
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 SeaMonkey/2.53.20
Stefan Ram wrote:
The Use of the U+200D "ZERO WIDTH JOINER" (ZWJ) Character in
reStructuredText Input for "Sphinx"
(Technical Report SLRTR 000000)
(This technical report was prepared by the author during his spare
time.)
Stefan Ram
2025
Abstract - The character U+200D "ZERO WIDTH JOINER" (ZWJ) may be
employed in inputs written in the "reStructuredText" (rst) markup
notation for the software documentation tool "Sphinx" in order to permit
the inclusion of special characters within embedded code segments.
To ensure that Sphinx's automatic line breaking continues to function
correctly, two minor adjustments to Sphinx are required.
Does using U+2060 "WORD JOINER" instead avoid the need to modify Sphinx?
Just going by the description at <
https://unicode-explorer.com/c/2060>, which describes it as "a zero width non-breaking space", that seems to be what you want. I'm not sure from the description of U+200D whether that one's supposed to allow breaking, but U+2060 sounds like it definitely shouldn't allow breaking ;).
-- Mark.