ecampbell / moodle-qformat_wordtable

Moodle Question bank to Word converter
www.moodle2word.net
9 stars 10 forks source link

Equation import bug? #17

Open enyedi opened 9 months ago

enyedi commented 9 months ago

Hi,

Several of our equations are imported without their inner parentheses. Of course, they are correctable in the converted MathML, once in Moodle. I attached an example. It is "1/(φ∙(N-k+1))" in the docx file (attached), but becomes "1/(φ∙N-k+1)" in Moodle. Tested both in Moodle 3.11 and 4.3, same result.

I did not use the Word template, but exported some existing questions from Moodle, converted the doc file to docx, edited that and imported it back into Moodle. It works fine. I doubt that this is the cause.

I'm using "Microsoft® Word for Microsoft 365 MSO (Version 2401 Build 16.0.17231.20194) 64-bit".

Otherwise, this is a very efficient productivity-enhancing plugin for my colleagues. Thank you for sharing it.

equation bug demo.docx

ecampbell commented 9 months ago

This seems to happen as a result of the equation being converted to use the element, which shouldn't be used any more. The code to convert Word Equations into MathML was written by Microsoft, so I'll try to find out if they have updated it since I originally copied it.

1991chandanKumar commented 7 months ago

Sir, I am facing the same problem. All the three brackets (), {}, [] are getting disappered in moodle and d is apperaring as ⅆ with double vertical and curly line.
Please check this Video: https://youtu.be/CrKBxZmNhtA Word File: TRIAL.docx WebScreenshot: Screenshot 2024-04-26 215344

Please look into the prroblem as soon as possible.

ecampbell commented 6 months ago

Enyedi, Microsofts XSLT code for Word 365 hasn't changed, so that's why the error occurs. Chandan, you must set the "Additional equation delimiters" field to "<math" on the "Local MathJax installation" settings page in your Moodle instance (Site administration > Plugins > Filters > MathJax) (cf. https://moodle/admin/settings.php?section=filtersettingmathjaxloader)

1991chandanKumar commented 6 months ago

Thanks sir, that resolved the issue..

enyedi commented 6 months ago

Thank you. In the end, for the equations I used text, or images for the more complex ones.

On Mon, Apr 29, 2024, 16:31 Eoin Campbell @.***> wrote:

Enyedi, Microsofts XSLT code for Word 365 hasn't changed, so that's why the error occurs. Chandan, you must set the "Additional equation delimiters" field to "<math" on the "Local MathJax installation" settings page in your Moodle instance (Site administration > Plugins > Filters > MathJax) (cf. https://moodle/admin/settings.php?section=filtersettingmathjaxloader)

— Reply to this email directly, view it on GitHub https://github.com/ecampbell/moodle-qformat_wordtable/issues/17#issuecomment-2082762782, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACABVDNNCFZP73HI4UBRB43Y7ZDUNAVCNFSM6AAAAABCYIVO6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBSG43DENZYGI . You are receiving this because you authored the thread.Message ID: @.***>