[tomboy] Remove exclusion list for prefixes in WikiWords



commit 2d168ce3a3f69dccd7c4a2e1e2a1471ca1e48434
Author: Stefan Schweizer <steve schweizer gmail com>
Date:   Mon May 4 18:28:24 2009 +0200

    Remove exclusion list for prefixes in WikiWords
    
    The exclusion list prevented highlighting of WikiWords that started with
    patronymic name prefixes like Mac or Le. Closes: bgo#392627.
---
 Tomboy/Watchers.cs |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)

diff --git a/Tomboy/Watchers.cs b/Tomboy/Watchers.cs
index 4d3750d..65ec7de 100644
--- a/Tomboy/Watchers.cs
+++ b/Tomboy/Watchers.cs
@@ -904,20 +904,6 @@ namespace Tomboy
 			}
 		}
 
-		static string [] PatronymicPrefixes =
-		        new string [] { "Mc", "Mac", "Le", "La", "De", "Van" };
-
-		bool IsPatronymicName (string word)
-		{
-			foreach (string prefix in PatronymicPrefixes) {
-				if (word.StartsWith (prefix) &&
-				                char.IsUpper (word [prefix.Length]))
-					return true;
-			}
-
-			return false;
-		}
-
 		void ApplyWikiwordToBlock (Gtk.TextIter start, Gtk.TextIter end)
 		{
 			NoteBuffer.GetBlockExtents (ref start,
@@ -932,9 +918,6 @@ namespace Tomboy
 			                match = match.NextMatch ()) {
 				System.Text.RegularExpressions.Group group = match.Groups [1];
 
-				if (IsPatronymicName (group.ToString ()))
-					continue;
-
 				Logger.Log ("Highlighting wikiword: '{0}' at offset {1}",
 				            group,
 				            group.Index);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]