Ticket #42855

Inserted glue does not inherit attributes from surrounding nodes

Open Date: 2021-09-12 14:04 Last Update: 2021-09-21 23:44

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

Details

LuaTeX-ja often inserts nodes between other nodes, but the attributes of these nodes are set to the attributes active at the end of the paragraph instead of the attributes which were active in the place where the node get inserted. This leads to issues e.g. with lua-ul whose underlines get broken whenever two characters are separated by glue without the underline attribute. (See https://gist.github.com/zr-tex8r/53915d587773f17da10cfecdf7e47f23 for an example)

Could this be changed to instead inherit the attributes of the surrounding nodes?

Ticket History (3/5 Histories)

2021-09-12 14:04 Updated by: zauguin
  • New Ticket "Inserted glue does not inherit attributes from surrounding nodes" created
2021-09-12 18:09 Updated by: h7k
Comment

Could this be changed to instead inherit the attributes of the surrounding nodes?

I tried to fix that at this commit.

Note that the above commit unsets an attribute of a node P which is different between that of B and A (when P is about to be inserted between B and A). The attribute at the end of the paragraph (as before) can be used in this case.

2021-09-12 18:10 Updated by: h7k
  • Owner Update from (None) to h7k
2021-09-14 22:59 Updated by: zauguin
Comment

Thanks, the fix works great with all test files I have access to :)

2021-09-21 23:44 Updated by: zauguin
  • Status Update from Open to Closed
  • Resolution Update from None to Fixed

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