Issue 659: alternate segno symbol
An alternate segno symbol is included in mf/feta-scripts.mf.
New arguments to the \bar command are introduced for easier
use of the new sign.
I haven't tried this out, but some things simply jump out.. http://codereview.appspot.com/181144/diff/1/3 File lily/bar-line.cc (right): ...
15 years, 2 months ago
(2010-01-06 14:13:39 UTC)
#1
I haven't tried this out, but some things simply jump out..
http://codereview.appspot.com/181144/diff/1/3
File lily/bar-line.cc (right):
http://codereview.appspot.com/181144/diff/1/3#newcode96
lily/bar-line.cc:96: Stencil segno = Font_interface::get_default_font
(me)->find_by_name ("scripts.varsegno");
You need this stencil only in that one if clause below... No need to allocate it
for each and every compound bar line. I would move it directly before the
m.add_at_edge below.
http://codereview.appspot.com/181144/diff/1/3#newcode121
lily/bar-line.cc:121: str = "$";
Are you sure you want $ and not §?
http://codereview.appspot.com/181144/diff/1/3#newcode385
lily/bar-line.cc:385: " @code{|.|}, @code{:}, @code{dashed}, code{§} and
@code{'}.\n"
How easy is it to produce a § on an US keyboard? Here in Europe it's easy, but I
don't think that key is on an English (non-international) keyboard by default.
reinhold.kainhofer@gmail.com schrieb: > I haven't tried this out, but some things simply jump out.. > ...
15 years, 2 months ago
(2010-01-06 15:27:18 UTC)
#2
reinhold.kainhofer@gmail.com schrieb:
> I haven't tried this out, but some things simply jump out..
>
>
> http://codereview.appspot.com/181144/diff/1/3
> File lily/bar-line.cc (right):
>
> http://codereview.appspot.com/181144/diff/1/3#newcode96
> lily/bar-line.cc:96: Stencil segno = Font_interface::get_default_font
> (me)->find_by_name ("scripts.varsegno");
> You need this stencil only in that one if clause below... No need to
> allocate it for each and every compound bar line. I would move it
> directly before the m.add_at_edge below.
Done.
>
> http://codereview.appspot.com/181144/diff/1/3#newcode121
> lily/bar-line.cc:121: str = "$";
> Are you sure you want $ and not §?
>
No, I wasn't :-) Just a type which remained undetected during the
compilation
of the regression test file.
Done.
> http://codereview.appspot.com/181144/diff/1/3#newcode385
> lily/bar-line.cc:385: " @code{|.|}, @code{:}, @code{dashed}, code{§} and
> @code{'}.\n"
> How easy is it to produce a § on an US keyboard? Here in Europe it's
> easy, but I don't think that key is on an English (non-international)
> keyboard by default.
After consulting wikipedia for several keyboard layouts, you have
convinced me.
I changed the § sign to an uppercase S, which should be accessible from any
latin keyboard.
>
> http://codereview.appspot.com/181144
Thanks!
Marc
http://codereview.appspot.com/181144/diff/1009/29 File lily/span-bar.cc (right): http://codereview.appspot.com/181144/diff/1009/29#newcode204 lily/span-bar.cc:204: else if (type == "S") You also need to ...
15 years, 2 months ago
(2010-01-10 20:50:38 UTC)
#5
http://www.codereview.appspot.com/181144/diff/1009/29 File lily/span-bar.cc (right): http://www.codereview.appspot.com/181144/diff/1009/29#newcode204 lily/span-bar.cc:204: else if (type == "S") On 2010/01/10 20:50:38, Neil ...
15 years, 2 months ago
(2010-01-11 01:05:07 UTC)
#6
http://www.codereview.appspot.com/181144/diff/1009/29
File lily/span-bar.cc (right):
http://www.codereview.appspot.com/181144/diff/1009/29#newcode204
lily/span-bar.cc:204: else if (type == "S")
On 2010/01/10 20:50:38, Neil Puttock wrote:
> You also need to pick up "S."/".S" here, otherwise you'll get a nasty surprise
> between staves ;)
>
> else if (type.find ("S") != NPOS)
AFAICS, Bar_line::compound_barline resets both "S." and ".S" to "S", so this
should be fine. Or am I missing something?
At least the regtest shows the span_bar working correctly for both "S." and ".S"
On 2010/01/11 01:05:07, Reinhold wrote: > AFAICS, Bar_line::compound_barline resets both "S." and ".S" to "S", ...
15 years, 2 months ago
(2010-01-12 00:10:12 UTC)
#7
On 2010/01/11 01:05:07, Reinhold wrote:
> AFAICS, Bar_line::compound_barline resets both "S." and ".S" to "S", so this
> should be fine. Or am I missing something?
If "S." or ".S" is (incorrectly) set in the middle of a line, the glyph
calculation won't be reset, resulting in a segno glyph pasted between staves.
Looks good to me, with the exception of the hardcoded value stuff. Thanks, Carl http://codereview.appspot.com/181144/diff/4008/5018 ...
15 years, 1 month ago
(2010-02-15 20:21:33 UTC)
#9
Looks good to me, with the exception of the hardcoded value stuff.
Thanks,
Carl
http://codereview.appspot.com/181144/diff/4008/5018
File lily/bar-line.cc (right):
http://codereview.appspot.com/181144/diff/4008/5018#newcode242
lily/bar-line.cc:242: m.add_at_edge (X_AXIS, RIGHT, thick, 2.5 * staff_space + 2
* thinkern); // Urg, hardcoded value
If you are going to use the hardcoded value (which I think is not a good idea;
you can call ly_stencil_extent to get the width of the segno stencil), then I
think it would be better to define a local variable for your hardcoded value,
i.e.
float segno_width = 2.5 * staff_space // Urg, hardcoded value
so that it's clear what the 2.5 is for.
Carl.D.Sorensen@gmail.com schrieb: > Looks good to me, with the exception of the hardcoded value stuff. ...
15 years, 1 month ago
(2010-02-16 19:34:46 UTC)
#10
Carl.D.Sorensen@gmail.com schrieb:
> Looks good to me, with the exception of the hardcoded value stuff.
>
> Thanks,
>
> Carl
>
>
>
> http://codereview.appspot.com/181144/diff/4008/5018
> File lily/bar-line.cc (right):
>
> http://codereview.appspot.com/181144/diff/4008/5018#newcode242
> lily/bar-line.cc:242: m.add_at_edge (X_AXIS, RIGHT, thick, 2.5 *
> staff_space + 2 * thinkern); // Urg, hardcoded value
> If you are going to use the hardcoded value (which I think is not a good
> idea; you can call ly_stencil_extent to get the width of the segno
> stencil), then I think it would be better to define a local variable for
> your hardcoded value, i.e.
> float segno_width = 2.5 * staff_space // Urg, hardcoded value
>
> so that it's clear what the 2.5 is for.
I used Patrick's proposal and it seems to work fine (see the uploaded
patch set).
Moreover, I compiled lilypond a dozen times yesterday, and today, make
failed
because I "forgot" the closing >"< on several lines, but these chars
definitely
were already missing yesterday.
Marc
>
> http://codereview.appspot.com/181144/show
>
Marc Hohl schrieb: > n.puttock@gmail.com schrieb: >> Hi Marc, >> >> LGTM, though I still ...
15 years, 1 month ago
(2010-03-01 09:30:26 UTC)
#13
Marc Hohl schrieb:
> n.puttock@gmail.com schrieb:
>> Hi Marc,
>>
>> LGTM, though I still think this is a lot of effort for a very obscure
>> and little-used symbol.
> [...]
Should the new segno sign be included in the documentation?
If yes, where?
Apart from that, are there any further objections to this patch set?
Greetings,
Marc
http://codereview.appspot.com/181144/show
Graham Percival schrieb: > On Mon, Mar 1, 2010 at 9:30 AM, Marc Hohl <marc@hohlart.de> ...
15 years, 1 month ago
(2010-03-02 11:29:15 UTC)
#14
Graham Percival schrieb:
> On Mon, Mar 1, 2010 at 9:30 AM, Marc Hohl <marc@hohlart.de> wrote:
>
>> Should the new segno sign be included in the documentation?
>> If yes, where?
>>
>
> In the feta font (I think that's included/font-table.ly), and in NR
> 1.2.5 rehearsal marks, in the example wi ththe other segno signs.
>
I didn't touch included/font-table.ly, because the varsegno is part
of the scripts, so it is included anyway, IIUC.
I added some explanations in rhythms.itely, I hope it is correct.
> (if I understand the matter at hand... I'm sick and not thinking
> clearly, so if this seems like totally off-base advice, ignore it)
>
>
All the best for you!
Marc
http://codereview.appspot.com/181144/show
On Tue, Mar 02, 2010 at 12:29:09PM +0100, Marc Hohl wrote: > Graham Percival schrieb: ...
15 years, 1 month ago
(2010-03-02 12:36:31 UTC)
#15
On Tue, Mar 02, 2010 at 12:29:09PM +0100, Marc Hohl wrote:
> Graham Percival schrieb:
>> In the feta font (I think that's included/font-table.ly), and in NR
>> 1.2.5 rehearsal marks, in the example wi ththe other segno signs.
>>
> I didn't touch included/font-table.ly, because the varsegno is part
> of the scripts, so it is included anyway, IIUC.
Ok.
> I added some explanations in rhythms.itely, I hope it is correct.
>
> http://codereview.appspot.com/181144/show
The changes to rhythm.itely look good; I didn't try to examine the
code changes.
Cheers,
- Graham
Graham Percival schrieb:
> On Tue, Mar 02, 2010 at 12:29:09PM +0100, Marc Hohl wrote:
>
>> Graham Percival schrieb:
>>
>>> In the feta font (I think that's included/font-table.ly), and in NR
>>> 1.2.5 rehearsal marks, in the example wi ththe other segno signs.
>>>
>>>
>> I didn't touch included/font-table.ly, because the varsegno is part
>> of the scripts, so it is included anyway, IIUC.
>>
>
> Ok.
>
>
>> I added some explanations in rhythms.itely, I hope it is correct.
>>
>> http://codereview.appspot.com/181144/show
>>
>
> The changes to rhythm.itely look good; I didn't try to examine the
> code changes.
>
Is the segno patch ready to be applied, or did I miss something?
Marc
Marc Hohl schrieb:
> [...]
> Is the segno patch ready to be applied, or did I miss something?
I don't want to annoy you, but if there is some more work I should
do to improve the patch, let me know ... on the other hand,
if it is ready now, don't hesitate to push it ;-)
>
> Marc
>
>
>
> _______________________________________________
> lilypond-devel mailing list
> lilypond-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-devel
>
Issue 181144: Issue 659: alternate segno symbol
(Closed)
Created 15 years, 2 months ago by marc
Modified 14 years, 11 months ago
Reviewers: Reinhold, Neil Puttock, carl.d.sorensen_gmail.com
Base URL:
Comments: 12