Revision: 30049
          http://sourceforge.net/p/bibdesk/svn/30049
Author:   hofman
Date:     2026-02-24 15:34:40 +0000 (Tue, 24 Feb 2026)
Log Message:
-----------
disable automatic substitutions in initializers

Modified Paths:
--------------
    trunk/bibdesk/BDSKEditor.m
    trunk/bibdesk/BDSKEditorTextView.m

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2026-02-23 23:23:01 UTC (rev 30048)
+++ trunk/bibdesk/BDSKEditor.m  2026-02-24 15:34:40 UTC (rev 30049)
@@ -251,25 +251,16 @@
     [notesView setString:[publication valueOfField:BDSKAnnoteString 
inherit:NO] ?: @""];
     [notesView setEditable:editorFlags.isEditable];
     [notesView setTextColor:[NSColor textColor]];
-    [notesView setAutomaticQuoteSubstitutionEnabled:NO];
-    [notesView setAutomaticDashSubstitutionEnabled:NO];
-    [notesView setAutomaticLinkDetectionEnabled:NO];
     [abstractView setIdentifier:BDSKAbstractString];
     [abstractView setUsesDefaultFont:YES];
     [abstractView setString:[publication valueOfField:BDSKAbstractString 
inherit:NO] ?: @""];
     [abstractView setEditable:editorFlags.isEditable];
     [abstractView setTextColor:[NSColor textColor]];
-    [abstractView setAutomaticQuoteSubstitutionEnabled:NO];
-    [abstractView setAutomaticDashSubstitutionEnabled:NO];
-    [abstractView setAutomaticLinkDetectionEnabled:NO];
     [rssDescriptionView setIdentifier:BDSKRssDescriptionString];
     [rssDescriptionView setUsesDefaultFont:YES];
     [rssDescriptionView setString:[publication 
valueOfField:BDSKRssDescriptionString inherit:NO] ?: @""];
     [rssDescriptionView setEditable:editorFlags.isEditable];
     [rssDescriptionView setTextColor:[NSColor textColor]];
-    [rssDescriptionView setAutomaticQuoteSubstitutionEnabled:NO];
-    [rssDescriptionView setAutomaticDashSubstitutionEnabled:NO];
-    [rssDescriptionView setAutomaticLinkDetectionEnabled:NO];
     if (@available(macOS 10.14, *)) {
         [notesView setDrawsBackground:NO];
         [abstractView setDrawsBackground:NO];

Modified: trunk/bibdesk/BDSKEditorTextView.m
===================================================================
--- trunk/bibdesk/BDSKEditorTextView.m  2026-02-23 23:23:01 UTC (rev 30048)
+++ trunk/bibdesk/BDSKEditorTextView.m  2026-02-24 15:34:40 UTC (rev 30049)
@@ -61,6 +61,9 @@
         BDSKPRECONDITION([self textStorage]);
         // use Apple's link detection on 10.5 and later
         [self setAutomaticLinkDetectionEnabled:YES];
+        // disable quote and dash substitution, as these substitutes usually 
are invalid characters for TeX
+        [self setAutomaticQuoteSubstitutionEnabled:NO];
+        [self setAutomaticDashSubstitutionEnabled:NO];
     }
     return self;
 }
@@ -72,6 +75,9 @@
         BDSKPRECONDITION([self textStorage]);
         // use Apple's link detection on 10.5 and later
         [self setAutomaticLinkDetectionEnabled:YES];
+        // disable quote and dash substitution, as these substitutes usually 
are invalid characters for TeX
+        [self setAutomaticQuoteSubstitutionEnabled:NO];
+        [self setAutomaticDashSubstitutionEnabled:NO];
     }
     return self;    
 }

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



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to