Jump to content


Photo

New enigma2 VirtualKeyBoard


  • This topic is locked This topic is locked
36 replies to this topic

#1 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 19 September 2019 - 12:26

New virtual keyboard

New approach for virtual keyboard for enigma2
-windows keyboard layout
-adding any language without editing the code.
-built in search history and google suggestion as option
-easy flexibilty and moving between keys
-shortcuts available for easy typing.

The new vertual keyboard designed to be used by developers and can be imported similar to system virtualkeyboard
from NewVirtualKeyBoard import VirtualKeyBoard

But also can be used as a replacement for the system virtualkeyboard
Setup:
From telnet --== LINK REMOVED DUE TO LICENCE LIMITATIONS FROM SAMSAMSAM ==--
restart enigma2
The New virtual keyboard setup found under main menu-system
screenshot-8.png

select the new virtual keyboard and after saving the new keyboard will be available everywhere in the image

Warning:
Playing with system files may disturb the image,although i made a lot of precautions to prevent this, better to take backup of image screens/VirtualKeyBoard.py,although the setup already take backup for this file in same screens directory as VirtualKeyBoard_backup.py

screenshot-9.png

screenshot-10.png

screenshot-11.png

Re: New enigma2 VirtualKeyBoard #2 foxbob

  • Senior Member
  • 612 posts

+18
Neutral

Posted 20 September 2019 - 12:21

Error starting search in plugin-enigma2-plugin-extensions-youtube.

REMOVE Peer et1x000
REMOVE Peer et1x000
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Components/ActionMap.py", line 57, in action
  File "/usr/lib/enigma2/python/Plugins/Extensions/YouTube/YouTubeSearch.py", line 255, in openKeyboard
  File "/usr/lib/enigma2/python/mytest.py", line 289, in openWithCallback
    dlg = self.open(screen, *arguments, **kwargs)
  File "/usr/lib/enigma2/python/mytest.py", line 302, in open
    self.execBegin()
  File "/usr/lib/enigma2/python/mytest.py", line 223, in execBegin
    c.execBegin()
  File "/usr/lib/enigma2/python/Screens/Screen.py", line 93, in execBegin
  File "/usr/lib/enigma2/python/Screens/VirtualKeyBoard.py", line 912, in onWindowShow
    self.setText(self.startText)
  File "/usr/lib/enigma2/python/Screens/VirtualKeyBoard.py", line 954, in setText
    self['text'].right()
  File "/usr/lib/enigma2/python/Components/Input.py", line 100, in right
  File "/usr/lib/enigma2/python/Screens/VirtualKeyBoard.py", line 531, in timeout
    self.nvkTimeoutCallback()
  File "/usr/lib/enigma2/python/Screens/VirtualKeyBoard.py", line 1593, in input_updated
    self.updateSuggestions()
TypeError: updateSuggestions() takes exactly 2 arguments (1 given)


Re: New enigma2 VirtualKeyBoard #3 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 20 September 2019 - 13:32

Yes. youtube Tappat use virtualkeyboard.py in different way .

the attached simple edit for YouTubeSearch.py

    def openKeyboard(self):
        self['config'].getCurrent()[1].help_window.instance.hide()
        from Screens.VirtualKeyBoard import VirtualKeyBoard
        self.session.openWithCallback(self.keyBoardCallback, VirtualKeyBoard, '')

attached  YouTubeSearch.py tp solve th error

 



Re: New enigma2 VirtualKeyBoard #4 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 20 September 2019 - 13:35

Yes. youtube Tappat use virtualkeyboard.py in different way .
the attached simple edit for YouTubeSearch.py
def openKeyboard(self):        self['config'].getCurrent()[1].help_window.instance.hide()        from Screens.VirtualKeyBoard import VirtualKeyBoard        self.session.openWithCallback(self.keyBoardCallback, VirtualKeyBoard, '')
attached YouTubeSearch.py to solve the error

Re: New enigma2 VirtualKeyBoard #5 foxbob

  • Senior Member
  • 612 posts

+18
Neutral

Posted 20 September 2019 - 15:21

Now it starts, the language has chosen English, on the France icon. If you try to remove the French language, crash.Skin default.

REMOVE Peer et1x000
REMOVE Peer et1x000
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Components/ActionMap.py", line 57, in action
  File "/usr/lib/enigma2/python/Screens/VirtualKeyBoard.py", line 394, in keyok
    activeKBLayoutId=self.getActive_keylayout()
  File "/usr/lib/enigma2/python/Screens/VirtualKeyBoard.py", line 235, in getActive_keylayout
    selectedKBLayoutId = self.KBsettings.keys_layout.value
AttributeError: 'LanguageListScreen' object has no attribute 'KBsettings'

Attached Files



Re: New enigma2 VirtualKeyBoard #6 foxbob

  • Senior Member
  • 612 posts

+18
Neutral

Posted 20 September 2019 - 17:20

When searching in English in GoogleSuggestions autocomplete appears, when searching in Russian there are no autocomplete appears.

Attached Files



Re: New enigma2 VirtualKeyBoard #7 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 20 September 2019 - 18:28

thanks foxbob for reporting bugs
now crash fixed when removing languages
also Russian autocomplete fixed

screenshot-972.png

to install last fixes from telnet (recommended) or to install from attached file now --== LINK REMOVED DUE TO LICENCE LIMITATIONS FROM SAMSAMSAM ==--
restart enigma2
Temporary small plugin appears in main menu to test New virtualkeyboard
screenshot-974.png

Edited by Frenske, 23 September 2019 - 08:10.


Re: New enigma2 VirtualKeyBoard #8 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 20 September 2019 - 22:13

Newvertual keyboard 1.8 fixed bugs

telnet setup --== LINK REMOVED DUE TO LICENCE LIMITATIONS FROM SAMSAMSAM ==--

Re: New enigma2 VirtualKeyBoard #9 foxbob

  • Senior Member
  • 612 posts

+18
Neutral

Posted 21 September 2019 - 13:13

When i press the button show google and history suggestion nothing changes.



Re: New enigma2 VirtualKeyBoard #10 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 21 September 2019 - 14:15

i think the problem due to interference of files from different verisons

i do not have this issue.

 

screenshot-15.png


Edited by mfaraj57, 21 September 2019 - 14:16.


Re: New enigma2 VirtualKeyBoard #11 foxbob

  • Senior Member
  • 612 posts

+18
Neutral

Posted 21 September 2019 - 15:06

What’s wrong?Installed on a new image.Installed the plugin.I chose a new keyboard,restart the gui and everything shows up.I chose the keyboard built into the image,restart the gui the keyboard is new.Nothing changes.

Attached Files


Edited by foxbob, 21 September 2019 - 15:11.


Re: New enigma2 VirtualKeyBoard #12 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 21 September 2019 - 15:21

Just tested the keyboard on openpli 7.1 and changing show suggestion option has no effect

but this limited to openpli 7.1 image,seem it has different contig system which used to store value

the other problem i will check why this behavior in openpli



Re: New enigma2 VirtualKeyBoard #13 foxbob

  • Senior Member
  • 612 posts

+18
Neutral

Posted 21 September 2019 - 15:29

I tested on openpli-develop.


Edited by foxbob, 21 September 2019 - 15:29.


Re: New enigma2 VirtualKeyBoard #14 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 21 September 2019 - 15:41

try to install always from this script not from ipk because i put any updates by this script --== LINK REMOVED DUE TO LICENCE LIMITATIONS FROM SAMSAMSAM ==--

Re: New enigma2 VirtualKeyBoard #15 foxbob

  • Senior Member
  • 612 posts

+18
Neutral

Posted 21 September 2019 - 17:14

I deleted the old version,installed it by your script,nothing has changed.



Re: New enigma2 VirtualKeyBoard #16 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 21 September 2019 - 23:53

And again same thing. Please compare to https://gitlab.com/e...onents/e2ivk.py

Code licensed under custom license: https://gitlab.com/e...nd license.info

It is sad that administrators of this forum know that @mfaraj57 is breaking the license, but they wait until report.

 

Copyright claim:

 

The software share in this thread contains licensed code.
Usage of this code in this software brake it's license making this software illegal.

 

I kindly ask administrators of this forum to not allow further sharing this software here.



Re: New enigma2 VirtualKeyBoard #17 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 22 September 2019 - 17:10

the plugin updated,hope all fixed now

--== LINK REMOVED DUE TO LICENCE LIMITATIONS FROM SAMSAMSAM ==--

Re: New enigma2 VirtualKeyBoard #18 foxbob

  • Senior Member
  • 612 posts

+18
Neutral

Posted 22 September 2019 - 18:14

Thanks.Now it works correctly and changes correctly.But no showing off show suggestion option.



Re: New enigma2 VirtualKeyBoard #19 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 22 September 2019 - 18:31

The code and many additional things are not the same,anyone can compare,so no need to take your licence

i shared the ideas,yes but from e2istream but even ideas are not copyrighted and do not need licence

please keep the thread clean and anything off topic send pm for me i will not answer here.


Edited by mfaraj57, 22 September 2019 - 18:32.


Re: New enigma2 VirtualKeyBoard #20 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 22 September 2019 - 18:37

Thanks.Now it works correctly and changes correctly.But no showing off show suggestion option.

yes suggestion option from same keyboard/menu/settings




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users