From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 Date: Mon, 22 Oct 2018 10:49:56 +0200 From: Alexey Gladkov To: Fredrik Noring Message-ID: <20181022084956.GT3219@comp-core-i7-2640m-0182e6> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: kbd@lists.altlinux.org Subject: Re: [kbd] [PATCH 0/5] Add Apple USB keyboard models A1048 and A1243, Swedish localization X-BeenThere: kbd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Linux console tools development discussion List-Id: Linux console tools development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Oct 2018 08:50:00 -0000 Archived-At: List-Archive: On Thu, Oct 11, 2018 at 04:12:19PM +0200, Fredrik Noring wrote: > Hi, > > This patch series adds keymaps for Apple USB keyboard models A1048 and > A1243, localized for Swedish. The internal USB keyboard mapping for the > MacBook 2011 is also added. > > The mappings are designed to correspond to standard Apple keys, including > the behaviour of the shift and the alternate keys. > > The top row keys with printed feature icons are normally used to control > features such as volume adjustments in macOS. They can also be used as > function keys (F1-F19) by holding the Fn key. The default behaviour of > the Fn key can be reversed. > > The presence of these keyboards can probably be detected reliably by > their USB identification numbers and country code, annotated in the map > file notes. An autodetection implementation would be very helpful for > users. > > For some reason, mapping U+FB01 for LATIN SMALL LIGATURE FI and U+FB02 > for LATIN SMALL LIGATURE FL yield the error > > unicode keysym out of range: U+FB01 > syntax error, unexpected ERROR, expecting EOL > unicode keysym out of range: U+FB02 > syntax error, unexpected ERROR, expecting EOL > > from loadkeys(1). These are marked as FIXME in the map file. > > Fredrik > > Fredrik Noring (5): > Add Apple USB keyboard model A1048 with keypad, plastic, Swedish > Add Apple USB keyboard model A1243 with keypad, aluminium, Swedish > Add Apple USB keyboard model A1243, Swedish, reverse function keys > Add Apple USB keyboard/trackpad (ISO), Swedish > Add Apple USB keyboard/trackpad (ISO), Swedish, reverse function keys > > data/keymaps/mac/all/apple-a1048-sv.map | 70 ++++++++++++++++++ > data/keymaps/mac/all/apple-a1243-sv-fn-reverse.map | 13 ++++ > data/keymaps/mac/all/apple-a1243-sv.map | 17 +++++ > .../all/apple-internal-0x0253-sv-fn-reverse.map | 15 ++++ > data/keymaps/mac/all/apple-internal-0x0253-sv.map | 15 ++++ > data/keymaps/mac/include/apple-a1048-base.inc | 85 ++++++++++++++++++++++ > .../keymaps/mac/include/apple-a1243-fn-reverse.inc | 51 +++++++++++++ > data/keymaps/mac/include/apple-a1243-fn.inc | 52 +++++++++++++ > 8 files changed, 318 insertions(+) > create mode 100644 data/keymaps/mac/all/apple-a1048-sv.map > create mode 100644 data/keymaps/mac/all/apple-a1243-sv-fn-reverse.map > create mode 100644 data/keymaps/mac/all/apple-a1243-sv.map > create mode 100644 data/keymaps/mac/all/apple-internal-0x0253-sv-fn-reverse.map > create mode 100644 data/keymaps/mac/all/apple-internal-0x0253-sv.map > create mode 100644 data/keymaps/mac/include/apple-a1048-base.inc > create mode 100644 data/keymaps/mac/include/apple-a1243-fn-reverse.inc > create mode 100644 data/keymaps/mac/include/apple-a1243-fn.inc You put the product ID in the filename. Do you think the keycodes will be unique for each product? -- Rgrds, legion