David Kastrup [Sat, 2 Jul 2016 23:40:27 +0000 (01:40 +0200)]
Run scripts/auxiliar/update-with-convert-ly.sh
David Kastrup [Sat, 2 Jul 2016 23:40:04 +0000 (01:40 +0200)]
Issue 4914/2: convert-ly rule for removing Output_property_engraver
It's highly unlikely that users will redefine the Score context from
scratch, so the convert-ly rule just removes every occurence of
Output_property_engraver from user source. Obviously, when running the
rule on the LilyPond code base, we will need to fix up the Score
engraver manually to retain the Output_property_engraver .
David Kastrup [Sat, 2 Jul 2016 23:37:15 +0000 (01:37 +0200)]
Issue 4914/1: Move Output_property_engraver to Score level
This has the advantage of needing only one instantiation of the engraver
and not having \applyOutput mysteriously refrain from having an effect
in contexts without Output_property_engraver .
Due to the hierarchical nature of acknowledgers, acknowledgers in lower
contexts will now get to see the grobs before applyOutput has done its
work. However, grobs are still unfinished (except for type, properties
initialized via context properties and cause) at the time they are
announced, with other details only getting filled in by the engraver
after announcement, so the potential for trouble seems low.
Acknowledgers should usually just register a grob (or write grob data)
with any actual reading of grob data occurring at the end of the
timestep instead or in the process-acknowledged phase.
David Kastrup [Sat, 2 Jul 2016 09:23:43 +0000 (11:23 +0200)]
Issue 4911/4: Fix comments in context-mod-with regtest
David Kastrup [Thu, 30 Jun 2016 15:26:01 +0000 (17:26 +0200)]
Issue 4911/3: Don't treat context modification identifiers special
This requires using \with before context modifications like
\RemoveEmptyStaves in order to make the syntax get along
with fewer special cases and exceptions.
David Kastrup [Thu, 30 Jun 2016 18:38:27 +0000 (20:38 +0200)]
Run scripts/auxiliar/update-with-convert-ly.sh
David Kastrup [Thu, 30 Jun 2016 16:28:23 +0000 (18:28 +0200)]
Issue 4911/2: convert-ly rule to put \with before context mods
David Kastrup [Sat, 14 Sep 2013 19:12:38 +0000 (21:12 +0200)]
Issue 4911/1: \with #*unspecified* should be equivalent to \with { }
Phil Holmes [Sat, 9 Jul 2016 20:21:48 +0000 (21:21 +0100)]
Release: bump VERSION.
Phil Holmes [Sat, 9 Jul 2016 20:21:10 +0000 (21:21 +0100)]
Merge remote-tracking branch 'origin/release/unstable' into HEAD
David Kastrup [Fri, 8 Jul 2016 16:07:54 +0000 (18:07 +0200)]
Trivial typo fix in doc-work.itexi
Phil Holmes [Fri, 8 Jul 2016 12:58:06 +0000 (13:58 +0100)]
Release: bump Welcome versions.
Phil Holmes [Fri, 8 Jul 2016 12:58:06 +0000 (13:58 +0100)]
Release: update news.
Phil Holmes [Fri, 8 Jul 2016 12:58:06 +0000 (13:58 +0100)]
PO: update template.
Phil Holmes [Fri, 8 Jul 2016 12:58:06 +0000 (13:58 +0100)]
Release: bump VERSION_DEVEL.
Masamichi Hosoda [Thu, 30 Jun 2016 14:22:55 +0000 (23:22 +0900)]
Issue 4910/3: Avoid crash when g_spawn_sync () fails
When g_spawn_sync () fails,
`standard_output` and `standard_error` may not be set.
This commit makes to check whether or not the value is valid.
Masamichi Hosoda [Thu, 30 Jun 2016 14:15:41 +0000 (23:15 +0900)]
Issue 4910/2: Replace the warning message output method in ly_run_command ()
This commit replaces
the warning message output method in ly_run_command ()
from fprintf () to warning ().
Masamichi Hosoda [Thu, 30 Jun 2016 13:59:15 +0000 (22:59 +0900)]
Issue 4910/1: Fix memory leak in ly:spawn ()
This commit makes free the memory allocated by g_spawn_sync ().
John Gourlay [Thu, 23 Jun 2016 19:49:25 +0000 (15:49 -0400)]
Reimplement issue 4781 for musicxml2ly more literally. Reimplementation
was necessary as part of the implementation of issue 4751, but some of
the code changes for 4781 were omitted. This reproduces all the 4781 changes.
David Kastrup [Sat, 2 Jul 2016 08:08:42 +0000 (10:08 +0200)]
Issue 4912: Fix output definition use in \book and \bookpart
The only explicit output definition blocks allowed in \book and
\bookpart blocks were paper blocks. Output definitions supplied with
Scheme expressions were erroneously interpreted like global output
definitions, accepting all output definition types and overriding the
global defaults with them.
Now the only output definitions accepted as Scheme expressions are
paper blocks. As opposed to previously, they actually set the paper
block of the respective book or bookpart.
David Kastrup [Wed, 29 Jun 2016 16:58:11 +0000 (18:58 +0200)]
Issue 4908/7: Add Changes entry for \header expressions
David Kastrup [Thu, 30 Jun 2016 10:23:50 +0000 (12:23 +0200)]
Issue 4908/6: Use \markupId and \stringId in identifiers regtest
David Kastrup [Wed, 29 Jun 2016 16:32:09 +0000 (18:32 +0200)]
Issue 4908/5: Add \header variables to `identifiers' regtest
David Kastrup [Tue, 28 Jun 2016 08:47:44 +0000 (10:47 +0200)]
Issue 4908/4: Admit \header-like expression into \score
David Kastrup [Tue, 28 Jun 2016 08:19:27 +0000 (10:19 +0200)]
Issue 4908/3: Admit \header-like expressions in \header
David Kastrup [Tue, 28 Jun 2016 08:19:00 +0000 (10:19 +0200)]
Issue 4908/2: Admit \header-like expressions at top levels
\header-like expressions are allowed at \book, \bookpart,
and top level.
David Kastrup [Tue, 28 Jun 2016 07:11:45 +0000 (09:11 +0200)]
Issue 4908/1: Allow \header blocks in expressions
This allows creating modules for further programmatic manipulation.
Masamichi Hosoda [Tue, 28 Jun 2016 09:44:49 +0000 (18:44 +0900)]
Issue 4909/2: Add checking conflicts between CFF flavored fonts
This commit adds checking conflicts between fonts
which have same name in 'CFF' table
but different name in 'name' table.
Masamichi Hosoda [Mon, 27 Jun 2016 16:50:43 +0000 (01:50 +0900)]
Issue 4909/1: Add procedure `ly:get-cff-offset`
This commit adds procedure `ly:get-cff-offset`
which gets the offset of 'CFF' table for a font.
Masamichi Hosoda [Sun, 26 Jun 2016 03:15:33 +0000 (12:15 +0900)]
Issue 4876/5: Add direct parsing CFF for getting Postscript font name
FreeType 2.6 and 2.6.1 cannot get PS name from pure-CFF.
(FreeType 2.5.5 and earlier does not have this issue.
FreeType 2.6.2+ has this bug fixed.)
So we need direct parsing of the 'CFF' table, in this case.
Masamichi Hosoda [Sat, 25 Jun 2016 10:05:42 +0000 (19:05 +0900)]
Issue 4876/4: Enable fontname replacing in TrueType functions
This commit enables fontname replacing for CFF (OTF/OTC) fonts.
Masamichi Hosoda [Sat, 25 Jun 2016 09:39:10 +0000 (18:39 +0900)]
Issue 4876/3: Enable fontname replacing in Pango_font class
This commit enables fontname replacing for CFF (OTF/OTC) fonts.
Masamichi Hosoda [Sat, 25 Jun 2016 02:12:11 +0000 (11:12 +0900)]
Issue 4876/2: Enable fontname replacing in Open_type_font class
This commit enables fontname replacing for CFF (OTF/OTC) fonts.
Masamichi Hosoda [Sat, 25 Jun 2016 01:52:44 +0000 (10:52 +0900)]
Issue 4876/1: Add fontname replacing function for CFF (OTF/OTC) fonts
For CFF (OTF/OTC) fonts,
FT_Get_Postscript_Name ()
in FreeType 2.6+ gets the name in 'name' table.
However, we want the name in 'CFF' table instead of in 'name' table
because output postscript file is embedded only 'CFF' table of the font.
They are inconsistent for some OpenType/CFF Collection fonts (OTC).
This function can get the name in 'CFF' table.
TODO: Check conflicts between fonts which have same name in 'CFF' table
but different name in 'name' table.
David Kastrup [Sun, 19 Jun 2016 14:37:43 +0000 (16:37 +0200)]
Issue 4906/6: Use ADD_END_ACKNOWLEDGER_FOR in slur engravers
David Kastrup [Sun, 19 Jun 2016 14:36:57 +0000 (16:36 +0200)]
Issue 4906/5: Don't let ADD_END_ACKNOWLEDGER_FOR add end_ to callback
David Kastrup [Sat, 18 Jun 2016 16:25:25 +0000 (18:25 +0200)]
Issue 4906/4: Use ADD_LISTENER/ACKNOWLEDGER_FOR in slur engravers
David Kastrup [Mon, 6 Jun 2016 11:54:40 +0000 (13:54 +0200)]
Issue 4906/3: ADD_ACKNOWLEDGER/LISTENER_FOR
Add macros allowing to listen/acknowledge to events/grobs unrelated
to the actual listener name.
David Kastrup [Sun, 26 Jun 2016 07:49:30 +0000 (09:49 +0200)]
Issue 4906/2: Rename ack_trampoline to trampoline
This allows foregoing a dummy Translator::ack_trampoline definition.
David Kastrup [Sat, 25 Jun 2016 22:32:38 +0000 (00:32 +0200)]
Issue 4906/1: Rename ack_finder to method_finder
This additional overload streamlines things somewhat.
Jean-Charles Malahieude [Sat, 2 Jul 2016 15:07:06 +0000 (17:07 +0200)]
Doc: updates translation status
Jean-Charles Malahieude [Sat, 2 Jul 2016 15:02:47 +0000 (17:02 +0200)]
Doc-fr: updates committishes after removing non backslahed funindex
Jean-Charles Malahieude [Sat, 2 Jul 2016 14:11:49 +0000 (16:11 +0200)]
Merge branch 'master' of /home/jcharles/GIT/Lily/. into translation
Jean-Charles Malahieude [Sat, 2 Jul 2016 14:10:53 +0000 (16:10 +0200)]
Doc-ca: nitpick in web.texi
Walter Garcia-Fontes [Thu, 30 Jun 2016 14:09:24 +0000 (16:09 +0200)]
Doc-ca: Catalan translations and corrections
Walter Garcia-Fontes [Tue, 21 Jun 2016 07:50:35 +0000 (09:50 +0200)]
Doc-ca: Catalan translations and corrections
Federico Bruni [Thu, 30 Jun 2016 16:49:10 +0000 (18:49 +0200)]
Doc-it: add NR "World music" chapter
Masamichi Hosoda [Sun, 19 Jun 2016 12:54:46 +0000 (21:54 +0900)]
Issue 4902/2: Improve `-dgs-load-fonts` option for TTF
`-dgs-load-fonts` loads fonts via Ghostscript.
However, if a TrueType font (TTF)
that does not have glyph names is loaded via Ghostscript,
all characters are shown in TOFU.
This commit lets `-dgs-load-fonts` loads those fonts
in a way that is not via Ghostscript.
Masamichi Hosoda [Sun, 19 Jun 2016 12:48:01 +0000 (21:48 +0900)]
Issue 4902/1: Add procedure `ly:has-glyph-names?`
This commit adds procedure `ly:has-glyph-names?`
to check whether or not a font has glyph names.
Masamichi Hosoda [Sun, 19 Jun 2016 02:59:45 +0000 (11:59 +0900)]
Issue 4901: Improve `-dgs-load-fonts` option for OTC fonts
`-dgs-load-fonts` loads fonts via Ghostscript.
However, Ghostscript could not load
OpenType/CFF Collection (OTC) fonts by this way.
http://bugs.ghostscript.com/show_bug.cgi?id=696808
This commit lets `-dgs-load-fonts` loads the OTC fonts
in a way that is not via Ghostscript.
Masamichi Hosoda [Sat, 18 Jun 2016 13:49:44 +0000 (22:49 +0900)]
Issue 4900: Improve `-dgs-load-fonts` option for non-zero font-index
`-dgs-load-fonts` loads fonts via Ghostscript.
However, it could not load the font that has non-zero font-index.
This commit lets it loads the font
in a way that is not via Ghostscript.
Federico Bruni [Sun, 26 Jun 2016 07:39:53 +0000 (09:39 +0200)]
Doc-it: update
David Kastrup [Sat, 25 Jun 2016 21:01:25 +0000 (23:01 +0200)]
Don't overload Slur_engraver::listen_slur
Having two overloaded variants of Slur_engraver::listen_slur leads to
problems with ADD_LISTENER template resolution at least in some versions
of g++. So the two-argument version is renamed to listen_note_slur.
David Kastrup [Mon, 20 Jun 2016 21:48:14 +0000 (23:48 +0200)]
Issue 4903/4: Fold Slur_proto_engraver into Slur_engraver
A symmetrical common base class to both Slur_engraver and
Phrasing_slur_engraver seems like an unnecessary complication. Instead,
Phrasing_slur_engraver can just be derived from Slur_engraver .
David Kastrup [Mon, 20 Jun 2016 18:37:46 +0000 (20:37 +0200)]
Issue 4903/3: Restructure slur engravers
Replaces data members specific to derived classes of Slur_proto_engraver
with virtual functions.
David Kastrup [Tue, 21 Jun 2016 00:05:54 +0000 (02:05 +0200)]
Issue 4903/2: {phrasing-,}slur-engraver.cc: adjust includes
David Kastrup [Mon, 20 Jun 2016 21:00:28 +0000 (23:00 +0200)]
Issue 4903/1: internal_make_grob: Remove unused `name' argument
David Kastrup [Thu, 16 Jun 2016 17:12:51 +0000 (19:12 +0200)]
Issue 4898: Set rhythmic-location early in paper-column-engraver
This makes it possible to refer to rhythmic-location in callbacks
for PaperColumn grobs.
David Kastrup [Thu, 16 Jun 2016 17:52:01 +0000 (19:52 +0200)]
Issue 4897: Allow multiple \with per context creation
This allows using more than one \with context modification in
connection with \new, \context, \addlyrics, \drums, \lyrics, \chords,
\figures . While combining them inside of a single \with {...} is
possible, sometimes it may be inconvenient.
David Kastrup [Sat, 18 Jun 2016 08:49:06 +0000 (10:49 +0200)]
Issue 4899/6: Remove {Translator,Engraver}::ack_find_base
The indirection and complication added by it does not really
help in any manner.
David Kastrup [Sat, 18 Jun 2016 08:23:30 +0000 (10:23 +0200)]
Issue 4899/5: Remove Translator::method_find_base
It's basically a trivial replacement and confuses more than it helps.
David Kastrup [Sat, 18 Jun 2016 08:13:10 +0000 (10:13 +0200)]
Issue 4899/4: Listeners should not be virtual
Gregorian_ligature_engraver::listen_pes_or_flexa and
Ligature_engraver::listen_pes_or_flexa were accidentally
declared virtual, but their registration already caters
for what amounts to virtual overrides in effect.
David Kastrup [Fri, 17 Jun 2016 14:23:09 +0000 (16:23 +0200)]
Issue 4899/3: Revert "Issue 4885/2: Let ADD_ACKNOWLEDGER state actual classes"
This reverts commit
7c36dbb1834c7c68e4b94777241de3ea02971aca.
David Kastrup [Fri, 17 Jun 2016 14:13:55 +0000 (16:13 +0200)]
Issue 4899/2: Revert "Issue 4885/3: Remove ack_finder/ack_find_base"
This reverts commit
b9040afd1dcfbee6b45bc3d54850ff50d51c8ee9.
David Kastrup [Sat, 18 Jun 2016 08:20:43 +0000 (10:20 +0200)]
Issue 4899/1: Let method_finder also find listeners
This allows using inherited listeners directly like with
acknowledgers and translator methods.
Phil Holmes [Wed, 22 Jun 2016 08:14:00 +0000 (09:14 +0100)]
Release: bump VERSION.
Phil Holmes [Wed, 22 Jun 2016 08:13:36 +0000 (09:13 +0100)]
Merge remote branch 'origin/release/unstable' into HEAD
Thomas Morley [Tue, 14 Jun 2016 19:11:16 +0000 (21:11 +0200)]
Issue 4895 Give SystemStartSquare a default of 5.0 for collapse-height
This ensures same behaviour of SystemStartSquare while using
RemoveEmptyStaves as SystemStartBar, SystemStartBrace and
SystemStartBracket. The latter ones already have this default.
Phil Holmes [Tue, 21 Jun 2016 11:58:17 +0000 (12:58 +0100)]
Release: bump Welcome versions.
Phil Holmes [Tue, 21 Jun 2016 11:58:17 +0000 (12:58 +0100)]
Release: update news.
Phil Holmes [Tue, 21 Jun 2016 11:58:17 +0000 (12:58 +0100)]
PO: update template.
Phil Holmes [Tue, 21 Jun 2016 11:58:16 +0000 (12:58 +0100)]
Release: bump VERSION_DEVEL.
Phil Holmes [Tue, 14 Jun 2016 14:23:56 +0000 (15:23 +0100)]
Correct accidental type for mensural fictas
David Kastrup [Tue, 14 Jun 2016 22:45:22 +0000 (00:45 +0200)]
Issue 4896: Ignore backslash when indexing
Apparently, this currently works just with PDF. Info files and
HTML retain separate indexing of commands starting with backslash.
David Kastrup [Tue, 14 Jun 2016 18:41:13 +0000 (20:41 +0200)]
Issue 4894: Remove unescaped @funindex entries
With adjacent @funindex entries of which one differs from the other
only by the absence of a preceding backslash, the one without the
preceding backslash is removed. This is done by using the script:
sed -i '/^@funindex/{N;s/^@funindex \\\([^\n\\]*\)\n@funindex \1$/@funindex \\\1/mg;s/^@funindex \([^\n\\]*\)\n@funindex \\\1$/@funindex \\\1/mg;P;D;}' $(git grep -l '^@funindex')
Thomas Morley [Sun, 5 Jun 2016 15:19:57 +0000 (17:19 +0200)]
Issue 4883 Implement public definition of bar-line::draw-filled-box
bar-line::draw-filled-box calls the hereby renamed procedure
bar-line::calc-blot to determine the blot diameter.
It will be used in:
make-simple-bar-line
make-thick-bar-line
make-tick-bar-line
This simplifies user-customized bar-lines, which are build with
ly:round-filled-box.
No need to copy/paste the blot-calculating procedure anymore.
Carl Sorensen [Mon, 23 May 2016 14:56:23 +0000 (08:56 -0600)]
Add halfopenvertical to script.scm
Masamichi Hosoda [Sun, 12 Jun 2016 10:55:51 +0000 (19:55 +0900)]
Issue 4866/2: Remove the settings that ignore some major OTC fonts
LilyPond becomes possible to handle
OpenType/CFF Collection (OTC) fonts.
So this commit removes the settings
that ignore some major OTC fonts.
OTC fonts can be used.
Masamichi Hosoda [Sun, 12 Jun 2016 10:25:28 +0000 (19:25 +0900)]
Issue 4866/1: Improve OTC fonts support
This commit adds to distinguish font type
without filename extension,
and to switch font embedding method by font type.
OpenType/CFF Collection (OTC) fonts
which have filename extension `*.ttc' can be used.
Masamichi Hosoda [Fri, 10 Jun 2016 13:12:33 +0000 (22:12 +0900)]
Issue 4890: Fix ly:format for the string that contain zero
strcpy and strncpy cannot be used in std::string concatenation
because std::string may contain '\0' in its contents.
In order to avoid problems with string that contains '\0',
this commit replaces the strncpy to std::string::copy.
Masamichi Hosoda [Tue, 7 Jun 2016 13:26:06 +0000 (22:26 +0900)]
Issue 4889/2: Integrate Type1 font embedding procedures
For embedding both PFA and PFB fonts are used
the same procedure `ly:type1->pfa'.
Masamichi Hosoda [Tue, 7 Jun 2016 13:25:40 +0000 (22:25 +0900)]
Issue 4889/1: Rewrite Type1 font converting procedures
This commit rewrites `ly:pfb->pfa' to `ly:type1->pfa'.
For PFA fonts, it passes through the PFA.
For PFB fonts, it converts the PFB to PFA.
Dan Eble [Sun, 5 Jun 2016 21:29:37 +0000 (17:29 -0400)]
Issue 2232: fix MIDI output of abutting (de)crescendi
David Kastrup [Mon, 13 Jun 2016 22:38:54 +0000 (00:38 +0200)]
Avoid using ?: on lvalues in Protected_scm
This might have caused problems with older compilers. C++11
sounds like it would have been fine with th original code.
Dan Eble [Sat, 4 Jun 2016 19:42:21 +0000 (15:42 -0400)]
Dynamic_performer: eliminate an unnecessary variable
Use -1 to represent an unknown volume.
Dan Eble [Sat, 4 Jun 2016 19:25:13 +0000 (15:25 -0400)]
Issue 3945: fix (De)crescendo with unspecified starting volume in MIDI
Carl Sorensen [Mon, 16 May 2016 01:01:59 +0000 (19:01 -0600)]
Set minimum size dots for text spanner to be round.
Previous code had them set up as rounded ovals with a length of twice the thickness.
David Kastrup [Sun, 5 Jun 2016 11:28:49 +0000 (13:28 +0200)]
Issue 4881: Axis_group_engraver: add interesting items only once
David Kastrup [Sun, 5 Jun 2016 14:32:11 +0000 (16:32 +0200)]
Issue 4886: Replace Grace_beam_engraver::listen_beam
The comment for it complains about copy&paste code, but the
actual code for Beam_engraver::listen_beam has evolved since
then and the changes, while seeming appropriate for the
Grace_beam_engraver as well, have not been copied over.
Deleting the listener callback and instead utilizing
the one from the base class Beam_engraver seems like
the sanest course of action.
Steven Weber [Fri, 27 May 2016 21:41:43 +0000 (14:41 -0700)]
Add the non-default property to the KeySignature grob
Jean-Charles Malahieude [Sat, 11 Jun 2016 12:46:51 +0000 (14:46 +0200)]
Doc-fr: updates texidocs
Jean-Charles Malahieude [Sat, 11 Jun 2016 12:45:37 +0000 (14:45 +0200)]
Web-fr: updates community and manuals
Jean-Charles Malahieude [Sat, 11 Jun 2016 12:26:38 +0000 (14:26 +0200)]
Merge branch 'master' of /home/jcharles/GIT/Lily/. into translation
John Gourlay [Fri, 10 Jun 2016 14:22:41 +0000 (10:22 -0400)]
Bring dev/johngourlay/issue-4751 up to date with respect to staging.
Phil Holmes [Thu, 9 Jun 2016 21:37:34 +0000 (22:37 +0100)]
Release: bump VERSION.
Phil Holmes [Thu, 9 Jun 2016 21:36:37 +0000 (22:36 +0100)]
Merge remote branch 'origin/release/unstable' into HEAD
Masamichi Hosoda [Fri, 3 Jun 2016 15:49:15 +0000 (00:49 +0900)]
Issue 4880: Add ly:get-font-format to get the font format
Most of the OpenType/CFF Collection (OTC) fonts
have the extension `*.ttc'.
TrueType Collection (TTC) fonts
also have the same extension `*.ttc'.
However, it is necessary that different embed method,
between OTC and TTC.
So we need to distinguish them.
This commit adds ly:get-font-format
that can get font format for distinguishing them.
Phil Holmes [Thu, 9 Jun 2016 11:06:07 +0000 (12:06 +0100)]
Merge remote branch 'origin/master' into release/unstable
David Kastrup [Fri, 3 Jun 2016 14:46:20 +0000 (16:46 +0200)]
Issue 4879: Display \time beat structure as list
Example: \displayLilyMusic \time 1,2 3/4
David Kastrup [Fri, 3 Jun 2016 12:21:55 +0000 (14:21 +0200)]
Issue 4878: Make type_p_name_ always char pointer
This avoids the pitfalls cured by issue 4783 without the
associated inconvenience when no predicate is desired.