Page 3 of 8 FirstFirst 12345 ... LastLast
Results 21 to 30 of 79

Thread: The Simple On-screen Keyboard (SOK)

  1. #21
    Join Date
    Jun 2006
    Location
    Lisboa, Portugal
    Beans
    88
    Distro
    Hardy Heron (Ubuntu Development)

    Re: The Simple On-screen Keyboard (SOK)

    EDIT: Never mind me. I wasn't saving the canvas size in pixel units...


    I am not sure if this is known or not, but when changes to an svg are saved in InkScape, the modified canvas size is stored like this:
    Code:
       width="590pt"
       height="230pt"
    Which is responsible for this output:
    Code:
    Traceback (most recent call last):
      File "./sok.py", line 203, in ?
        s = Sok()
      File "./sok.py", line 41, in __init__
        self.load_layout(filename,folder)
      File "./sok.py", line 87, in load_layout
        viewPortSizeX = float(svgdoc.attributes['width'].value)
    ValueError: invalid literal for float(): 590pt
    Which happens because "590pt" is not a number...

    Removing the "pt" from the canvas size in the svg file solves the question, but perhaps it would be a good ideia to add a string check that would make sure it is composed of numeric characters only; and if it isn't, ignore the numeric chars.
    Last edited by anasofiapaixao; August 13th, 2006 at 05:04 PM.

  2. #22
    Join Date
    Oct 2004
    Beans
    232

    Re: The Simple On-screen Keyboard (SOK)

    Quote Originally Posted by anasofiapaixao View Post
    EDIT: Never mind me. I wasn't saving the canvas size in pixel units...
    It's probably still a good idea to have the string heck though so it can fail more gracefully.

    ... so are you making some cool new layouts? Can we see?
    Henrik Nilsen OmmaUbuntu QA Team Lead

  3. #23
    Join Date
    Jun 2006
    Location
    Lisboa, Portugal
    Beans
    88
    Distro
    Hardy Heron (Ubuntu Development)

    Re: The Simple On-screen Keyboard (SOK)

    I just made some small changes to adapt the layout to my tablet usage. I have made a thread with a screenshot, my changes and the file, for people who want to use SOK for everyday use right away.

    I've only tweaked the main pane, the other two are in the old Ubuntu layout are look a little weird I'll get on that...

    Probably this layout may not be good for U.S users, as it is based on the portuguese layout (I explain it in the thread).

    TODO's I found: Add the key next to the zero number key - In my layout it contains the apostrophe and the question mark, and I've missed them quite some times already - and add the right shift. So, so many times I go to the non-existent right shift in order to type an uppercase L, or P,... even though I don't touch right shift on the physical keyboard, with the stylus it is different. Only problem with the latter is WHERE - there is literally no free space!

    Also, is there a way to change from the default black key borders and numbers? I looked at the code to change to a dark orange/brown and couldn't find it...

    (Mind you I know almost nothing about programming; only C basics.)

    Hope someone finds this useful!

  4. #24
    Join Date
    Apr 2005
    Location
    Turkey
    Beans
    353
    Distro
    Ubuntu Development Release

    Re: The Simple On-screen Keyboard (SOK)

    what about implementing some sort of autocomplete feature?
    i mean, bash accepts it.. and not only for file names, but if u type tar - it will auto complete x v f etc.... and if u chooce xjpv with tar - then it will only give u .bz2 filenames.. i mean the oppertunies are endless

    currently
    how do u make shortcuts/macro's for certain terms like sudo apt-get
    like, i want sudo apt-get as one button
    i want wget -c as one button, how do we do this?
    ____________________________
    Mahir Sayar
    http://puccaso.com

  5. #25
    Join Date
    Jun 2006
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: The Simple On-screen Keyboard (SOK)

    Hello,

    As far as I know, Word prediction/completion is planned for the second stage: see "deferred features" on this page.

    Unfortunately, I am not able to help you with the macros.

    frafu

  6. #26
    Join Date
    Jun 2006
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: The Simple On-screen Keyboard (SOK)

    Hello,

    I have finally got (with much delay) a CeleronBox with Ubuntu (Dapper Desktop i386) and wanted to try onboard. Unfortunately, I am not able to install the python2.4-virtkey-041.deb package.

    Indeed, it tells me that the dependency libc6 is not satisfiable. It keeps telling me the same even after the installation and reinstallation of libc6 with the Synaptic Package Manager.
    Then, I also installed libc6-dev and libc6-dbg; but it did not help either.

    Does anybody have an idea?

    frafu

  7. #27
    Join Date
    Apr 2005
    Location
    Turkey
    Beans
    353
    Distro
    Ubuntu Development Release

    Re: The Simple On-screen Keyboard (SOK)

    thats probably because, its only avaliable on edgy.
    i wouldnt reccomend the download/upgrade if you dont have alot of patience.

    the worst thing for me on edgy, is the rhythmbox issue (you cant add music from folders/ smb mounts)

    but you can play through daap so i am ok.

    edgy is faster, and snappier then dapper.
    u just got ur system -
    christen it with some edgy water.

    (im not a christian, but we dont have an equivelant) haha.

    enjoy.
    ____________________________
    Mahir Sayar
    http://puccaso.com

  8. #28
    Join Date
    Jun 2006
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: The Simple On-screen Keyboard (SOK)

    Is there a way to upgrade to edgy without losing my configuration of nfs, ssh, nx, wol, vnc?

    By the way, why the restriction to edgy?

    Thanks in advance.

    frafu
    Last edited by frafu; September 17th, 2006 at 12:34 PM.

  9. #29
    Join Date
    Apr 2005
    Location
    Turkey
    Beans
    353
    Distro
    Ubuntu Development Release

    Re: The Simple On-screen Keyboard (SOK)

    well i mean nfs ssh and vnc would be no problems. just make a copy of all files in /etc or in ~/. and ur set.. as for nx - it is having some issues with edgy at the moment... although i use xtight and a persistant gdm/xdcmp - which is much faster then vino

    why the restriction, well im sure it will be backported once edgy is out
    edgy wont be out until octobr, so u have 2/3 weeks minimum until its backported..
    ____________________________
    Mahir Sayar
    http://puccaso.com

  10. #30
    Join Date
    Jun 2006
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: The Simple On-screen Keyboard (SOK)

    Hello pucasso,

    Thanks for your reply, and particularly for telling me about the problems of nx in edgy. In fact, being a newbie in linux, I opted for nx because they offer both an nx server for Ubuntu and a client for macosx out of the box.

    I don't know yet what I am going to do...

    frafu

Page 3 of 8 FirstFirst 12345 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •