fusyong / jiazhu Goto Github PK
View Code? Open in Web Editor NEWa ConTeXt LMTX module for Jiazhu (or 夹注, 割注)
a ConTeXt LMTX module for Jiazhu (or 夹注, 割注)
主要是考虑不同字体大小的情况。此情形下,按横向基线对齐貌似不是太美观。
其实我不太确定,因为我在您的代码基础了做了一些改动。
比如冒号
在 is_full_quad_punc 中,如果是行间标点(且竖排)应返回 false,以启用前后的 kern。
boxes_to_rules
如果 n 是 夹注,则 处理完之后, n 已经指向了原来 n 的后继节点,如果其为空,则 下一步 n=n.next 会出错。
因此 n=n.next 需要放到 else 分支中。
可以通过两个紧邻的夹注进行测试 \jiazhu{XXX}\jiazhu{YYY},会发现第二个夹注没有处理,被跳过了。
目前我的想法是先根据宽高比修改xscale,让其横向排版时占据宽度等于高,然后旋转时再恢复xscale,并适当更改所加 hlist 的xoffset。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.