]> git.lyx.org Git - features.git/commitdiff
FindQuick: Amend 1f7d90d6: Add some not handled quotation marks
authorKornel Benko <kornel@lyx.org>
Fri, 8 Apr 2022 17:56:41 +0000 (19:56 +0200)
committerKornel Benko <kornel@lyx.org>
Fri, 8 Apr 2022 17:59:55 +0000 (19:59 +0200)
src/Paragraph.cpp

index 92bb883710f8c7e05fdfb7b6ccc5866b91343468..e37a123823e3e828df7084eeacf6c400cf0d9b3f 100644 (file)
@@ -4563,16 +4563,24 @@ void Paragraph::changeCase(BufferParams const & bparams, pos_type pos,
 static char_type matchquote(char_type in)
 {
        switch (in) {
-               case 0x2018:
-               case 0x201a:
-               case 0x203a:
-               case 0x2039:
-                       return '\'';    // ‘ ‚ › ‹
-               case 0x00bb:
-               case 0x00ab:
-               case 0x201e:
-               case 0x201c:
-                       return '"';     // » « „ “
+               case 0x2018:    // Left Single Quotation Mark
+               case 0x2019:    // Right Single Quotation Mark
+               case 0x201a:    // Single Low-9 Quotation Mark
+               case 0x201b:    // Single High-Reversed-9 Quotation Mark 
+               case 0x2039:    // Single Left-Pointing Angle Quotation Mark
+               case 0x203a:    // Single Right-Pointing Angle Quotation Mark
+                       return '\'';
+               case 0x00bb:    // Right-Pointing Double Angle Quotation Mark
+               case 0x00ab:    // Left-Pointing Double Angle Quotation Mark
+               case 0x201e:    // Double Low-9 Quotation Mark 
+               case 0x201c:    // Left Double Quotation Mark 
+               case 0x201d:    // Right Double Quotation Mark 
+               case 0x201f:    // Double High-Reversed-9 Quotation Mark 
+               case 0x2e42:    // Double Low-Reversed-9 Quotation Mark
+               case 0x301e:    // Double Prime Quotation Mark
+               case 0x301d:    // Reversed Double Prime Quotation Mark
+               case 0x301f:    // Low Double Prime Quotation Mark
+                       return '"';
                default:
                        return in;
        }