| Summary: | aspell (as used by recoll) is not compatible with aspell-sv, missing file | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Morgan Leijström <fri> |
| Component: | RPM Packages | Assignee: | David GEIGER <geiger.david68210> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | dglent, jf |
| Version: | 7 | Keywords: | UPSTREAM |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | recoll-1.25.13-1.mga7.src.rpm | CVE: | |
| Status comment: | |||
|
Description
Morgan Leijström
2020-01-02 00:11:45 CET
Since aspell is widely used, I think it better to stick this one on recoll at least for starters. aspell might indeed be the culprit. Assigning to DavidG as the main committer; CC Dimitrios as the registered maintainer, for his opinion. Source RPM:
aspell-sv =>
recoll-1.25.13-1.mga7.src.rpm I think it would be better to file a new bug upstream: https://opensourceprojects.eu/p/recoll1/tickets/ Responding here instead of on opensourceprojects as the latter site has "issues". I am not too sure where the "swedish" comes from. As far as I can see, recoll try to guess a language name from the nls environment, Did you try to set aspellLanguage = sv in the configuration file ? CC:
(none) =>
jf It seem to guess correctly; locale is swedish, and that is my mother's toungue. I did not edit a file. In Recoll menu > Preferences, " [x] (all languages) " is checked. It guessed the right language, but the code used by aspell for swedish is sv not swedish, and it's also normally what's used in the locale. What does the 'locale' command output in a terminal ? Anyway, the thing to try to fix this is to input sv in the GUI in Preferences->Index configuration->Global parameters->Aspell language, then run an index update. [morgan@svarten ~]$ locale LANG=sv_SE.UTF-8 LC_CTYPE="sv_SE.UTF-8" LC_NUMERIC="sv_SE.UTF-8" LC_TIME="sv_SE.UTF-8" LC_COLLATE="sv_SE.UTF-8" LC_MONETARY="sv_SE.UTF-8" LC_MESSAGES="sv_SE.UTF-8" LC_PAPER="sv_SE.UTF-8" LC_NAME="sv_SE.UTF-8" LC_ADDRESS="sv_SE.UTF-8" LC_TELEPHONE="sv_SE.UTF-8" LC_MEASUREMENT="sv_SE.UTF-8" LC_IDENTIFICATION="sv_SE.UTF-8" LC_ALL= [morgan@svarten ~]$ GUI Preferences->Index configuration->Global parameters->Aspell language was set to "swedish" I now changed it to sv and started index update. Will report back. Good night for today, and thank you for helping out here. I have noted no issues. Now the quiestion is how it became "swedish" instead of sv in that setting. Did I and forgot about it, or is it a packaging bug, or...? It is a bit confusing that in "Stemming languages" full language names are used ( english, swedish ) I think that you must have input "swedish" yourself :) If nothing appears in this field, recoll computes the language from the NLS environment (sv_SE.UTF-8 -> sv in your case). There are two sets of language names, specific to the two pieces of software which use them: - The Xapian Snowball stemmers are in charge of expanding searches to term grammatical variations (floor -> floor floors flooring floored...) - The aspell dictionary is in charge of suggesting orthographic/phonetic variations when a search returns no results I both cases, I keep the language names specific to the tool (english, french, swedish, etc. for the stemmers vs. fr, en, sv for aspell) because trying to have a pivot list and translating to the specific terms appeared too risky and high maintenance to me. And there are also other sets of language names for, e.g. tesseract :) Ah, operator error then... Thank you for helping out, and for your great explanations! Suggestion: in future version have a hint for the format to enter in that field? Status:
NEW =>
RESOLVED Yep, I have improved the tooltips for the next version. These appear when you hover on the labels. Maybe I should add them to the entry zones too. Way to go ! Thank you for this great program :) /Morgan |