Skip to content

Commit

Permalink
refine doc
Browse files Browse the repository at this point in the history
  • Loading branch information
eroux committed Feb 21, 2016
1 parent 018944e commit f3eab25
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ As of v3.0.0 this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased][unreleased]
### Fixed
- hyphens now cannot go right of the staff lines. A protrusion factor can now be applied for hyphens at end of lines (50% by default), it can be changed through `\gresethyphenprotrusion` (see GregorioRef and [#845](https://github.com/gregorio-project/gregorio/issues/845)).
- hyphens now shouldn't go right of the staff lines (see [#845](https://github.com/gregorio-project/gregorio/issues/845)).
- Offset limit calculations now function better in both directions for new bar spacing algorithm.

### Added
Expand Down
9 changes: 2 additions & 7 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,9 @@ The following spaces have been added:

By default, these are sized one half millimeter larger than their "non-text" counterparts. This may cause minor spacing changes in your existing scores. Adjust them as necessary to get the look you want.

### Protrusion of hyphens at end of line
### Hyphens going right of staff lines

The default protrusion factor for hyphens at end of lines is 50, meaning that 50% of the hyphen is ignored by horizontal spacing algorithm at end of line. This should:

- prevent hyphens from going too far right, especially no further than end of line
- stretch some lines a little bit

If you prefer the old behavior, `\gresethyphenprotrusion{100}` should restore it (or at least differences should be small). The value 100 may be suprising, but many hyphens were not taken into account at all at end of lines previously, while they are now, hence the value.
Hyphens should now not go right of staff lines. If you prefer the old behavior, `\gresethyphenprotrusion{100}` should restore it.

### Oriscus orientation

Expand Down
2 changes: 1 addition & 1 deletion doc/Command_Index_User.tex
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ \subsubsection{Hyphenation}
\#1 & \texttt{number} & The protrusion factor, over 100
\end{argtable}

Note that a proper interface for setting protrusion factor of punctuation signs might appear in the next version, deprecating this one.
Note that a proper interface for setting protrusion factor of punctuation signs might appear in the next version, deprecating this one. Also, this protrusion factor does not apply to all hyphens (only those inserted by the Lua pass), so use it with caution.

\subsubsection{Clef Visibility}

Expand Down
4 changes: 3 additions & 1 deletion tex/gregoriotex-spaces.tex
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,10 @@
% dimen keeping the shift computed with next function
\newdimen\gre@dimen@eolshift
\newcount\gre@count@protrusion@hyphen@eol %

% protrusion for hyphens inerted by Lua
\gre@count@protrusion@hyphen@eol = 50
%

\def\gresethyphenprotrusion#1{%
\gre@count@protrusion@hyphen@eol = #1\relax %
\relax %
Expand Down

0 comments on commit f3eab25

Please sign in to comment.