മീഡിയവിക്കി സംവാദം:Common.js

വിക്കിപീഡിയ, ഒരു സ്വതന്ത്ര വിജ്ഞാനകോശം.

ഉള്ളടക്കം

[തിരുത്തുക] Bug:Inbuilt tool stealing character

താഴെപ്പറയുന്ന കോഡില്‍ ആദ്യത്തെ if loop-ഇല്‍ ഉള്ള ചെക്കിനോടൊപ്പം ദയവായി ഇന്‍ബില്‍ട്ട് ടൂള്‍ ഉപയോഗിക്കാനുള്ള checkbox selected ആണെങ്കില്‍ മാത്രം imeStatus check ചെയ്യാന്‍ താത്പര്യപ്പെടുന്നു. ഇതല്ലെങ്കില്‍ return false ‍ ചെയ്യുമ്പോള്‍ character miss ആവും. കാരണം ഈ കോഡ് processKeys() എന്ന handler-ല്‍ ആണ്‌ run ചെയ്യുന്നത്.
 
                        '''if (imeStatus == false || realTime)''' {
                             realTime = false;
                             if (chk) { chk.checked = realTime; chkSb.checked = realTime; spanSb.innerText = chkSb.checked }
                             imeStatus = true;
                             //alert('A Malayalam input tool was detected. Disabling in-built transliteration. To turn it On again use Ctrl+M');
                             window.status='A Malayalam input tool was detected. Disabling in-built transliteration. To turn it On again use Ctrl+M';//FF failure
                             return false;
                        }
ഇതുകൊണ്ടുള്ള തലവേദന, ഇന്‍ബില്‍ട്ട് ടൂള്‍ വന്നതില്പ്പിന്നെ മൊഴി ഏതാണ്ട് ഉപയോഗിക്കാന്‍ പറ്റാതായിരിക്കുന്നു. ഒരുപക്ഷേ കിട്ടിയ character miss ആയാല്‍ എന്തു ചെയ്യണം എന്ന് handle ചെയ്യാത്തതിലുള്ള മൊഴിയിലെ ബഗുകൊണ്ടു തന്നെയാവാം അത്. പക്ഷേ മൊഴിയാണ്‌ error correction-ല്‍ ഇന്‍ബില്‍ട്ട് ടൂളിനെക്കാള്‍ മെച്ചെമെന്ന് അറിയാമല്ലോ. അതുകൊണ്ട് ആദ്യമൊക്കെ ഇന്‍ബില്‍ട്ട് ടൂള്‍ ഉപയോഗിച്ചാലും പിന്നീട് മൊഴി ഉപയോഗിക്കുന്നതാണ് കൂടുതല്‍ productive - എന്റെ അനുഭവം വച്ച്. Hence I request to impart a fix at the earliest.

--ജേക്കബ് 13:37, 8 സെപ്റ്റംബര്‍ 2007 (UTC)

- Thanks, looks like the issue with stealing character is fixed. However my Mozhi Keyman still behaves wierd.. --ജേക്കബ് 17:12, 9 സെപ്റ്റംബര്‍ 2007 (UTC)

[തിരുത്തുക] Bug:Many Kepresses repeat after inbuilt tool switches itself off for Mozhi

This is a bit wierd - when Inbuit tool detects Mozhi, tool switches itself for Mozhi. But in most cases, further typing and transliteration using Mozhi starts behaving wierd. Edit box almost always generates two keystrokes for certain key presses. eg: if I press ki = കി, I get കീ. It is then tough to edit since I can't delete one ദീര്‍ഘം alone. Similar with many other characters.

  1. Does Javascript in Inbuilt tool change some
    1. Key press sensitivity?
    2. Key debouncing?
  2. Even after Inbuilt tool disabling itself, are some internal transliteration functions active causing additional keystrokes?

I can not recreate this error from your descriptions. Please provide your browser version also -- പെരിങ്ങോടന്‍ 18:42, 9 സെപ്റ്റംബര്‍ 2007 (UTC)

  • Browser IE: v. 6.0.2900.2180.xpsp_sp2_qfe.070227-2300
  • OS: XP+SP2
  • Mozhi - Tavultesoft Keyman: v. 6.0.164.0
  • Further, I have Eastern Language support enabled in windows. In Mozhi, I have turned on Unicode supplementary character display but not turned on "Unknown language". Also, I have enabled Keyboard hotkey toggle and Simulate AltGr with Ctrl+Alt.
Thanks --ജേക്കബ് 19:13, 9 സെപ്റ്റംബര്‍ 2007 (UTC)
  1. Could it be possible to configure inbuilt tool such that I can disable loading of transliteration tool functions defined in common.js completely using some configuration in my monobook.js?

This is a good suggestion. I will try to achieve that functionality -- പെരിങ്ങോടന്‍ 18:42, 9 സെപ്റ്റംബര്‍ 2007 (UTC)

--ജേക്കബ് 17:20, 9 സെപ്റ്റംബര്‍ 2007 (UTC)

[തിരുത്തുക] Bug: Ctrl+M Keycode = 13 (?)

1. Sometimes, when Ctrl+M is pressed to toggle inbuilt tool, edits are submitted by mistake. Looking at the below code, it seemed like it is because Ctrl+M is newline.

                if ((e.keyCode == 13 && e.ctrlKey) || (e.which == 109 && e.ctrlKey))
                    {
                            realTime = !realTime;
                                        lija_setCookie('mlWikiTranslit',realTime,1);//save in cookie
                                        var chk = document.getElementById('realtime');
                                        var chkSb = document.getElementById('sbrealtime');
                                        if (chk) { chk.checked = realTime; }
                                        if (chkSb) { chkSb.checked = realTime; }
                        return false;
                    }

2. Another related lower priority issue is that inbuilt tool is not supported in all pages of ml.wikipedia now. So when Ctrl+M is pressed by a user in such a page, page goes to submit eg: keep cursor in username edit box in പുതിയ താളുകള്‍ എന്ന page and then press Ctrl+M to type a malayalam username. Instead of inbuilt tool toggling, page goes to "submit".

--ജേക്കബ് 17:29, 9 സെപ്റ്റംബര്‍ 2007 (UTC)

[തിരുത്തുക] Bug:Occassional problem with “മാ”

Occassionally, an attempt to type "മാ" gives only "മ‌അ" even after repeated attempts. I am not able to consistently isolate the precise scenario.. Maybe a code-review could help. --ജേക്കബ് 10:38, 15 സെപ്റ്റംബര്‍ 2007 (UTC)

ആശയവിനിമയം