# HG changeset patch # User Christian Brabandt # Date 1697796904 -7200 # Node ID 74a0f1bc62b1b6049a5cb7846f7e35aad3a8734a # Parent c6eb68563123dc8618a24d4f92fba73b5bde0826 patch 9.0.2056: no digraph for quadruple prime Commit: https://github.com/vim/vim/commit/47416d1a7441f8c815438903e78ba0a2d877699e Author: Jonathan Wright Date: Fri Oct 20 12:08:09 2023 +0200 patch 9.0.2056: no digraph for quadruple prime Problem: no digraph for quadruple prime Solution: add quadruple prime digraph using 4' closes: #13380 Signed-off-by: Jonathan Wright Signed-off-by: Christian Brabandt Co-authored-by: Jonathan Wright diff --git a/runtime/doc/digraph.txt b/runtime/doc/digraph.txt --- a/runtime/doc/digraph.txt +++ b/runtime/doc/digraph.txt @@ -1,4 +1,4 @@ -*digraph.txt* For Vim version 9.0. Last change: 2023 Mar 21 +*digraph.txt* For Vim version 9.0. Last change: 2023 Oct 20 VIM REFERENCE MANUAL by Bram Moolenaar @@ -174,6 +174,13 @@ ROUBLE The rouble sign was added in 2014 as 0x20bd. Vim supports the digraphs =R and =P for this. Note that R= and P= are other characters. +QUADRUPLE PRIME + +The quadruple prime using the digraph 4' was added in 2023. Although it is +not part of RFC 1345, it supplements the existing digraph implementation as +there already exist digraphs for PRIME, DOUBLE PRIME and TRIPLE PRIME using +the 1', 2' and 3' digraphs. + *digraph-table* char digraph hex dec official name ~ ^@ NU 0x00 0 NULL (NUL) @@ -931,6 +938,7 @@ char digraph hex dec official name ~ ′ 1' 2032 8242 PRIME ″ 2' 2033 8243 DOUBLE PRIME ‴ 3' 2034 8244 TRIPLE PRIME +⁗ 4' 2057 8279 QUADRUPLE PRIME ‵ 1" 2035 8245 REVERSED PRIME ‶ 2" 2036 8246 REVERSED DOUBLE PRIME ‷ 3" 2037 8247 REVERSED TRIPLE PRIME diff --git a/src/digraph.c b/src/digraph.c --- a/src/digraph.c +++ b/src/digraph.c @@ -853,6 +853,7 @@ static digr_T digraphdefault[] = { {'1', '\'', 0x2032}, {'2', '\'', 0x2033}, {'3', '\'', 0x2034}, + {'4', '\'', 0x2057}, {'1', '"', 0x2035}, {'2', '"', 0x2036}, {'3', '"', 0x2037}, diff --git a/src/testdir/test_digraph.vim b/src/testdir/test_digraph.vim --- a/src/testdir/test_digraph.vim +++ b/src/testdir/test_digraph.vim @@ -37,6 +37,9 @@ func Test_digraphs() call Put_Dig("=P") call Put_Dig("P=") call assert_equal(['Р']+repeat(["₽"],2)+['П'], getline(line('.')-3,line('.'))) + " Quadruple prime + call Put_Dig("'4") + call assert_equal("⁗", getline('.')) " Not a digraph call Put_Dig("a\") call Put_Dig("\a") diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -705,6 +705,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2056, +/**/ 2055, /**/ 2054,