emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/altcaps 05b78cc81b 2/2: Update to version 1.1.0


From: ELPA Syncer
Subject: [elpa] externals/altcaps 05b78cc81b 2/2: Update to version 1.1.0
Date: Mon, 28 Nov 2022 00:57:24 -0500 (EST)

branch: externals/altcaps
commit 05b78cc81b8ca92aebb80779c2a863fa5eb18eaf
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Update to version 1.1.0
---
 CHANGELOG.org | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 README.org    |  6 +++---
 altcaps.el    |  2 +-
 3 files changed, 72 insertions(+), 4 deletions(-)

diff --git a/CHANGELOG.org b/CHANGELOG.org
new file mode 100644
index 0000000000..1c02dfe3a0
--- /dev/null
+++ b/CHANGELOG.org
@@ -0,0 +1,68 @@
+#+title: Change log of aLtCaPs
+#+author: Protesilaos Stavrou
+#+email: info@protesilaos.com
+#+options: ':nil toc:nil num:nil author:nil email:nil
+
+This document contains the release notes for each tagged commit on the
+project's main git repository: <https://git.sr.ht/~protesilaos/altcaps>.
+
+The newest release is at the top.  For further details, please consult
+the manual: <https://protesilaos.com/emacs/altcaps>.
+
+* 1.1.0 on 2022-11-28
+:PROPERTIES:
+:CUSTOM_ID: h:f1e70ccd-ad8d-44ee-a061-006f63ec07ef
+:END:
+
+** New user option
+:PROPERTIES:
+:CUSTOM_ID: h:21b37c23-b4ad-4531-ac20-2ddcce74d26f
+:END:
+
+Introduced the user option ~altcaps-force-character-casing~.  It
+forces the given letter casing for specified characters.  Its value is
+an alist of =(CHARACTER . CASE)= pairs.  =CHARACTER= is a single
+character (satisfies the ~characterp~ condition), while =CASE= is the
+~upcase~ or ~downcase~ symbol (code sample further below).
+
+The idea is to always render certain characters in lower or upper
+case, in consideration of their legibility in context.  For example,
+the default altcaps algorithm produces this:
+
+: iLlIcIt IlLiBeRaL sIlLiNeSs
+
+Whereas if the value of this variable declares =i= to always be
+lowercase and =L= uppercase, then we get this:
+
+: iLLiCiT iLLiBeRaL siLLiNeSs
+
+The code to do this:
+
+#+begin_src emacs-lisp
+(setq altcaps-force-character-casing
+      '((?i . downcase)
+        (?l . upcase)))
+#+end_src
+
+Thanks to Cédric Barreteau for the idea of forcing a given letter case
+on specified characters.  I think that giving users the option keeps
+our code simple, while providing a useful point of customisation.
+
+Cédric is the author of the nvim-altcaps, which is a plugin for NeoVim
+based on my =altcaps= idea: <https://github.com/cbarrete/nvim-altcaps>.
+
+** Improvements to documentation
+:PROPERTIES:
+:CUSTOM_ID: h:87713c33-c2d8-4d33-912e-8fd1cd54a58c
+:END:
+
++ Wrote a =README.md= which contains basic information about the
+  project, including links to the official Git repos, its mirrors on
+  GitHub/GitLab, as well as the project's mailing list.  This file is
+  useful for Git forges that have trouble parsing an Org file (the
+  manual is =README.org=, which the GNU ELPA machinery converts into a
+  proper Info manual).
++ Added missing index entries to the manual for our commands and the
+  new user option.
++ Wrote this very =CHANGELOG.org=, which is helpful for those who
+  inspect the Git repository.
diff --git a/README.org b/README.org
index 5179bca8ab..e94694490b 100644
--- a/README.org
+++ b/README.org
@@ -4,9 +4,9 @@
 #+language:              en
 #+options:               ':t toc:nil author:t email:t num:t
 #+startup:               content
-#+macro:                 stable-version 1.0.0
-#+macro:                 release-date 2022-11-26
-#+macro:                 development-version 1.1.0-dev
+#+macro:                 stable-version 1.1.0
+#+macro:                 release-date 2022-11-28
+#+macro:                 development-version 1.2.0-dev
 #+export_file_name:      altcaps.texi
 #+texinfo_filename:      altcaps.info
 #+texinfo_dir_category:  Emacs misc features
diff --git a/altcaps.el b/altcaps.el
index ce7d476edc..6b9043a452 100644
--- a/altcaps.el
+++ b/altcaps.el
@@ -6,7 +6,7 @@
 ;; Maintainer: Altcaps Development <~protesilaos/altcaps@lists.sr.ht>
 ;; URL: https://git.sr.ht/~protesilaos/altcaps
 ;; Mailing-List: https://lists.sr.ht/~protesilaos/altcaps
-;; Version: 1.0.0
+;; Version: 1.1.0
 ;; Package-Requires: ((emacs "27.1"))
 
 ;; This file is NOT part of GNU Emacs.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]