in reply to Re^4: How to convert this to swedish characters?
in thread How to convert this to swedish characters?

Ok maybe you could sort them in hexadecimal order to get the proper swedish alphabet? I don't know if it makes any difference.My OS (Slackware) installation is in english,but my keymap is in swedish.But in case it does.
  • Comment on Re^5: How to convert this to swedish characters?

Replies are listed 'Best First'.
Re^6: How to convert this to swedish characters?
by almut (Canon) on Feb 08, 2007 at 15:40 UTC

    Don't think that would help... :)   For example, printf "%s ", chr($_) for (0x61..0xf6); would already output those characters sorted in hexadecimal order, however, that's not the swedish alphabet...

    Theoretically, you could do print "$_ " for ("a".."z","å","ä","ö"); to print out the swedish alphabet (I don't know a lot about Swedish - that's the alphabet Wikipedia told me) - though I'm not really sure what that would gain you ;)

    Printing out your keymap is an entirely different thing (i.e. displaying all characters that you would get if you pressed all keys on your keyboard, or something like this). Is that what you'd like to do?   In that case you'd have to parse the corresponding keymap files (either the X11 ones , or those belonging to the linux console)... Especially with the X11 keymap structure (multiple files including one another), this might turn out to be a non-trivial task, probably better left to those dedicated tools that come with the xkb X11 extension...