From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#66470: 29.1; Provide Urdu input method Date: Sat, 14 Oct 2023 11:53:21 +0300 Message-ID: <837cnpshz2.fsf@gnu.org> References: <87pm1lm23l.fsf@zohomail.eu> <87lec9m12g.fsf@zohomail.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21857"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66470@debbugs.gnu.org To: Rahguzar Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 14 10:54:02 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qraPJ-0005SQ-M7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Oct 2023 10:54:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qraOy-0003Lw-Nd; Sat, 14 Oct 2023 04:53:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qraOx-0003Ln-80 for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 04:53:39 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qraOw-00006e-WB for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 04:53:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qraPK-00084j-5C for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 04:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Oct 2023 08:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66470 X-GNU-PR-Package: emacs Original-Received: via spool by 66470-submit@debbugs.gnu.org id=B66470.169727363831030 (code B ref 66470); Sat, 14 Oct 2023 08:54:02 +0000 Original-Received: (at 66470) by debbugs.gnu.org; 14 Oct 2023 08:53:58 +0000 Original-Received: from localhost ([127.0.0.1]:47856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qraPF-00084Q-Dy for submit@debbugs.gnu.org; Sat, 14 Oct 2023 04:53:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qraPA-000849-EJ for 66470@debbugs.gnu.org; Sat, 14 Oct 2023 04:53:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qraOg-00005w-EK; Sat, 14 Oct 2023 04:53:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=u4CpYioCyFDUdpaMvrwKbDJb70ZLQHj87c2iUz+w44k=; b=TCxOiaXitkTFX/74PaPJ eb9UKQ41FG/exBHtdhT5bwoSr70OfMnqHCQB4LhjxMPCxpOpXr2BCCU9JT3ex9HnX+X0eK6zlwz7i I/DzcZwJauUuFSHyFuNiMms6Hl0gMu55ZpXYt77ZMqQBRtuisMdPA8KRwCo1ktPW9juxL62ZGWm6o VwZzus75UU/HvQTvDvb4O9VcpN1+/XQy58dVoQnDf53i9becTWVAXiazZP1tI8WZNlHkmbsZ0b8d/ 5/3n2Ia1S0wAARZwz0uc4VzS5fIyOwYvseYzt6mqR6JRugYPRNYLr3QzW1UESTvV9fw65X1qLa0Tl l+hb4I0AccFmng==; In-Reply-To: <87lec9m12g.fsf@zohomail.eu> (bug-gnu-emacs@gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272393 Archived-At: > Cc: rahguzar@zohomail.eu > Date: Wed, 11 Oct 2023 20:50:33 +0200 > From: Rahguzar via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Please find attached the patch I mentioned earlier and let me know any changes that need to be made. > > The input method is usable for common Urdu input, but here are some of > the things I want to improve in addition to what I asked on the > help-gnu-emacs: I responded to your question on help-gnu-emacs. > 1) Better coverage of Urdu zabta takhti > http://www.unicode.org/L2/L2002/02004-uzt.pdf It is a code page > developed for Urdu and supposedly was the basis of current Urdu support > of Unicode. However I can't figure out exactly what is the mapping from > UZT to Unicode. If anyone has pointers please share. What are the specific issues you cannot figure out? Anyway, a better place to ask about Unicode mapping is on the Unicode mailing list, unicode@corp.unicode.org. > 2) Another input method for the common Urdu keyboard support. Despite > Urdu being my mother tongue I never learned to type in it which is why I > prefer a phonetic keyboard. However I will like to make an input method > with the layout of a physical Urdu keyboard. If a keyboard layout was > standardized in Pakistan or India, I can't find the specification. If > such a document exists and anyone can point me to it, I will be happy to > use it as a basis for addition to the `urdu.el` in attached patch. > Otherwise I will use the layout of Urdu keyboard from some free software > project. But this will probably be closer to Emacs 30 than now. Does https://www.branah.com/urdu help? > > 3) The key for 'w' is unused in the input method for now. I am tempted > to bind a version of `insert-char` but restricted to Arabic range of > Unicode to cover the rare cases not covered by the input method now. Any > opinions about that? That key is assigned characters in the above keyboard page. > >From 8c0fc53efef493e151bd5893d5b5ca7b390b4a6b Mon Sep 17 00:00:00 2001 > From: Rahguzar > Date: Wed, 11 Oct 2023 20:45:27 +0200 > Subject: [PATCH] Provide an Urdu input method > > --- > lisp/leim/quail/urdu.el | 193 ++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 193 insertions(+) > create mode 100644 lisp/leim/quail/urdu.el Thanks, but I'd prefer not to create a new file. How about adding this to persian.el instead? > +(quail-define-package > + "urdu-phonetic" "Urdu" "اردو صوتی" > + `((?a . "a → ا , A → آ , ax → أ , u → ع") > + (?y . "y → ی , e → ے , i → ئ") > + (?r . "r → ر , R → ڑ") Besides the ` vs ' issue, I doubt that this kind of GUIDANCE is a good idea. Emacs input methods have a standardized way of showing candidates and the keys to select them, so I would prefer to stick to the standardized guidance format instead. In particular, showing the translations of both upper- and lower-case keys is not a good idea, I think.