The zero-width space (rendered: ; HTML entity: or ), abbreviated ZWSP, is a non-printing character used in computerized typesetting to indicate where the word boundaries are, without actually displaying a visible space in the rendered text. This enables text-processing systems for scripts that do not use explicit spacing to recognize where word boundaries are for the purpose of handling line breaks appropriately.
The zero-width space is Unicode character U+200B, and is located in the Unicode General Punctuation block. In HTML, it can be represented by the character entity reference .
The zero-width space can be used to mark word breaks in languages without visible space between words, such as Thai language, Myanmar language, Khmer language, and Japanese.
In justified text, the rendering engine may add inter-character spacing, also known as letter spacing, between letters separated by a zero-width space, unlike around fixed-width spaces.
By contrast, the following words have not been separated:
The first text is broken into lines but only at word boundaries, and resizing the browser window will re-break the text accordingly, while the second text is not broken at all.
In HTML, it can be referenced as , or . Additionally, the character entities ​, ​, ​, and ​ all also refer to the zero-width space, contrary to what their names suggest. Entities/ZeroWidthSpace in MathML Version 2.0
The TeX representation is ; the LaTeX representation is ​; and the groff representation is ​.
As the zero-width space is an invisible character, it is convenient to have a visible symbol for it on keyboards and in keyboard documentation. The standard ISO/IEC 9995-7 gives symbol 72 for the zero-width space, which is also catalogued in IEC 60417 as reference 6072-10.
|
|