Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby typeset for multikanji might be misplaced when unit is not 1\zw #7

Open
lemniscati opened this issue Jul 7, 2024 · 1 comment · May be fixed by #8
Open

Ruby typeset for multikanji might be misplaced when unit is not 1\zw #7

lemniscati opened this issue Jul 7, 2024 · 1 comment · May be fixed by #8

Comments

@lemniscati
Copy link

lemniscati commented Jul 7, 2024

Ruby typeset for multikanji might be misplaced when unit is not 1\zw

How to reproduce

A test input is:

\documentclass{ltjtarticle}
\usepackage{kanbun}
\begin{document}

\begingroup
\parindent0\zw%
\setkanbun{kumi=beta, unit=1\zw}%
\Kanbun
壱弐参‘所以’(ゆゑん)。
\EndKanbun
\printkanbun
\endgroup

\begingroup
\parindent0\zw%
\setkanbun{kumi=beta, unit=2\zw}%
\Kanbun
壱弐参‘所以’(ゆゑん)。
\EndKanbun
\printkanbun
\endgroup

\begingroup
\parindent0\zw%
\setkanbun{kumi=beta, unit=3\zw}%
\Kanbun
壱弐参‘所以’(ゆゑん)。
\EndKanbun
\printkanbun
\endgroup

\begingroup
\parindent0\zw%
\setkanbun{kumi=aki, unit=1\zw}%
\Kanbun
壱弐参‘所以’(ゆゑん)。
\EndKanbun
\printkanbun
\endgroup

\begingroup
\parindent0\zw%
\setkanbun{kumi=aki, unit=2\zw}%
\Kanbun
壱弐参‘所以’(ゆゑん)。
\EndKanbun
\printkanbun
\endgroup

\begingroup
\parindent0\zw%
\setkanbun{kumi=aki, unit=3\zw}%
\Kanbun
壱弐参‘所以’(ゆゑん)。
\EndKanbun
\printkanbun
\endgroup

\end{document}

Process it with lualatex and, we will get a result: kanbun-test-multikanji-ruby.pdf

Expected Results

For any unit, the ruby ゆゑん for multikanji 所以 should be placed only along with the characters of multikanji.

@lemniscati
Copy link
Author

The cause seems that kanbunzwtosp in lua is not updated when unit, or \kanbun_zw is changed.

@lemniscati lemniscati linked a pull request Jul 7, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant