Revision: 28863
          http://sourceforge.net/p/bibdesk/svn/28863
Author:   hofman
Date:     2024-04-25 15:43:19 +0000 (Thu, 25 Apr 2024)
Log Message:
-----------
Don't detexify dotless i or j with accents below. Add dotless i and j to tex 
conversion characters.

Modified Paths:
--------------
    trunk/bibdesk/BDSKConverter.m
    trunk/bibdesk/CharacterConversion.plist

Modified: trunk/bibdesk/BDSKConverter.m
===================================================================
--- trunk/bibdesk/BDSKConverter.m       2024-04-25 09:29:39 UTC (rev 28862)
+++ trunk/bibdesk/BDSKConverter.m       2024-04-25 15:43:19 UTC (rev 28863)
@@ -222,7 +222,7 @@
     
     // handle i and j (others as well?)
     if (([character isEqualToString:@"i"] || [character isEqualToString:@"j"]) 
&&
-               ![accent isEqualToString:@"c "] && ![accent isEqualToString:@"d 
"] && ![accent isEqualToString:@"b "]) {
+               ![accent isEqualToString:@"c "] && ![accent isEqualToString:@"d 
"] && ![accent isEqualToString:@"b "] && ![accent isEqualToString:@"k "]) {
            character = [@"\\" stringByAppendingString:character];
     }
     
@@ -342,10 +342,9 @@
             character = [texString substringWithRange:NSMakeRange(letterStart, 
idx - letterStart)];
             
             // special cases for old style i, j
-            if ([character isEqualToString:@"\\i"]) {
-                character = @"i";
-            } else if ([character isEqualToString:@"\\j"]) {
-                character = @"j";
+            if (([character isEqualToString:@"\\i"] || [character 
isEqualToString:@"\\j"]) &&
+                ![accent isEqualToString:@"c"] && ![accent 
isEqualToString:@"d"] && ![accent isEqualToString:@"b"] && ![accent 
isEqualToString:@"k"]) {
+                character = [character substringFromIndex:1];
             }
             
             if ([character length] == 1) {

Modified: trunk/bibdesk/CharacterConversion.plist
===================================================================
--- trunk/bibdesk/CharacterConversion.plist     2024-04-25 09:29:39 UTC (rev 
28862)
+++ trunk/bibdesk/CharacterConversion.plist     2024-04-25 15:43:19 UTC (rev 
28863)
@@ -119,6 +119,10 @@
                <string>{\^e}</string>
                <key>ë</key>
                <string>{\&quot;e}</string>
+               <key>ı</key>
+               <string>{\i}</string>
+               <key>ȷ</key>
+               <string>{\j}</string>
                <key>ì</key>
                <string>{\`\i}</string>
                <key>í</key>
@@ -395,6 +399,10 @@
                <string>Ł</string>
                <key>{\l}</key>
                <string>ł</string>
+               <key>{\i}</key>
+               <string>ı</string>
+               <key>{\j}</key>
+               <string>ȷ</string>
                <key>{\oe}</key>
                <string>œ</string>
                <key>{\o}</key>

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to