Module talk:Citation/CS1/Feature requests: Difference between revisions

Content deleted Content added
Suppress spurious warning about zero-width joiner: suggest workaround and alternative solution
Line 311:
:There's no warning about the zero width joiner character though I did use one. The downsides are 1) people are used to copy/pasting UTF-8 strings and would need to convert them to HTML entities. 2) If the entire title is converted then it's no longer human readable when in edit-mode and is confusing to humans should just the zero-width joiners be entered as entities.
 
: Another way to code the template check which is to figuresee outif theany language blocks being usedcharacters in athe string. being If theyexamined are in apart language blockblocks that includes the use ofuses characters such as the zero-width joiner and to then don't issuesuppress warnings whenabout thosethe characters arezero-width usedjoiners. All 13 characters in the example title areprior to the zero-width joiner were in the [[Malayalam (Unicode block)]] which runs from U+0D00 to U+0D7F. This allows the code to detect and generate warnings should characters from two or more blocks be used in the same string. For example, we would not expect a Malayalam string to contain a character from the [[Cyrillic (Unicode block)]]. --[[User:Marc Kupper|Marc Kupper]]|[[User talk:Marc Kupper|talk]] 01:22, 8 June 2016 (UTC)