MediaWiki munozarasi:Wikificator.js
Eng oxirgi fikr: 9 oy oldin (Malikxan tomonidan „Change“ mavzusida)
TypeError: document.editform is undefined tahrir
@Xusinboy Bekchanov: this scripts causes TypeError: document.editform is undefined. Helder 00:54, 9-Iyul 2015 (UTC)
Change tahrir
@Malikxan: Hello! Salazarov mentioned in a Telegram chat that this script wasn't working correctly when converting some apostrophe-like characters. In order to fix it, please change the following lines:
// UZBEK01
txt = txt.replace(/(O|o|G|g)\`/g, "$1ʻ")
txt = txt.replace(/(A|a|E|e|N|n|T|t)\`/g, "$1ʼ")
txt = txt.replace(/(O|o|G|g)\ʼ/g, "$1ʻ")
txt = txt.replace(/(A|a|E|e|N|n|T|t)\ʻ/g, "$1ʼ")
txt = txt.replace(/(O|o|G|g)\’/g, "$1ʻ")
txt = txt.replace(/(A|a|E|e|N|n|T|t)\’/g, "$1ʼ")
into this:
// UZBEK01
txt = txt.replace(/([OoGg])[`ʻ’‘]/g, "$1ʻ")
txt = txt.replace(/([AaEeNnTt])[`ʻ’‘]/g, "$1ʼ")
The functionality should remain the same, except that it will now also convert e.g. O‘ and G‘ into Oʻ and Gʻ, and A‘ etc. into Aʼ. Jon Harald Søby (munozara) 00:09, 21-Iyul 2023 (UTC)