The zero-width non-joiner (ZWNJ) is a non-printing character used in the computerization of writing systems that make use of ligatures. When placed between two characters that would otherwise be connected into a ligature, a ZWNJ causes them to be printed in their final and initial forms, respectively. This is also an effect of a space character, but a ZWNJ is used when it is desirable to keep the words closer together or to connect a word with its morpheme.
The ZWNJ is encoded in Unicode as U+200C ZERO WIDTH NON-JOINER (HTML
Use of ZWNJ and unit separator for correct typographyEdit
In certain languages, the ZWNJ is necessary for unambiguously specifying the correct typographic form of a character sequence.
|Correct (with ZWNJ)||Incorrect||Meaning|
(rendered from right to left):
||Persian 'I want to'|
||German 'edition' (compound of "auf"+"Lage")|
||German (regional) '(kind of) snack'|
(compound noun "Brot"+"Zeit" = 'bread time'),
shown in Fraktur
||Not a compound of "dea"+"fly", but the adverb of "deaf"|
||In Nepali "of husband" or "of respected person" according as what "श्रीमान्" is used to represent (husband or respected person).|
||র্যাম means RAM. There is a vowel in Bengali (অ্যা) which is used to write foreign words such as RAM, Bat, Fan etc. It hasn't its own character.|
The picture shows how the code looks when it is rendered correctly, and in every row the correct and incorrect pictures should be different. If the correct display and the incorrect one look the same to you, or if either of them is significantly different from the corresponding picture, your system is not displaying the Unicode correctly.
In German typography, ligatures may not cross the constituent boundaries within compounds. Thus, in the first German example, the prefix Auf- is separated from the rest of the word to prohibit the ligature fl. Similarly in English, ligatures should not cross morpheme boundaries. For example, in some words 'fly' and 'fish' are morphemes but in others they're not; therefore words like 'deafly' and 'selfish' should not have ligatures (respectively of fl and fi) while 'dayfly' and 'catfish' should have them.
Persian uses this character extensively for certain prefixes, suffixes and compound words. It is necessary for disambiguating compounds from non-compound words, which use a full space.
Use of ZWNJ to display alternate formsEdit
In Indic scripts, insertion of a ZWNJ after a consonant either with a halant or before a dependent vowel prevents the characters from being joined properly:
In Devanagari, the characters क् and ष typically combine to form क्ष, but when a ZWNJ is inserted between them, क्ष (code:
क्‌ष) is seen instead.
In Kannada, the characters ನ್ and ನ combine to form ನ್ನ, but when a ZWNJ is inserted between them, ನ್ನ is displayed. That style is typically used to write non-Kannada words in Kannada script: "Facebook" is written as ಫೇಸ್ಬುಕ್, though it can be written as ಫೇಸ್ಬುಕ್. ರಾಜ್ಕುಮಾರ್ and ರಾಮ್ಗೊಪಾಲ್ are examples of other proper nouns that need ZWNJ.
In Bengali, the characters র (consonant) and the অ্যা (vowel) combine to form র্য, a typographic ligature of র and য, because অ্যা isn't a single character but a sequence of 3 letters (অ্,য,া). To fix the problem ZWNJ is used. Examples: The words র্যাব, র্যান্ডম etc. (loanwords from English) are fixed by inserting ZWNJ. Without ZWNJ they are shown as র্যাব, র্যান্ডম. Words like উদ্ঘাটন (code:
ঘাটন) and ইক্রা also require ZWNJ to be displayed properly.
The symbol to be used on keyboards which enable the input of the ZWNJ directly is standardized in Amendment 1 (2012) of ISO/IEC 9995-7:2009 "Information technology – Keyboard layouts for text and office systems – Symbols used to represent functions" as symbol number 81, and in IEC 60417 "Graphical Symbols for use on Equipment" as symbol no. IEC 60417-6177-2.
- "When should I not use a ligature in English typesetting?". english.stackexchange.org.
- "The Zero-Width-Non-Joiner". nmelrc.org. Archived from the original on July 8, 2012.