BRAND-MANUAL.md 收敛识别方案裁定与实测判据;TOKEN-MIGRATION.md 记 P1/P3/P4 迁移面与孪生缺陷; TEST-PATCH.md 记 P7 的 1→0 实测。随包入库的是结论赖以成立的仪器与证据:check-assets、check-manual、 verify-assets-cross、check-wordmark-copies、check-docsync、check-probes(四段闸,每段带能失败的负例)、 check-baseline-shift.cjs(平移感知基线判据,四合成样本两绿两红自测通过;它取代被证伪的 「diff 包围盒不许越页眉带」)与 measured/baseline-shift-p1.json(第一批 104 张逐张分类,带 _src 出处戳)。 大体积工作件不入库:样机 HTML 与栅格截图 100+MB、字体母版 45MB 留在盘上,入库 690 个文本/矢量件。
312 lines
20 KiB
Python
312 lines
20 KiB
Python
#!/usr/bin/env python3
|
||
# -*- coding: utf-8 -*-
|
||
"""
|
||
睿 · 罗盘批 评审页(第六刀)
|
||
|
||
把「可指认的偏差=论点」这条从 Bain 抽出来的原理,落到我们自己的字理上。
|
||
同条件:书法字标 path 原样 + NOVALON 居中锚定 + 符号包络 x12..96.3 / y20.93..105
|
||
+ 朱砂 #C41E3A + viewBox 480×120(4:1)。
|
||
"""
|
||
import importlib.util
|
||
import os
|
||
|
||
HERE = os.path.dirname(os.path.abspath(__file__))
|
||
|
||
|
||
def load(name, path):
|
||
sp = importlib.util.spec_from_file_location(name, path)
|
||
m = importlib.util.module_from_spec(sp)
|
||
sp.loader.exec_module(m)
|
||
return m
|
||
|
||
|
||
ms = load("ms", os.path.join(HERE, "mark-swap.py"))
|
||
n5 = load("n5", os.path.join(HERE, "n5-refine.py"))
|
||
bf = load("bf", os.path.join(HERE, "brush-family.py"))
|
||
ri = load("ri", os.path.join(HERE, "ri.py"))
|
||
r2 = load("r2", os.path.join(HERE, "ri2.py"))
|
||
r3 = load("r3", os.path.join(HERE, "ri3.py"))
|
||
ru = load("ru", os.path.join(HERE, "rui.py"))
|
||
|
||
RED, INK, WHITE = n5.RED, n5.INK, n5.WHITE
|
||
lockup, mark_only = ri.lockup, ri.mark_only
|
||
|
||
CSS = ms.CSS + """
|
||
.be{display:grid;grid-template-columns:1fr 292px;border-bottom:1px solid var(--hair)}
|
||
.be>div:first-child{border-right:1px solid var(--hair);padding:16px 20px}
|
||
.be .big{background:#fff;border:1px solid var(--hair);padding:12px 16px;display:flex;
|
||
align-items:center;justify-content:center;min-height:104px}
|
||
.row2{display:flex;gap:16px;align-items:flex-end;flex-wrap:wrap;margin-top:10px}
|
||
.u{text-align:center}.u>span{display:block;font-size:10px;color:var(--muted);margin-top:5px}
|
||
.darkcell{background:var(--ink);padding:8px 12px;display:inline-flex;align-items:center}
|
||
h3{font-family:'PingFang SC',serif;font-size:15.5px;font-weight:700;margin:0 0 3px}
|
||
h3 .id{color:var(--red);font-size:11px;letter-spacing:.12em;margin-right:7px}
|
||
.src{font-size:11.5px;color:var(--muted);font-family:'PingFang SC',serif}
|
||
.dev{font-family:'PingFang SC',serif;font-size:13px;margin-top:7px;background:var(--mist);
|
||
border-left:3px solid var(--red);padding:7px 10px}
|
||
.fm{font-family:'PingFang SC',serif;font-size:12.8px;margin-top:7px;color:var(--muted);
|
||
border-left:2px solid var(--hair);padding-left:10px}
|
||
.rule{background:var(--mist);border-left:3px solid var(--red);padding:14px 18px;margin:18px 0;
|
||
font-family:'PingFang SC',serif;font-size:13.5px}
|
||
.rule b{color:var(--red)}
|
||
.hero{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--hair)}
|
||
.hero>div{padding:16px 12px 12px;border-left:1px solid var(--hair);border-bottom:1px solid var(--hair);
|
||
display:flex;flex-direction:column;align-items:center;gap:9px}
|
||
.hero>div:nth-child(3n+1){border-left:0}
|
||
.hero .nm{font-family:'PingFang SC',serif;font-size:12.5px;color:var(--muted)}
|
||
.hero .nm .id{color:var(--red);font-size:11px;letter-spacing:.1em;margin-right:5px}
|
||
table{width:100%;border-collapse:collapse;font-size:13px}
|
||
th,td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--hair);vertical-align:top}
|
||
td.n{font-variant-numeric:tabular-nums}
|
||
ol.srcs{font-size:12.5px;color:var(--muted);font-family:'PingFang SC',serif}
|
||
.grids{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:14px 0}
|
||
.grids pre{font:11px/1.18 ui-monospace,SFMono-Regular,Menlo,monospace;margin:0;
|
||
background:#fff;border:1px solid var(--hair);padding:8px 9px;overflow:auto}
|
||
.grids i{display:block;font-style:normal;font-size:11.5px;color:var(--muted);
|
||
margin-top:4px;text-align:center;font-family:'PingFang SC',serif}
|
||
"""
|
||
|
||
|
||
def card(cid, nm, dev, body, note, src):
|
||
o = ['<div class="be"><div>',
|
||
'<div class="big">%s</div>' % lockup(body, 92),
|
||
'<div class="row2">']
|
||
for px in (40, 32):
|
||
o.append('<div class="u">%s<span>%dpx</span></div>' % (lockup(body, px), px))
|
||
o.append('<div class="u"><span class="darkcell">%s</span><span>深底 40px</span></div>'
|
||
% lockup(body, 40, WHITE))
|
||
for px in (48, 32, 24, 16):
|
||
o.append('<div class="u">%s<span>%dpx</span></div>' % (mark_only(body, px), px))
|
||
o.append('<div class="u"><span class="darkcell">%s</span><span>深底 32px 反白</span></div>'
|
||
% mark_only(body.replace('fill="%s"' % RED, 'fill="%s"' % WHITE), 32))
|
||
o.append('</div></div>')
|
||
o.append('<div class="meta"><h3><span class="id">%s</span>%s</h3>'
|
||
'<div class="src">%s</div>' % (cid, nm, src))
|
||
o.append('<div class="dev"><b>可指认的偏差</b>:%s</div>' % dev)
|
||
o.append('<div class="fm">%s</div>' % note)
|
||
o.append('<div class="small" style="margin-top:7px">红占包络 <b data-m="%s@red">…</b> · '
|
||
'16px 横/纵行程 <b data-m="%s@h16">…</b>/<b data-m="%s@v16">…</b></div>'
|
||
% (cid, cid, cid))
|
||
o.append('</div></div>')
|
||
o.append('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 108 120" '
|
||
'style="position:absolute;width:0;height:0" data-src="%s">%s</svg>' % (cid, body))
|
||
return "".join(o)
|
||
|
||
|
||
JS = r"""
|
||
<script>
|
||
const RED=[196,30,58],WHITE=[255,255,255],INK=[10,14,20],ENV='12 20.93 84.3 84.07';
|
||
const D=(a,b)=>Math.hypot(a[0]-b[0],a[1]-b[1],a[2]-b[2]);
|
||
function raster(el,size,env){
|
||
const c=el.cloneNode(true);c.setAttribute('width',size);c.setAttribute('height',size);
|
||
c.removeAttribute('style'); if(env)c.setAttribute('viewBox',env);
|
||
const url='data:image/svg+xml;charset=utf-8,'+encodeURIComponent(new XMLSerializer().serializeToString(c));
|
||
return new Promise(res=>{const im=new Image();im.onload=()=>{
|
||
const cv=document.createElement('canvas');cv.width=cv.height=size;
|
||
const x=cv.getContext('2d');x.fillStyle='#fff';x.fillRect(0,0,size,size);
|
||
x.drawImage(im,0,0,size,size);res(x.getImageData(0,0,size,size));};
|
||
im.onerror=()=>res(null);im.src=url;});
|
||
}
|
||
function runs(im,px,dir){const d=im.data;let best=0;
|
||
for(let k=0;k<px;k++){let n=0,on=false;
|
||
for(let j=0;j<px;j++){const i=dir==='h'?(k*px+j)*4:(j*px+k)*4;
|
||
const a=d[i+3],p=[d[i],d[i+1],d[i+2]];
|
||
const r=a>=40&&D(p,WHITE)>=110&&D(p,RED)<D(p,INK);
|
||
if(r&&!on){n++;on=true;}else if(!r)on=false;}
|
||
if(n>best)best=n;}return best;}
|
||
async function redShare(el){const im=await raster(el,512,ENV);if(!im)return null;
|
||
const d=im.data;let n=0;for(let i=0;i<d.length;i+=4){const a=d[i+3],p=[d[i],d[i+1],d[i+2]];
|
||
if(a>=40&&D(p,WHITE)>=110&&D(p,RED)<D(p,INK))n++;}return n/(d.length/4);}
|
||
(async()=>{
|
||
const out={};
|
||
for(const el of document.querySelectorAll('svg[data-src]')){
|
||
const k=el.getAttribute('data-src'); const i16=await raster(el,16,null);
|
||
out[k]={red:await redShare(el), h16:i16?runs(i16,16,'h'):null,
|
||
v16:i16?runs(i16,16,'v'):null};}
|
||
document.querySelectorAll('[data-m]').forEach(td=>{
|
||
const [k,f]=td.getAttribute('data-m').split('@'); const o=out[k]; if(!o) return;
|
||
if(f==='red'&&o.red!=null) td.textContent=(o.red*100).toFixed(1)+'%';
|
||
else if(o[f]!=null) td.textContent=o[f];
|
||
});
|
||
// 16×16 逐像素栅格。判红口径与行程计数完全一致(a>=40 且 ΔE(白)>=110 且 距红<距墨):
|
||
// # 判红 / . 接近纯白(ΔE(白)<60) / + 抗锯齿中间调
|
||
// 注意 W/R/K 都是「到该色的距离」,所以白像素的 W≈0,不是 W 大。
|
||
const byId={}; document.querySelectorAll('svg[data-src]').forEach(e=>byId[e.dataset.src]=e);
|
||
for(const pre of document.querySelectorAll('[data-grid]')){
|
||
const k=pre.getAttribute('data-grid'), el=byId[k]; if(!el) continue;
|
||
const im=await raster(el,16,null); if(!im){pre.textContent='raster failed';continue;}
|
||
const d=im.data; let g=[];
|
||
for(let y=0;y<16;y++){let line='';
|
||
for(let x=0;x<16;x++){const i=(y*16+x)*4,a=d[i+3],p=[d[i],d[i+1],d[i+2]];
|
||
const W=D(p,WHITE), R=D(p,RED), K=D(p,INK);
|
||
line += (a>=40&&W>=110&&R<K) ? '#' : (W<60 ? '.' : '+');}
|
||
g.push(line);}
|
||
pre.textContent=g.join('\n');
|
||
}
|
||
window.__cp=out;
|
||
})();
|
||
</script>
|
||
"""
|
||
|
||
|
||
def build():
|
||
P = []
|
||
w = P.append
|
||
w('<!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8">'
|
||
'<meta name="viewport" content="width=device-width,initial-scale=1">'
|
||
'<title>睿 · 罗盘批(第六刀)· 2026-10-13</title>')
|
||
w('<style>' + CSS.replace("__GEIST__", ms.GEIST_B64) + '</style></head><body><div class="wrap">')
|
||
w('<header class="top"><div class="eyebrow">Compass cut · 2026-10-13 · 评审稿(repo 零改动)</div>')
|
||
w('<h1>睿 · <em>罗盘批</em></h1>')
|
||
w('<p class="lede">你说得对:前五刀是从甲骨文里借现成的字用毛笔抄一遍,那是排字不是设计。'
|
||
'这一刀改两件事——材料换成<em>我们自己的字</em>「睿」,并且每个版本必须做一次'
|
||
'可指认的转化动作。</p>')
|
||
w('<div class="rule"><b>从 Bain 借的是原理,不是形状。</b>'
|
||
'核实到的事实:Bain 的标志是一个红色圆环,<b>环的轮廓在针尖所指处开口</b>,环内一枚'
|
||
'实心锐角三角指向右上,内部代号 <b>North Star</b>;它的论点是针指的不是磁北而是略偏的'
|
||
'真北——磁北极会漂移,只跟罗盘的水手迟早迷航,所以不能依靠市场的风向标。'
|
||
'⇒ 可迁移的原理是:<b>标志里要有一个可指认的偏差,而那个偏差本身就是论点。</b>'
|
||
'我前五刀的所有偏差(一相圆的缺口、竹简的一道空、日的搭接)全是<b>形式偏差</b>:'
|
||
'好看,不承载任何论点。这才是你说「不够好」的真正原因。</div>')
|
||
w('<div class="rule"><b>论点用我们自己字里的,不搬 Bain 的。</b>'
|
||
'《说文》:叡,深明也。通也。从从目,从谷省。段玉裁:「叡從目,故曰明」'
|
||
'「谷以皃其深也」「從㕡者,皃其能容也。<b>能容而後能明</b>」。'
|
||
'《六书正讹》:「𦥑取其<b>穿</b>,<b>目</b>取其明,<b>谷</b>取其响应不穷」。'
|
||
'⇒ 睿自带三件构件:穿、目、谷。而中国罗盘的结构恰好把它们凑齐:盘面中央下沉的'
|
||
'<b>天池</b>(谷)、池中<b>浮针</b>(目)、针的<b>轴心贯穿</b>(穿)。'
|
||
'另有一层 Bain 拿不走:<b>罗盘指南,不指北</b>——而中文里「指南」同时是一部教你怎么做'
|
||
'的书,正是咨询交付物的字面名。</div>')
|
||
|
||
w('<div class="hero">')
|
||
for it in ru.COMPASS + ru.PLATE:
|
||
w('<div>%s<span class="nm"><span class="id">%s</span>%s</span></div>'
|
||
% (lockup(it["body"](), 88), it["id"], it["nm"]))
|
||
w('<div>%s<span class="nm"><span class="id">M2</span>日 · 方 n=3.2(第五刀,我的上一票)</span></div>'
|
||
% lockup(r3.m2(), 88))
|
||
w('</div>')
|
||
|
||
w('<section class="band"><h2 class="band">C 批 · 圆环罗盘五版(每版一个偏差)</h2></section>')
|
||
for it in ru.COMPASS:
|
||
w(card(it["id"], it["nm"], it["dev"], it["body"](), it["note"], "睿的字理 × 罗盘的结构"))
|
||
|
||
w('<section class="band"><h2 class="band">D 批 · 方盘罗盘(C 批的结构性修正)</h2>')
|
||
w('<p>C 批五版实测全部读成<b>时钟/靶心/禁止号</b>。原因不在针的画法,在结构:'
|
||
'<b>圆环 + 从圆心放射出去的细线=时钟</b>,这条读法无法靠调参数躲开。'
|
||
'Bain 之所以不读成钟,是因为它的针不是线,是一枚<b>实心楔形</b>。'
|
||
'而中国罗盘真正独有、Bain 没有的结构是<b>方盘托圆池</b>(天圆地方)——'
|
||
'方盘又恰好满足第五刀查出的剪影律。D 批同时改这两处。</p></section>')
|
||
for it in ru.PLATE:
|
||
w(card(it["id"], it["nm"], it["dev"], it["body"](), it["note"], "中国罗盘 · 方盘天池磁针"))
|
||
|
||
w('<section class="band"><h2 class="band">R 批 · 睿字六转化(不抄整字,只做一次动作)</h2></section>')
|
||
for it in ru.RUI:
|
||
w(card(it["id"], it["nm"], it["dev"], it["body"](), it["note"], "说文解字 / 段注 / 六书正讹"))
|
||
|
||
w('<section class="band"><h2 class="band">16px 像素栅格(逐格读图,不是放大截图)</h2>')
|
||
w('<p>把 SVG 真栅格化到 16×16 后逐像素打印:<b>#</b> 实心朱砂、<b>+</b> 抗锯齿中间调、'
|
||
'<b>.</b> 白。这是唯一能证明「16px 还剩什么」的形式——放大截图是 Chrome 在 160px 重画,'
|
||
'不是把 16px 放大,我上一轮犯过那个错。</p>')
|
||
w('<div class="grids">')
|
||
for gid, gcap in (("D1", "D1 方盘·针"), ("D2", "D2 方盘·指南"),
|
||
("D5", "D5 方盘·无针"), ("R5", "R5 睿·白文"),
|
||
("E1", "E1 一相圆(分类器正对照:应大量为白)")):
|
||
w('<div><pre data-grid="%s">…</pre><i>%s</i></div>' % (gid, gcap))
|
||
w('</div>')
|
||
w('<p class="small"><b>读出来的结论(与我的视觉偏好相反,也与本页初稿的判断相反,所以更要写下来)</b>:'
|
||
'D1 与 D2 的天池在 16px 只剩 4~6 个白像素,且被针切成两三块碎片;'
|
||
'针本体约 3 像素,位置在栅格里可读为「红块里有几点红」。<b>天池与磁针在 16px 全部失效。</b>'
|
||
'R5 白文印更糟:刻出的目字六道笔到 16px 全部落在中间调(栅格里是 + 不是 .),'
|
||
'白像素一个不剩——它在标签页上就是一块实心红方。<b>四版里只有 D5 保住了可命名的结构</b>:'
|
||
'方盘中央一块 4×5 的连续白区,读作「方盘挖圆池」。'
|
||
'⇒ 方盘罗盘这一系若要用,D5 不是备选而是必需的第二枚资产(favicon/App 图标专用);'
|
||
'R5 不能单独承担小尺寸。这与 N5 竹简 16px 并成一块是同一类问题,'
|
||
'只是这里更严重——N5 至少还是一块有节奏的红。</p>')
|
||
w('<p class="small">分类器自检:本轮第一次跑出的栅格四版白像素全为 0,'
|
||
'那是我把「到白色的距离」判反了(白像素的 ΔE(白)≈0,我却要求 ≥170 才判白)。'
|
||
'修正后重跑,结论方向未变,但 R5 的判读由「保留三道白槽」改为「全部失效」。'
|
||
'E1 作为正对照未生效——本页没有为 E1 挂 data-src,该对照留到下一轮补。</p></section>')
|
||
|
||
w('<section class="band"><h2 class="band">量测(页内实测)</h2>')
|
||
w('<table><thead><tr><th>候选</th><th>偏差</th><th>红占包络</th><th>16px 横/纵</th>'
|
||
'<th>判读</th></tr></thead><tbody>')
|
||
allitems = ru.COMPASS + ru.PLATE + ru.RUI
|
||
for it in allitems:
|
||
w('<tr><td><b>%s %s</b></td><td class="small">%s</td>'
|
||
'<td class="n" data-m="%s@red">…</td>'
|
||
'<td class="n"><span data-m="%s@h16">…</span>/<span data-m="%s@v16">…</span></td>'
|
||
'<td class="small">待你眼睛判</td></tr>'
|
||
% (it["id"], it["nm"], it["dev"], it["id"], it["id"], it["id"]))
|
||
w('</tbody></table>')
|
||
w('<p class="small">口径同前:红占包络=红像素 ÷ 符号包络面积(84.3 × 84.07,512 栅格);'
|
||
'行程=真栅格化到 16×16 后沿该行(列)红色连续段取最大值,ΔE(白)≥110。'
|
||
'参照:书法块密度 18.2%,E1 33.8%(2/2),N5 竹简 65%(1/2),日·方 M2 37.3%(3/3)。'
|
||
'<b>注意</b>:R1/R5 是实心印,红占包络会显著高于其余各版——这不是缺陷,'
|
||
'但深底小尺寸时它会比字标抢眼,需要时把印面内缩 6% 即可。</p></section>')
|
||
|
||
w('<section class="band"><h2 class="band">我的票</h2>')
|
||
w('<p><b>D1 方盘·针 做主标志,D5 方盘·无针 做 ≤20px 专用版。</b>'
|
||
'D1 是六刀以来第一个同时满足四条的版本:它是<em>设计出来的</em>而不是抄下来的字;'
|
||
'它的偏差承载论点(针斜指,不在正北也不在正东);它的剪影是矩形,与书法块同类;'
|
||
'它的量感是实心朱砂。而且它是中国那一款罗盘——方盘、圆池、浮针,天圆地方——'
|
||
'不是 Bain 的圆盘加箭头。</p>')
|
||
w('<p>论点我建议用段玉裁那句,而不是搬 Bain 的磁北:<b>「能容而後能明」</b>。'
|
||
'天池必须先凹下去、空出来,针才浮得起来——这就是咨询做的事。'
|
||
'若要更硬的一层,用 D2:罗盘<em>指南</em>不指北,而中文里「指南」同时是一部教你怎么做的书,'
|
||
'正是交付物的字面名。代价是朝下在西方语义里读成下行。</p>')
|
||
w('<p class="small"><b>必须说清的代价</b>:D1 的小尺寸表现是本轮四版里最差的之一,'
|
||
'天池与针在 16px 全部失效,所以 D5 是必需的第二枚资产而不是可选。'
|
||
'另外 D1 红占包络 66.5%,与 N5 竹简的 65% 同档,比书法块(18.2%)重得多——'
|
||
'深底小尺寸时它会比字标抢眼,需要时把盘面内缩 6% 即可。</p></section>')
|
||
|
||
w('<section class="band"><h2 class="band">来源(已核)</h2><ol class="srcs">')
|
||
for s in [
|
||
"1000logos — Bain & Company:「a red ring with a sharp solid red triangle inside. "
|
||
"The arrow points up-right, and at its peak the contour of the ring is opened.」",
|
||
"logos-world — Bain & Company:「a stylized compass image internally known as the "
|
||
"<i>North Star</i>」",
|
||
"网易/百家号/知乎(三处独立转述同一说法):针不指磁北而指略偏的真北;磁北极漂移,"
|
||
"只跟罗盘的水手迟早迷航 ⇒ 不能依靠市场的风向标,要有自己的方向与认知",
|
||
"百度百科词条转述 Bain 官方表述:「真正的北方是罗盘指引的航行方向,是一个不依赖于"
|
||
"参照物和背景情况的不变的方向」",
|
||
"《说文解字》四下·叡:「深明也。通也。从、从目,从谷省。」(汉典/说文解字注本站)",
|
||
"段玉裁《说文解字注》:「叡從目,故曰明」「谷以皃其深也」「叡實從㕡省。從㕡者,"
|
||
"皃其能容也。能容而後能明」",
|
||
"《康熙字典》引《六书正讹》:「从从目,从谷省。取其穿,目取其明,谷取其响应不穷」",
|
||
"《书·洪范》「思曰睿,睿作圣」;蔡沈《书集传》「睿者,通乎微也」",
|
||
]:
|
||
w('<li>%s</li>' % s)
|
||
w('</ol><p class="small">Bain 的图样与 North Star 代号取自第三方标志档案站,'
|
||
'未经 bain.com 一手确认(该站有反爬验证,本轮未能直连)。原理层面可迁移,'
|
||
'具体形状与磁北/真北的说法属 Bain 资产,本版未采用。</p></section>')
|
||
|
||
w(JS)
|
||
w('<footer>生成器 <code>compass.py</code> + <code>rui.py</code> · 前五刀见 '
|
||
'<code>glyphs.html</code>/<code>glyphs2.html</code>/<code>ri.html</code>/'
|
||
'<code>ri2.html</code>/<code>ri3.html</code> · 六只并排 <code>shortlist2.html</code>'
|
||
'</footer></div></body></html>')
|
||
return "".join(P)
|
||
|
||
|
||
def main():
|
||
p = os.path.join(HERE, "compass.html")
|
||
open(p, "w", encoding="utf-8").write(build())
|
||
print("compass.html %s B" % f"{os.path.getsize(p):,}")
|
||
d = os.path.join(HERE, "assets-compass")
|
||
os.makedirs(d, exist_ok=True)
|
||
for it in ru.COMPASS + ru.PLATE + ru.RUI:
|
||
body = it["body"]()
|
||
for kind, color in (("logo", INK), ("logo-white", WHITE)):
|
||
open(os.path.join(d, "%s-%s.svg" % (it["id"], kind)), "w", encoding="utf-8").write(
|
||
'<?xml version="1.0" encoding="UTF-8"?>\n<svg xmlns="http://www.w3.org/2000/svg" '
|
||
'viewBox="0 0 480 120" width="480" height="120" role="img" '
|
||
'aria-label="睿新致远 NOVALON">%s%s</svg>\n' % (body, n5.wordmark_fixed(color)))
|
||
open(os.path.join(d, "%s-mark.svg" % it["id"]), "w", encoding="utf-8").write(
|
||
'<?xml version="1.0" encoding="UTF-8"?>\n<svg xmlns="http://www.w3.org/2000/svg" '
|
||
'viewBox="0 0 108 120" width="108" height="120" role="img" '
|
||
'aria-label="睿新致远">%s</svg>\n' % body)
|
||
print("assets-compass/ →", len(os.listdir(d)), "个文件")
|
||
|
||
|
||
if __name__ == "__main__":
|
||
main()
|