From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.devel Subject: Questions about Quail Date: Sun, 17 Jul 2022 10:26:57 +0530 Message-ID: <87r12kl4km.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27837"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 17 07:15:45 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oCwd7-000750-Cm for ged-emacs-devel@m.gmane-mx.org; Sun, 17 Jul 2022 07:15:45 +0200 Original-Received: from localhost ([::1]:38504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCwd5-0001wR-Ly for ged-emacs-devel@m.gmane-mx.org; Sun, 17 Jul 2022 01:15:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48826) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCwL9-0008HH-Kh for emacs-devel@gnu.org; Sun, 17 Jul 2022 00:57:11 -0400 Original-Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]:37641) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oCwL7-0007tU-Tv for emacs-devel@gnu.org; Sun, 17 Jul 2022 00:57:11 -0400 Original-Received: by mail-pl1-x642.google.com with SMTP id f11so6407934plr.4 for ; Sat, 16 Jul 2022 21:57:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:user-agent:mime-version; bh=imQ3HynWvMpodb1CsY7tPE1JR7WH2WpUt0c3GbfX0Wk=; b=dhWNJ/N6zRGFkYBtX2auToXbTmbjUxEzrgsJhiNVS5fUhmlT+s0QHM9YR49QY+OTHS i5+oB1Ax1Mx+kYGqUv1DRjU4Mfla+ocVNoLOzdgZsaixL5B9of3N/3eDmtdcYAb0YG9g gKutZm5/8+H3mN2WAP4xtcOyG7VQfhI/1MvZhA55OIUVGjizgCUWgSx60OaR0uxENxLw 9U19HMrkTFdb5v45pUngdhuKJzBqZ+KON38RYQJsmSLXh7rXnb1t8oPR9vJaAW47Yln3 yag/OkVi6P461Oxk3HVyRCI9XBSHvdvDzVaE0YAsvHOfb+SQtZG98Gdx3sU1bCkepJEt ekvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=imQ3HynWvMpodb1CsY7tPE1JR7WH2WpUt0c3GbfX0Wk=; b=GxwScOqM4recDlFMghUB5yBA+dpdPFL8k22SXMQhr11tqJyR9CfbBjSee/5klMNomY sZXwrDZ+VAVvvzmJv04F/jibXAfKB7aoY/B83bvDaM08Tj2P5Z4oFZ3VsfBxpOFriliP QPkX4EWzwgUdPRp6D92HpFgLzLx1b66X6CUgaqDZQmABnJjxPhDnS4y9RVEUz4Qqsvpg nz6VswdRlfCskH3DdQsvt/lq1vHCVzkv7CoMgGHqJBN5BjAL14goCAKVhuAtZuj0gD7u jkKe76DqyPe4nptRjwgWyX4mkMkD7pj9QlqR1iBynzUiOIsUQDrNfTVMBAzoTxkXLD2I vMPQ== X-Gm-Message-State: AJIora+hVevXhQYMBmsfnOyfiZNe6P+FRBkI0ayQJdTb50lGebbB+ASt PuLz3HWEiOtg70wFsTtX+TxZeBISVhE= X-Google-Smtp-Source: AGRyM1syT7W66QRhPRtsBtDSfZzMsTJjtIplr9vO/siYIxU+BdYtJd7JmrH3oN8uka8IKXjhU1O1Lw== X-Received: by 2002:a17:90a:9f01:b0:1ef:76bd:e46c with SMTP id n1-20020a17090a9f0100b001ef76bde46cmr24771813pjp.197.1658033827620; Sat, 16 Jul 2022 21:57:07 -0700 (PDT) Original-Received: from localhost ([49.204.119.55]) by smtp.gmail.com with ESMTPSA id 69-20020a630548000000b0041299ef533csm5836779pgf.41.2022.07.16.21.57.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Jul 2022 21:57:07 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::642; envelope-from=visuweshm@gmail.com; helo=mail-pl1-x642.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 17 Jul 2022 01:14:19 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:292217 Archived-At: I'm currently writing an input method that mirrors the Tamil99 keyboard layout, and have two questions about Quail. 1. Is there a per-input-method activation hook? I know there's the general input-method-activate-hook but I want a hook that will be run whenever a specific input method activates. I can check for the current-input-method value in the hook but before I go do it, I wanted to know if I missed something obvious when reading the Quail docs. The reason I ask this is because the Tamil99 keyboard layout has a state to keep track of. I want to reset this state whenever one activates the input method to avoid surprises. 2. Currently the quail-keyboard-layout-standard resembles the VT100 keyboard layout, can we change it to resemble the US Qwerty layout instead? This is not a problem when writing a new Quail keyboard layout in quail-keyboard-layout-alist but it is a problem when the keyboard layout is printed. Evaluate (quail-insert-kbd-layout quail-keyboard-layout-standard) and check the keyboard printed out. I doubt anyone uses a VT100 terminal these days, printing out a US Qwerty keyboard layout IMO would be less confusing _and_ more helpful for the users. While we are it, we can also add modern keyboard layouts like US Dvorak to quail-keyboard-layout-alist. I can volunteer to do this work.