Overview
The Trivial game generator creates educational trivia cards for the Operating Systems Implementation (ISO) course. It reads questions from an Excel spreadsheet and generates printable card sets for three evaluation periods.The trivia game is designed as an engaging assessment tool for reviewing course material across different operating systems topics.
Project Structure
Dependencies
Install required packages on Debian/Ubuntu systems:System Tools
- librsvg2-bin (SVG rendering)
- pdftk (PDF manipulation)
Python Packages
- openpyxl (Excel reading)
- PIL/Pillow (Image processing)
- reportlab (PDF generation)
Generator Scripts
trivalize.py (PNG Generator)
Generates trivia cards as PNG images.Features
- Reads questions from
TrivialISO.xlsx - Creates 30 cards per evaluation period (3 evaluations = 90 cards total)
- Uses Garamond font at 11pt
- Processes 6 categories per card
- Validates question/answer length constraints
Key Configuration
Validation Rules
Content Length Limits
Content Length Limits
Questions: Maximum 57 characters
- Ensures text fits on card without wrapping
- Triggers warning if exceeded
- Maintains readability on answer side
- Warnings printed for violations
Usage
Output Structure
trivialize_svg.py (SVG Generator)
Generates trivia cards as SVG files for higher quality and editability.Advantages Over PNG Version
Scalability
Vector format allows infinite scaling without quality loss
Editability
SVG files can be edited in Inkscape or other vector graphics tools
Color Detection
Automatically detects category colors from sheet names
File Size
Smaller file sizes for storage and distribution
Usage
Output Structure
Excel Workbook Format
TheTrivialISO.xlsx file organizes questions by category and evaluation period.
Sheet Naming Convention
Rojo_1- Red category, Evaluation 1Azul_1- Blue category, Evaluation 1Verde_2- Green category, Evaluation 2Amarillo_3- Yellow category, Evaluation 3
Column Structure
| Column A | Column B |
|---|---|
| Question | Answer |
Each sheet should contain at least 30 rows of questions and answers.
Card Categories
The trivia game typically covers 6 categories aligned with course topics:Installation
OS installation procedures and boot processes
Users & Permissions
User management, groups, and file permissions
File Systems
Storage, partitioning, and file system types
Networking
IP configuration, services, and protocols
Software
Package management and updates
Security
Firewalls, encryption, and security policies
Production Workflow
Step 1: Prepare Questions
EditTrivialISO.xlsx with your course content:
- Create sheets for each category/evaluation combination
- Add questions (Column A) and answers (Column B)
- Keep questions under 57 characters
- Keep answers under 29 characters
Step 2: Generate Cards
Choose your preferred generator:Step 3: Review Output
Check the terminal for any length warnings:Step 4: Create PDFs
Use the included script to compile cards into PDFs:Step 5: Print and Cut
- Print cards double-sided (front: questions, back: answers)
- Cut along card boundaries
- Optional: laminate for durability
Customization
Change Number of Cards
Edit thenumTarjetas variable:
Modify Text Positions
Adjust coordinate arrays for different card layouts:Change Font
Replace the font file and update the reference:Cleanup
Remove generated card directories:Educational Value
The trivia game format offers several pedagogical benefits:Active Recall
Students retrieve information from memory rather than passive review
Spaced Repetition
Three evaluation periods support distributed practice
Gamification
Game format increases engagement and motivation
Peer Learning
Cards can be used in group study sessions
Troubleshooting
Font Not Found
garamond.ttf is in the Trivial/ directory or use a system font:
Template Not Found
Trivial/ directory: