Page MenuHomePhabricator

Add Unicode test from tests/All.js and fix it in php
Open, LowPublic

Description

Currently, the expression in Unicode test is not recognized by the regular expressions in PHP TexVC.
A Syntax Error is thrown. If its necessary to forward such expressions through MediaWiki then the regular expressions / check functions should be updated.

Here is a gist which extracts the error case and some variations of the check without having to modify the grammar:
https://gist.github.com/Hyper-Node/04a8c5c9abf3c28a140ecd0708e9f029

  • Check if the Testcase is necessary to cover in MediaWiki scenario (are unicode utf-16 chars forwarded to TexVC PHP?)
  • If yes update regex or check functions

Event Timeline

Stegmujo renamed this task from Add Unicode test from tests/All.js to Add Unicode test from tests/All.js and fix it in php.Oct 6 2022, 11:49 AM

Change #1052168 had a related patch set uploaded (by Physikerwelt; author: Physikerwelt):

[mediawiki/extensions/Math@master] Remove unreachable grammar rules for 4 byte chars

https://gerrit.wikimedia.org/r/1052168

Change #1052168 merged by jenkins-bot:

[mediawiki/extensions/Math@master] Remove unreachable grammar rules for 4 byte chars

https://gerrit.wikimedia.org/r/1052168