I'm using DBD::SQLite to create multilingual FTS databases. I got the unicode61 tokenizer working, but I'm getting an error message when I add remove_diacritics=0 in order to stop the tokenizer from folding ú, ü and ű all into u and so on.
The documentation says: By default, "unicode61" also removes all diacritics from Latin script characters. This behaviour can be overridden by adding the tokenizer argument "remove_diacritics=0". For example: CREATE VIRTUAL TABLE txt3 USING fts4(tokenize=unicode61 "remove_diacritics=0");

Well, that's what I'm doing and I get an error:
DBD::SQLite::db do failed: unrecognized parameter: remove_diacritics=0

Relevant code:
$dbh->do("CREATE VIRTUAL TABLE tmdata USING fts4 ($collist, tokenize=u +nicode61)") # works but has undesired side effect of treating all acc +ented letters the same as the 'base letter' # $dbh->do("CREATE VIRTUAL TABLE tmdata USING fts4 ($collist, tokenize +=unicode61, \"remove_diacritics=0\")") # fails with unrecognized para +meter error # $dbh->do("CREATE VIRTUAL TABLE tmdata USING fts4 ($collist, tokenize +=unicode61, remove_diacritics=0)") # fails the same way return;}

I realize that this is probably a rarely used feature. If nobody has a solution I might email the maintainer (Kenichi Ishigaki).

In reply to DBD::SQLite: remove_diacritics throws error by elef

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.