From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6I0QOJYclGBeywAAgWs5BA (envelope-from ) for ; Thu, 06 May 2021 18:43:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id kDa1M5YclGDiRwAAB5/wlQ (envelope-from ) for ; Thu, 06 May 2021 16:43:02 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6E0A222B49 for ; Thu, 6 May 2021 18:43:02 +0200 (CEST) Received: from localhost ([::1]:34888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leh5Z-0007Cd-Ic for larch@yhetil.org; Thu, 06 May 2021 12:43:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leglX-0005rR-21 for emacs-orgmode@gnu.org; Thu, 06 May 2021 12:22:19 -0400 Received: from ciao.gmane.io ([116.202.254.214]:51516) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leglV-0002jc-5m for emacs-orgmode@gnu.org; Thu, 06 May 2021 12:22:18 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1leglS-0007FA-S6 for emacs-orgmode@gnu.org; Thu, 06 May 2021 18:22:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Maxim Nikulin Subject: Re: About multilingual documents Date: Thu, 6 May 2021 23:22:09 +0700 Message-ID: References: <87k0og8fss.fsf@list.aleks.bg> <1623451.1620064024@apollo2.minshall.org> <87fsz3vtuy.fsf@aleks.bg> <875yzyuy4y.fsf@list.aleks.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 In-Reply-To: <875yzyuy4y.fsf@list.aleks.bg> Content-Language: en-US Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NICE_REPLY_A=-0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620319382; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=pJA4ZadAoz4PpSqCU0/IQtvVTr4y0+N3ICIB+qobre8=; b=JiyNBTtrcCpIDWP9dDnUd05ytdBxKO18+pGcEp7IlFPioP89StlHtD4ftX8/oj2ROwZFRM ZdJUlih8mqYBPj0vySsbbt1RIFEiKap28wmlymViEZ5HH6nhCVMcbKF+QHCVRKzc5w9+ym iQn+lVsdX9vVI1xSa1tM38SvngWRk9x+evNW95WZbzFt0UOdF51bzb8wvlv+CNAejHMsFZ J7rFwe1kjhQryTvknB/NWOHMhQX+xuDWFgi49kQQsGCMiAgc/UOEmRmi3EFYKVW6LVct8G nfFwTg33Ovs+yoHkHthrvo0BLpEEwoa12xJgilN8+ILTsIouUf8g0wEAoqXG5w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620319382; a=rsa-sha256; cv=none; b=aYPgKA4nBFyqNYHqnBGPtYt92V8/aD10cexIK0R/hGM9zfyJUFLlvVYOTluyQr9SGqBLNa ycO6mWorOK+IfP6HYVqbDSxSqlJmGZ65v5/iKK1nQVILbavI8d+HGLyHVIFk1CPTcldufU zLhiFvTRuTusY9X/zE7aQpngXcx9aaq4RgGUexWRxAYcdAiiQQyXETJ19ZzBTePD9IaMCd odlb80kdONpw0ob3y6LzMZs65F1FJZ0OSAyxLM4lVKL+HJP3/3aOMpb9N0lBMb3JrctDAk jGIC+uNbLM4X4yN01Od7qlH/2+nUK2WD3gOflvuH2MEo86z0wpqVnqfhUGGxPg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -0.36 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 6E0A222B49 X-Spam-Score: -0.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: nHi13cDStqc8 On 05/05/2021 01:55, Aleksandar Dimitrov wrote: > Yeah, I know the issue, which is why I rely on XCompose for Latin > scripts. For Cyrillic, alas, that is impossible. It means that I > basically can't control Emacs while using a Cyrillic layout, which is a > pity. I have no good workaround. Generally, the idea is to enable layout (Xkb group) per window and to reset layout to English if active window is Emacs. I have not tried recipes with managing Xkb group from emacs itself, e.g. https://github.com/lislon/emacs-switch-lang https://github.com/Mihara/kbd-indicator.el Another approach it to set global hotkey and if Emacs is focused, send some special key event that is bound to switching of input method. I have some links but the pages are not in English. Personally, I have not fully polished my setup, however it works with some limitations. I started from bash script calling xdotool, xvkbd, and xprop. Then I realized that C code is not dramatically longer but it allows to avoid struggling with limitations of such tools. Tim Cross suggested me to raise the question concerning keymaps in emacs-devel once more, but I still do not feel that I am ready to discussion of technical aspects (e.g. hotkey handling in applications that fixed similar issues several years ago) https://orgmode.org/list/87r1lnvjh0.fsf@gmail.com