Kurz gesagt
Eine Seite kurzer japanischer Comicstrips mit je vier Panels, nebeneinander gesetzt wie in einem Manga-Magazin: Man liest den rechten Strip von oben nach unten, dann den linken.
Was Sie setzen
Eine Seite aus einer Yonkoma-Anthologie, ねこ喫茶まどろみ (Café Schlummer), für das Rezept geschrieben und in einem weichen Chibi-Stil gezeichnet: Mugi betreibt ein Katzencafé mit einer weißen, einer schwarzen und einer dreifarbigen Katze. Yonkoma, Strips aus vier Panels, sind der hochkant gestellte Gag-Strip der Zeitung: vier gleich große Panels übereinander, Einleitung, Entwicklung, Wendung, Pointe. Auf einer Magazinseite stehen zwei davon nebeneinander, und weil sich die Seite von rechts öffnet, kommt der rechte Strip zuerst. Die Seite ist A5, 148 × 210 mm, mit dem japanischen Original auf der einen Seite der Doppelseite und der Ausgabe in der Sprache dieser Seite auf der anderen (Englisch auf der japanischen Seite).
Dieses Rezept beantwortet
- Wie setze ich einen Yonkoma-Strip mit vier Panels?
Die kurze Antwort
// content.<lang>.md splits the page `* [* / * / * / *] | * [* / * / * / *]`: two equal
// columns, each cut into four equal panels. The reading direction lays the first column
// out on the right, so the strip that opens the page is the right-hand one, as in a
// yonkoma magazine, and each strip still reads top to bottom. The gutter between the
// strips is wider than the gutters between their panels, so the eye drops down a strip
// before it crosses to the next.
const comics = (lang) => ({
artDirection: 'rtl', // the right strip first, in every edition
mirrorArt: false,
gutter: { horizontal: mm(3), vertical: mm(9) }, // 3 mm between panels, 9 mm between strips
panel: { borderWidth: pt(0.9), borderColor: col('ink'), background: col('paper') },
lettering: {
fontFamily: EDITIONS[lang].faces[0], color: col('ink'),
fontSize: pt(['ja', 'zh'].includes(lang) ? 8 : 7), // a yonkoma letters smaller than a story
writingMode: lang === 'zh' ? 'vertical' : 'auto',
maxColumnChars: 6, // short columns: a yonkoma panel is wider than it is tall
},
balloonStyles: balloons(),
});
Zutaten
- Funktionen
- Panel-AufteilungLeserichtung und Manga-ReihenfolgeSenkrechter TextChinesische, japanische und koreanische SchriftenPanelrahmen und ZwischenräumePanelbilder und ZuschnitteNeues Lettering in anderen SprachenSprecher und AnkerComicseitenComic-LetteringSprechblasenformateSoundeffekteRechts gebundene BücherSemantische FarbpaletteSeiten auf einem CanvasPDF-Export
- Nutzt außerdem
- Chinesischer ZeilenumbruchPapierfarbeIm PDF eingebettete SchriftenAbbildungen und Tabellen als Ressourcen
- Schrift
- Zen Antique, Dela Gothic One, Comic Neue, Bangers, Noto Sans SC, ZCOOL KuaiLe, Playpen Sans Arabic, Lalezar (SIL OFL 1.1)
- Dateien
neko-bowls.jpgneko-door.jpgneko-guest.jpgneko-keyboard.jpgneko-laptop.jpgneko-nap.jpgneko-onebowl.jpgneko-toast.jpg- Mugi unlocking the cat café's door, three cats waiting inside (Generated With Diffusion Models, eigener Text)
- Mugi setting out food bowls for the cats (Generated With Diffusion Models, eigener Text)
- Three cats eating from one bowl (Generated With Diffusion Models, eigener Text)
- The cats staring at Mugi's toast (Generated With Diffusion Models, eigener Text)
- A tired office worker arriving at the café (Generated With Diffusion Models, eigener Text)
- The three cats asleep on one cushion (Generated With Diffusion Models, eigener Text)
- The office worker opening his laptop (Generated With Diffusion Models, eigener Text)
- The cats sitting on the keyboard, the worker in happy tears (Generated With Diffusion Models, eigener Text)
Zubereitung
#1 · Die Seite in zwei Spalten zu vier teilen
Der Code steht oben in der kurzen Antwort. Die ganze Seite ist ein einziges :::page mit split="* [* / * / * / *] | * [* / * / * / *]": zwei gleich breite Spalten, jede in vier gleich hohe Reihen geteilt. Die acht Zeilen ::panel füllen die Zellen in Lesereihenfolge, sodass die ersten vier zum ersten Strip gehören, und bei Leserichtung von rechts nach links liegt die erste Spalte rechts (Seitenaufteilung). Der Zwischenraum zwischen den Strips misst 9 mm und der zwischen den Panels 3 mm, sodass das Auge einen Strip hinuntergeht, bevor es zum nächsten wechselt.
#2 · Jeden Strip im ersten Panel betiteln
const balloons = () => [
{ id: 'speech', fill: col('paper'), stroke: col('ink'), strokeWidth: pt(0.6), roundness: 2.4 },
{ id: 'shout', fill: col('paper'), stroke: col('ink'), burstPoints: 16 },
// caption{title}: the strip's title, white on black in the first panel's corner
{ id: 'title', shape: 'rectangle', fill: col('ink'), stroke: col('ink'), color: col('paper'),
bold: true, tail: 'none', position: 'top-start', butt: true, align: 'center' },
{ id: 'sfx', color: col('ink'), haloColor: col('paper'), fontScale: 1.8 }, // chibi: small effects
];
Ein Yonkoma hat einen Titel, und eine Anthologie druckt ihn in einem Textkasten am Kopf des Strips. Hier ist der Titel eine Skriptzeile, caption{title}: 朝ごはん, und title ist ein eigener Sprechblasenstil: weiß auf schwarz, bündig an den Panelrand in der oberen Ecke am Zeilenanfang gesetzt, in diesem Buch oben rechts. Er wird in jeder Ausgabe wie jede andere Zeile gelettert, sodass auf der deutschen Seite Frühstück und Therapie in denselben Textkästen stehen.
#3 · Auch die Katzen als Sprecher markieren
const cat = (id, x, y, fx, fy, w = 0.12, h = 0.15) => ({ id, x, y,
face: { x: fx, y: fy, width: w, height: h } });
const nose = (id, x, y) => ({ id, x, y, head: { x, y: y - 0.04 } }); // cats asleep or eating
const ART = { // fractions of the picture: the same in every language
door: {
alt: t({ en: "Mugi unlocks the café's glass door; the white, black and calico cats wait.",
es: 'Mugi abre la puerta de cristal del café; dentro esperan los tres gatos.',
ca: 'La Mugi obre la porta de vidre del cafè; a dins esperen els tres gats.',
zh: '麦打开猫咖的玻璃门,三只猫在里面等着。',
ar: 'موغي تفتح باب المقهى الزجاجي، والقطط الثلاث تنتظر في الداخل.',
ja: '猫カフェのガラス戸を開けるむぎ。中で3匹の猫が待っている。',
fr: 'Mugi ouvre la porte vitrée du café ; à l’intérieur, les trois chats attendent.',
de: 'Mugi schließt die Glastür des Cafés auf; drinnen warten die drei Katzen.',
it: 'Mugi apre la porta a vetri del caffè; dentro aspettano i tre gatti.',
pt: 'Mugi abre a porta de vidro do café; lá dentro, os três gatos esperam.' }),
safeArea: { x: 0.09, y: 0.19, width: 0.81, height: 0.52 },
anchors: [{ id: 'mugi', x: 0.205, y: 0.385, head: { x: 0.17, y: 0.25 },
face: { x: 0.1, y: 0.2, width: 0.2, height: 0.23 } },
cat('shiro', 0.5, 0.66, 0.44, 0.55, 0.13), cat('kuro', 0.66, 0.62, 0.61, 0.52, 0.12, 0.14),
cat('mike', 0.83, 0.645, 0.77, 0.53, 0.12, 0.16)] },
bowls: {
alt: t({ en: 'Mugi sets out full food bowls in front of the three cats.',
es: 'Mugi pone cuencos llenos delante de los tres gatos.',
ca: 'La Mugi posa bols plens de menjar davant dels tres gats.',
zh: '麦把装满猫粮的碗摆在三只猫面前。',
ar: 'موغي تضع صحون طعام ممتلئة أمام القطط الثلاث.',
ja: '3匹の猫の前に、ご飯を盛った器を並べるむぎ。',
fr: 'Mugi pose des bols pleins de nourriture devant les trois chats.',
de: 'Mugi stellt den drei Katzen volle Futternäpfe hin.',
it: 'Mugi mette le ciotole piene di cibo davanti ai tre gatti.',
pt: 'Mugi põe tigelas cheias de comida na frente dos três gatos.' }),
safeArea: { x: 0.16, y: 0.26, width: 0.74, height: 0.65 },
anchors: [{ id: 'mugi', x: 0.27, y: 0.465, head: { x: 0.25, y: 0.3 },
face: { x: 0.17, y: 0.26, width: 0.16, height: 0.24 } },
cat('shiro', 0.37, 0.63, 0.31, 0.52, 0.13, 0.16), cat('kuro', 0.6, 0.64, 0.55, 0.52, 0.11, 0.16),
cat('mike', 0.82, 0.62, 0.76, 0.52, 0.12, 0.14)] },
onebowl: {
alt: t({ en: 'All three cats push their heads into the same bowl; the others stay full.',
es: 'Los tres gatos meten la cabeza en el mismo cuenco; los otros siguen llenos.',
ca: 'Els tres gats fiquen el cap al mateix bol; els altres continuen plens.',
zh: '三只猫把头挤进同一个碗里,另外两个碗还满着。',
ar: 'القطط الثلاث تدسّ رؤوسها في الصحن نفسه، والصحنان الآخران ممتلئان.',
ja: '3匹そろって同じ器に頭を突っこみ、ほかの器は手つかず。',
fr: 'Les trois chats plongent la tête dans le même bol ; les autres restent pleins.',
de: 'Alle drei Katzen stecken den Kopf in denselben Napf; die anderen bleiben voll.',
it: 'I tre gatti infilano la testa nella stessa ciotola; le altre restano piene.',
pt: 'Os três gatos enfiam a cabeça na mesma tigela; as outras continuam cheias.' }),
safeArea: { x: 0.05, y: 0.27, width: 0.88, height: 0.66 },
anchors: [nose('shiro', 0.33, 0.66), nose('kuro', 0.5, 0.6), nose('mike', 0.66, 0.68),
{ id: 'sfx', x: 0.5, y: 0.3 }] },
toast: {
alt: t({ en: 'Mugi bites her toast while the three cats stare at it with shining eyes.',
es: 'Mugi muerde su tostada mientras los tres gatos la miran con ojos brillantes.',
ca: 'La Mugi mossega la torrada mentre els tres gats la miren amb ulls brillants.',
zh: '麦咬着吐司,三只猫眼睛发亮地盯着。',
ar: 'موغي تقضم خبزها المحمّص والقطط الثلاث تحدّق فيه بعيون لامعة.',
ja: 'トーストをかじるむぎを、3匹がきらきらした目で見つめる。',
fr: 'Mugi croque sa tartine tandis que les trois chats la fixent, les yeux brillants.',
de: 'Mugi beißt in ihren Toast, während die drei Katzen ihn mit leuchtenden Augen '
+ 'anstarren.',
it: 'Mugi addenta il suo toast e i tre gatti lo fissano con gli occhi che brillano.',
pt: 'Mugi morde a torrada enquanto os três gatos olham para ela com olhos brilhando.' }),
safeArea: { x: 0.09, y: 0.22, width: 0.85, height: 0.56 },
avoid: [{ x: 0.6, y: 0.52, width: 0.15, height: 0.1 }],
anchors: [{ id: 'mugi', x: 0.8, y: 0.5, head: { x: 0.85, y: 0.32 },
face: { x: 0.75, y: 0.25, width: 0.2, height: 0.33 } },
cat('shiro', 0.17, 0.71, 0.1, 0.6, 0.14, 0.16), cat('kuro', 0.32, 0.73, 0.26, 0.62, 0.12, 0.14),
cat('mike', 0.46, 0.66, 0.4, 0.56, 0.12, 0.14)] },
guest: {
alt: t({ en: 'A tired office worker walks in, arms out; Mugi greets him from the counter.',
es: 'Un oficinista cansado entra con los brazos abiertos; Mugi lo saluda desde la barra.',
ca: 'Un oficinista cansat entra amb els braços oberts; la Mugi el saluda des de la barra.',
zh: '一个疲惫的上班族张着双臂走进来,麦在柜台后招呼他。',
ar: 'موظف متعب يدخل فاتحًا ذراعيه، وموغي ترحّب به من خلف المنضدة.',
ja: '両手を広げて入ってくる疲れた会社員と、カウンターから迎えるむぎ。',
fr: 'Un employé de bureau fatigué entre les bras ouverts ; Mugi l’accueille depuis le '
+ 'comptoir.',
de: 'Ein müder Büroangestellter kommt mit offenen Armen herein; Mugi begrüßt ihn '
+ 'von der Theke aus.',
it: 'Un impiegato stanco entra a braccia aperte; Mugi lo accoglie dal bancone.',
pt: 'Um funcionário de escritório cansado entra de braços abertos; Mugi o recebe do '
+ 'balcão.' }),
safeArea: { x: 0.13, y: 0.14, width: 0.74, height: 0.51 },
anchors: [{ id: 'kyaku', x: 0.31, y: 0.42, head: { x: 0.28, y: 0.3 },
face: { x: 0.19, y: 0.22, width: 0.21, height: 0.26 } },
{ id: 'mugi', x: 0.76, y: 0.39, head: { x: 0.76, y: 0.28 },
face: { x: 0.68, y: 0.2, width: 0.18, height: 0.25 } }] },
nap: {
alt: t({ en: 'The three cats asleep in one pile on a round cushion.',
es: 'Los tres gatos dormidos en un montón sobre un cojín redondo.',
ca: 'Els tres gats adormits en un munt sobre un coixí rodó.',
zh: '三只猫挤成一团睡在圆垫子上。',
ar: 'القطط الثلاث نائمة كومةً واحدة على وسادة مستديرة.',
ja: '丸いクッションの上で、ひとかたまりになって眠る3匹。',
fr: 'Les trois chats dorment en tas sur un coussin rond.',
de: 'Die drei Katzen schlafen auf einem Haufen auf einem runden Kissen.',
it: 'I tre gatti dormono ammucchiati su un cuscino rotondo.',
pt: 'Os três gatos dormem amontoados numa almofada redonda.' }),
safeArea: { x: 0.27, y: 0.21, width: 0.52, height: 0.55 },
anchors: [nose('shiro', 0.4, 0.42), nose('kuro', 0.41, 0.7), nose('mike', 0.72, 0.58),
{ id: 'sfx', x: 0.3, y: 0.25 }] },
laptop: {
alt: t({ en: 'The office worker sighs at a café table and opens his laptop.',
es: 'El oficinista suspira en una mesa del café y abre el portátil.',
ca: 'L’oficinista sospira en una taula del cafè i obre el portàtil.',
zh: '上班族在咖啡桌前叹了口气,打开笔记本电脑。',
ar: 'الموظف يتنهّد إلى طاولة في المقهى ويفتح حاسوبه.',
ja: 'カフェのテーブルでため息をつき、ノートパソコンを開く会社員。',
fr: 'L’employé soupire à une table du café et ouvre son ordinateur portable.',
de: 'Der Büroangestellte seufzt an einem Cafétisch und klappt seinen Laptop auf.',
it: 'L’impiegato sospira a un tavolino del caffè e apre il portatile.',
pt: 'O funcionário suspira numa mesa do café e abre o notebook.' }),
safeArea: { x: 0.22, y: 0.25, width: 0.56, height: 0.55 },
anchors: [{ id: 'kyaku', x: 0.45, y: 0.62, head: { x: 0.39, y: 0.4 },
face: { x: 0.3, y: 0.3, width: 0.22, height: 0.38 } }] },
keyboard: {
alt: t({ en: 'The three cats sit on the keyboard; the worker cries tears of joy.',
es: 'Los tres gatos se sientan en el teclado; el oficinista llora de alegría.',
ca: 'Els tres gats seuen damunt del teclat; l’oficinista plora d’alegria.',
zh: '三只猫坐在键盘上,上班族喜极而泣。',
ar: 'القطط الثلاث تجلس على لوحة المفاتيح، والموظف يبكي من الفرح.',
ja: 'キーボードの上に座る3匹と、うれし泣きする会社員。',
fr: 'Les trois chats s’assoient sur le clavier ; l’employé pleure de joie.',
de: 'Die drei Katzen setzen sich auf die Tastatur; der Angestellte weint vor Freude.',
it: 'I tre gatti si siedono sulla tastiera; l’impiegato piange di gioia.',
pt: 'Os três gatos sentam no teclado; o funcionário chora de alegria.' }),
safeArea: { x: 0.07, y: 0.1, width: 0.81, height: 0.78 },
anchors: [{ id: 'kyaku', x: 0.29, y: 0.42, head: { x: 0.25, y: 0.2 },
face: { x: 0.15, y: 0.1, width: 0.27, height: 0.4 } },
cat('shiro', 0.42, 0.57, 0.36, 0.48, 0.13, 0.14), cat('kuro', 0.59, 0.6, 0.53, 0.5, 0.12, 0.14),
cat('mike', 0.74, 0.62, 0.68, 0.52, 0.12, 0.14)] },
};
const panels = () => Promise.all([
comicPanel('door', asset('neko-door.jpg'), ART.door),
comicPanel('bowls', asset('neko-bowls.jpg'), ART.bowls),
comicPanel('onebowl', asset('neko-onebowl.jpg'), ART.onebowl),
comicPanel('toast', asset('neko-toast.jpg'), ART.toast),
comicPanel('guest', asset('neko-guest.jpg'), ART.guest),
comicPanel('nap', asset('neko-nap.jpg'), ART.nap),
comicPanel('laptop', asset('neko-laptop.jpg'), ART.laptop),
comicPanel('keyboard', asset('neko-keyboard.jpg'), ART.keyboard),
]);
Die Katzen sprechen, kuro: にゃ, darum markiert jedes Bild ihre Mäuler und Gesichter, wie es die von Mugi markiert. Zwei kleine Hilfsfunktionen halten die Liste kurz: cat() für eine Katze, die zum Leser schaut, und nose() für eine, deren Gesicht in einem Napf oder einem Kissen steckt. Im dritten Panel ist Mugi nicht im Bild, und ihre Zeile mugi{tail=top} bekommt einen Dorn zum oberen Rand.
#4 · Die Schriften jeder Ausgabe mit ihren Wörtern laden
const SFX = /^sfx[^::\n]*[::](.*)$/gm; // sound-effect lines: the second face sets them
async function loadEdition(lang) {
const text = TEXT[lang];
const [face, sfx] = EDITIONS[lang].faces;
const faces = { [face]: FONTS[face], [sfx]: FONTS[sfx] };
if (['ja', 'zh'].includes(lang)) { // CJK: only the files that hold these characters
const effects = [...text.matchAll(SFX)].map((m) => m[1]).join('');
await loadCjkFonts({ [face]: FONTS[face] }, text.replace(SFX, ''), { vertical: true });
await loadCjkFonts({ [sfx]: FONTS[sfx] }, effects, { vertical: true });
}
if (lang === 'ar') await loadArabicFonts(faces, text);
await loadComicFonts(faces, text); // the bold and italic the faces do not ship
}
Jede Schrift bekommt die Wörter, die sie setzt: Zen Antique die Sprechblasen, Dela Gothic One die Soundeffekte (ガツガツ, じーっ, すやぁ, ずしっ). Ein Yonkoma-Panel ist breiter als hoch, darum enden die japanischen Spalten nach sechs Zeichen (maxColumnChars: 6), und das Lettering ist einen halben Punkt kleiner als auf einer Erzählseite.
#5 · Das Original neben jede Ausgabe stellen
const FACING = LANG === 'ja' ? 'en' : LANG; // Japanese readers see the English edition
const TEXT = { ja: original, [FACING]: LANG === 'ja' ? english : markdown };
await loadFonts(FONTS, Object.values(TEXT).join('\n'));
const resources = await panels();
const build = async (lang) => { // the same pictures and page; this language's lettering
await loadEdition(lang);
return withLoadedFonts(() => buildDocument({ markdown: TEXT[lang], resources,
continuation: { pageIndexOffset: lang === 'ja' ? 1 : 2 } }, edition(lang)),
{ ...kitFonts(FONTS), text: TEXT[lang] });
};
const docs = [await build('ja'), await build(FACING)];
Jede Sprache der Website lettert die Strips in ihrer eigenen Datei, dem japanischen Original über die Doppelseite gegenüber; die japanische Seite steht der englischen Ausgabe gegenüber. Die Reihenfolge bleibt in jeder Sprache: der rechte Strip zuerst.
Das ganze Rezept
// ═══ Postext Cookbook · Nº 151 · Two yonkoma strips on a page ═════════════════════════
// https://postext.dev/en/cookbook/yonkoma
// Code: MIT · Story: written for the recipe (CC BY 4.0) · Pictures: generated with diffusion models
// Fonts: Zen Antique, Comic Neue and six more (SIL OFL 1.1) · Needs postext ≥ 1.65.0
// A page of a cat-café yonkoma: two four-panel strips side by side, the right one first.
import {
buildDocument, withLoadedFonts, renderPageToCanvas, registerResourceImage, loadVerticalAlternates,
} from 'https://esm.sh/postext';
import { renderToPdf, decompressWoff2 } from 'https://esm.sh/postext-pdf';
const LANG = 'de'; // @lang: this edition's language; the Japanese original faces it
const RECIPE = 'yonkoma';
// ─── 1 · Design ─────────────────────────────────────────────────────────────
// #region palette: black ink on a warm white, one screen-tone grey
const palette = {
ink: '#151413', // panel borders, balloon outlines, the lettering
paper: '#fdfcf9', // the page and the balloons
tone: '#e8e6e1', // the inner-voice box, a light screen tone
muted: '#6f6b64',
accent: '#a8322b', // the cover red (the Folio case in recipe.json)
};
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: 'ink (defaults)', value: { hex: palette.ink, model: 'hex' } },
];
// #endregion
// The engine's lettering and sound-effect faces per language (defaultComicFont and
// defaultComicSfxFont), written out so FONTS and the PDF know them.
const EDITIONS = {
ja: { locale: 'ja', faces: ['Zen Antique', 'Dela Gothic One'] },
en: { locale: 'en-us', faces: ['Comic Neue', 'Bangers'] },
es: { locale: 'es', faces: ['Comic Neue', 'Bangers'] },
ca: { locale: 'ca', faces: ['Comic Neue', 'Bangers'] },
zh: { locale: 'zh-Hans', faces: ['Noto Sans SC', 'ZCOOL KuaiLe'] },
ar: { locale: 'ar', faces: ['Playpen Sans Arabic', 'Lalezar'] },
pt: { locale: 'pt-BR', faces: ['Comic Neue', 'Bangers'] },
fr: { locale: 'fr', faces: ['Comic Neue', 'Bangers'] },
de: { locale: 'de', faces: ['Comic Neue', 'Bangers'] },
it: { locale: 'it', faces: ['Comic Neue', 'Bangers'] },
};
// #region answer: two columns of four, read from the right
// content.<lang>.md splits the page `* [* / * / * / *] | * [* / * / * / *]`: two equal
// columns, each cut into four equal panels. The reading direction lays the first column
// out on the right, so the strip that opens the page is the right-hand one, as in a
Das zusammengesetzte script.js läuft unverändert: Fügen Sie es in das Modulskript einer beliebigen Seite ein, oder öffnen Sie das Rezept auf CodePen. Ordner des Rezepts auf GitHub ↗ (öffnet sich in einem neuen Tab)
Häufige Fehler
Häufiger Fehler
Zeichnen Sie japanischen Text mit 'ja' aus, nie mit zh-Hans oder LANG
Die Ausgaben eines Rezepts sind en und es, ein japanisches Beispiel ist aber in beiden Japanisch: `locale: LANG` würde es als Englisch oder Spanisch auszeichnen, und eine chinesische Auszeichnung würde es nach chinesischen Regeln setzen (Kaiming-Interpunktion, kleine Kana dürfen eine Zeile beginnen, 图 statt 図, chinesische Glyphenformen im PDF). Seit postext 1.30 ist die Auszeichnung auch die Sprache, in der der Text geformt wird (gemessen, gezeichnet und eingebettet). Jede Auszeichnung außer 'ja' liefert daher andere Glyphenformen als die japanischen (unter einer chinesischen Auszeichnung die chinesischen) und andere Zeilenumbrüche. Schreiben Sie 'ja': Das wählt die Region Japan (JLReq-Zeilenumbruch und -Interpunktion, Sesam-Betonungszeichen, Furigana-Abstände, die Beschriftungen 図 und 表) und schaltet die Silbentrennung ab. Der Lint schlägt bei einem Text mit Kana unter einer zh- oder ko-Auszeichnung fehl. Japanischer Zeilenumbruch (Kinsoku) →
Häufiger Fehler
Chinesische Schnitte werden in Teilstücken geladen, über den Block cjk
Fontsource liefert eine chinesische, japanische oder koreanische Familie als etwa hundert Dateien pro Schriftstärke aus, jede für einen Zeichenbereich. loadFonts holt nur die Datei latin, am Bildschirm stammen die Han-Zeichen also aus einer Systemschrift und werden falsch gemessen, und fontsourceProvider gibt dem PDF diese latin-Datei, die sie als leere Kästchen druckt. Führen Sie den Kit-Block cjk auf, rufen Sie loadCjkFonts(FONTS, markdown) nach loadFonts auf (einmal pro Stimme, mit dem Text, den sie setzt, wenn das Buch mehrere CJK-Schriften verwendet), und geben Sie renderToPdf fontProvider: cjkPdfProvider: Beide nehmen die Dateien, die die Zeichen des Textes enthalten. Chinesische, japanische und koreanische Schriften →
- In einem kleinen Panel geht einer vertikalen Sprechblase die Höhe aus, bevor ihr die Breite ausgeht: Die Engine setzt sie in mehr, kürzere Spalten und bricht zwischen Wörtern um. Der letzte Schrei der Büroangestellten ist auf Japanisch trotzdem zu hoch für das untere Panel, darum ist er mit
breakmarkiert (kyaku{shout break}): Er bricht nach oben durch den Rahmen ins Panel darüber, statt die Katzen zu verdecken, und bleibt aus dem Seitenrand heraus. - Ein großer Soundeffekt wird wie eine Sprechblase von Gesichtern ferngehalten, und sein festgesteckter Punkt liegt im Sicherheitsbereich des Panels, sodass jeder Ausschnitt ihn behält: PLUMPS sitzt bei
70% 80%, auf den Pfoten der Katzen. Das japanische ずしっ ist vertikal gesetzt und höher; an diesem Punkt verdeckte es das Gesicht der dreifarbigen Katze, und der Build warntecomicBalloonOverflow, darum sitzt es dort bei86% 84%, neben ihr.
Nachweise
- Rezept
- Ignacio Ferro
- Text
- ねこ喫茶まどろみ (Café Doze), two yonkoma strips written for this recipe, with their English, Spanish, Catalan, Chinese and Arabic letterings · Postext Cookbook · CC BY 4.0
- Bilder
- Mugi unlocking the cat café's door, three cats waiting inside · Generated With Diffusion Models · eigener Text
- Mugi setting out food bowls for the cats · Generated With Diffusion Models · eigener Text
- Three cats eating from one bowl · Generated With Diffusion Models · eigener Text
- The cats staring at Mugi's toast · Generated With Diffusion Models · eigener Text
- A tired office worker arriving at the café · Generated With Diffusion Models · eigener Text
- The three cats asleep on one cushion · Generated With Diffusion Models · eigener Text
- The office worker opening his laptop · Generated With Diffusion Models · eigener Text
- The cats sitting on the keyboard, the worker in happy tears · Generated With Diffusion Models · eigener Text
- Schriften
- Zen Antique (SIL OFL 1.1) · Dela Gothic One (SIL OFL 1.1) · Comic Neue (SIL OFL 1.1) · Bangers (SIL OFL 1.1) · Noto Sans SC (SIL OFL 1.1) · ZCOOL KuaiLe (SIL OFL 1.1) · Playpen Sans Arabic (SIL OFL 1.1) · Lalezar (SIL OFL 1.1)
- Code
- MIT, wie Postext
Diesen Text bearbeiten ↗ (öffnet sich in einem neuen Tab)Ordner des Rezepts auf GitHub ↗ (öffnet sich in einem neuen Tab)


