Με λίγα λόγια
Ένα σχολικό τετράδιο δραστηριοτήτων για παιδιά οκτώ χρονών με θέμα τα σπονδυλωτά ζώα. Οι ερωτήσεις και οι απαντήσεις τους είναι γραμμένες στο κείμενο· ένα στιλ αποφασίζει πώς φαίνεται κάθε δραστηριότητα στη σελίδα.
Τι θα στοιχειοθετήσετε
Την ενότητα 5 ενός τετραδίου δραστηριοτήτων φυσικών επιστημών για την τρίτη τάξη, σε A4: Animals with backbones. Η εναρκτήρια σελίδα βάζει την ενότητα σε μια πράσινη ζώνη πάνω από τη ζωγραφιά μιας λιμνούλας· ακολουθούν έντεκα δραστηριότητες, η καθεμία με τον αριθμό της σε έναν πράσινο δίσκο και ένα εικονίδιο μολυβιού, ομιλίας ή ζευγαριού. Μια τράπεζα λέξεων σε ένα χρωματισμένο πλαίσιο με διακεκομμένο περίγραμμα, προτάσεις με T και F για να σημειωθούν, ζώα για να ενωθούν με μια γραμμή με τις ομάδες τους, λέξεις για να κυκλωθούν σε μια πρόταση και σε ένα σύντομο κείμενο, στάδια του βατράχου για να αριθμηθούν, ένα κρυπτόλεξο, ζώα για ταξινόμηση, μια ανοιχτή ερώτηση σε γραμμές και μια άλλη σε τετραγωνισμένο χαρτί. Μια ισπανική έκδοση τυπώνει την ίδια ενότητα όπως τη στοιχειοθετούν τα δικά της σχολεία, με V και F και une con flechas. Τρεις ζωγραφιές, φτιαγμένες με ένα μοντέλο διάχυσης, την εικονογραφούν.
Αυτή η συνταγή απαντά
- Πώς στοιχειοθετώ μια σελίδα δραστηριοτήτων τετραδίου εργασιών: αριθμοί σε δίσκους, τράπεζα λέξεων, σωστό ή λάθος, ένωση με γραμμή;
- Πώς βάζω εικονίδια δραστηριοτήτων (γράψε, μίλησε, δούλεψε σε ζευγάρια) δίπλα στον αριθμό μιας άσκησης;
- Πώς φτιάχνω μια σελίδα φύλλου εργασίας: γραμμές για συμπλήρωση, πλαίσια απαντήσεων, τράπεζες λέξεων, λίστες ελέγχου;
Η σύντομη απάντηση
// The Markdown says what each activity asks (:::exercise, [[answers]], - A -> B, - [x]);
// this style says how a Spanish workbook prints it: the number in a disc of the unit
// colour, the instruction in bold, blanks on a line, V/F boxes at the line's end, dots to
// join, the bank in a tinted box, squared paper for writing and the activity icons.
const icon = (id, alt) => ({ resourceId: `icon-${id}`, alt });
const actividad = {
id: 'actividad',
number: { shape: 'disc', background: col('unit'), color: col('paper'),
fontFamily: DISPLAY, fontSize: em(1.05), fontWeight: 800 },
instruction: { bold: true, color: col('ink') },
options: { marker: 'circle' },
blank: { look: 'line', color: col('ink'), weight: pt(0.75), extra: em(2) },
trueFalse: { look: 'boxes' }, // V F in Spanish, T F in English: the language's own words
match: { look: 'dots', gap: em(7), dotSize: em(0.42), color: col('unit') },
bank: { box: 'banco', order: 'alpha', separator: ' ' },
area: { kind: 'lines', spacing: mm(9), color: col('rule'), weight: pt(0.6) },
grid: { cell: mm(9.5), fontFamily: DISPLAY, fontSize: pt(13), rule: col('rule'),
color: col('ink') },
icons: {
escribe: icon('write', t({ es: 'Escribe', en: 'Write' })),
oral: icon('oral', t({ es: 'Actividad oral', en: 'Speaking' })),
pareja: icon('pair', t({ es: 'En pareja', en: 'In pairs' })),
},
marginTop: mm(7), marginBottom: mm(2), itemSpacing: em(0.8),
};
// The same activity written on squared paper (cuadrícula): `style="cuadricula"`.
const cuadricula = { id: 'cuadricula', extends: 'actividad',
area: { kind: 'grid', spacing: mm(5), weight: pt(0.4) } };
Υλικά
- Λειτουργίες
- Στιλ ασκήσεωνΚενά και τράπεζες λέξεωνΑντιστοίχιση και ταξινόμησηΑσκήσειςΠολλαπλή επιλογή και σωστό ή λάθοςΣημείωση λέξεωνΣειροθέτησηΚρυπτόλεξα και σταυρόλεξαΑνοιχτές ερωτήσεις και χώροι γραφήςΣχεδιασμένες εναρκτήριες σελίδεςΙδιότητες επικεφαλίδωνΠλαίσια σημειώσεωνΣημασιολογική χρωματική παλέταΣυμμετρικά περιθώριαΚεφαλίδες ανά ρόλο σελίδαςΣελίδες σε καμβάΕξαγωγή PDFΕικόνες και πίνακες ως πόροιΠροσαρμοσμένοι τύποι πόρων
- Χρησιμοποιεί επίσης
- Πλαίσια που χωρίζονται ή μένουν ακέραιαΛύσειςΕικόνες ακριβώς εδώΣτιλ παραγράφωνΓραμματοσειρές ενσωματωμένες στο PDF
- Γραμματοσειρές
- Atkinson Hyperlegible Next, Grandstander (SIL OFL 1.1)
- Αρχεία
charca-1088.jpgciclo-1088.jpgnina-720.jpg- Animals at a pond: a frog, a kingfisher, a trout, a turtle and a rabbit. (Generated With Diffusion Models, πρωτότυπο)
- Five stages of a frog's life, in a jumbled order. (Generated With Diffusion Models, πρωτότυπο)
- A girl with a magnifying glass watching a sparrow and a lizard on a wall. (Generated With Diffusion Models, πρωτότυπο)
Προετοιμασία
#1 · Γράψτε τις δραστηριότητες στο Markdown, δώστε τους στιλ μία φορά
// The Markdown says what each activity asks (:::exercise, [[answers]], - A -> B, - [x]);
// this style says how a Spanish workbook prints it: the number in a disc of the unit
// colour, the instruction in bold, blanks on a line, V/F boxes at the line's end, dots to
// join, the bank in a tinted box, squared paper for writing and the activity icons.
const icon = (id, alt) => ({ resourceId: `icon-${id}`, alt });
const actividad = {
id: 'actividad',
number: { shape: 'disc', background: col('unit'), color: col('paper'),
fontFamily: DISPLAY, fontSize: em(1.05), fontWeight: 800 },
instruction: { bold: true, color: col('ink') },
options: { marker: 'circle' },
blank: { look: 'line', color: col('ink'), weight: pt(0.75), extra: em(2) },
trueFalse: { look: 'boxes' }, // V F in Spanish, T F in English: the language's own words
match: { look: 'dots', gap: em(7), dotSize: em(0.42), color: col('unit') },
bank: { box: 'banco', order: 'alpha', separator: ' ' },
area: { kind: 'lines', spacing: mm(9), color: col('rule'), weight: pt(0.6) },
grid: { cell: mm(9.5), fontFamily: DISPLAY, fontSize: pt(13), rule: col('rule'),
color: col('ink') },
icons: {
escribe: icon('write', t({ es: 'Escribe', en: 'Write' })),
oral: icon('oral', t({ es: 'Actividad oral', en: 'Speaking' })),
pareja: icon('pair', t({ es: 'En pareja', en: 'In pairs' })),
},
marginTop: mm(7), marginBottom: mm(2), itemSpacing: em(0.8),
};
// The same activity written on squared paper (cuadrícula): `style="cuadricula"`.
const cuadricula = { id: 'cuadricula', extends: 'actividad',
area: { kind: 'grid', spacing: mm(5), weight: pt(0.4) } };
Κάθε δραστηριότητα είναι ένας φράκτης :::exercise. Ό,τι διαβάζει ο μαθητής και ό,τι μετρά ως σωστό είναι στο κείμενο: το [[hair]] είναι ένα κενό με απάντηση hair, το - [x] μια σωστή πρόταση, το - Dolphin -> Mammal ένα ζευγάρι, το [[pelo | (plumas)]] μια επιλογή της οποίας η σωστή λέξη είναι σε παρένθεση. Το στιλ κρατά μόνο την όψη, έτσι οι έντεκα δραστηριότητες μοιράζονται ένα actividad και ένα δεύτερο, το cuadricula, που το επεκτείνει με extends για να αλλάξει τις γραμμές με τετραγωνισμένο χαρτί. Η μηχανή τις αριθμεί, ανακατεύει τη δεξιά στήλη των ζευγαριών και τα στοιχεία της σειράς με έναν σπόρο, κάνει τα κενά τόσο φαρδιά όσο η μεγαλύτερη απάντηση ώστε κανένα να μην προδίδει τη δική του, και τυπώνει T και F στα αγγλικά και V και F στα ισπανικά χωρίς ούτε μία λέξη στη διαμόρφωση.
#2 · Εικονίδια για τις δραστηριότητες
const disc = (body) => '<svg xmlns="http://www.w3.org/2000/svg" width="240" height="240" '
+ `viewBox="0 0 24 24"><circle cx="12" cy="12" r="12" fill="${palette.unit}"/>`
+ `<g fill="none" stroke="#fff" stroke-width="1.7" stroke-linecap="round" `
+ `stroke-linejoin="round">${body}</g></svg>`;
const ICONS = {
write: disc('<path d="M7 17l1-4 7.5-7.5 3 3L11 16l-4 1z"/><path d="M14 7l3 3"/>'),
oral: disc('<path d="M6 7.5h12v7.5H11l-3.5 3v-3H6z"/><path d="M9.5 11.2h.01M12 11.2h.01M14.5'
+ ' 11.2h.01" stroke-width="2.2"/>'),
pair: disc('<circle cx="9" cy="9" r="2.3"/><circle cx="15.3" cy="9.6" r="2"/>'
+ '<path d="M4.8 17.5c.4-2.8 2.1-4.3 4.2-4.3s3.8 1.5 4.2 4.3M13.6 13.9c.6-.3 1.1-.4 1.7-.4'
+ ' 1.9 0 3.3 1.3 3.7 3.8"/>'),
};
Ένα εικονίδιο στο exerciseStyles[].icons ονομάζει μια εικόνα του βιβλίου, και το :::exercise{icon="oral pareja"} βάζει τις εικόνες μετά τον αριθμό, με τη σειρά που γράφτηκαν, διαβασμένες φωναχτά από το alt τους. Είναι επίπεδα σύμβολα σχεδιασμένα σε κώδικα πάνω σε έναν δίσκο στο χρώμα της ενότητας, έτσι μένουν καθαρά στο PDF και αλλάζουν μαζί με την παλέτα. Ένα τετράδιο τυπώνει επίσης ένα μολύβι δίπλα στις δραστηριότητες γραφής· τα εικονίδια ομιλίας και ζευγαριού σημαδεύουν την τελευταία, που δεν έχει χώρο γραφής (area="none").
#3 · Η ενότητα ανοίγει με μια ζώνη και μια ζωγραφιά
const at = (to, edge, x = 0, y = 0, size) => ({ anchor: { to, edge },
offset: { x: mm(x), y: mm(y) }, ...(size && { size }) });
const PIC = 75; // mm: the painting's height (it is 176 × 75 mm, 2.35:1)
const opener = { enabled: true, minHeight: mm(20 + PIC + 4), slot: { elements: [
{ kind: 'box', id: 'band', style: { backgroundColor: col('unit'), borderRadius: mm(4) },
placement: at('container', 'top-left', 0, 0, { width: mm(176), height: mm(18) }) },
{ kind: 'text', id: 'unit', content: '{attr.unidad}', fontFamily: DISPLAY, fontSize: pt(11),
fontWeight: 800, color: col('unit'), align: 'center', verticalAlign: 'middle',
textTransform: 'uppercase', letterSpacing: pt(1.4), lineHeight: 1.1,
box: { backgroundColor: col('paper'), borderRadius: mm(4) },
placement: at('container', 'top-left', 4, 4, { width: mm(30), height: mm(10) }) },
{ kind: 'text', id: 'title', content: '{titleText}', fontFamily: DISPLAY, fontSize: pt(27),
fontWeight: 800, color: col('paper'), align: 'left', lineHeight: 1,
placement: at('container', 'top-left', 40, 4.4, { width: mm(132) }) },
{ kind: 'image', id: 'picture', resourceId: '{attr.pic}', decorative: true,
placement: at('container', 'top-left', 0, 22, { width: mm(176), height: mm(PIC) }) },
] } };
Η επικεφαλίδα επιπέδου 1 της ενότητας σχεδιάζει τη ζώνη, την κάψουλα του αριθμού και τον τίτλο από τα χαρακτηριστικά της (unidad="Unit 5" pic="charca"), και τη ζωγραφιά κάτω από τη ζώνη στα 176 × 75 mm. Οι εικόνες μέσα στις δραστηριότητες χρησιμοποιούν έναν τύπο πόρου χωρίς λεζάντα και χωρίς αριθμό (dibujo), όπως τις τυπώνει ένα τετράδιο. Το κείμενο διαβάζεται εύκολα από μικρούς αναγνώστες: Atkinson Hyperlegible Next στα 12 pt με διάστιχο 17 pt, χωρίς συλλαβισμό, με στοίχιση αριστερά.
Η πλήρης συνταγή
// ═══ Postext Cookbook · Nº 168 · Primary workbook unit of activities ═══════════
// https://postext.dev/en/cookbook/primary-workbook-activities
// Code: MIT · Text: original (CC BY 4.0) · Pictures: generated with diffusion models
// Fonts: Atkinson Hyperlegible Next, Grandstander (SIL OFL 1.1) · Needs postext ≥ 1.63.0
import {
buildDocumentWithFonts, renderPageToCanvas, registerResourceImage,
} from 'https://esm.sh/postext';
import { renderToPdf, decompressWoff2 } from 'https://esm.sh/postext-pdf';
const LANG = 'en'; // @lang: the language of the sample document ('es' | 'en')
const RECIPE = 'primary-workbook-activities';
// ─── 1 · Design ─────────────────────────────────────────────────────────────
// #region palette: one unit colour (green for this unit), a pale tint of it, a sun yellow
const palette = {
ink: '#1f2b27', // text: a green-tinted near-black
unit: '#2b7a3d', // the unit's colour: discs, band, folio, dots to join
deep: '#1d5a2b', // the bank's words and the kicker on white
tint: '#e6f2e2', // the reminder box, the bank
sun: '#f2b330', // the reminder's stripe
rule: '#9cc3a2', // writing lines, the squared paper
muted: '#5c6b64', // running heads, colophon
paper: '#ffffff',
};
const col = (id) => ({ hex: palette[id], model: 'hex', paletteId: id });
const colorPalette = [
...Object.entries(palette).map(([id, hex]) => ({ id, name: id, value: { hex, model: 'hex' } })),
{ id: 'main-color', name: 'unit (defaults)', value: { hex: palette.unit, model: 'hex' } },
];
// #endregion
const [TEXT, DISPLAY] = ['Atkinson Hyperlegible Next', 'Grandstander'];
// #region answer: the workbook's activity style, one for every kind of exercise
// The Markdown says what each activity asks (:::exercise, [[answers]], - A -> B, - [x]);
// this style says how a Spanish workbook prints it: the number in a disc of the unit
// colour, the instruction in bold, blanks on a line, V/F boxes at the line's end, dots to
// join, the bank in a tinted box, squared paper for writing and the activity icons.
const icon = (id, alt) => ({ resourceId: `icon-${id}`, alt });
const actividad = {
id: 'actividad',
number: { shape: 'disc', background: col('unit'), color: col('paper'),
fontFamily: DISPLAY, fontSize: em(1.05), fontWeight: 800 },
instruction: { bold: true, color: col('ink') },
options: { marker: 'circle' },
blank: { look: 'line', color: col('ink'), weight: pt(0.75), extra: em(2) },
trueFalse: { look: 'boxes' }, // V F in Spanish, T F in English: the language's own words
match: { look: 'dots', gap: em(7), dotSize: em(0.42), color: col('unit') },
bank: { box: 'banco', order: 'alpha', separator: ' ' },
Το συντεθειμένο script.js εκτελείται ως έχει: επικολλήστε το στο module script οποιασδήποτε σελίδας ή ανοίξτε τη συνταγή στο CodePen. Φάκελος της συνταγής στο GitHub ↗ (ανοίγει σε νέα καρτέλα)
Παραλλαγές
#Οι απαντήσεις τυπωμένες για τον δάσκαλο
Το ίδιο Markdown φτιάχνει το αντίτυπο του δασκάλου: κάθε κενό συμπληρωμένο, τα σωστά κουτάκια σημειωμένα και οι σωστές λέξεις κυκλωμένες σε ματζέντα.
exerciseStyles: [actividad, cuadricula],
+ exercises: { edition: 'teacher' },#Αρίθμηση των δραστηριοτήτων σε τετράγωνα
Ένα τετράγωνο με στρογγυλεμένες γωνίες στο χρώμα της ενότητας διαβάζεται ως το στιλ ενός άλλου εκδότη.
- number: { shape: 'disc', background: col('unit'), color: col('paper'),
+ number: { shape: 'rounded', background: col('unit'), color: col('paper'),Συνήθη λάθη
- Οι λέξεις για κύκλωση μέσα σε συνεχές κείμενο κρατούν λίγο χώρο σε κάθε πλευρά για τον κύκλο, έτσι μια λέξη ακριβώς πριν από ένα κόμμα ή μια τελεία στέκεται λίγο μακριά του.
Ευχαριστίες
- Συνταγή
- Ignacio Ferro
- Κείμενο
- Πρωτότυπο κείμενο, CC BY 4.0
- Εικόνες
- Animals at a pond: a frog, a kingfisher, a trout, a turtle and a rabbit. · Generated With Diffusion Models · πρωτότυπο
- Five stages of a frog's life, in a jumbled order. · Generated With Diffusion Models · πρωτότυπο
- A girl with a magnifying glass watching a sparrow and a lizard on a wall. · Generated With Diffusion Models · πρωτότυπο
- Γραμματοσειρές
- Atkinson Hyperlegible Next (SIL OFL 1.1) · Grandstander (SIL OFL 1.1)
- Κώδικας
- MIT, όπως το Postext
Επεξεργασία αυτού του κειμένου ↗ (ανοίγει σε νέα καρτέλα)Φάκελος της συνταγής στο GitHub ↗ (ανοίγει σε νέα καρτέλα)


