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

Added minimalinitialwidth dimension. #1251

Merged
merged 2 commits into from
Nov 8, 2016

Conversation

henryso
Copy link
Contributor

@henryso henryso commented Nov 8, 2016

Fixes #1213.

Added a test for this new feature. No other tests change.

Please review and merge if satisfactory.

@@ -475,6 +480,11 @@
\gre@debugmsg{ifdim}{ manualinitialwidth = 0pt}%
\ifdim\gre@space@dimen@manualinitialwidth=0 pt\relax%
\global\gre@dimen@initialwidth=\wd\gre@box@initial %
\ifdim\gre@dimen@initialwidth<\gre@space@dimen@minimalinitialwidth\relax%
\gre@style@initial%
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the style lines look a bit weird, what happens if you remove them?

@@ -444,6 +444,11 @@
\gre@debugmsg{ifdim}{ manualinitialwidth = 0pt}%
\ifdim\gre@space@dimen@manualinitialwidth=0 pt\relax%
\global\gre@dimen@initialwidth=\wd\gre@box@initial %
\ifdim\gre@dimen@initialwidth<\gre@space@dimen@minimalinitialwidth\relax%
\gre@style@initial%
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied that from the manualinitialwidth code immediately below. I'm pretty sure it's there to handle relative dimensions like em since space@dimen macros are text. Therefore, I don't think the style lines should be removed.

@rpspringuel
Copy link
Contributor

That is their purpose, but I think the need to be outside the conditional so that the comparison picks up the right font settings too.

✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝
Br. Samuel, OSB
(R. Padraic Springuel)
PAX ☧ ΧΡΙΣΤΟΣ

On Nov 8, 2016, at 12:01 PM, Henry So [email protected] wrote:

@henryso commented on this pull request.

In tex/gregoriotex-main.tex:

@@ -444,6 +444,11 @@
\gre@debugmsg{ifdim}{ manualinitialwidth = 0pt}%
\ifdim\gre@space@dimen@manualinitialwidth=0 pt\relax%
\global\gre@dimen@initialwidth=\wd\gre@box@initial %

  •  \ifdim\gre@dimen@initialwidth<\gre@space@dimen@minimalinitialwidth\relax%
    
  •    \gre@style@initial%
    
    I copied that from the manualinitialwidth code immediately below. I'm pretty sure it's there to handle relative dimensions like em since space@dimen macros are text. Therefore, I don't think the style lines should be removed.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@henryso
Copy link
Contributor Author

henryso commented Nov 8, 2016

Thanks for catching that. The review process is working! Fixed.

@eroux
Copy link
Contributor

eroux commented Nov 8, 2016

ok, I think we can merge

@henryso henryso merged commit 3179fac into gregorio-project:develop Nov 8, 2016
@henryso henryso deleted the fix-1213 branch November 8, 2016 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants