Blocks: Dyslexic mod

block_dyslexic
Maintained by Picture of Éric Bugnet Éric Bugnet
This block allow to change the default font of your Moodle site by a specific font for dyslexic people : OpenDyslexic (from http://opendyslexic.org/).
43 sites
16 downloads
7 fans

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)


Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3

Contributors

Picture of Éric Bugnet
Éric Bugnet (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Plugins bot
    Wed, Apr 27, 2016, 2:33 PM
  • Picture of Mike Churchward
    Thu, Apr 28, 2016, 4:19 AM
    Hi. I am reviewing your plugin for the Plugins guardians. Can you look at the coding issues outlined above, and resubmit when you have dealt with those?
    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.
  • Picture of David Mudrák
    Thu, Apr 28, 2016, 5:01 AM

    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.

  • Picture of Éric Bugnet
    Thu, Apr 28, 2016, 5:36 PM
    Hi, I've just made the asked changes, particulary for dyslexic.js and opendyslexic font licenses.
    Éric
  • Picture of Mike Churchward
    Thu, Apr 28, 2016, 10:50 PM
    Hi. Thanks for the changes. I think you've covered the licensing issue. The code still has some spacing violations though. You may want to add Travis CI testing to your plugin (https://moodle.org/mod/forum/discuss.php?d=323384), or use the codechecker plugin on your site to find these and fix them easily.
  • Picture of David Mudrák
    Fri, Apr 29, 2016, 12:07 AM

    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:

    <license>Bitstream Vera Sans license</license>
    

    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?

  • Picture of Éric Bugnet
    Tue, May 10, 2016, 10:58 PM
    Hi, and sorry, I juste check your comments now !

    @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
  • Picture of David Mudrák
    Wed, May 11, 2016, 5:14 AM

    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?

  • Picture of Éric Bugnet
    Wed, May 11, 2016, 2:16 PM
    I'just ask the OpenDyslexic author to add the public information of licencing in the official site.
    Waiting, now...
  • Picture of Éric Bugnet
    Wed, May 11, 2016, 10:24 PM
    Update made.
    I use the « Bitstream Vera Sans license » now.
    Éric
  • Picture of David Mudrák
    Thu, Jun 9, 2016, 3:41 AM

    Notice: Undefined index: dyslexic in /blocks/dyslexic/block_dyslexic.php on line 62

  • Picture of David Mudrák
    Thu, Jun 9, 2016, 3:49 AM

    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.

  • Picture of Gael PLANTIN
    Tue, Dec 5, 2017, 5:39 PM
    Bonjour, en dépit du respect de la procédure ci-dessus sur un moodle 3.3 et quelque soit le thème utilisé, le bouton reste inopérant...
    La police ne change pas.
    Une idée ?
  • Picture of Éric Bugnet
    Wed, Dec 27, 2017, 8:34 PM
    Bonjour,
    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
  • Picture of Maher Elaissi
    Wed, Mar 20, 2019, 8:48 PM
    Bonjour Eric,
    Est ce que le plugin est compatible avec les nouvelle version 3.6 et 3.5
    merci
Please login to post comments