Ticket #38743

luatexja-adjust 負の幅のノードがあった際に profiling が正常に働かない

Open Date: 2018-11-11 22:24 Last Update: 2019-01-07 17:57

Reporter:
Owner:
(None)
Type:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
None

Details

luatexja-adjust に実装した profiling ですが,\kern<負の長さ> など幅が負のノードがあった時,正しく「高さ」「深さ」が追跡できません.

例えば,以下のソースで黒 rule と赤 rule は重なってはいけないはずなのに,実際にタイプセットすると重なってしまいます.

  1. \documentclass{article}
  2. \usepackage{color,luatexja-adjust}
  3. \ltjenableadjust[profile]
  4. \begin{document}
  5. \noindent\vrule height 5pt depth 50pt width 45pt\kern30pt%
  6. \vrule height 5pt depth 50pt width 30pt\\
  7. \textcolor{red}{\kern50pt\vrule height 50pt depth 5pt width50pt}%
  8. \textcolor{blue}{\kern-40pt\vrule height 5pt depth 5pt width 60pt}%
  9. \end{document}

Ticket History (3/4 Histories)

2018-11-11 22:24 Updated by: h7k
  • New Ticket "luatexja-adjust 負の幅のノードがあった際に profiling が正常に働かない" created
2018-11-13 09:42 Updated by: h7k
  • Resolution Update from None to Fixed
Comment

d1a8474f (kitagawa_profile) ブランチで直しました. ついでに横方向にも最低 \lineskip の自然長だけの空白を確保するようにしています(後でユーザが「\lineskip の何倍」という形で自由に設定できるようにします).

2019-01-07 17:56 Updated by: h7k
Comment

LuaTeX-ja 20190107.0 を出したので完了とします.

2019-01-07 17:57 Updated by: h7k
  • Status Update from Open to Closed

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login