ahrm / sioyek

Sioyek is a PDF viewer with a focus on textbooks and research papers
https://sioyek.info/
GNU General Public License v3.0
7.01k stars 232 forks source link

[BUG] Search for "–" known as "en dash" doesn't find the corresponding result #1024

Open Kim-Vallee opened 6 months ago

Kim-Vallee commented 6 months ago

If one searches for a document with "–" it appears the search doesn't provide any result. It is particularly bothering for research document where "–" appears all the time for citations and reverse citations' lookup.

Exemple: search for "[4–8]" would not work in the following sentence, even if copied and pasted from that very same sentence: All noncontextual models satisfy this inequality, while the quantum predictions for any state violate it [4–8].

ahrm commented 5 months ago

Does this happen in every document or in a specific document? I can't reproduce the issue, if it happens in a specific document, please link it here.

Kim-Vallee commented 5 months ago

It surely doesn't happen for every document (I just checked). I can't find again the original document but for instance in the following one Thermodynamics and the structure of quantum theory any search for these kind of dash doesn't work. For instance "[66–69]" won't return anything.