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

Styling MathML-Next Markup #78

Open
AdamSobieski opened this issue Mar 23, 2019 · 2 comments
Open

Styling MathML-Next Markup #78

AdamSobieski opened this issue Mar 23, 2019 · 2 comments
Labels
css / html5 Issues related to CSS or HTML5 interoperability enhancement New feature or request MathML-Next Ideas for future releases

Comments

@AdamSobieski
Copy link

AdamSobieski commented Mar 23, 2019

Introduction

In #68, in the section titled URL String Interpolation, Templating and Formatting, a syntactic option was presented with which we could express markup resembling:

<math id="eq1">
  <semantics>
    <mrow>default</mrow>
    <annotation-xml encoding="application/mathml-presentation+xml" lang="en" src="math.php?equation=eq1&amp;type=application%2Fmathml-presentation+xml&amp;language=en" />
    <annotation-xml encoding="application/xhtml+xml" lang="en" src="math.php?equation=eq1&amp;type=application%2Fxhtml+xml&amp;language=en" />
    <annotation-xml encoding="application/svg+xml" lang="en" src="math.php?equation=eq1&amp;type=application%2Fsvg+xml&amp;language=en" />
    <annotation-xml encoding="application/mathml-presentation+xml" lang="fr" src="math.php?equation=eq1&amp;type=application%2Fmathml-presentation+xml&amp;language=fr" />
    <annotation-xml encoding="application/xhtml+xml" lang="fr" src="math.php?equation=eq1&amp;type=application%2Fxhtml+xml&amp;language=fr" />
    <annotation-xml encoding="application/svg+xml" lang="fr" src="math.php?equation=eq1&amp;type=application%2Fsvg+xml&amp;language=fr" />
    <annotation-xml encoding="application/mathml-presentation+xml" lang="es" src="math.php?equation=eq1&amp;type=application%2Fmathml-presentation+xml&amp;language=es" />
    <annotation-xml encoding="application/xhtml+xml" lang="es" src="math.php?equation=eq1&amp;type=application%2Fxhtml+xml&amp;language=es" />
    <annotation-xml encoding="application/svg+xml" lang="es" src="math.php?equation=eq1&amp;type=application%2Fsvg+xml&amp;language=es" />
    <annotation-xml encoding="application/mathml-presentation+xml" lang="de" src="math.php?equation=eq1&amp;type=application%2Fmathml-presentation+xml&amp;language=de" />
    <annotation-xml encoding="application/xhtml+xml" lang="de" src="math.php?equation=eq1&amp;type=application%2Fxhtml+xml&amp;language=de" />
    <annotation-xml encoding="application/svg+xml" lang="de" src="math.php?equation=eq1&amp;type=application%2Fsvg+xml&amp;language=de" />
  </semantics>
</math>

with markup resembling:

<math id="eq1">
  <semantics>
    <mrow>default</mrow>
    <annotation-xml encoding="application/mathml-presentation+xml application/xhtml+xml application/svg+xml" lang="en fr es de" pattern="math.php?equation=eq1&amp;type={encoding}&amp;language={lang}" />
  </semantics>
</math>

The syntactic option, with an accompanying content selection algorithm, utilizes space-delimited values for certain attributes, e.g. encoding and lang, with a pattern attribute which, via string interpolation, generates values for a src attribute.

In the first example with twelve <annotation-xml> elements, we could select to style with a syntax resembling:

math > semantics > annotation-xml[encoding='application/mathml-presentation+xml']:selected

or

math annotation-xml[encoding='application/mathml-presentation+xml']:selected

Any thoughts on how we might style content in the second example with one <annotation-xml> element?

@AdamSobieski
Copy link
Author

AdamSobieski commented Mar 23, 2019

Also, might w3c/csswg-drafts#3730 be pertinent? Might we need to utilize something like a >> combinator to select into remote content loaded by <annotation> and <annotation-xml> elements, content referenced via a URL specified in a src attribute or via a URL generated per the pattern attribute?

That is, something like:
math > semantics > annotation-xml:selected >> mrow
or:
math annotation-xml:selected >> mrow

@davidcarlisle davidcarlisle added enhancement New feature or request css / html5 Issues related to CSS or HTML5 interoperability labels Mar 30, 2019
@davidcarlisle davidcarlisle added the MathML-Next Ideas for future releases label Jun 17, 2022
@dginev
Copy link
Contributor

dginev commented Sep 28, 2023

[minor admin] In the MathML Full WG meeting on Sep 28th, 2023, we agreed to re-title issues scheduled for the next charter with "MathML-Next", to avoid confusion.

@dginev dginev changed the title Styling MathML4 Markup Styling MathML-Next Markup Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css / html5 Issues related to CSS or HTML5 interoperability enhancement New feature or request MathML-Next Ideas for future releases
Projects
None yet
Development

No branches or pull requests

3 participants