Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowing multiple results for fuzzy search? #88

Open
kberry opened this issue Dec 26, 2022 · 1 comment
Open

Allowing multiple results for fuzzy search? #88

kberry opened this issue Dec 26, 2022 · 1 comment
Labels
change Changing program's behavior enhancement New feature or request search Searching

Comments

@kberry
Copy link
Contributor

kberry commented Dec 26, 2022

texdoc -l unifonttable prefers texmf-dist/doc/latex/fonttable/fonttable.pdf. That is somewhat understandable, but unicodefonttable.pdf doesn't appear anywhere in the list, which seems surprising. Maybe "uni" somehow needs to imply looking for "unicode"? There are several packages named unicode* ...

This is with the texdoc in current TeX Live, Texdoc 3.4.1 (2022-03-19),
though I doubt it matters.

@wtsnjp
Copy link
Member

wtsnjp commented Dec 27, 2022

I'm afraid Texdoc does not have a direct solution for that. We can add aliases for each uni* package, but it won't be a fundamental solution.

We need either feature extension:

  1. query preprocessing to replace some well-known abbreviations to the expanded version, such as uni -> unicode.
  2. allowing multiple results for fuzzy search to match several package names by a fuzzy query; currently, the fuzzy search feature is used to find only one best package name close to a query. This is fine for the view mode (since only the best document matters), but it is not enough when considering the list mode.

I would rather take the second option. Maintaining the list of abbreviations just for these cases will be another burden.

@wtsnjp wtsnjp added the enhancement New feature or request label Dec 27, 2022
@wtsnjp wtsnjp changed the title unifonttable finds fonttable, not unicodefonttable Allowing multiple results for fuzzy search? Jan 22, 2023
@wtsnjp wtsnjp added change Changing program's behavior search Searching labels Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change Changing program's behavior enhancement New feature or request search Searching
Projects
None yet
Development

No branches or pull requests

2 participants