简单来说
一本虚构国家的学校地图册中的三页。地图是不带文字的绘画,所有地名都写在正文里,所以翻译只换文字,地图保持不变。
成品一览
一本瓦雷尼亚学校地图册中的三幅图版,瓦雷尼亚是为这份配方虚构的国家。图版 1 标出它在大陆上的位置;图版 2 把地形图铺满左右两页,从利拉海一直画到与布鲁纳维亚的边界,用分层设色表示高度,画出三条河和一条剖面线;图版 3 画出穿过阿尔巴山脉的那条剖面。每幅图版以一条蓝色色带开头,以图例或词汇表和几道课堂练习结尾。三幅地图都是用图像模型绘制的画,上面没有一个字;边界、城镇、比例尺和指北针是和画一起绘制的矢量符号。剖面线不属于这幅图:它由模板里的两个连接线在地图的两个锚点之间画出。所有地名、高程和比例尺数字都是 Markdown 里的 ::label 行,放在每幅地图自带的锚点上;图版 1 的图例也是,它立在海上。所以西班牙文、英文和阿拉伯文三个版本共用同样的三幅图,阿拉伯文版从右往左读,在右侧装订。
这道食谱解答
- 怎样从正文里给地图写上地名,让译本只换文字、不动地图本身?
- 怎样把一幅地图铺满跨页,并在从右到左的版本里让地名照样好读?
简短回答
// A label takes the style its anchor names: seas and rivers in italic blue, ranges in spaced
// brown capitals, towns on a white halo. Arabic is neither slanted nor letter-spaced, and
// Naskh and Kufi set small, so the Arabic edition gets the same styles upright, unspaced and
// 15 % larger.
const [SLANT, TRACK, SIZE] = AR ? ['normal', 0, 1.15] : ['italic', 1, 1];
const halo = { color: col('paper'), width: pt(1.4) };
const style = (id, size, color, more) => ({ id, fontFamily: LABEL, fontSize: pt(size * SIZE),
fontWeight: AR ? 500 : 400, color: col(color), ...more });
const water = (id, size, spacing, more) => style(id, size, 'water', { fontStyle: SLANT,
textTransform: spacing ? 'uppercase' : 'none', letterSpacing: spacing * TRACK, ...more });
const caps = (id, size, color, spacing, more) => style(id, size, color, {
fontWeight: AR ? 700 : 600, textTransform: 'uppercase', letterSpacing: spacing * TRACK,
...more });
const labelStyles = [
water('ocean', 9.5, 0.3), water('sea', 7.5, 0.16), water('river', 6.8, 0, { halo }),
caps('range', 7, 'relief', 0.32, { halo }), caps('region', 6.5, 'muted', 0.24, { halo,
leader: { color: col('ink'), width: pt(0.6), endCap: 'dot', capSize: mm(1.2) } }),
style('legend', 7.6, 'ink', { kind: 'legend', background: col('paper'), padding: mm(2.4),
border: { color: col('muted'), width: pt(0.4) }, radius: mm(1) }),
caps('country', 8.5, 'muted', 0.36, { halo }), caps('nation', 12, 'ink', 0.42, { halo }),
style('capital', 7.6, 'ink', { fontWeight: 700, halo }), style('town', 7, 'ink', { halo }),
style('peak', 6.5, 'ink', { fontWeight: AR ? 700 : 600, halo }),
style('island', 6.5, 'ink', { halo }),
style('point', 8.5, 'band', { fontWeight: 700, halo }), style('tick', 6, 'muted'),
];
// An anchor is a point of the picture in fractions of its width and height, with the side of
// the label that stands there, its turn and its style. km(win) reads a point in km off a map.
const km = (win) => (id, x, y, labelStyle, more) => ({ id, x: (x - win.x0) / (win.x1 - win.x0),
y: (y - win.y0) / (win.y1 - win.y0), style: labelStyle, ...more });
用料
- 功能
- 图上的标注插图上的引线与图例跨页模板框之间的连接线模板页组内随文字变高的框色块从右向左的文字右翻书阿拉伯文字体作为资源的图和表自定义资源类型标注框编号列表段落样式页面设计中的文字、线条和框对称页边距语义调色板在Canvas上绘制页面
- 还用到
- 锚定在框上的装饰
- 类型
- Source Sans 3, Source Serif 4, Noto Naskh Arabic, Noto Kufi Arabic(SIL OFL 1.1)
- 素材
locator-1776.jpgrelief-1984.jpgsection-1760.jpg- The locator map of Varenia and its neighbours, painted as a physical map with a golden wash over Varenia. (Generated With Diffusion Models, 原创)
- The relief map of Varenia across a double page: hypsometric tints, hill shading, coastal shelf, rivers and a lake. (Generated With Diffusion Models, 原创)
- The section from A to B painted as a slice of land cut along the line, in the height bands of the map. (Generated With Diffusion Models, 原创)
做法
#1 · 一个地点就是图上的一个点
const above = { verticalAlign: 'bottom' }, below = { verticalAlign: 'top' };
const r = km(WIN.relief), l = km(WIN.locator);
const ANCHORS = {
relief: [
r('ocean', 172, 157, 'ocean'), r('lira', 20, 52, 'sea', { rotate: -84 }),
r('gulf', 318, 154, 'sea', { width: 0.07 }), r('nema', 22, 100, 'island', above),
r('albar-range', 98, 108, 'range', { rotate: -33 }),
r('gris-range', 308, 96, 'range', { rotate: -86 }),
r('plateau', 236, 78, 'region'), r('plain', 70, 98, 'region', { width: 0.08 }),
r('sela', 108, 62, 'river', { rotate: -4 }), r('duna', 121, 136, 'river', { rotate: -62 }),
r('merel', 281, 92, 'river', { rotate: -47 }), r('ormo', 254, 104, 'river', above),
// Calvera's name goes below its dot: the River Sela runs in just above it.
...TOWNS.map(([id, x, y]) => (id === 'calvera' ? r(id, x, y + 2.6, 'town', below)
: r(id, x, y - 2.6, id === 'almaren' ? 'capital' : 'town', above))),
...PEAKS.map(([id, x, y]) => r(`${id}-peak`, x, y + 2.4, 'peak', below)),
r('ostelia', 300, 9, 'country'), r('brunavia', 390, 112, 'country', { rotate: -90 }),
r('varenia', 250, 46, 'nation'),
r('a', PROFILE[0][0], PROFILE[0][1] - 2, 'point', above),
r('b', PROFILE[1][0], PROFILE[1][1] + 2, 'point', below),
r('scale-0', SCALE.x, SCALE.y + 3, 'tick', below),
r('scale-25', SCALE.x + 25, SCALE.y + 3, 'tick', below),
r('scale-50', SCALE.x + 50, SCALE.y + 3, 'tick', below),
r('north', NORTH.x, NORTH.y - 8, 'point', above),
r('a-end', ...PROFILE[0]), r('b-end', ...PROFILE[1]),
],
locator: [
l('varenia', 205, 80, 'nation'), l('ostelia', 150, -100, 'country'),
l('brunavia', 560, -120, 'country'), l('lira', 210, -250, 'sea', { rotate: 20 }),
l('ocean', -180, -40, 'ocean', { width: 0.2 }), l('almaren', 259, 127 + 22, 'capital', below),
{ id: 'key', x: 0.115, y: 0.965, style: 'legend', verticalAlign: 'bottom' },
],
// The section: fractions of the drawing, whose plot starts 14 mm in and runs 3 to 51 mm down.
section: (() => {
const [w, h] = MAP.section, x = (u) => (14 + u * (w - 14)) / w;
const y = (m) => (h - 7 - m * (h - 10) / PROFILE_TOP) / h;
return [
{ id: 'a', x: x(0), y: (h - 5.5) / h, style: 'point', ...below },
{ id: 'b', x: x(0.98), y: (h - 5.5) / h, style: 'point', ...below },
...[500, 1000, 1500, 2000].map((m) => ({ id: `m${m}`, x: 7 / w, y: y(m), style: 'tick' })),
{ id: 'sela', x: x(0.3), y: y(40), style: 'region', labelAt: { x: x(0.3), y: y(850) } },
{ id: 'crest', x: x(0.47), y: y(2260), style: 'range', ...above },
{ id: 'plain', x: x(0.82), y: y(160), style: 'region', labelAt: { x: x(0.82), y: y(850) } },
];
})(),
};
锚点是按图片宽度和高度的比例给出的点,所以框把地图放到多大,它都成立;内容放不下、地图被缩小时,地名也跟着走。km() 把在叠于画上的网格里读出的公里坐标换算成这些比例:城市的圆点和它的名字都来自 TOWNS,不会彼此错开。锚点保存的是属于地点、而不属于语言的东西:样式、河名或山名沿走向的旋转角度,以及标注的哪一侧落在这个点上。城市名居中放在圆点上方,因为 align: 'start' 对英文名是左边,对阿拉伯文名却是右边。
三幅画是依次画成的。先画地形图版:图像模型依据这个国家带山体阴影的高程图作画;位置图依据地形图版绘成,剖面图用同一份高程,所以三幅图里的海岸线和高度彼此吻合。在每幅图上画一张网格,就读出了每个锚点的公里坐标;边界线在碰到画出的海岸处截断。
#2 · 三个 Markdown 文件,一个资源
// A resource has no alt text, caption or note here: each edition's `:::figure` says its own.
const PAINTINGS = { // each plate's painting, a file in assets/, named by its width in pixels
locator: asset('locator-1776.jpg'), relief: asset('relief-1984.jpg'),
section: asset('section-1760.jpg') };
const drawings = { locator: locatorMap, relief: reliefMap, section: profile };
const resources = Object.entries(MAP).map(([id, [w, h]]) => ({ id, typeId: 'map', kind: 'svg',
createdAt: 0, updatedAt: 0, svg: { fileId: `${id}.svg`, width: w * 10, height: h * 10 },
anchors: ANCHORS[id] }));
for (const [id, draw] of Object.entries(drawings)) {
await loadSvg(`${id}.svg`, draw(MAP[id], await dataUrl(PAINTINGS[id])));
}
资源只有一幅图(一个 SVG,里面是画,画上叠着矢量符号)和一份锚点列表,供所有版本共用。每个版本在 :::figure{resource="relief" slot="map"} 里为每个锚点写一行 ::label[…]{at="…"},于是 ::label[Llanura de Calvera]{at="plain"} 和 ::label[Calvera Plain]{at="plain"} 落在同一处,需要时按锚点的 width 折成两行。替代文字也随版本变化:每个 :::figure 用一行 ::alt[…] 写自己的,题注或附注同样用 ::caption[…] 和 ::note[…]。带样式的锚点如果在某个版本里没有标注,会报 anchorUnlabelled;at 指向不存在的锚点的标注不会画出,并报 labelAnchorUnknown。
#3 · 单页图版和跨页图版
const at = (to, edge, x = 0, y = 0) => ({ anchor: { to, edge }, offset: { x: mm(x), y: mm(y) } });
const kicker = { kind: 'text', id: 'unit', content: '{attr.unit}', fontFamily: LABEL,
fontSize: pt(AR ? 10 : 8.5), fontWeight: AR ? 500 : 600, letterSpacing: pt(1.3 * TRACK),
textTransform: 'uppercase', color: col('sky'), align: AR ? 'right' : 'left',
// Decoration stands on the sheet: the kicker goes to the side the page starts reading from.
placement: at('container', AR ? 'top-right' : 'top-left', 0, -11) };
const band = { kind: 'box', id: 'band', style: { backgroundColor: col('band') },
placement: { ...at('bleed', 'top-left'), size: { width: 'fill', height: mm(BAND + 3) } } };
const sheet = {
id: 'sheet', header: false, decoration: { elements: [band, kicker] },
frames: [
{ name: 'title', takes: 'h1', placement: at('container', 'top-left', 0, -3) },
{ name: 'text', flow: true, columns: 2, columnGap: mm(7),
placement: at('container', 'top-left', 0, BAND - PAGE.top + 7) },
{ name: 'map' },
{ name: 'key', style: 'key', width: mm(66) },
{ name: 'tasks', style: 'tasks', placement: at('#key', 'right-of', 6) },
],
// A longer text pushes the map and the key down; the map is set smaller before the text is.
groups: [{ name: 'column', kind: 'stack', frames: ['text', 'map', 'key'], gap: mm(6) }],
};
const locator = { id: 'locator', extends: 'sheet', frames: [{ name: 'key', remove: true },
{ name: 'tasks', placement: at('#map', 'below', 0, 6) }],
groups: [{ name: 'column', frames: ['text', 'map'] }] };
// Line A–B: two connectors between two anchors of the map, dotted ends, a see-through paper casing.
const section = (id, color, width, more) => ({ kind: 'connector', id, routing: 'straight',
from: { to: '#map', anchor: 'a-end' }, to: { to: '#map', anchor: 'b-end' }, color: col(color),
width: mm(width), ...more });
const sectionLine = [section('ab-casing', 'paper', 0.9, { opacity: 0.55 }), section('ab-line',
'ink', 0.5, { dash: [mm(1), mm(1)], startCap: 'dot', endCap: 'dot', capSize: mm(2) })];
// The double sheet: one band and one map across both pages, the boxes under the map.
const spread = {
id: 'spread', spread: true, header: false,
decoration: { elements: [band, kicker, ...sectionLine] },
frames: [
{ name: 'title', takes: 'h1', width: mm(177), placement: at('container', 'top-left', 0, -3) },
{ name: 'map', crossGutter: true, // the one frame that runs across the spine
placement: at('container', 'top-left', 0, BAND - PAGE.top + 5) },
{ name: 'text', flow: true, columns: 2, columnGap: mm(7), width: mm(177) },
{ name: 'key', style: 'key', width: mm(72), placement: at('#map', 'below', 213, 6) },
{ name: 'tasks', style: 'tasks', placement: at('#key', 'right-of', 6) },
],
groups: [{ name: 'column', kind: 'stack', frames: ['map', 'text'], gap: mm(6) }],
};
单页图版和跨页图版有同样的五个框,所以一幅图版的 Markdown 不论占一页还是两页,结构都一样:标题、不指定槽位的正文、地图、图例和练习。位置图版用 extends 继承单页图版,并用 remove: true 去掉图例框,因为它的图例是地图上的一条标注;它的练习挂在地图下方。剖面线属于跨页图版:它的装饰里有两个 connector 元素,以直线(straight)从地图框所放图片的锚点 a-end 连到锚点 b-end,下面一条 0.9 毫米的纸色线,上面一条 0.5 毫米的墨色虚线,两端各一个圆点。纸色线设了 opacity: 0.55,与随地图画出的国界的浅色衬边相同,所以下面的分层设色透得出来,虚线落在绿色和赭色上也看得清。带 anchor 的端点随图片的裁切和缩放移动,所以缩放阶梯把地图缩小时,线仍然落在 A 和 B 上。装饰画在框的下面,但端点带 anchor 的连接线指向图片内部,所以画在框的上面,线才能在画上露出来。跨页图版用 spread: true 把两页当作一张宽 390 毫米的纸来排,只有地图框设了 crossGutter,它跨过书脊,而正文和其他框各自留在自己那一页。正文、地图和图例组成一个 stack 组:在测试台的压力测试里,所有文字加长 30 %,阿拉伯文版把位置图缩到 87.5 %,下面的框随之上移,不出任何警告。
#4 · 地图上的图例,带引线的地名
// A label takes the style its anchor names: seas and rivers in italic blue, ranges in spaced
// brown capitals, towns on a white halo. Arabic is neither slanted nor letter-spaced, and
// Naskh and Kufi set small, so the Arabic edition gets the same styles upright, unspaced and
// 15 % larger.
const [SLANT, TRACK, SIZE] = AR ? ['normal', 0, 1.15] : ['italic', 1, 1];
const halo = { color: col('paper'), width: pt(1.4) };
const style = (id, size, color, more) => ({ id, fontFamily: LABEL, fontSize: pt(size * SIZE),
fontWeight: AR ? 500 : 400, color: col(color), ...more });
const water = (id, size, spacing, more) => style(id, size, 'water', { fontStyle: SLANT,
textTransform: spacing ? 'uppercase' : 'none', letterSpacing: spacing * TRACK, ...more });
const caps = (id, size, color, spacing, more) => style(id, size, color, {
fontWeight: AR ? 700 : 600, textTransform: 'uppercase', letterSpacing: spacing * TRACK,
...more });
const labelStyles = [
water('ocean', 9.5, 0.3), water('sea', 7.5, 0.16), water('river', 6.8, 0, { halo }),
caps('range', 7, 'relief', 0.32, { halo }), caps('region', 6.5, 'muted', 0.24, { halo,
leader: { color: col('ink'), width: pt(0.6), endCap: 'dot', capSize: mm(1.2) } }),
style('legend', 7.6, 'ink', { kind: 'legend', background: col('paper'), padding: mm(2.4),
border: { color: col('muted'), width: pt(0.4) }, radius: mm(1) }),
caps('country', 8.5, 'muted', 0.36, { halo }), caps('nation', 12, 'ink', 0.42, { halo }),
style('capital', 7.6, 'ink', { fontWeight: 700, halo }), style('town', 7, 'ink', { halo }),
style('peak', 6.5, 'ink', { fontWeight: AR ? 700 : 600, halo }),
style('island', 6.5, 'ink', { halo }),
style('point', 8.5, 'band', { fontWeight: 700, halo }), style('tick', 6, 'muted'),
];
// An anchor is a point of the picture in fractions of its width and height, with the side of
// the label that stands there, its turn and its style. km(win) reads a point in km off a map.
const km = (win) => (id, x, y, labelStyle, more) => ({ id, x: (x - win.x0) / (win.x1 - win.x0),
y: (y - win.y0) / (win.y1 - win.y0), style: labelStyle, ...more });
legend 样式是一种 kind: 'legend' 的标注:白色底板、细边框、圆角。它的 Markdown 是图里的一个 :::label{at="key" style="legend"} 块,每行一项::icon[]{resource="key-mark" color="country"} Varenia 用调色板里的颜色给一个小方块资源上色,:icon[]{line="dashed" color="border"} 画出一段边界样线;每行开头的符号对齐成一列,文字排在它的右边,阿拉伯文版排在左边。方括号是空的:后面的词就是这一行的名称,没有替代文字的符号按装饰处理。在剖面上,锚点 sela 和 plain 落在地面,它们的 labelAt 把名字放到 850 米高的天空里;region 样式的 leader 从每个名字向下画一条 0.6 磅、带圆点的线,指到它的位置。
#5 · 页面、分层设色和图例共用一套调色板
const palette = {
ink: '#1f2a2e', paper: '#ffffff', muted: '#55646a',
band: '#1d5f73', // the accent: the head of each sheet, box stripes, list numbers
sky: '#d4e9f2', // the kicker on the band
tint: '#eef2ef', // the key's box
water: '#0b2a47', sea: '#8ec5e9', // the names of water, and the sea of the key
// The key's tints are the median colours of the painted relief at each height band.
low: '#aec67f', hill: '#ced285', upland: '#efce80', mount: '#d79c61', peak: '#b5734b',
relief: '#5a3519', // the names of ranges
land: '#e1dfbe', country: '#ebcb73', border: '#8a3b52', // the locator map's washes and border
};
// col(id) links a colour to its palette entry; the vector symbols read the same hex from `palette`.
const col = (id) => ({ hex: palette[id], model: 'hex', paletteId: id });
const colorPalette = Object.entries({ ...palette, 'main-color': palette.band }) // the defaults' id
.map(([id, hex]) => ({ id, name: id, value: { hex, model: 'hex' } }));
五种高度色是调色板里的条目(palette.low 到 palette.peak),取的是画出的地形在各个色层里的中位颜色;图版 2 的图例用同样的标识写 :swatch{color="low"}。画本身不读调色板:改一个十六进制值,只会改图例和矢量符号,图片不变;要改地图的颜色,得重画。水体名称用 water,在画出的海上对比度至少 6:1;白色标题在 band 上是 7.2:1。
#6 · 阿拉伯文版
代码见上面的简短回答。locale: 'ar' 让正文从右往左排,并在右侧装订,所以跨页从右手页开始,各个框随镜像后的版心排列:标题和正文在右边,图例在练习的右边。地图本身不镜像,每个阿拉伯文地名都落在它的地点所在之处。阿拉伯文的标注样式去掉斜体和字距,并放大 15 %,因为库法体排出来偏小。装饰和页码仍按纸面定位,所以眉题移到右上角,页码换到另一侧。
完整食谱
// ═══ Postext Cookbook · Nº 157 · A school atlas labelled from the Markdown ═══════
// https://postext.dev/en/cookbook/school-atlas-labelled-maps
// Code: MIT · Text: original (CC BY 4.0) · Maps: painted with diffusion models, symbols set in code
// Fonts: Source Sans 3, Source Serif 4, Noto Naskh and Kufi Arabic (OFL) · Needs postext ≥ 1.49.0
//
// Three pages of a school atlas of Varenia, an invented country: a locator map, the relief map
// across a double page and a section through the mountains. The maps are painted without a letter.
// Every name on them is a ::label in content.<lang>.md, standing at an anchor of the resource,
// so the Spanish, English and Arabic editions share the same paintings and the same anchors.
import {
buildDocument, withLoadedFonts, renderPageToCanvas, registerResourceImage,
} from 'https://esm.sh/postext';
const LANG = 'es'; // @lang: the language of the sample document ('es' | 'en' | 'ar')
const RECIPE = 'school-atlas-labelled-maps';
// ─── 1 · Design ─────────────────────────────────────────────────────────────
// #region palette: the page's colours and the key's tints, one object for both
const palette = {
ink: '#1f2a2e', paper: '#ffffff', muted: '#55646a',
band: '#1d5f73', // the accent: the head of each sheet, box stripes, list numbers
sky: '#d4e9f2', // the kicker on the band
tint: '#eef2ef', // the key's box
water: '#0b2a47', sea: '#8ec5e9', // the names of water, and the sea of the key
// The key's tints are the median colours of the painted relief at each height band.
low: '#aec67f', hill: '#ced285', upland: '#efce80', mount: '#d79c61', peak: '#b5734b',
relief: '#5a3519', // the names of ranges
land: '#e1dfbe', country: '#ebcb73', border: '#8a3b52', // the locator map's washes and border
};
// col(id) links a colour to its palette entry; the vector symbols read the same hex from `palette`.
const col = (id) => ({ hex: palette[id], model: 'hex', paletteId: id });
const colorPalette = Object.entries({ ...palette, 'main-color': palette.band }) // the defaults' id
.map(([id, hex]) => ({ id, name: id, value: { hex, model: 'hex' } }));
// #endregion
const AR = LANG === 'ar';
// Three voices per script: a text face, a display face and the face of the map labels.
const [TEXT, DISPLAY, LABEL] = AR ? ['Noto Naskh Arabic', 'Noto Kufi Arabic', 'Noto Kufi Arabic']
: ['Source Sans 3', 'Source Serif 4', 'Source Sans 3'];
const PAGE = { w: 210, h: 280, top: 22, bottom: 20, inner: 18, outer: 15 }; // mm, mirrored
const BAND = 44; // mm from the trim to the foot of the band at the head of a sheet
// #region answer: label styles in the config, label fields on the anchors of a resource
// A label takes the style its anchor names: seas and rivers in italic blue, ranges in spaced
// brown capitals, towns on a white halo. Arabic is neither slanted nor letter-spaced, and
// Naskh and Kufi set small, so the Arabic edition gets the same styles upright, unspaced and
// 15 % larger.
const [SLANT, TRACK, SIZE] = AR ? ['normal', 0, 1.15] : ['italic', 1, 1];
const halo = { color: col('paper'), width: pt(1.4) };
组合好的script.js可以直接运行:把它粘贴到任何页面的模块脚本中,或在CodePen上打开这道食谱。 GitHub上的食谱文件夹 ↗ (在新标签页中打开)
变化
#给没有锚点的地点写标注
标注也可以放在按图片百分比给出的点上,并使用自己的样式。
:::figure{resource="relief" slot="map"}
+::label[Faro de Nema]{at="7% 68%" style="town"}
::label[Océano Brumoso]{at="ocean"}#给地图编号并加题注
给地图类型设一个计数器和前缀,再给每个资源写题注:参见带编号地图的地图册图版,它把地图题注放在一条蓝色横条上。
常见问题
版面警告 · labelAnchorUnknown
标注指向不存在的锚点
原因. 某个:::figure中的::label用at=指向了该图资源中不存在的锚点。这个标注不会画在图片上;可重排EPUB仍会列出它,图片的替代文字也会提到它。
解决. 修改at=中的锚点ID(警告会列出资源已有的锚点),在资源中添加该锚点,或用at="x% y%"指定位置。 文档 →
版面警告 · anchorUnlabelled
锚点缺少标注
原因. 图资源的某个锚点设置了标注样式,但在当前语言中图里没有任何::label位于此处:地图为这个词留了位置,这一版本却缺了它。这只是提示,不是错误;没有样式的锚点(例如漫画角色的锚点)不会报告。
解决. 在该语言的Markdown中写上标注(::label[…]{at="锚点"});如果这一版本不需要这个词,就删除锚点上的样式。 文档 →
- 每幅地图的替代文字写在 Markdown 里:每个
:::figure内用一行::alt[…],每个版本各一条。没有写的图沿用资源自己的altText;script.js里没有页面上的任何文字。 - 端点只指向框的连接线,和其余装饰一起画在框的下面;只有带
anchor的端点才会把它提到图片上方。一条从附注连到地图边缘、没有锚点的线,穿过画面的那一段会被遮住。 - 锚点和矢量符号(边界、城镇、山峰、剖面线的两端)所在的公里坐标,是在画上读出来的。把地图重画一遍,海岸、河流和山脊都会移动:把网格叠到新图上重新读一遍,否则地名会落进海里。
- 在从右到左的页面上,框随版心镜像,模板的装饰却不镜像:要像
kicker那样按版本放置眉题。 - 分两栏的框可能在段落最后一行之前断开,把这一行留在第二栏顶端。请逐个版本检查分栏,遇到这种情况就把一句话挪到下一段。
致谢
- 文本
- 原创文字, CC BY 4.0
- 图片
- The locator map of Varenia and its neighbours, painted as a physical map with a golden wash over Varenia. · Generated With Diffusion Models · 原创
- The relief map of Varenia across a double page: hypsometric tints, hill shading, coastal shelf, rivers and a lake. · Generated With Diffusion Models · 原创
- The section from A to B painted as a slice of land cut along the line, in the height bands of the map. · Generated With Diffusion Models · 原创
- 字体
- Source Sans 3 (SIL OFL 1.1) · Source Serif 4 (SIL OFL 1.1) · Noto Naskh Arabic (SIL OFL 1.1) · Noto Kufi Arabic (SIL OFL 1.1)


