From nobody Thu Mar 02 07:40:00 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PS30r4Wz7z3w0VR for ; Thu, 2 Mar 2023 07:40:12 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PS30p5yKRz3KPv for ; Thu, 2 Mar 2023 07:40:10 +0000 (UTC) (envelope-from guru@unixarea.de) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of guru@unixarea.de designates 178.254.4.101 as permitted sender) smtp.mailfrom=guru@unixarea.de; dmarc=none Received: from [178.254.11.41] (helo=sh4-5.1blu.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pXdXr-0006cW-Hc for questions@freebsd.org; Thu, 02 Mar 2023 08:40:07 +0100 Date: Thu, 2 Mar 2023 08:40:00 +0100 From: Matthias Apitz To: questions@freebsd.org Subject: Re: Moving a FreeBSD/X11 keyboard config to Macbook Pro Message-ID: <20230302074000.GA9@sh4-5.1blu.de> Reply-To: Matthias Apitz References: <20230301074107.GB9@sh4-5.1blu.de> <20230302004552.wj7m3x4kkz7lruvl@beesty.loosely.org> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230302004552.wj7m3x4kkz7lruvl@beesty.loosely.org> X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.9.4 (2018-02-28) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 178.254.11.41 X-Spamd-Result: default: False [-1.40 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_SPAM_SHORT(0.90)[0.899]; R_SPF_ALLOW(-0.20)[+ip4:178.254.4.101:c]; MIME_GOOD(-0.10)[text/plain]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE]; RCVD_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[questions@freebsd.org]; DMARC_NA(0.00)[unixarea.de]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; HAS_XOIP(0.00)[]; HAS_REPLYTO(0.00)[guru@unixarea.de]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[178.254.4.101:from] X-Rspamd-Queue-Id: 4PS30p5yKRz3KPv X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N 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