LaTeX double primes are not rendered in "Drag the Words"

In content type Drag the Words, a LaTeX expression with double primes like \( f''(x) = 0 \) is not resolved when the Text field is dropped on the blank area. Also, single primes appear misplaced.

System configuration:
H5P (blue) in Moodle 3.9
h5p-math-display-1.0.6.h5p installed

Summary: 
LaTeX expressions with double primes not resolved
Content types: 
BV52's picture

Hi,

I think this may be related to this bug report.

-BV

Yes, exactly

otacke's picture

Hi all!

I just spent my Sunday fixing this. Please find the pull-request/code at https://github.com/h5p/h5p-drag-text/pull/89. I already added a note to the ticket on JIRA.

Cheers,
Oliver

BV52's picture

Thanks Oliver!

Hi Oliver,

I found this thread and understand that you fixed this problem.

Do you know if this will be included in the next version of Drag Text (current is 1.8.13 in my environment).

Also, I am new to all this (and in particular to github) : what do I have to do in order to include this patch (I guess it is possible, but not sure ...) ?

Thank you.

otacke's picture

Hi!

Yes, I fixed it, but I have no clue if and when the H5P core will include my changes.

And yes, you could patch this yourself, of course. But please understand that I don't have the time to guide you through all the steps necessary here.

Best,

Oliver 

Hi Oliver,

Of course, I do understand ! No problem.

I will try to learn the basics by myself. If you know of some useful links with learning material intended to beginers, it would be great.

Cheers,

René

otacke's picture

Hello again!

Sure. There's not much "special" stuff needed. This video (https://youtu.be/xEgBJaRUBGg) might give you a good overview of the "things" that are required.

Best,

Oliver 

Thank you very much. I have a wordpress site, with a fair amount of stuff in it and I can hardly imagine to restart everything from scratch and switch to Drupal, but ...

I may install Drupal locally for dev purpose and insert H5P content that would have been developped into my H5P plugin inside wordpress. Does it sound crazy ?

otacke's picture

No, this doesn't sound crazy at all. Maybe you're not yet really familiar with H5P: It is NOT tied to a specific platform. You can use H5P content types on WordPress, Drupal, moodle, Stud.IP, ILIAS, Typo3, with a standalone server, using Lumi and probably some other integrations without changing anything unless you deliberately use some particular functions of any of these integrations.

Best,

Oliver