|
|
| Line 184: |
Line 184: |
| == Private Use Area and invisible formatting characters == | | == Private Use Area and invisible formatting characters == |
| The only invisible characters in the editable text should be spaces and tabs. However, other invisible characters are often inserted inadvertently by pasting from a word processor. These can cause confusion with editors and handling problems with editing software. Any necessary invisible or [[Wikipedia:Private Use Area|Private Use Area]] (PUA) characters should be substituted with their decimal or hexadecimal code values so that they can be edited properly. | | The only invisible characters in the editable text should be spaces and tabs. However, other invisible characters are often inserted inadvertently by pasting from a word processor. These can cause confusion with editors and handling problems with editing software. Any necessary invisible or [[Wikipedia:Private Use Area|Private Use Area]] (PUA) characters should be substituted with their decimal or hexadecimal code values so that they can be edited properly. |
|
| |
| === Mixed right-to-left text ===
| |
| When right-to-left text is embedded in certain left-to-right contexts, such as when tagged with a reference, it may require control characters to display properly. The marker to return to left-to-right text should be encoded as [[Left-to-right mark|<code>&lrm;</code>]] or supplied through the template {{tlx|Rtl-lang}}.
| |
|
| |
| Depending on your browser, there may be a difference between the display of unformatted Urdu:<br /><!--NOTE: The display of the "unformatted" ones may look particularly weird in certain browsers when previewing this section by itself; that's kind of an illustration of the problem, so don't worry about it. -->
| |
| {{in5}}{{!xt|<code>خ ?<nowiki><ref></nowiki>{{var|citation details}}<nowiki></ref></nowiki></code>}}: خ ?{{dummy ref}}
| |
| with formatted:<br />
| |
| {{in5}}{{xt|<code>خ&lrm; ?<nowiki><ref></nowiki>{{var|citation details}}<nowiki></ref></nowiki></code>}}: خ‎ ?{{dummy ref}} or {{xt|<code><nowiki>{{Rtl-lang|ur|خ}} ?<ref></nowiki>{{var|citation details}}<nowiki></ref></nowiki></code>}}: {{Rtl-lang|ur|خ}} ?{{dummy ref}}
| |
|
| |
| and unformatted:<br />
| |
| {{in5}}{{!xt|<code>(خ)<nowiki><ref></nowiki>{{var|citation details}}<nowiki></ref></nowiki></code>}}: (خ){{dummy ref}}<br />
| |
| with formatted:<br />
| |
| {{in5}}{{xt|<code>(خ)&lrm;<nowiki><ref></nowiki>{{var|citation details}}<nowiki></ref></nowiki></code>}}: (خ)‎{{dummy ref}} or {{xt|<code><nowiki>{{Rtl-lang|ur|(خ)}}<ref></nowiki>{{var|citation details}}<nowiki></ref></nowiki></code>}}: {{Rtl-lang|ur|(خ)}}{{dummy ref}}
| |
|
| |
| If there is intervening LTR text, as in <code>خ abc<nowiki><ref></nowiki>{{var|citation details}}<nowiki></ref></nowiki></code>, a control character is not required. Spacing and most punctuation, however, are not defined as either LTR or RTL, so the direction of the text needs to be reset manually.
| |
|
| |
|
| ===PUA characters=== | | ===PUA characters=== |