You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.
The problem is caused by code cleaning up the Glyph names when creating the index, wherein instances of the string ' a ' are removed.
item.name
.replace(/-[0-9]/g, '')
.replace(' a ', '')
.replace(' an ', ''),
This turns, e.g., "latin small letter a with ring above" into "latin small letterwith ring above". The resulting index thus does not yield results for "A …" searches on glyphs with "…letter a…" in the name. (Which, as observed, is inconsistent with other letters.)
Another problem here is that the leading and trailing spaces are both being removed, removing the boundary between the words before & after 'a', e.g. 'letterwith' above.
Just to expand on the second thing with both spaces being stripped a bit (sorry, not filing a new issue), an example of what it breaks:
There is a glyph named x in a rectangle box. It is indexed as x inrectangle box, and thus is not found by searching for "rectangle" (but is found by searching for "inrectangle".)
Description
Characters that are variations on the letter 'A' are not found by search, whereas equivalent variations on other letters are.
Exception: Variants of alpha 'α' are not affected by this issue.
Examples
Working:
igrave
, ÌIgrave
igrave
,Igrave
Not working:
agrave
, ÀAgrave
aring
, ÅAring
The text was updated successfully, but these errors were encountered: