Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix vertical relative position in \D mode #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Eolien55
Copy link
Contributor

The number register \n(.d does not contain the
vertical position until wb is put into fmt. This
is problematic for drawing functions because
relative positions such as |1i are not relative to the current word buffer (in which the drawing is
done) but to fmt. This causes unexpected drawings.

This is not compliant to the behavior of either
groff, heirloom doctools, or Plan 9's troff, but
we the behavior with horizontal vertical position
is already non-compliant.

An alternative is to adopt the other troff's
behavior, that is to never update the relative
position while parsing a drawing function.

The number register \n(.d does not contain the
vertical position until wb is put into fmt. This
is problematic for drawing functions because
relative positions such as |1i are not relative to
the current word buffer (in which the drawing is
done) but to fmt. This causes unexpected drawings.

This is not compliant to the behavior of either
groff, heirloom doctools, or Plan 9's troff, but
we the behavior with horizontal vertical position
is already non-compliant.

An alternative is to adopt the other troff's
behavior, that is to never update the  relative
position while parsing a drawing function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant