Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Mar 2023 08:40:00 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        questions@freebsd.org
Subject:   Re: Moving a FreeBSD/X11 keyboard config to Macbook Pro
Message-ID:  <20230302074000.GA9@sh4-5.1blu.de>
In-Reply-To: <20230302004552.wj7m3x4kkz7lruvl@beesty.loosely.org>
References:  <20230301074107.GB9@sh4-5.1blu.de> <Y/8%2B68gDuGO/ANkM@c720-r368166> <20230302004552.wj7m3x4kkz7lruvl@beesty.loosely.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20230302074000.GA9>