<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>That change in keymap.ss works fine for me. <BR>
<BR>
Thank you everybody!<BR>
<BR>
Niklas<BR><BR><BR><BR><BR>
<HR id=stopSpelling>
<BR>
> Date: Fri, 13 Jun 2008 12:21:02 -0500<BR>> From: robby@cs.uchicago.edu<BR>> To: p3k@iki.fi<BR>> Subject: Re: [plt-scheme] Swedish keyboard bug in DrScheme<BR>> CC: plt-scheme@list.cs.brown.edu<BR>> <BR>> Thanks for figuring this out! I don't have a sweedish keyboard to test<BR>> this on, so I wonder if one of you can help me by applying the patch<BR>> below (just a simple change to two lines), exiting drscheme, running<BR>> "setup-plt" from a shell/command window and then seeing if DrScheme<BR>> behaves properly after that?<BR>> <BR>> The file in question in plt/collects/framework/private/keymap.ss. Just<BR>> in case you're not familiar with the notation below, the lines with<BR>> the "-" in front go away and should be replaced by the ones with the<BR>> "+" in front (but don't include the "+" itself). The lines without "+"<BR>> or "-" are just there for context so you can be sure you're in the<BR>> right spot in the file.<BR>> <BR>> ===================================================================<BR>> --- keymap.ss (revision 10227)<BR>> +++ keymap.ss (working copy)<BR>> @@ -1079,8 +1079,8 @@<BR>> (setup-mappings greek-letters #f)<BR>> (setup-mappings Greek-letters #t))<BR>> <BR>> - (map "c:\\" "TeX compress")<BR>> - (map "m:\\" "TeX compress")<BR>> + (map "~m:c:\\" "TeX compress")<BR>> + (map "~c:m:\\" "TeX compress")<BR>> <BR>> (map-meta "c:down" "down-into-embedded-editor")<BR>> (map "a:c:down" "down-into-embedded-editor")<BR>> <BR>> Thanks,<BR>> Robby<BR>> <BR>> On Fri, Jun 13, 2008 at 11:33 AM, Pekka Karjalainen <p3k@iki.fi> wrote:<BR>> > On 6/13/08, Niklas Larsson <nifty@live.se> wrote:<BR>> >><BR>> >> In DrScheme 4.0 for Windows it is impossible to type a backslash character<BR>> >> on a swedish keyboard. We use the AltGr-+ combination to get '\' on swedish<BR>> >> keyboards, it does nothing in DrScheme, all other AltGr combinations seem to<BR>> >> work fine (braces, @, $, €...). This problem didn't exist in v371. A really<BR>> >> weird bug.<BR>> ><BR>> > DrScheme has a default keybinding where Meta-\ means "TeX compress".<BR>> > This changes the names of greek letters written in TeX style to the<BR>> > corresponding symbols. E.g. \beta turns into the actual character for<BR>> > lowercase beta. I think this only works when the caret is placed right<BR>> > after such a string.<BR>> ><BR>> > You can change the keybinding with the help of this piece of code.<BR>> > It's based on a message I found in the mailing list archives, as<BR>> > referenced. Save this as a file mykeys.ss somewhere convenient.<BR>> ><BR>> > ;; following the msg<BR>> > http://www.cs.brown.edu/pipermail/plt-scheme/2006-March/012391.html<BR>> > (module mykeys (lib "keybinding-lang.ss" "framework")<BR>> > (define (make-handler s)<BR>> > (lambda (editor event)<BR>> > (send editor insert (make-object string-snip% s))))<BR>> ><BR>> > (keybinding "M:\\" (make-handler "\\")))<BR>> ><BR>> > Then go to Edit -> Keybindings -> Add User-defined Keybindings and<BR>> > choose the file you just saved. This should make the key combination<BR>> > do what you expect. You can remove this file from use later; an option<BR>> > to do this appears in the menu.<BR>> ><BR>> > If the preferred form for the above in DrScheme 4.0 is something else,<BR>> > I'd be happy to know about it. All I really know is that it works for<BR>> > me, and I'll eventually get around to learning more about snips and<BR>> > events...<BR>> ><BR>> > Pekka Karjalainen, with pretty much the same kind of keyboard<BR>> > _________________________________________________<BR>> > For list-related administrative tasks:<BR>> > http://list.cs.brown.edu/mailman/listinfo/plt-scheme<BR>> ><BR>> ><BR><BR><br /><hr />Den perfekta mixen av nöjesnyheter & livekonserter! <a href='http://video.se.msn.com/v/sv-se/v.htm' target='_new'>MSN Video</a></body>
</html>