Ticket #355: xapian-core-non-spacing.patch

File xapian-core-non-spacing.patch, 495 bytes (added by Muayyad Alsadi, 16 years ago)

patch to fix non-spacing chars

  • include/xapian/unicode.h

    old new  
    298298            (1 << Xapian::Unicode::DECIMAL_DIGIT_NUMBER) |
    299299            (1 << Xapian::Unicode::LETTER_NUMBER) |
    300300            (1 << Xapian::Unicode::OTHER_NUMBER) |
     301            (1 << Xapian::Unicode::NON_SPACING_MARK) | /* Arabic diacritics are non-spacing */
    301302            (1 << Xapian::Unicode::CONNECTOR_PUNCTUATION);
    302303    return ((WORDCHAR_MASK >> get_category(ch)) & 1);
    303304}