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

HTML attributes for smarter answer matching in fill in boxes #412

Open
abchugh opened this issue Nov 20, 2023 · 0 comments
Open

HTML attributes for smarter answer matching in fill in boxes #412

abchugh opened this issue Nov 20, 2023 · 0 comments

Comments

@abchugh
Copy link

abchugh commented Nov 20, 2023

From #391 (comment)

"""
\fillinsol now takes as optional argument a list of key-value-pairs with keys exact, numrange, regex and values being triples {<string>}{T|F}{<feedback>} (the answer case "description", whether that case is correct/wrong, and feedback). The mandatory argument in \fillinsol is now only used to a) determine the size of the fillinbox, and b) to fill the box with if \ifsolutions is true.
"""

This information is not yet available in the RusTeX/MMT generated HTML.

Things to note:

  1. The new schema should be backward compatible, i.e., if a solution is provided without any other information, exact will be assumed.
  2. Needs for the regex matching is most urgent. This may be specified by just adding HTML attribute that has the value exact, regex, or numrange. When the provided value is regex, the frontend will treat the provided data as a regular expression.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant