-
Notifications
You must be signed in to change notification settings - Fork 14
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
Searching or matching text #220
Comments
I think these are good questions, but ones that are outside of MathML. Taking each bullet point in turn:
|
(This issue was linked from your I18N self-review. Adding a tracker label so that the I18N WG can track this discussion if it evolves. This in no way implies anything about I18N WG's opinion about the issue) |
I think it is the other way around: current ctrl+f implementations map the HTML document to some plain text representation and do literal string search into that (I've seen mentions of using Boyer-Moore). But maybe that is non-standard per the HTML find-in-page, which seems to only loosely mention "page contents":
I would be surprised if there are plans to implement tree search for MathML in browsers, do we have reasons to expect that? I was inspired to think of If that is standardized, it seems very sensible to next expect that searching for U+002D will also match both U+002D and U+2212. FWIW, currently that appears to be the behavior in Firefox, but not in Chrome (where searching for U+002D matches itself, but not U+2212). |
In #219 , the reply states:
But maybe it one day should? Would knowing answers to questions such as:
<mn>1,2</mn>
in a page with lang attribute indicating a country using a decimal comma? And vice versa for the query1,2
against<mn>1.2</mn>
in a page with lang attribute suggestive of a decimal point? Or neither, or both?(x,y)
match against equivalent notations say withlang="fr"
, such as]x,y[
? Probably a good place to say "no" and draw the line of what is within reasonable expectations...Would adding some text discussing these aspects be generally helpful for better math i18n in the ctrl+f "page search" of browsers?
The text was updated successfully, but these errors were encountered: