Andrew15-5 / rubby

rubby package adds support for ruby (furigana) in Typst.
GNU Affero General Public License v3.0
12 stars 2 forks source link

Consider providing an easier way to underline just the base text #2

Open Andrew15-5 opened 1 week ago

Andrew15-5 commented 1 week ago

After finding the article by adbird through the forum post I noticed the issue:

#import "@preview/rubby:0.10.1": get-ruby

#let ruby = get-ruby()

// wrong
#underline[吾輩は#ruby[ねこ][猫]である]

// correct
#underline[吾輩は]#ruby[ねこ][#underline[猫]]#underline[である]

#underline[吾輩は]#ruby("ねこ")[#underline[猫]]#underline[である]

#underline[吾輩は]#ruby("ねこ", underline[猫])#underline[である]

image

I'm not sure if I can make the underlining easier to do, but I'll have to think about that.