Ticket #606: omindex-iwork.patch

File omindex-iwork.patch, 726 bytes (added by Olly Betts, 10 years ago)

patch to add iwork extension -> mimetype mappings

  • xapian-applications/omega/omindex.cc

    diff --git a/xapian-applications/omega/omindex.cc b/xapian-applications/omega/omindex.cc
    index fe0968d..86965be 100644
    a b main(int argc, char **argv)  
    15231523    // actually saves RTF when asked to save as .doc, and Microsoft Word
    15241524    // quietly loads RTF files with a .doc extension), or plain-text.
    15251525
     1526    // Apple iWork:
     1527    mime_map["key"] = "application/vnd.apple.keynote";
     1528    mime_map["pages"] = "application/vnd.apple.pages";
     1529    mime_map["numbers"] = "application/vnd.apple.numbers";
     1530
    15261531    // Other MS formats:
    15271532    mime_map["xls"] = "application/vnd.ms-excel";
    15281533    mime_map["xlb"] = "application/vnd.ms-excel";