- Python 90.6%
- Go Template 8.1%
- Shell 0.9%
- HTML 0.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .vscode | ||
| Archives | ||
| BE | ||
| BE-ZH | ||
| Blank sentences.old | ||
| BlankSentences | ||
| Chapter-assignments | ||
| CharacterExercises | ||
| COMP | ||
| DialoguesTexts | ||
| Download | ||
| generators | ||
| Grammaire | ||
| Grammar exercise files | ||
| Grammar exercises Project | ||
| Identify_characters_column_template | ||
| LCAQ | ||
| LCAQ-One | ||
| LCDDC | ||
| LCDDE | ||
| LCFB | ||
| LCFB-One | ||
| LCFC | ||
| LCFE | ||
| LCWC | ||
| LCWCchapter | ||
| LCWCFchapter | ||
| LCWNP | ||
| LCWP | ||
| Lessons-Compound-definitions-V2 | ||
| Media | ||
| OneAttempt | ||
| RC | ||
| RCAQ | ||
| RCAQ-One | ||
| RCDDE | ||
| RCDDNL | ||
| RCDDNL-One | ||
| RCFE | ||
| RCMCC | ||
| RCSC | ||
| RCSCC | ||
| RCWNP | ||
| RCWP | ||
| REDDC | ||
| REFC | ||
| REWC | ||
| REWCchapter | ||
| REWCFchapter | ||
| REWNP | ||
| REWP | ||
| utilities | ||
| 11.json | ||
| BE-ZH.h5p | ||
| BE.h5p | ||
| BlankSentences-headers.txt | ||
| blocexforcompound.py | ||
| blockdef.py | ||
| Blocs.csv | ||
| char-ZH.json | ||
| char.json | ||
| char.tpl | ||
| chars-V2.py | ||
| COMP.h5p | ||
| COMP.json | ||
| complete-grammar-spreadsheet-V2.py | ||
| completeBlankSentences-V2.py | ||
| content.json | ||
| createchapterlesson-V2.py | ||
| createCharacterChapterExercise.py | ||
| createCharacterLessonExercise.py | ||
| createGrammarExercises.py | ||
| createlesson-V2.py | ||
| dia.py | ||
| Dialog links.csv | ||
| DominoPrograms.png | ||
| end.h5p | ||
| endChar.json | ||
| Files-used.md | ||
| gogs.txt | ||
| H5PV2.py | ||
| Identify_characters_column.h5p | ||
| Identify_characters_column_template.h5p | ||
| LCAQ-One.h5p | ||
| LCAQ.h5p | ||
| LCDDC.h5p | ||
| LCDDE.h5p | ||
| LCFB-One.h5p | ||
| LCFB.h5p | ||
| LCFC.h5p | ||
| LCFE.h5p | ||
| LCWC.h5p | ||
| LCWCFchapter.h5p | ||
| LCWNP.h5p | ||
| LCWP.h5p | ||
| Lessons-V2.py | ||
| Levels.txt | ||
| makeCharacterExercises.sh | ||
| Mnemonics.csv | ||
| MultipleChoicesOneAnswer.tpl | ||
| MultipleChoicesOneAnswerOne.tpl | ||
| multiplechoicesquestion.tpl | ||
| multiplechoicesquestionOne.tpl | ||
| RC.h5p | ||
| RCAQ-One.h5p | ||
| RCAQ.h5p | ||
| RCDDE.h5p | ||
| RCDDNL-One.h5p | ||
| RCDDNL.h5p | ||
| RCFE.h5p | ||
| RCMCC.h5p | ||
| RCMCC.txt | ||
| RCMCCAnswer.tpl | ||
| RCMCCAnswerOne.tpl | ||
| RCSC.h5p | ||
| RCSCC.h5p | ||
| README.md | ||
| REDDC.h5p | ||
| REFC.h5p | ||
| REWC.h5p | ||
| REWCFchapter.h5p | ||
| REWP.h5p | ||
| speakchinese.tpl | ||
| temp.json | ||
| trie.py | ||
| truefalsequestion.tpl | ||
| truefalsequestionOne.tpl | ||
Exercise generator
You'll find here some programs to generate h5P, Hotpotatoes and moodle exercises from a .CSV file with vocabulary / sentences.
You need the python3 interpreter with some libraries. It's free software, one of the most popular programming language, so available for any plateform.
How to run the program
Download the archive from the git server (only available for Felix, Kyle and me). Decompress it, and go into the folder just created.
just type in a console:
python3 H5P.py
or just
python H5P.py
You'll encounter errors because you don't have the libraries needed.
Every system has his own method to install the libraries. One way is to use “pip” (or pip3 ... same pip, but specific to python3 if there are multiiple python installed (version 2 and 3 together)):
pip install the-name-of-the-library
Here is the list of libraries needed to run the program :
- csv
- jieba
- pypinyin wget
- json
- os
- shutil
- urllib
- re
- random
Where are the exercises?
All the exercises will be generated in a minute (depending on the power of your computer).
They are all located in the Exercises folder :
.
├── LCDDC
├── LCDDE
├── LCFC
├── LCFE
├── LCWC
├── LCWNP
├── LCWP
├── Lessons
├── RCDDE
├── RCSC
├── RCWNP
├── RCWP
├── REDDC
├── REFC
├── REWC
├── REWNP
└── REWP
I created 2 versions of the repository of the exercises:
-
in the first the exercises are classed by type of exercise, and by Level, Chapter, Lesson. The names of the folders follow the type of exercise. So REWP means “Read English / Write Pinyin”.
-
in the second, the folder is named "Lessons", and all the exercises (all kind) are stored under a lesson folder. In the Lessons folder, you'll find this :
. ── H5P ├── L1 ├── L2 ├── L3 ├── L4 ├── L5 └── L6
Now, you can see the “D” Lesson of “Level 6” “Chapter 5” content. All the different exercises for this peticuliar lesson are here.
eric@aldebaran:~/Cours-chinois/CourseDominoChinese/Programmes/Exercises/Lessons/H5P/L6/C5$ tree
.
└── LD
├── L6-C5-LD-0-LCDDC.h5p
├── L6-C5-LD-0-LCDDE.h5p
├── L6-C5-LD-0-LCWC.h5p
├── L6-C5-LD-0-LCWNP.h5p
├── L6-C5-LD-0-LCWP.h5p
├── L6-C5-LD-0-RCDDE.h5p
├── L6-C5-LD-0-RCSC.h5p
├── L6-C5-LD-0-RCWNP.h5p
├── L6-C5-LD-0-RCWP.h5p
├── L6-C5-LD-0-REDDC.h5p
├── L6-C5-LD-0-REWC.h5p
├── L6-C5-LD-0-REWNP.h5p
├── L6-C5-LD-0-REWP.h5p
├── L6-C5-LD-1-LCDDC.h5p
├── L6-C5-LD-1-LCDDE.h5p
├── L6-C5-LD-1-LCWC.h5p
├── L6-C5-LD-1-LCWNP.h5p
├── L6-C5-LD-1-LCWP.h5p
├── L6-C5-LD-1-RCDDE.h5p
├── L6-C5-LD-1-RCSC.h5p
├── L6-C5-LD-1-RCWNP.h5p
├── L6-C5-LD-1-RCWP.h5p
├── L6-C5-LD-1-REDDC.h5p
├── L6-C5-LD-1-REWC.h5p
├── L6-C5-LD-1-REWNP.h5p
├── L6-C5-LD-1-REWP.h5p
├── L6-C5-LD-2-LCDDC.h5p
├── L6-C5-LD-2-LCDDE.h5p
├── L6-C5-LD-2-LCWC.h5p
├── L6-C5-LD-2-LCWNP.h5p
├── L6-C5-LD-2-LCWP.h5p
├── L6-C5-LD-2-RCDDE.h5p
├── L6-C5-LD-2-RCSC.h5p
├── L6-C5-LD-2-RCWNP.h5p
├── L6-C5-LD-2-RCWP.h5p
├── L6-C5-LD-2-REDDC.h5p
├── L6-C5-LD-2-REWC.h5p
├── L6-C5-LD-2-REWNP.h5p
└── L6-C5-LD-2-REWP.h5p
1 directory, 39 files
So 2 ways of organisation, every one suited for some flow of work.
How to use these exercises
One by one
You can use the exercises one by one, upload it on moodle (I'll check if it's possible to do a batch upload of all the exercises) and make your own composition of exercises.
Combined in Lumi
You can also use Lumi to combine some of the exercises into one "exercises page". You just chose the exercises you want and load them on Lumi. Then you can copy/past the exercises in a column kind.
Be aware that some exercises are already colums and you cannot integrate a column ito a column.
You'll have to select the parts of the column you want to integrated in the column-exercise-page.
Dialogues exercises
I wrote a programme named dia.py to generate 4 kinds of dialogues exercises.
To run it, just type :
python3 dia.py
The program uses the file provided by Felix. You'll have to export it in .CSV format, tab separated fields.
(I use only tab separated values CSV files)
Pay attention to this : sometimes, Felix forget to modify the fields names :
- Blank_text
- English_blank_sentence
These names must be written like above, and not with "-" characters.
New exercises with sentences manually crafted by Felix
the program name is Lessons.py
python3 Lessons.py
That's it! A lot of new exercises ...
Character Decomposition exercises
These will deal with dividing any charachter into blocs/radicals and make exercises to combine them