Moodle plugins directory: Microsoft Word File Import/Export (Book) | Moodle.org
Microsoft Word File Import/Export (Book)
This plugin supports importing a Microsoft Word docx-formatted file as chapters to a book. The file is split into chapters and subchapters based on the built-in heading styles "Heading 1" and "Heading 2" in Word. Embedded images are also imported if they are in web-compatible format (GIF, PNG, JPEG).
It imports .docx files only, not the older .doc format. Note that files in.docm format (i.e. including macros) are not supported.
Both GoogleDocs and LibreOffice 5.x can also save files in .docx format, and they will import too, but generally the quality is not as good as those files saved from the native Word editor, even if the document uses the same built-in "Heading 1" and "Heading 2" styles well. Your mileage may vary.
Note also that the PHP XSL extension must be enabled on your webserver, and the plugin requires Moodle 2.7 or higher.
After installation, the Book administration menu should have a new item added, similar to the screenshot below. You must create a new book, or turn on editing in an existing book, to see this menu.
The plugin can also be used to export books, or chapters from books, back into Word .doc format. In general heading elements in HTML are converted back into corresponding heading styles in Word, and so on with other styles. The exported file must be opened first using Microsoft Word. You can then save it to .docx format and edit it in LibreOffice or GoogleDocs. If the exported file contains images, then you must use Word 2019 or higher, or Word 365 (web version) , in order for images to be opened correctly.
1) The alt-text gets put in the longdesc attribute (which is depreciated) rather than alt. This has a few issues: users can't edit alt-text through the Atto editor (but must edit the html instead), accessibility checkers like Brickfield won't see this and some screenreaders (e.g. Chromevox) don't handle longdesc well.
2) Tables: these get imported without header row tags (even if this is set in the Word document originally).
3) tags everywhere! In Word, I use a 14pt font as my normal style (the default 11pt in Word is smaller than recommended for print accessibility) - this formatting gets applied to each paragraph in a tag, but sometimes for no discernible reason each word in a sentence gets it's own tag. This has a few potential issues:
a) with a per word it can make screenreader navigation cumbersome.
b) Sometimes my screenreader skips the image (potentially because there is so much nested formatting instructions centre, font size etc). I'm not really sure why this happens, but it is not an issue content authored directly with the Book Activity.
c) it makes the html very long and difficult to edit.
4) Bulleted/Numbered lists get removed. At least this issue is apparent to the author, but bulleted/numbered lists are important in supporting accessibility.
I posted a comment to https://github.com/ecampbell/moodle-booktool_wordimport/issues/8 about a potential continuation of the same problem in v1.4.11 (2021083100) of this plugin. The exported file is showing broken images when exporting and opening in current (2022) desktop versions in Windows and Mac. The issue isn't occurring 100% of the time, but reliably enough for majority of embedded images in Book chapters. Any tips for troubleshooting this at all?
Thanks,
Alex
I did investigate allowing students to download as Word a while ago, but it required a bit more work than I thought, so I put it aside. I might take another look.