Author: yes0song
Description:
Summary
Introduce new features for East Asian languages. Examples are:
- Writing "[[Foo(bar)|]]" in the edit page and save the page, then it will be replaced with "[[Foo(bar)|Foo]]". (half-width parentheses without a space)
- Writing "[[Foo(bar)|]]" in the edit page and save the page, then it will be replaced with "[[Foo(bar)|Foo]]". (full-width parentheses without a space)
Explanation
Currently, the expression below is automatically changed to provide convenience in editing.
- [[Android (operating system)|]] -> [[Android (operating system)|Android]]
However, in East Asian languages, these isn't convenient.
In Chinese and Japanese, full-width parentheses () are usually used (and without space), such as "戦国時代(中国)".
In Korean, half-width parentheses () are overwhelmingly used like English but without space, such as "허브(식물)".
Because of technical limitation in MediaWiki, the notations above can't be used in Wikimedia projects in those languages. Titles in those projects are written like "戦国時代 (中国)" or "허브 (식물)" (half-width parentheses with a half-width space). It's not convenient for speakers of those languages.
Therefore, I suggest to add those handlings below:
- [[Foo(bar)|]] -> [[Foo(bar)|Foo]] (for Korean)
- [[Foo(bar)|]] -> [[Foo(bar)|Foo]] (for Chinese and Japanese)
PS
Similarly, the handling for a comma is supported in MediaWiki, the examples are below:
- [[Albany, New York|]] -> [[Albany, New York|Albany]]
- [[Francis II, Holy Roman Emperor|]] -> [[Francis II, Holy Roman Emperor|Francis II]]
The comma in "Albany, New York" was used to separate parts of geographical references, and the comma in "Francis II, Holy Roman Emperor" was used to indicate identity.
There are equivalences of a comma in East Asian languages (, and 、), but in East Asian languages, they aren't used as those usages above. Thus, the treatment for East Asian commas aren't needed.
Version: 1.20.x
Severity: enhancement