Re: Moving a FreeBSD/X11 keyboard config to Macbook Pro
- Reply: Ken Young : "Re: Moving a FreeBSD/X11 keyboard config to Macbook Pro"
- Reply: possessor.assizer305_a_aceecat.org: "Re: Moving a FreeBSD/X11 keyboard config to Macbook Pro"
- In reply to: possessor.assizer305_a_aceecat.org: "Re: Moving a FreeBSD/X11 keyboard confif to Macbook Pro"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 02 Mar 2023 07:40:00 UTC
El día Mittwoch, März 01, 2023 a las 04:45:52 -0800, possessor.assizer305@aceecat.org escribió: > On Wed, Mar 01, 2023 at 01:02:51PM +0100, Matthias Apitz wrote: > > > > I figured it out; one can create a dir and a file in it with the > > following syntax: > > > > /* to be placed into the (created) directory /Users/apitzm/Library/KeyBindings as file DefaultKeyBinding.dict */ > > When I started using a Mac about 2 years ago I wrote a Perl script to translate > my XCompose file from my Linux computers. Maybe it can be useful. > > https://gist.github.com/nobrowser/4f4342cb95c7e4c186cba01425123871 Ian, thanks for this. This is very useful and I will give it a try. As I wrote, I crafted my own file DefaultKeyBinding.dict by hand and it is working mostly: { "~q" = ("insertText:", "@"); "~a" = ("insertText:", "á"); "~A" = ("insertText:", "Á"); "~e" = ("insertText:", "é"); "~E" = ("insertText:", "É"); "~i" = ("insertText:", "í"); "~I" = ("insertText:", "Í"); "~o" = ("insertText:", "ó"); "~O" = ("insertText:", "Ó"); "~u" = ("insertText:", "ú"); /* ú does not work; use ´u which also gives ú */ "~U" = ("insertText:", "Ú"); "~?" = ("insertText:", "¿"); "~!" = ("insertText:", "¡"); "~<" = ("insertText:", "«"); "~>" = ("insertText:", "»"); "~m" = ("insertText:", "ñ"); /* ñ not working , why? */ "~M" = ("insertText:", "Ñ"); /* Ñ not working , why? */ } As said, mostly. Do you have an idea why the above three lines with the comments /* ... */ are not working? Btw: The Mac has a German keyboard, if this matters. For the ñ and Ñ I use the keys option+m or option+M, which works, but is ugly. Thanks matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub