Comments (22)
You're welcome!
from h5p-essay.
Hi!
The wildcard is supposed to only mark substitutes for characters (https://github.com/otacke/h5p-essay/blob/master/scripts/essay.js#L567) as stated in the editor's input field description. Essays are made of words ;-)
However, since that might be restricting for some use cases, I included the regexp option, and I cannot reproduce your issue. Have you checked your regular expression? Just for testing your example, I used
/MM71\.098\.B[0-9]*/
and it works as intended.
from h5p-essay.
Thank you for your response! I tried the regex that you used exactly, but I still had no luck. I'm not really sure what's wrong - I included screenshots.
from h5p-essay.
Could you please check the development console for error messages (F12)?
My assumption is that you'll see something there, because you've not updated to the latest version of the text-utilities library that's needed by Essay, thus leading to a crash. I may not yet have updated the dependencies in these development versions.
from h5p-essay.
This is what I see in the development console:
from h5p-essay.
So far, so good! Some messages might pop up in the lower right box as you browse the web, just keep it open. Does anything appear when you click the check button of your Essay content?
from h5p-essay.
This is what I see when I click the check button:
from h5p-essay.
Okay, no error messages.
Are you using the latest development version here from github (that's what I assumed) or did you use the latest official version that's provided by the H5P hub? The latter doesn't have the regexp feature yet.
from h5p-essay.
That explains the issue - thank you for your help! I was using the version available through the hub. Now I have an additional question - when attempting to upload and use version 1.1.2 I get these error messages:
What should I do to resolve them and use the newer version?
from h5p-essay.
If you're trying to upload libraries, you'll have to do that on the library page of H5P, not in the content type hub (which is for content). However, since you're using WordPress, it's a little more tedious to use development versions.
The easiest and future-update-friendliest way probably is to replace the files in wp-content/uploads/h5p/libraries/h5p-essay with their counterparts in the archive that you downloaded and then delete the files in wp-content/uploads/h5p/cachedassets. You might need to do the same with h5p-text-utilities, and you might need to refresh your browser's cache (shift+F5).
In any case: You should not do this on a productive system if you're not sure what you're doing. Be sure to make a backup first.
Alternatively, just wait until one of my colleagues has finished the peer-review. There should be an official update shortly that you can download normally using the H5P content hub.
from h5p-essay.
Thank you for your help! One more question - would it be possible to keep the keywords from being shown to the user in the feedback tab? I'd like to hide the regex and just show the feedback if possible.
from h5p-essay.
Also, regex flags like /MM71.098.B[0-9]*/i for case insensitivity aren't working on my end - is there special syntax that I should use?
from h5p-essay.
Yes, in the latest version you can set the visibility to "keyword" / "alternative found" / "answer given" / "none" for each keyword group.
What are you actually using Essay for? That doesn't look like an educational scenario.
from h5p-essay.
There's no support for regexp flags.
from h5p-essay.
I'm using it to check the compatibility of boot rom numbers for different years of Mac laptops with solid state drives that I engineer - it probably seems very random, but your tool was the only one that I could find that had all of the functionality that I need. Thanks again for answering my barrage of questions - I just subscribed to your Patreon! I really appreciate the help.
from h5p-essay.
Sorry to bother you again, but where is the option to change the visibility? I can't find it in 1.1.3.
from h5p-essay.
Sorry for not being clear: with latest version I meant the latest version here on github which should be out soon. I just created a special version for you that should bring an Essay version 1.1.4 to your system if you upload it via H5P's library page. Old contents will have to be updated via the library page as usual, too, if they should get the new features. Since the next official version of H5P Essay will be 1.2.0, this will not become a problem with version numbers when you want to get the official version again. Let me know if everything works.
And thanks for becoming a patron!!! $5 is huge!
Also, thanks a lot for sharing your use case! It's always very interesting to see what others use your programs for -- even if you designed them for something completely different :-D
from h5p-essay.
This works perfectly, thank you so much!!!
from h5p-essay.
Great! I'll close this issue then, but feel free to get in touch if you have more questions or suggestions -- the forum at h5p.org is probably a good place, because it's kind of the central hub for Q&As and others could join the conversation more easily, too.
from h5p-essay.
Is there a way to prevent the check button from showing after the initial submission? When the second check button is pressed, another results box shows up above the main results box and is blank.
from h5p-essay.
There is no first and second check button, just one. There's just one, and it has a checkmark in front of the label.
Did you relabel the "Show solution" button to "Check"? That's the one with the eye. It should not show up however if the sample solution text is empty (that's the second box you're seeing).
I am a little puzzled what went wrong here unless you have "Result" as the introduction text of the sample solution and at least a blank in the sample solution text field.
from h5p-essay.
After clearing out the show solution field and making sure there weren't any blank spaces, everything is working as intended. Thanks again!
from h5p-essay.
Related Issues (20)
- Explain scoring
- xAPI for Essay HOT 1
- Fix a11y
- String.prototype.startsWith() HOT 3
- Improve reporting HOT 1
- H5P Essay question HOT 3
- Forgive minor mistakes setting HOT 3
- Grades are not reported to LMS? HOT 1
- Optionally hightlight words that have been detected in text HOT 3
- Retry Button not available HOT 1
- Case sensitive switch does not work for RegExp HOT 3
- Take care of xAPI "attempted" via setActivityStarted()
- Support "Reizwortgeschichten"
- A single `*` freezes the browser HOT 3
- feedback about keywords not really easy to understand HOT 1
- Pass 'i' flag to regex if !caseSensitive HOT 3
- essay.js fails to handle null previousState HOT 8
- How to upgrade h5p essay to the latest version of this repo in my Moodle? HOT 4
- Using '\n' in the keyword doesn't behave as intended HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from h5p-essay.