Results 1 to 9 of 9

Thread: [SOLVED] Keyboard mappings and characters...

  1. #1
    Join Date
    Sep 2008
    Beans
    50

    [SOLVED] Keyboard mappings and characters...

    Heya,

    I'm havinga bit of a problem with the keyboard on my laptop. As far as I know pressing [Shift]+[hat] should make a small hat like this: ᶺ, but it doesn't fx if I want to raise something to the power of two (fx 3) then I'd write 3ᶺ2, but what I get is 3², this poses a problem when I'm making scripts and calculations in Matlab, because it doesn't understand '²' it understands 'ᶺ2'.

    Now I do like that I can type '²' like this, but how can I make it easy to switch between the two?

    If I have to make a final decision on one of them, then I'd like to have 'ᶺ'. How do I get about that?

    Jacob

  2. #2
    Join Date
    Jan 2007
    Location
    Milkyway
    Beans
    669
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: Keyboard mappings and characters...

    Hey Jacob,

    Shift + ^ returns ^ fine on my keyboard and to return ² i use AltGr + 2. What keyboard layout are you using? You may want to use the US international keyboard (AltGr Dead Keys). I assume you know how to change your keyboard layout, else let me know.

  3. #3
    Join Date
    Sep 2008
    Beans
    50

    Re: Keyboard mappings and characters...

    Hmm...I tried to add your keyboard layout to my machine. Pressing [SHIFT]+[^] returns does this: 3² pressing [AltGr]+[^] doesn't return anything.

    But I notice that my keyboard model is set to 'Generic 105-key (Intl) PC', I don't think thats correct...its a danish keyboard, it has the 'æ','ø and 'å' characters. And I'm on an IBM Thinkpad R51, I might have the wrong keyboard installed?

    Jacob

  4. #4
    Join Date
    Feb 2007
    Beans
    4,045
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Keyboard mappings and characters...

    The caret ^ is often a dead key, meaning it waits for another character to "combine" them. For instance Shift+^+e gives ê. To only get the caret, use Shift+^+space.
    Last edited by geirha; November 17th, 2008 at 02:07 PM. Reason: added url wikipedia dead key page

  5. #5
    Join Date
    Jan 2007
    Location
    Milkyway
    Beans
    669
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: Keyboard mappings and characters...

    Quote Originally Posted by Jacob Collstrup View Post
    Hmm...I tried to add your keyboard layout to my machine. Pressing [SHIFT]+[^] returns does this: 3² pressing [AltGr]+[^] doesn't return anything.

    But I notice that my keyboard model is set to 'Generic 105-key (Intl) PC', I don't think thats correct...its a danish keyboard, it has the 'æ','ø and 'å' characters. And I'm on an IBM Thinkpad R51, I might have the wrong keyboard installed?

    Jacob
    The Keyboard name is Generic 105-key (Intl) PC, which is correct on your laptop -- it should be standard (you can try to count the keys )
    The layout you may have however can be changed, a layout tells 'what character is attributed to which key'.
    If you check again your System> Preferences> Keyboard and select the 'layout' tab. You may have now two layout listed (since you installed USA international just before).
    Now you either want to have the USA International by default or make sure you can switch keyboard as you are using your computer.
    If you make the USA international (AltGr Dead Keys) default by ticking Default on the right hand side, and press the 'Apply sytem-wide' button, you can then try it out in the box beneath.
    Note:
    Depending on which version of Ubuntu you are using, it may respond differently, 8.10 will not ask for a space after ^ to print ^ e.g.:
    • 8.10 If you press Shift + ^ it should return ^
    • 8.04 If you press Shift + ^ you see nothing, press Space and it returns ^

    Now if you want a ², press AltGr+2.

    Since you need quite a significant amount of æ, å and ø to express yourself in Danish, you may want to know the following keys are available on USA International as:
    • AltGr + z = æ
    • AltGr + w = å
    • AltGr + l = ø


    If you don't want to use USA international continuously but rather switch from Danish Keyboard to USA Int., you can do that again in the Keyboard preferences.
    Under layout tab you click Othe options. Under layout switching you can chose the combination of keys you like best to switch from a layout to another. I personally like to use the left Win Key since it is useless with Ubuntu.

    If you need more help let me know, i hope this helps though.

  6. #6
    Join Date
    Jan 2007
    Location
    Milkyway
    Beans
    669
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: Keyboard mappings and characters...

    Quote Originally Posted by geirha View Post
    The caret ^ is often a dead key, meaning it waits for another character to "combine" them. For instance Shift+^+e gives ê. To only get the caret, use Shift+^+space.
    In this case Jacob does not uses the caret as an accent circonflexe but as a standalone character.
    The former is produced with the AltGr + ^, e combination while the second is produced with Shift + ^.
    Besides: some dead keys have been resurrected by 8.10

  7. #7
    Join Date
    Sep 2008
    Beans
    50

    Re: Keyboard mappings and characters...

    I think I just screwed up there...

    I totally forgot you had to use the spacebar...now it works as I think it should! Neat! Now I can write both 3^2 and 3²!!

    Though I haven't figured how to switch keyboard layout. My keyboard doesn't have the [win] key, so according to the keyboard layout I should press both [ALT] keys simultaneously to switch layout, but I can't see anything happening when I do that. I don't think it changes anything...I try pressing both [Alt] keys when I have the keyboard layout open, but nothing happens, neither when I hold the keys down. Is that supposed to happen?

    Jacob

  8. #8
    Join Date
    Jan 2007
    Location
    Milkyway
    Beans
    669
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: Keyboard mappings and characters...

    Quote Originally Posted by Jacob Collstrup View Post
    I think I just screwed up there...

    I totally forgot you had to use the spacebar...now it works as I think it should! Neat! Now I can write both 3^2 and 3²!!

    Though I haven't figured how to switch keyboard layout. My keyboard doesn't have the [win] key, so according to the keyboard layout I should press both [ALT] keys simultaneously to switch layout, but I can't see anything happening when I do that. I don't think it changes anything...I try pressing both [Alt] keys when I have the keyboard layout open, but nothing happens, neither when I hold the keys down. Is that supposed to happen?

    Jacob
    Jacob,
    I'm glad you found your way through all this. As to switch keyboard you don't see much happening on the screen. When you type it should make a difference - especially if you have two strictly different keyboards e.g. Danish and Persian.
    Make sure the key combination for switching in the preferences is checked.
    If you want a little help when switching keyboard - that is to see what keyboard you are now using, you can right-click on your panel and add a launcher. Select the Keyboard Indicator.
    From now on there is a little flag on your panel, it represents the nationality of your keyboard layout, when you switch layout, the flag should change accordingly.

  9. #9
    Join Date
    Jul 2008
    Beans
    21

    Re: Keyboard mappings and characters...

    Quote Originally Posted by jesuisbenjamin View Post
    Jacob,
    I'm glad you found your way through all this. As to switch keyboard you don't see much happening on the screen. When you type it should make a difference - especially if you have two strictly different keyboards e.g. Danish and Persian.
    Make sure the key combination for switching in the preferences is checked.
    If you want a little help when switching keyboard - that is to see what keyboard you are now using, you can right-click on your panel and add a launcher. Select the Keyboard Indicator.
    From now on there is a little flag on your panel, it represents the nationality of your keyboard layout, when you switch layout, the flag should change accordingly.
    I use SweISH keyboard layout and space is not returnming anything, I changed the key layout in system-pref. to elimnate dat keys and now it works fin !

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
  •