From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: Ligature support Date: Fri, 5 Nov 2021 13:43:31 -0700 Message-ID: References: <83v916d64z.fsf@gnu.org> <878ry2k6qz.fsf@gnus.org> <83tugqd488.fsf@gnu.org> <87zgqiiq8c.fsf@gnus.org> <83r1bud3or.fsf@gnu.org> <87r1buipf5.fsf@gnus.org> <83o86yd0ig.fsf@gnu.org> <87a6iiimay.fsf@gnus.org> <20211105171356.GB24570@tuxteam.de> <83ee7uct47.fsf@gnu.org> <20211105195245.GC24570@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38466"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: tomas@tuxteam.de, Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 05 21:44:12 2021 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 1mj64K-0009lY-9k for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Nov 2021 21:44:12 +0100 Original-Received: from localhost ([::1]:49722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mj64J-0002e1-6b for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Nov 2021 16:44:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37264) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mj63j-0001zc-F8 for emacs-devel@gnu.org; Fri, 05 Nov 2021 16:43:35 -0400 Original-Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:34383) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mj63h-0004oN-WE; Fri, 05 Nov 2021 16:43:35 -0400 Original-Received: by mail-pl1-x633.google.com with SMTP id r5so11829536pls.1; Fri, 05 Nov 2021 13:43:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:in-reply-to:references:mime-version:date:message-id:subject:to :cc; bh=5kV0ufg46cKrBQlyJNTUsmRwRvbylwlU6mtz6ryL6IA=; b=MvlJ9q3z5sZtnky66bp3LG7WLrXZqWXarYWe9CbyfN2wgAkk0xre6lClEgTZRnalbN Z+IG1Opni+42JHHA85R2IZM73/AuCHShJteV4ck+OlkC5xtcdt8/gvDs0s9skwK60rxE UXiEZv7xDYnp8CVyFCDMEDi6lkOd/kT9qaMe/B4lxazU6N0npNLvw2mNXpousOi/YF0A IJWIjltAdPemQ7ZXKF2vrLkIam1RA1KIxKsfif1n4iBXhDWAMy0sQGOR6EClbATf1WLj I7ckkzh8wFCQHwF6CQOI6Hn+/y2YlGtj/YzvXjCdJzzcCq7VpBC/S3U+qWFrCFiZOeMl WrZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=5kV0ufg46cKrBQlyJNTUsmRwRvbylwlU6mtz6ryL6IA=; b=WPpuEW2jabX0LX1Zjtoi5YRCshfuLnDhmCbhB9oVmezpqUdoFQl4mMWtfDbZFAR92E 4RR3W4EOXGhujNslta3orSn0t++u0bCPWGiRWtqa56V8oj137G2Sbu9P5zwiVIbEFTRq iASUsOIUOKOSRvw7AGNhmfm60XvlRq3eCwbNUWlLoq12HdlOPK++NKhiQV7VIF70dulc 0e2c/7F4tjZKpn2PnmJcJ7A2zwdA2DIiyw88zohyBtlYlJD+otCr8qOmQSVP1GDehHan xk9MMK2wM1PXM/tEmCLdyL8PygeECKLvRh/CVZ0OA252242Wu2QFFkSPBickzm7uFhkd 2XLQ== X-Gm-Message-State: AOAM5318c2b/eYwdgsi4Jrsug3UIeLZBtauRoZK7p5O8HfCC6xAqYGh3 9iQ/76sBpFPVI1B2eGG1LAMgsNeWvr2yyVTjGd2VEbIb X-Google-Smtp-Source: ABdhPJxptNHpn3zm4xhqY2ODkZk0shZtjJs4CY9P3uXnvfgMmPkpu1dlJBZdQsSrbJ5ocssuDRIz+UEm7AqEJmCRRy8= X-Received: by 2002:a17:90a:be10:: with SMTP id a16mr32184796pjs.133.1636145012124; Fri, 05 Nov 2021 13:43:32 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 5 Nov 2021 13:43:31 -0700 In-Reply-To: <20211105195245.GC24570@tuxteam.de> Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=stefankangas@gmail.com; helo=mail-pl1-x633.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 autolearn=ham autolearn_force=no X-Spam_action: no action 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:278811 Archived-At: tomas@tuxteam.de writes: >> We do pass the language to HarfBuzz when we think we know it, but the >> problem is Emacs itself has no good notion of the "current language". > > This is what I was pointing at. I don't think this is a problem which > can be solved in general. You have homographs (words that write the > same) within one language, you have them across languages. Right, detecting a language is hard and is AFAIK discussed at the frontlines of language technology. We don't need to attempt that, I think. Other software just let you set the current language or languages manually. I would suggest a variable `current-language' (or something) that controls this on a buffer level. In word processors, you can indicate the current language down to the individual word or perhaps even character level. Perhaps we could also have a text property for it?