Skip to content

Commit

Permalink
Improve results of 'upcase' for characters with title-case
Browse files Browse the repository at this point in the history
* lisp/international/characters.el (standard-case-table): Swap the
order of some lines, to have 'upcase' return the upper-case
variant, not the title-case, for some characters whose lower-case
map to the same codepoints.  (Bug#23833)
  • Loading branch information
Eli-Zaretskii committed Jun 23, 2016
1 parent 7a20ebe commit 92289ce
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions lisp/international/characters.el
Original file line number Diff line number Diff line change
Expand Up @@ -623,16 +623,21 @@ with L, LRE, or LRO Unicode bidi character type.")
(set-case-syntax-pair tbl)
(set-case-syntax-pair tbl)
(set-case-syntax-pair tbl)
(set-case-syntax-pair tbl)
;; The order of the next 6 lines is important, since we want
;; upcase of dž return DŽ, not Dž, and the same for the rest.
(set-case-syntax-pair tbl)
(set-case-syntax-pair ?LJ tbl)
(set-case-syntax-pair ?DŽ tbl)
(set-case-syntax-pair tbl)
(set-case-syntax-pair ?NJ tbl)
(set-case-syntax-pair ?LJ tbl)
(set-case-syntax-pair tbl)
(set-case-syntax-pair tbl)

;; 01F0; F; 006A 030C; # LATIN SMALL LETTER J WITH CARON
(set-case-syntax-pair tbl)

;; The order of the next two lines is important, since we want
;; upcase of dz return DZ, not Dz.
(set-case-syntax-pair tbl)
(set-case-syntax-pair tbl)
(set-case-syntax-pair tbl)
(set-case-syntax-pair ?ƿ tbl)
(set-case-syntax-pair ?ⱥ tbl)
Expand Down

0 comments on commit 92289ce

Please sign in to comment.