Revision: 5259
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5259&view=rev
Author:   hofman
Date:     2009-03-16 10:01:51 +0000 (Mon, 16 Mar 2009)

Log Message:
-----------
Don't add notes to spotlight comments of .skim and .pdfd. It's typically a lot 
of data, not very suitable for comments.

Modified Paths:
--------------
    trunk/SkimImporter/Dutch.lproj/schema.strings
    trunk/SkimImporter/English.lproj/schema.strings
    trunk/SkimImporter/French.lproj/schema.strings
    trunk/SkimImporter/German.lproj/schema.strings
    trunk/SkimImporter/GetMetadataForFile.m
    trunk/SkimImporter/Italian.lproj/schema.strings
    trunk/SkimImporter/Spanish.lproj/schema.strings
    trunk/SkimImporter/ru.lproj/schema.strings
    trunk/SkimImporter/schema.xml
    trunk/SkimImporter/zh_TW.lproj/schema.strings

Modified: trunk/SkimImporter/Dutch.lproj/schema.strings
===================================================================
(Binary files differ)

Modified: trunk/SkimImporter/English.lproj/schema.strings
===================================================================
(Binary files differ)

Modified: trunk/SkimImporter/French.lproj/schema.strings
===================================================================
(Binary files differ)

Modified: trunk/SkimImporter/German.lproj/schema.strings
===================================================================
(Binary files differ)

Modified: trunk/SkimImporter/GetMetadataForFile.m
===================================================================
--- trunk/SkimImporter/GetMetadataForFile.m     2009-03-15 21:18:38 UTC (rev 
5258)
+++ trunk/SkimImporter/GetMetadataForFile.m     2009-03-16 10:01:51 UTC (rev 
5259)
@@ -109,14 +109,12 @@
         if (notes) {
             NSEnumerator *noteEnum = [notes objectEnumerator];
             NSDictionary *note;
-            NSMutableArray *noteContents = [[NSMutableArray alloc] init];
             while (note = [noteEnum nextObject]) {
                 NSString *contents = [note objectForKey:@"contents"];
                 if (contents) {
                     if ([textContent length])
                         [textContent appendString:@"\n\n"];
                     [textContent appendString:contents];
-                    [noteContents addObject:contents];
                 }
                 NSString *text = [[note objectForKey:@"text"] string];
                 if (text) {
@@ -125,8 +123,6 @@
                     [textContent appendString:text];
                 }
             }
-            CFDictionarySetValue(attributes, 
CFSTR("net_sourceforge_skim_app_notes"), noteContents);
-            [noteContents release];
         }
         
         if ([pdfText length]) {
@@ -144,6 +140,8 @@
                 CFDictionarySetValue(attributes, kMDItemAuthors, value);
             if (value = [info objectForKey:@"Keywords"])
                 CFDictionarySetValue(attributes, kMDItemKeywords, value);
+            if (value = [info objectForKey:@"Creator"])
+                CFDictionarySetValue(attributes, kMDItemCreator, value);
             if (value = [info objectForKey:@"Producer"])
                 CFDictionarySetValue(attributes, kMDItemEncodingApplications, 
value);
             if (value = [info objectForKey:@"Version"])

Modified: trunk/SkimImporter/Italian.lproj/schema.strings
===================================================================
(Binary files differ)

Modified: trunk/SkimImporter/Spanish.lproj/schema.strings
===================================================================
(Binary files differ)

Modified: trunk/SkimImporter/ru.lproj/schema.strings
===================================================================
(Binary files differ)

Modified: trunk/SkimImporter/schema.xml
===================================================================
--- trunk/SkimImporter/schema.xml       2009-03-15 21:18:38 UTC (rev 5258)
+++ trunk/SkimImporter/schema.xml       2009-03-16 10:01:51 UTC (rev 5259)
@@ -9,7 +9,6 @@
        are CFNumber, CFDate, CFBoolean and CFData.                   
     </note>
     <attributes>
-        <attribute name="net_sourceforge_skim_app_notes" multivalued="true" 
type="CFString"/>
         <attribute name="net_sourceforge_skim_app_dimensions" 
multivalued="false" type="CFString"/>
     </attributes>
 
@@ -19,7 +18,6 @@
                The keys that this metadata importer handles.
             </note>
             <allattrs>
-                net_sourceforge_skim_app_notes
                 net_sourceforge_skim_app_dimensions
             </allattrs>
             <displayattrs>
@@ -29,10 +27,10 @@
                 kMDItemNumberOfPages
                 net_sourceforge_skim_app_dimensions
                 kMDItemVersion
+                kMDItemCreator
                 kMDItemEncodingApplications
                 kMDItemSecurityMethod
                 kMDItemKeywords
-                net_sourceforge_skim_app_notes
             </displayattrs>
         </type>
         <type name="net.sourceforge.skim-app.skimnotes">
@@ -40,11 +38,9 @@
                The keys that this metadata importer handles.
             </note>
             <allattrs>
-                net_sourceforge_skim_app_notes
             </allattrs>
             <displayattrs>
                 kMDItemWhereFroms
-                net_sourceforge_skim_app_notes
             </displayattrs>
         </type>
     </types>

Modified: trunk/SkimImporter/zh_TW.lproj/schema.strings
===================================================================
(Binary files differ)


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

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to