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

Non-Ascii Characters should be reported #4

Open
JoshuaCapel opened this issue Dec 16, 2022 · 0 comments
Open

Non-Ascii Characters should be reported #4

JoshuaCapel opened this issue Dec 16, 2022 · 0 comments

Comments

@JoshuaCapel
Copy link
Member

Maple can break a string down into bytes, and the bytes can be used to detect non-ASCII characters.

The bytes could checked for unexpected characters, and appropriate advice given in the preview. This could also be reported in the gradebook as part of the newly developed feedback step, or used to attempt to turn the student input into standard ASCII.

Because of the multiple modes in which this information might be useful, a potentially good design pattern might be to have a function that takes a string (or byte sequence) as input and return an object containing the string/sequence broken up into sub-strings/sub-sequences with metadata (e.g. known non-ASCII characters with their ASCII equivalent).

This object can then be used to compose an appropriate message, or normalise the input as much as possible.

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