Re: [jlreq-d] Proposal: making ruby breakable (#19)

@macnmm , could you help me understanding the nature of the complexity a bit more in details?

For simplicity let's assume for now overhanging part of ruby does not sits on top of the surrounding character. Assume you have a ruby block that is '哺乳類(ほにゅうるい)'. First you might want to see if the whole fits at the end of the line you are working on. It does not. Then you see if the first character fits. Assume the base character '哺' fit. Now you look at the ruby and find the ruby fragment that corresponds to '哺', which is 'ほ'. The ruby also fits. Now you try to fit the second base character '乳' and find that it does not. Now you are done with composing the line. You start working on the next line. You process '乳類(にゅうるい)' normally. Now you are done with processing '哺乳類(ほにゅうるい)'

In the case of 周期律, you get the ruby fragment 'しゅう' that corresponds to the first base character. It is longer than the base by 1/2 of fullwidth. You find that it barely fits, or not. etc.

For a moment I thought I understood the complexity but I found I did not… thank you for your help.

-- 
GitHub Notification of comment by kidayasuo
Please view or discuss this issue at https://github.com/w3c/jlreq-d/issues/19#issuecomment-1228004742 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 26 August 2022 03:15:14 UTC