From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ruijie Yu via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: [NonGNU Elpa] New package: electric-french Date: Sun, 04 Jun 2023 22:15:59 +0800 Message-ID: Reply-To: Ruijie Yu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="917"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.9.22; emacs 30.0.50 To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 04 16:57:28 2023 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 1q5pAe-000AbW-R6 for ged-emacs-devel@m.gmane-mx.org; Sun, 04 Jun 2023 16:57:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5pA1-00064I-1J; Sun, 04 Jun 2023 10:56:49 -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 1q5p9z-000649-Hv for emacs-devel@gnu.org; Sun, 04 Jun 2023 10:56:47 -0400 Original-Received: from netyu.xyz ([152.44.41.246] helo=mail.netyu.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q5p9x-0002ab-Sh for emacs-devel@gnu.org; Sun, 04 Jun 2023 10:56:47 -0400 Original-Received: from fw.net.yu.netyu.xyz ( [222.248.4.98]) by netyu.xyz (OpenSMTPD) with ESMTPSA id c8f45293 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Sun, 4 Jun 2023 14:56:42 +0000 (UTC) Received-SPF: pass client-ip=152.44.41.246; envelope-from=ruijie@netyu.xyz; helo=mail.netyu.xyz X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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-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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:306621 Archived-At: Hello, I am proposing a new package called electric-french [1]. This stemmed from a discussion on emacs-humanities [2], where Jean-Christophe ("l@tlo") outlined a few common practices on nonbreak spaces in the French language. See near the end of the message for the commentary section. First of all, I want to know if any other French speakers are interested in using this package -- in particular, whether this is beneficial in general, more than only l@tlo. Secondly, if people are indeed interested, I hope this can ultimately go to GNU elpa, but since I am still trying to get an employer disclaimer (without which I am very reluctant to making any FSF open source contributions), I don't want to propose its inclusion into elpa.git at this very moment, hence this proposal into nongnu.git as a "temporary workaround". Alternatively, we can also pretend it were proposed for elpa.git, and postpone the actual inclusion until everything settles on my end -- of course, only if enough people are interested in this package. I welcome any type of comments. Anything, including the package name, can change with a valid reason. Though fluent in English, I am not a native speaker, so there may be occasional errors on wording. Nor am I so much a French speaker, and most information present in the package were either provided by l@tlo or obtained via some quick [search engine]'ing around, so any correction on that is welcome. Thanks. (And I know I need to add the part-of/not-part-of Emacs paragraph to the header. I'll add it when I know which elpa we are looking at.) --8<---------------cut here---------------start------------->8--- ;;; Commentary: ;; This library facilitates adhering to various spacing ;; requirements of French literature. It provides a minor mode, ;; where when enabled, inserts nonbreak spaces before or after a ;; character whenever required. By default, this includes all ;; "two-part" punctuations (such as ?, !, etc.) and all quotation ;; punctuations. ;; There are three customizable options at the moment: ;; - `electric-french-nonbreak-space': the space character / ;; string to use for the nonbreak space. Apparently, different ;; locales use differenc space characters. See details at ;; ;; on emacs-humanities@gnu.org. ;; - `electric-french-prepend-space-puncts' and ;; `electric-french-append-space-puncts': which characters ;; should have nonbreak spaces prepended, or appended, to them, ;; respectively. --8<---------------cut here---------------end--------------->8--- [1]: https://git.sr.ht/~ruijieyu/electric-french [2]: https://lists.gnu.org/archive/html/emacs-humanities/2023-05/msg00000.html -- Best, RY