Forum Replies Created
-
AuthorPosts
-
November 26, 2021 at 3:46 am in reply to: Taxonomic labels on category and tag search results #35747
aharonium
ParticipantAnd to change “Categories” to “category” and “Tags” to “tag” would I do something like the following?
if ($r->content_type == 'Categories') { $term = "category"; } else { $term = "tag"; }November 24, 2021 at 3:28 pm in reply to: Ignoring diacritical marks in non-Latin scripts during index table generation #35714aharonium
ParticipantIt works. Thank you!
November 23, 2021 at 7:59 pm in reply to: Ignoring diacritical marks in non-Latin scripts during index table generation #35693aharonium
ParticipantThank you for taking a look at this and for this code. I’ve added it to functions.php and I generated a new index.
To test this out, I did a search for a phrase that appears in one post with and without diacritics:
בּוֹרֵא הַשָּׁמַֽיִם וְנוֹטֵיהֶם
בורא השמים ונוטיהם(It’s on the second line of the post here: https://opensiddur.org/?p=40747.)
The search menu is accessed via an off-canvas sidebar. There’s a link just next to the logo in the head of the page.
The good news is that Ajax Search Pro did well for the phrase without diacritical marks.

The bad news is that Ajax Search Pro failed on the phrase with diacritical marks, which means, I think, that the diacritical marks aren’t being removed from the search query.

I mean, the good news is very good news as I think most users will be typing in their search query without diacritical marks. But for some other users, they will be copying and pasting their search query from text found elsewhere on the site (or from off-site resources). Stripping the diacritical marks from their query in order to better match the index table is a very good idea that I hadn’t thought of in my support question. So thank you very much for thinking of that!
(Figuring out how to integrate a virtual Hebrew or Universal Unicode keyboard with Ajax will probably be my next question after this one.)
-
AuthorPosts