ソースコードの管理場所
Revision | 122ae14244a86452301d41b65a9c3f8919b10047 (tree) |
---|---|
Time | 2021-05-04 20:24:13 |
Author | Hironori Kitagawa <h_kitagawa2001@yaho...> |
Commiter | Hironori Kitagawa |
ltj-ruby.lua: fix forum:3103
@@ -853,6 +853,8 @@ $r_2$,~$g_2$を行Bから除去・メモリ解放し,代わりに$n_3$を行B | ||
853 | 853 | ◆\ruby{A}{◆◆◆◆◆}◆\\◆\ruby{A}{◆◆◆◆◆◆}◆\\◆A◆ |
854 | 854 | |
855 | 855 | \makebox[10\zw][s]{値とは\ruby{\texttt{;}}{セミコロン}で区切}% |
856 | + | |
857 | + \ltjruby{痛}{いたみ}(\ltjruby{病}{びやう}あ | |
856 | 858 | } |
857 | 859 | \fbox{\box0} |
858 | 860 |
@@ -3,7 +3,7 @@ | ||
3 | 3 | -- |
4 | 4 | luatexbase.provides_module({ |
5 | 5 | name = 'luatexja.ruby', |
6 | - date = '2020-10-30', | |
6 | + date = '2021-05-04', | |
7 | 7 | description = 'Ruby annotation', |
8 | 8 | }) |
9 | 9 | luatexja.ruby = {} |
@@ -544,12 +544,13 @@ local function pre_high(ahead) | ||
544 | 544 | local op = (atr>0) and (old_break_info[atr] or post_intrusion_backup) or 0 |
545 | 545 | max_allow_pre = max(0, -max_allow_pre - op) |
546 | 546 | end |
547 | - if rst.exclude_pre_from_prev_ruby and ((atr>0) and (old_break_info[-atr]>0) or post_jfmgk_backup) then | |
547 | + if rst.exclude_pre_from_prev_ruby and atr>0 and old_break_info[-atr] | |
548 | + and (old_break_info[-atr]>0 or post_jfmgk_backup) then | |
548 | 549 | -- 「直前のルビが JFM グルーに進入→現在のルビの前文字進入はなし」という状況 |
549 | 550 | max_allow_pre = 0; rst.exclude_pre_from_prev_ruby=false |
550 | 551 | end |
551 | 552 | if rst.exclude_pre_jfmgk_from_prev_ruby |
552 | - and (atr>0) and ((old_break_info[atr] or post_intrusion_backup) > 0) then | |
553 | + and atr>0 and ((old_break_info[atr] or post_intrusion_backup) > 0) then | |
553 | 554 | -- 「直前のルビが文字に進入→現在のルビの和文処理グルーへの進入はなし」という状況 |
554 | 555 | rst.before_jfmgk = 0 |
555 | 556 | end |