all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#58642: [PATCH] Add 'slovak-querty' input method
@ 2022-10-19 19:05 Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-10-20  6:51 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-10-19 19:05 UTC (permalink / raw)
  To: 58642

[-- Attachment #1: Type: text/plain, Size: 652 bytes --]

Tags: patch

Hello smart people!

The people of Slovakia use the standard Slovak keyboard in two variants,
QWERTZ and QWERTY.  Emacs offers just the more "mainstream" variant,
namely QWERTZ.  The attached patch improves the situation by adding the
QWERTY variant.

-- Rudy

In GNU Emacs 29.0.50 (build 5, aarch64-apple-darwin21.6.0, NS
 appkit-2113.60 Version 12.6 (Build 21G115)) of 2022-10-19 built on
 Rudolfs-MacBook-Air.local
Repository revision: c2b79d9148f21c3717f1eaa2d37b837b0922b94c
Repository branch: master
Windowing system distributor 'Apple', version 10.3.2113
System Description:  macOS 12.6

Configured using:
 'configure --with-json'


[-- Attachment #2: 0001-Add-slovak-querty-input-method.patch --]
[-- Type: text/patch, Size: 3672 bytes --]

From 67994603fca722d36058377c3513b544411478c2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?= <salutis@me.com>
Date: Wed, 19 Oct 2022 20:57:03 +0200
Subject: [PATCH] Add 'slovak-querty' input method

* lisp/leim/quail/slovak.el: Add 'slovak-querty' Quail package.
* etc/NEWS: Mention the new 'slovak-querty' input method.
---
 etc/NEWS                  |   5 ++
 lisp/leim/quail/slovak.el | 123 +++++++++++++++++++++++++++++++++++++-
 2 files changed, 126 insertions(+), 2 deletions(-)

diff --git a/etc/NEWS b/etc/NEWS
index a378b5acbb..35d2fefeaf 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1362,6 +1362,11 @@ change the input method's translation rules, customize the user option
 This supports the keyboard layout specifically designed for the Tamil
 language.
 
+---
+*** New 'slovak-qwerty' input method
+This completes the set of the standard Slovak keyboards, now
+containing both the QWERTZ and the QWERTY variants.
+
 \f
 * Changes in Specialized Modes and Packages in Emacs 29.1
 
diff --git a/lisp/leim/quail/slovak.el b/lisp/leim/quail/slovak.el
index acde11d02a..a855ecbf91 100644
--- a/lisp/leim/quail/slovak.el
+++ b/lisp/leim/quail/slovak.el
@@ -3,7 +3,8 @@
 ;; Copyright (C) 1998, 2001-2022 Free Software Foundation, Inc.
 
 ;; Authors: Tibor Šimko <tibor.simko@fmph.uniba.sk>
-;;	Milan Zamazal <pdm@zamazal.org>
+;;          Milan Zamazal <pdm@zamazal.org>
+;;          Rudolf Adamkovič <salutis@me.com>
 ;; Maintainer: Pavel Janík <Pavel@Janik.cz>
 ;; Keywords: i18n, multilingual, input method, Slovak
 
@@ -25,8 +26,9 @@
 ;;; Commentary:
 
 ;; This file defines the following Slovak keyboards:
-;; - standard Slovak keyboard
+;; - standard Slovak keyboards, QWERTZ and QWERTY variants
 ;; - three Slovak keyboards for programmers
+;; LocalWords: QWERTZ
 
 ;;; Code:
 
@@ -154,6 +156,123 @@
  ("+0" ?\)))
 
 
+(quail-define-package
+ "slovak-querty" "Slovak" "SK" t
+ "Standard Slovak keyboard, QWERTY variant."
+ nil t nil nil t nil nil nil nil nil t)
+
+(quail-define-rules
+ ("1" ?+)
+ ("2" ?ľ)
+ ("3" ?š)
+ ("4" ?č)
+ ("5" ?ť)
+ ("6" ?ž)
+ ("7" ?ý)
+ ("8" ?á)
+ ("9" ?í)
+ ("0" ?é)
+ ("!" ?1)
+ ("@" ?2)
+ ("#" ?3)
+ ("$" ?4)
+ ("%" ?5)
+ ("^" ?6)
+ ("&" ?7)
+ ("*" ?8)
+ ("(" ?9)
+ (")" ?0)
+ ("-" ?=)
+ ("_" ?%)
+ ("=" ?')
+ ("[" ?ú)
+ ("{" ?/)
+ ("]" ?ä)
+ ("}" ?\()
+ ("\\" ?ň)
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?\()
+ ("+0" ?\)))
+
+
 (quail-define-package
  "slovak-prog-1" "Slovak" "SK" t
  "Slovak (non-standard) keyboard for programmers #1.
-- 
2.38.0


[-- Attachment #3: Type: text/plain, Size: 208 bytes --]

-- 
"The whole science is nothing more than a refinement of everyday
thinking."
-- Albert Einstein, 1879-1955

Rudolf Adamkovič <salutis@me.com> [he/him]
Studenohorská 25
84103 Bratislava
Slovakia

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#58642: [PATCH] Add 'slovak-querty' input method
  2022-10-19 19:05 bug#58642: [PATCH] Add 'slovak-querty' input method Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-10-20  6:51 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2022-10-20  6:51 UTC (permalink / raw)
  To: Rudolf Adamkovič; +Cc: 58642-done

> Date: Wed, 19 Oct 2022 21:05:56 +0200
> From:  Rudolf Adamkovič via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> The people of Slovakia use the standard Slovak keyboard in two variants,
> QWERTZ and QWERTY.  Emacs offers just the more "mainstream" variant,
> namely QWERTZ.  The attached patch improves the situation by adding the
> QWERTY variant.

Thanks, installed.

> --- a/etc/NEWS
> +++ b/etc/NEWS
> @@ -1362,6 +1362,11 @@ change the input method's translation rules, customize the user option
>  This supports the keyboard layout specifically designed for the Tamil
>  language.
>  
> +---
> +*** New 'slovak-qwerty' input method

For the future: the heading line of a NEWS entry should end in a
period.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-20  6:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-19 19:05 bug#58642: [PATCH] Add 'slovak-querty' input method Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-20  6:51 ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.