Moodle Plugins directory: Dyslexic mod | Moodle.org
Dyslexic mod
This block allow to change the default font of your Moodle site by a specific font for dyslexic people : OpenDyslexic (from http://opendyslexic.org/).
How to use it ?
1/ Install the block like other blocks
2/ Visit the Administration > Site administration > Appearance > Additionnal HTML (MY_MOODLE_SITE.com/admin/settings.php?section=additionalhtml)
3/ Adapt this code (change MY_MOODLE_SITE.com with your domain) and paste it into the « Within HEAD » area :
<!-- Dyslexic mod -->
<link rel="stylesheet" type="text/css" href="MY_MOODLE_SITE.com/blocks/dyslexic/opendyslexic.css">
<script src="MY_MOODLE_SITE.com/blocks/dyslexic/stylechange.js"></script>
<!-- End of Dyslexic mod -->
4/ Insert the block into your site, on the first page if you want
5/ Test & enjoy
Please accept that this block adapt your theme, so it could works badly on some themes (depending on your personnal tunning).
=============================
French version
=============================
Ce bloc permet de changer la police par défaut de votre Moodle par une police adaptée à la lecture des personnes dyslexiques : OpenDyslexic (http://opendyslexic.org/).
Comment l'utiliser ?
1/ Installez le bloc comme tous les autres blocs
2/ Visitez la page Administration > Administration du site > Apparence > HTML additionnel (MY_MOODLE_SITE.com/admin/settings.php?section=additionalhtml)
3/ Adaptez ce code (changez MY_MOODLE_SITE.com avec votre domaine) et collez le dans la zone « Dans HEAD » :
<!-- Dyslexic mod -->
<link rel="stylesheet" type="text/css" href="MY_MOODLE_SITE.com/blocks/dyslexic/opendyslexic.css">
<script src="MY_MOODLE_SITE.com/blocks/dyslexic/stylechange.js"></script>
<!-- End of Dyslexic mod -->
4/ Inserez le bloc dans votre site, sur la première page par exemple
5/ Testez & profitez
Merci de comprendre et accepter que ce block adapte votre thème, alors il pourrait ne pas fonctionner sur certains thèmes (selon les personnalisations apportées)
http://integration.moodle.org/job/Precheck%20remote%20branch/23119/artifact/work/smurf.html
Also, can you ensure the file "dyslexic.js" contains a header like "stylechange.js", that includes the license information?
And, can you create a "thirdpartylibs.xml" file (https://docs.moodle.org/dev/Plugin_files#thirdpartylibs.xml) to list the provided fonts with the appropriate licensing information?
Thanks for your submission.
Thanks Éric for sharing this interesting plugin with the community, and thanks Mike for the approval check. I agree that is required to be clear about the licensing of all the code included in the plugin package - see details described at https://docs.moodle.org/dev/Plugin_contribution_checklist#Licensing
For now I am marking this as needing more work so that the standard boilerplate can be added to your files, or they are enlisted in the thirdpartlibs.xml file.
Éric
Sorry, I am a bit confused now.
Your thirdpartylibs.xml states that the opendyslexic3 license is SIL-OFL. Where does this info come from? As per http://opendyslexic.org/legal/, Opendyslexic font is a derivate work of Bitstream Vera and effectively does not add any further restriction. Bitstream Vera license is generally considered as compatible with GPL (e.g. http://fedoraproject.org/wiki/Legal_considerations_for_fonts#Approved_font_licenses). So I would put something like this into the XML file:
Secondly. The boilerplate in the file dyslexic.js links to https://geon.github.io/programming/2016/03/03/dsxyliea which seems to be a blog of Victor Widell and I found no info there that this file was released under GPL. Am I missing something? And is this view.php file (that uses this JS) really essential for the block functionality?
@Mike : I'll check it soon.
@David : for licenses, I got exchange with the 2 dev :
- Opendyslexic is SIL-OFL-> from creator (email), but notwritten in the site. « Bitstream Versa Sans. Version 3 is SIL-OFL »
- Script from Geon : « It was not really licensed at all in the blogpost, but I give you complete rights to do what you want, not strings attached. MIT, Apache, whatever you like. ». I opened an issue ont github page (https://github.com/geon/geon.github.com/issues/7#issuecomment-215344312). I just take GPL to be compatible with Moodle.
Is ot OK for you ?
I can add Bitstream Vera Sans license like you said.
Éric
Thanks for explanation Éric. The case with Geon's script is clear as there is a public record of the implicit licensing granted to you (in his github comment).
In case of Opendyslexic font license, I think we should stick to publicly available information on their official site. Licensing granted via private emails are way less transparent and do not fit the spirit of open source projects. It would be best if they made the licensing clearer on their site. Maybe you could ask them to do that?
Waiting, now...
I use the « Bitstream Vera Sans license » now.
Éric
Notice: Undefined index: dyslexic in /blocks/dyslexic/block_dyslexic.php on line 62
Thanks Éric again for sharing this block. For a future development, I can imagine you could replace the cookie storage with a custom user preference so that it would persist across multiple computers without affecting others' sessions (typically in computer labs etc). I am happy to approve the plugin now. You are cleared to land, welcome to the plugins directory.
La police ne change pas.
Une idée ?
Je viens de tester sous Moodle 3.4, avec les thèmes clean, more et boost, et ça fonctionne.
Peux tu me faire passer l'adresse de ton site, et copier le contenu du « HEAD » ?
Éric
Est ce que le plugin est compatible avec les nouvelle version 3.6 et 3.5
merci