denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple Score Typesetter font sizes


From: Joe Wilkinson
Subject: Re: Multiple Score Typesetter font sizes
Date: Sun, 6 Feb 2022 18:02:09 +0000
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1

I went looking in the denemo file and found a series of XML blocks which clearly followed each other.
I had assumed it would be some sort of If.. THEN.. ELSEIF block,
but it sets the standard layout and then changes it dependent on any conditions met in the extra (Print)Set Overall Score Size items.
curious
Joe

     <directive>
        <tag>SetFontSize</tag>
        <prefix>#(set-global-staff-size 18) </prefix>
        <data>18</data>
        <override>2</override>
      </directive>

      <directive>
        <tag>SetFontSize Score</tag>
        <prefix>#(set-global-staff-size 13) </prefix>
        <display>Duplicate: </display>
        <data>13</data>
        <override>2</override>
        <allow>
          <layout>2045988384</layout>
        </allow>
      </directive>

      <directive>
        <tag>SetFontSize Guitar</tag>
        <prefix>#(set-global-staff-size 21) </prefix>
        <display>Duplicate: </display>
        <data>21</data>
        <override>2</override>
        <allow>
          <layout>1167509051</layout>
        </allow>
      </directive>



On 06/02/2022 12:52, Richard Shann wrote:
On Sun, 2022-02-06 at 12:19 +0000, Dominic Shann wrote:
I have to admit I find this issue a bit mind boggling at present – no
doubt in time it will get easier – but the idea of being asked if you
want to make the score size conditional, and thus not having to look
under the bonnet is appealing. I guess, though, if you decided to
change your mind about the size for one of the layouts then you’d
have to go into score properties? Or could you override it with a new
directive???
yes, creating another conditional directive for Score Size with the
same condition would result in the new one (being last) having effect
and the other would just be debris; the prospect of people having their
file silt up with disused directives rather put me off this.

The other thing that is a bit off-putting is that score size is only
one of dozens (?) of properties this could be applied to, which would
mean modifying dozens of scripts... Would it, instead, make sense if
when you make a directive conditional it offered to apply this not to
the directive itself but to a newly created duplicate, perhaps with the
complementary condition applied to the original...

So, e.g., making a score size conditional "only for" one part name
would optionally create this condition on a duplicate while making the
original (settable) score size "ignore for" that part. I'm not at all
sure trying to hide the underlying mechanics would be such a good
idea...

Richard

PS My preferred size for reading is size 20, but can manage with 18
if necessary...
Dom x Sent from Mail for Windows From: Richard Shann
Sent: 05 February 2022 15:02
To: Joe and Angela Wilkinson; denemo-devel
Subject: Re: Multiple Score Typesetter font sizes
On Sat, 2022-02-05 at 14:27 +0000, Joe and Angela Wilkinson wrote:
Hi Richard,
I have a score which needs, say, 3 different Font sizes.
13 for the Score, to keep pages down,
18 for most parts
22 for Guitars which need bigger dots (I'm told).
It is under development, so needs periodic changes and reprints,
and
it is good when I don't need to remember the size for each Layout.
You told me how to do this and it works, but is clumsy; for example
  * Set overall Score Size as 18
  * Go into Score Properties Editor, find (Print) Set overall Score
Size and Duplicate it, twice
  *  * This produces a duplicate but without the Execute command
button
  * Go to first duplicate and, using Advanced change the 18 to 33 in
2
places.
Did I really suggest this? That is, as it says Advanced and isn't the
best route - sorry! Instead
* Set overall Score Size as 13
* Go into Score Properties Editor, find (Print) Set overall Score
   Size and Duplicate it, ONCE
* Make the duplicate conditional on Only for Default Layout
* Set overall Score Size as 22
* Go into Score Properties Editor, find (Print) Set overall Score
   Size and Duplicate it, ONCE
* Make the duplicate conditional on Only for Guitar
* Set overall Score Size as 18
Now when typesetting anything other than Default Score Layout or
Guitar
the size 18 will be used, while the other two sizes will kick in for
those.
Then make it conditional on Layout: Default Score Layout
  * Go to second duplicate and, using Advanced change the 18 to 22
in
2 places. Then make it conditional on Layout: Guitar
Perhaps this just IS Advanced in which case OK, but could it be
possible to have the Execute Command button as well
what you have in mind here is, could these duplicate Directives be
subject to the editing process that executing (Print) Set Overall
Score
Size does on the original? They could - the script could look for
duplicates and offer to change any one of them. When I thought about
that I decided that not to go for it at present. Another possibility
would be to offer to make any score size setting conditional and (in
essence) create the duplicate for you if you decide you do want it to
be conditional. That way the user never needs to look at the Score
Properties Editor. But as it stands you need a model in your head of
the score size Directives being stored one after the other with only
the first one being editable via the (Print) Set Overall Score Size
command.
But you shouldn't have to edit the values inside the low-level
directive editor, it's too error prone. Instead edit the default one
via the command and then duplicate & conditionalize it, finally
setting
the default one to the value to be used by default.
Richard






reply via email to

[Prev in Thread] Current Thread [Next in Thread]