Template:CGJ: Difference between revisions
No edit summary |
m (deleting extraneous tag) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
Usage: <nowiki>{{CGJ|<character with diacritic>|<combining diacritic>}}</nowiki></pre> | Usage: <nowiki>{{CGJ|<character with diacritic>|<combining diacritic>}}</nowiki></pre> | ||
The ''[[wp:Combining Grapheme Joiner|Combining Grapheme Joiner]]'' is the legitimate means to prevent Mediawiki's [[wp:Uncode equivalence|canonical "recomposition" of unicode characters with diacritics]]. This is often useful e.g. to get '''í͏̨''' with the CGJ against '''į́''' without it. '''NB:''' since the CGJ character itself is zero-width and invisible it is provided as a [[Template:CGJ]] which automatically inserts the CGJ between its two parameters! | The ''[[wp:Combining Grapheme Joiner|Combining Grapheme Joiner]]'' is the legitimate means to prevent Mediawiki's [[wp:Uncode equivalence|canonical "recomposition" of unicode characters with diacritics]]. This is often useful e.g. to get '''í͏̨''' with the CGJ against '''į́''' without it. '''NB:''' since the CGJ character itself is zero-width and invisible it is provided as a [[Template:CGJ]] which automatically inserts the CGJ between its two parameters! | ||
This is in fact the most graceful way of handling [[Help:Special_character_insertion#A_word_of_warning|the problem with ugly diacritic recomposition]]: the day browsers or Mediawiki or Unicode or whatever learns to handle these combinations gracefully we can just change the definition of this template by removing the CGJ. Sure the template will then actually do nothing, but it's better than having obsolete hacks lying around forever. | This is in fact the most graceful way of handling [[Help:Special_character_insertion#A_word_of_warning|the problem with ugly diacritic recomposition]]: the day browsers or Mediawiki or Unicode or whatever learns to handle these combinations gracefully we can just change the definition of this template by removing the CGJ. Sure the template will then actually do nothing, but it's better than having obsolete hacks lying around forever. [[User:Melroch|BPJ]] 12:37, 9 March 2009 (UTC)</noinclude> |
Latest revision as of 00:29, 2 March 2018
͏
Usage: {{CGJ|<character with diacritic>|<combining diacritic>}}
The Combining Grapheme Joiner is the legitimate means to prevent Mediawiki's canonical "recomposition" of unicode characters with diacritics. This is often useful e.g. to get í͏̨ with the CGJ against į́ without it. NB: since the CGJ character itself is zero-width and invisible it is provided as a Template:CGJ which automatically inserts the CGJ between its two parameters!
This is in fact the most graceful way of handling the problem with ugly diacritic recomposition: the day browsers or Mediawiki or Unicode or whatever learns to handle these combinations gracefully we can just change the definition of this template by removing the CGJ. Sure the template will then actually do nothing, but it's better than having obsolete hacks lying around forever. BPJ 12:37, 9 March 2009 (UTC)