Generate a compact, printable HTML timetable card from a school schedule image. Produces 3 identical cut-out cards on one A4 page — sized to fit in a pencil box. Use this skill whenever the user provides a school timetable photo/image and wants to print a small card version, make a pocket schedule, create a pencil-box card, or print multiple copies of a class timetable on one sheet.
Turn a school timetable photo into a print-ready A4 HTML file containing 3 identical pocket-sized cards — one cut line each, ready to slip into a pencil box or folder.
Read the provided image carefully. Extract:
If a cell is empty or has a dash, render it as —.
Why strip teacher names? The card is meant to be a quick at-a-glance reference for the student. Teacher names add clutter without helping the child know what lesson is next.
Long subject names must be shortened to fit the compact cell. Use judgment — abbreviate only when clearly unambiguous:
| Full name | Abbreviation |
|---|---|
| 体育与健康 | 体育 |
| 道德与法治 | 道法 |
| 艺术(音乐) | 音乐 |
| 艺术(美术) | 美术 |
| 综合实践活动 | 综合实践 |
| 兴趣活动1/2 | 兴趣1 / 兴趣2 |
| Physical Education | PE |
| Religious Education | RE |
For English timetables, apply the same principle — shorten to what students actually call the subject.
Use the template in references/card-template.md as your starting point. Key rules:
@page { size: A4 portrait; margin: 8mm }).sheet, separated by .cut-line divswidth: 9cm, no fixed height (let content flow naturally)* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }page-break-inside: avoid; break-inside: avoidborder-collapse: collapse, all borders 1px solid #999 (not thinner — they disappear in print)#1a3a6b with white text, !important so print doesn't strip it#e8eef8 !important#f0ece0 !important, italic, slim (height: 12px, padding: 2px)font-size: 7pt, font-weight: 500font-size: 6pt, time sub-label 5.5pt in a <span class="time">Pick readable, distinct colors. Suggested palette for Chinese primary subjects:
.语文 { color: #c0392b; } /* red */
.数学 { color: #1a5276; } /* dark blue */
.外语 { color: #1e8449; } /* green */
.体育 { color: #6c3483; } /* purple */
.道法 { color: #784212; } /* brown */
.音乐 { color: #1a6b5a; } /* teal */
.美术 { color: #b7770d; } /* amber */
.科学 { color: #117a65; } /* dark teal */
.写字 { color: #555; } /* grey */
.劳动 { color: #7d6608; } /* olive */
.班会 { color: #922b21; } /* deep red */
.综合 { color: #1b4f72; } /* navy */
.兴趣 { color: #5b2c6f; } /* violet */
For English timetables, assign similar distinct colors to each subject.
Apply the color class to a <span> wrapping the subject text inside the <td>.
<div class="cut-line">✂︎ </div>
.cut-line {
border-top: 1px dashed #aaa;
color: #aaa;
font-size: 8pt;
text-align: left;
margin: 3mm 0;
padding-top: 1px;
}
5b-card.html, 3a-card.html, year4-card.htmlopen <filename> so the user can immediately preview and printreferences/card-template.md — Full boilerplate HTML to copy and adapt (saves time, ensures correct print CSS)