MediaWiki munozarasi:Wikificator.js

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 and , and A‘ etc. into . Jon Harald Søby (munozara) 00:09, 21-Iyul 2023 (UTC)

  Done.
Malikxan munozara 20:03, 23-Iyul 2023 (UTC)
„Wikificator.js“ sahifasiga qaytish.