Difference between revisions of "Thread:User talk:Mehtab ahmed/Please DON'T replace semicolons that are part of "numeric character entity references"."

From translatewiki.net
Jump to navigation Jump to search
m
m
Line 2: Line 2:
 
Replace the semicolon in that syntax by Arabic semicolons breaks the encoding, because <code>&amp;#32</code> no longer means a valid numeric character entity; so instead of the space, we'll see an ampersand, an hash sign, the digits 32 and your incorrect Arabic semicolon.
 
Replace the semicolon in that syntax by Arabic semicolons breaks the encoding, because <code>&amp;#32</code> no longer means a valid numeric character entity; so instead of the space, we'll see an ampersand, an hash sign, the digits 32 and your incorrect Arabic semicolon.
   
So learn and read the doc ! Any HTML/wiki sequence starting by <code>&amp;</code> and terminated by a <code>;</code>, and embedding in the middle a Latin symbolic name or a <code>#</code> followed by a decimal or hexadecimal number, is the STANDARD way to represent single characters. For various reasons, some characters in the wiki/HTML syntax MUST be represented this way because of syntax limitations (here this is needed to avoid the leading space to be trimmed as it is part of the actual translation).
+
So learn and read the doc ! Any HTML/wiki sequence starting by <code>&amp;</code> and terminated by a <code>;</code>, and embedding in the middle a Latin symbolic name or a <code>#</code> followed by a decimal number (or hexadecimal number after an <code>x</code>), is the STANDARD way to represent a single character, based on their Unicode code point (or predefined symbolic names like in <code>&amp;nbsp;</code>). For various reasons, some characters in the wiki/HTML syntax MUST be represented this way because of syntax limitations (here this is needed to avoid the leading space to be trimmed as it is part of the actual translation).
   
 
We've reverted multiple times your past error about them. Stop doing that and look at edit comments, and the documentation displayed along with the messages to translate.
 
We've reverted multiple times your past error about them. Stop doing that and look at edit comments, and the documentation displayed along with the messages to translate.

Revision as of 20:40, 23 August 2019

Please be aware that the wiki/HTML code &#32; is the standard way to represent a single ASCII space using a numeric character entity reference. Replace the semicolon in that syntax by Arabic semicolons breaks the encoding, because &#32 no longer means a valid numeric character entity; so instead of the space, we'll see an ampersand, an hash sign, the digits 32 and your incorrect Arabic semicolon.

So learn and read the doc ! Any HTML/wiki sequence starting by & and terminated by a ;, and embedding in the middle a Latin symbolic name or a # followed by a decimal number (or hexadecimal number after an x), is the STANDARD way to represent a single character, based on their Unicode code point (or predefined symbolic names like in &nbsp;). For various reasons, some characters in the wiki/HTML syntax MUST be represented this way because of syntax limitations (here this is needed to avoid the leading space to be trimmed as it is part of the actual translation).

We've reverted multiple times your past error about them. Stop doing that and look at edit comments, and the documentation displayed along with the messages to translate.

If you continue changing repeatedly these syntaxic semicolons and refuse to look at the documentation and edit comments (where your own edits were already reverted with explicit comments), you are just breaking Mediawiki, and we'll have no other choice than requesting your banning from editing this site as you're breaking existing and perfectly valid work done by others (especially in the core parts of the Mediawiki translation which is complete for Arabic and that you should not break without careful inspection and understanding of what you do).

Thanks.