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

integrate line stretching in debug messages #994

Closed
eroux opened this issue Mar 2, 2016 · 0 comments
Closed

integrate line stretching in debug messages #994

eroux opened this issue Mar 2, 2016 · 0 comments
Assignees
Milestone

Comments

@eroux
Copy link
Contributor

eroux commented Mar 2, 2016

This patch:

diff --git a/tex/gregoriotex.lua b/tex/gregoriotex.lua
index e8b21b7..fe1687f 100644
--- a/tex/gregoriotex.lua
+++ b/tex/gregoriotex.lua
@@ -356,6 +356,8 @@ local function process (h, groupcode, glyphes)
         --log("eating line")
         h, line = remove(h, line)
       else
+        local glue_sign_name = {[0] = 'normal', [1] = 'stretching', [2] = 'shrinking'}
+        texio.write_nl(string.format('new line: %s factor %f', glue_sign_name[line.glue_sign], line.glue_set))
         centerstartnode = nil
         line_id = nil
         line_top = nil

prints debug messages about the stretching/shrinking factors of the different lines. This would be very useful to trigger in the debug interface.

@eroux eroux added this to the 5.0 milestone Mar 2, 2016
@eroux eroux modified the milestones: 4.1.1, 5.0 Mar 3, 2016
@eroux eroux self-assigned this Mar 3, 2016
eroux added a commit that referenced this issue Mar 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants