Ruby baseline for non-CJK characters
Sorry for late reply.
baselines for ruby texts when they have ascender or descender portions
Thanks for the report. For now, there is no option for it (I didn't take that into account), but I'd like to add option(s) for it.
Possible workaround: using \smash[b] and intergap option
\ltjruby[intergap=-0.06]{コギト}{\smash[b]{Cogito}} \ltjruby[intergap=-0.06]{コイト}{\smash[b]{Coito}}
Thanks for answer! It seems the \smash command’s optional argument is not analysed, so [b] is visible in ruby. But by removing it, and adjusting intergap, it worked:
\ltjruby[intergap=0.1]{コギト}{\smash{Cogito}} \ltjruby[intergap=0.1]{コイト}{\smash{Coito}}
I just uploaded the new version (20220703.0) to CTAN.
luatexja-ruby now has "rubydepth" key.
I hope this will solve the issue.
(sorry for English)
I did not find a way to align baselines for ruby texts when they have ascender or descender portions (especially for non-CJK characters). Is there an option I missed, or is it a potential feature to add?
I know that ruby and pxrubrica packages don’t have this baseline mismatch (but ruby does not work well in my multi-CJK-font document).
Here is a MWE: