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.devel Subject: Re: Ligature support Date: Fri, 05 Nov 2021 22:49:54 +0200 Message-ID: <835yt6cop9.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37647"; mail-complaints-to="usenet@ciao.gmane.io" Cc: tomas@tuxteam.de, emacs-devel@gnu.org To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 05 21:51:18 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 1mj6BB-0009XG-3s for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Nov 2021 21:51:17 +0100 Original-Received: from localhost ([::1]:52368 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mj6B9-0004oB-F2 for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Nov 2021 16:51:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mj6A9-000420-Ku for emacs-devel@gnu.org; Fri, 05 Nov 2021 16:50:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40192) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mj6A8-00070S-PD; Fri, 05 Nov 2021 16:50:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xjkka0T0ysFQjtwN5KTc/8weBfjN9a40xABwS/iD5r8=; b=N3JEG+ajIak4 i4/LaUEAMUevpAjX3Z81YYbwRpk15o+xTiLnYLTt3aYqQWkPedXLqQq0qhQDCRy7mIBvFy4MO54aa qQwhMgnjaGlnbkga8MWB82XYChpfZytrBJSgIK9y3+FVrGUAHfp4CTTNRTuLUUatfujETGO1hVYU6 nwbu+Zzs+T9X/BXzyT7Yf7+yQALVY11p/E8Ys0UaqvnSkxjmFnfyF19QBdio9+cX+RCQ7dCUd73J9 qUBXhcugrzQhk/lTR3Wp+2Cn5vNYoeV/LUanFlAB1FKooif9HNorys4EOnrw58rsHDJqIv2PuSDev 2cULXH+P8iED2EeCkJPNHg==; Original-Received: from [87.69.77.57] (port=1100 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mj6A8-0000r2-Bc; Fri, 05 Nov 2021 16:50:12 -0400 In-Reply-To: (message from Stefan Kangas on Fri, 5 Nov 2021 13:43:31 -0700) 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:278812 Archived-At: > From: Stefan Kangas > Date: Fri, 5 Nov 2021 13:43:31 -0700 > Cc: emacs-devel@gnu.org > > 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? The challenge here is to provide the means for users and Lisp programs to specify the language of a chunk of text, not just of the entire buffer, including reasonable defaults that use the locale and other relevant meta-data. And yes, text properties are one way of storing the information, like we already do with charsets.