திருக்குறள்

Play Free Games On RosiMosi
  • Social Studies

  • Middle School

  • 7th grade

  • Community and Culture

  • Tamil

Author's Instructions

from fpdf import FPDF

class PDF(FPDF):
    def header(self):
        self.set_font("Arial", 'B', 14)
        self.cell(0, 10, "திருக்குறள் – Fill in the Blanks Worksheet (Grade 7)", ln=True, align='C')
        self.ln(5)

pdf = PDF()
pdf.add_page()
pdf.set_auto_page_break(auto=True, margin=15)

# Add Tamil-compatible font (DejaVu or similar)
pdf.add_font("DejaVu", "", "DejaVuSans.ttf", uni=True)
pdf.set_font("DejaVu", "", 12)

# Instructions
instructions = "படிப்புக்கான பயிற்சி: கீழே கொடுக்கப்பட்டுள்ள திருக்குறள்களில் காலியாக விடப்பட்ட இடங்களை நிரப்புங்கள்."
pdf.multi_cell(0, 10, instructions)
pdf.ln(5)

# Questions
questions = [
    "1. அகர முதல _______ எல்லாம் ஆதி\n   பகவன் முதற்றே _______",
    "2. அறத்தாற்றின் இல்வாழ்க்கை _______ புறத்தாற்றால்\n   பாழ்பட்டு ஒழுகும் _______",
    "3. இனிய உளவாக _______ கூறல்\n   கனிதுகொண் டதனீஉம் _______",
    "4. அன்றும் அடையளார் உண்கட்கும் உண்டாம்\n   தின்றப் பிறந்தார் _______",
    "5. ஊருணி நீர்நிறைந் தற்றே உலகவூழி\n   தூரம்நோக்கு _______"
]

for q in questions:
    pdf.multi_cell(0, 10, q)
    pdf.ln(3)

# Save PDF
pdf.output("Thirukkural_Fill_in_the_Blanks_Grade7.pdf")