]> git.donarmstrong.com Git - lilypond.git/commitdiff
patch::: 0.1.36: pats
authorJan Nieuwenhuizen <janneke@gnu.org>
Thu, 11 Dec 1997 07:55:14 +0000 (08:55 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Thu, 11 Dec 1997 07:55:14 +0000 (08:55 +0100)
pl 36.jcn1
- mf numerals:
  * small numerals wider and fatter
  * bf: no thinner lines than blot_diameter
  * several bf's: dims and parameterisations

NEWS
VERSION
mf/TODO
mf/feta-macros.mf
mf/feta-nummer.mf
mf/feta-nummer10.mf
mf/feta-nummer4.mf
mf/feta-nummer5.mf
mf/feta-nummer8.mf

diff --git a/NEWS b/NEWS
index 8bd448b3c4b0bd6e9b1e02755acb6774a5a5833f..961813cec73b896bd2d4fe9423c5359e5ef1d7a6 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,9 @@
+pl 36.jcn1
+       - mf numerals:
+         * small numerals wider and fatter
+         * bf: no thinner lines than blot_diameter
+         * several bf's: dims and parameterisations
+
 pl 36
        - bf: notehead collisions
        - bf: dot y-position
diff --git a/VERSION b/VERSION
index 8cfffe87ef5140b9f5d788ab7982e7c1234d3547..5bbed96c5e44f26e30a45d50a9e6d98d6b2a2c8a 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1,7 +1,7 @@
 TOPLEVEL_MAJOR_VERSION = 0
 TOPLEVEL_MINOR_VERSION = 1
 TOPLEVEL_PATCH_LEVEL = 36
-TOPLEVEL_MY_PATCH_LEVEL = 
+TOPLEVEL_MY_PATCH_LEVEL = jcn1
 
 # use the above to send patches, always empty for released version:
 # please don't move these comments up; the patch should fail if 
diff --git a/mf/TODO b/mf/TODO
index 13465460b9b8581b63cbf07add3ebc015c497406..05a4bd9e4a60e5f0115a060ee1bc1c38ab6597bc 100644 (file)
--- a/mf/TODO
+++ b/mf/TODO
          * maxima notehead
          * coda signs.
          * 0 - 9: 
-           - small(1/4staff) bold + bold slanted
-           - normal(1/5staff) bold
-           - large(3/4staff) bold
-
+           - 4/6pt slanted ?
+           - large(3/4staff) 
        - 128th flags
        - include important spacing dims in fetalog 
 
index c03e97c7b056abf30271888446da3c4e21d0a7b6..5a322a75e29e6d951ce7db56c79d078a98af910a 100644 (file)
@@ -143,7 +143,7 @@ def draw_flare(expr pos,alpha,beta,line,flare) =
        z2=z3;
        penpos3(flare,0+alpha);
        z3l=z1r+(1/2+0.43)*flare*dir(alpha+beta);
-       z4=z2r-1/6flare*dir(alpha);
+       z4=z2r-line*dir(alpha);
        penlabels(1,2,3,4);
        pickup pencircle;
        save t; t=0.833;
index 3d0f5e718bc9e59ebc0514d00f9eafac1ce4e48f..1f7d4eb27634911ca81ae0e1b47f4925aea5bfa7 100644 (file)
@@ -5,8 +5,8 @@ fet_begingroup("nummer")
 code := 47;
 
 define_pixels(height,thick,thick,thin,hair);
-foot_top#:=2thin#;
-foot_width#:=2thick#+thin#;
+foot_top#:=thick#;
+foot_width#:=9/4thick#;
 define_pixels(foot_top,foot_width);
 define_pixels(kuulleke);
 
@@ -38,50 +38,48 @@ def draw_foot(expr xpos) =
        z3r=z2r;
        penpos4(hair,90);
        z4l=z2l;
-       z5=(x1,hair/2);
-       fill z1..{right}z1r{down}..{right}z3l..z3r{left}..z5..{left}z4l..z4r{right}..{up}z1l{right}..z1..cycle;
+       z5=(x1,kuulleke);
+       fill z1..{right}z1r{down}..{right}z3l..z3r{left}..z5
+               ..{left}z4l..z4r{right}..{up}z1l{right}..z1..cycle;
        endgroup;
        enddef;
 
 def draw_six =
-       set_char_box(0, 2/3height#, 0, height#);
+       set_char_box(0, 2/3height#*widen, 0, height#);
        message "w:"&decimal w;
        message "h:"&decimal h;
 
        penpos1(thin,90);
-       z1=(thick,h/2+thin);
+       z1=(thick,h/2+thin-hair/2);
        penpos2(hair,90);
        z2=(w/2,y1);
-       penpos3(thick-hair,0);
-       % yup, should use the path [] "everywhere"
+       penpos3(7/8thick,0);
+       % yup, should use the path fract [] "everywhere"
        z3r=(w,1/2[0,y1]);
        penpos4(hair,-90);
        z4r=(x2,0);
-       penpos5(thick-hair,180);
+       penpos5(7/8thick,180);
        z5r=(0,y1);
        penpos6(hair,90);
-       z6r=(w-thick-hair,h);
-       penpos7(thick-hair,180);
+       z6r=(w-9/8thick*flaren,h);
+       penpos7(7/8thick,180);
        z7r=(0,h/2);
-       penpos10(thick-hair,180);
+       penpos10(7/8thick,180);
        z10r=(0,y3);
        penlabels(1,2,3,4,5,6,7,8,9,10,11);
        save t; t=0.833;
-%      fill z5{right}..z2r{right}..z3r{down}..z4r{left}
-%              ..tension t..z7r{up}..tension t..z6r{right}
-%              ..z6l{left}..tension t..z7l{down}..z10l{up}..cycle;
        fill z5{right}..z2r{right}..tension t..z3r{down}
                ..tension t..z4r{left}
                ..tension t..z7r{up}..tension t..z6r{right}
                ..z6l{left}..tension t..z7l{down}..z10l{up}..cycle;
-       draw_flare(z6r,0,-90,hair,thick);
+       draw_flare(z6r,0,-90,hair,thick*flaren);
        unfill z2l{right}..tension t..z3l{down}..tension t
                ..z4l{left}..tension t..z10l{up}..tension t..cycle;
        enddef;
 
 fet_beginchar("Numeral 0", "0", "zero")
-%      set_char_box(0, 4/5height#, 0, height#);
-       set_char_box(0, 11/15height#, 0, height#);
+%      set_char_box(0, 4/5height#*widen, 0, height#);
+       set_char_box(0, 11/15height#*widen, 0, height#);
        message "w:"&decimal w;
        message "h:"&decimal h;
        penpos1(thin,90);
@@ -94,18 +92,19 @@ fet_beginchar("Numeral 0", "0", "zero")
        z4r=(0,h/2);
        fill z1r..z2r..z3r..z4r..cycle;
        save t; t=1.2;
-       unfill z1l..tension t..z2l..tension t..z3l..tension t..z4l..tension t..cycle;
+       unfill z1l..tension t..z2l..tension t..z3l
+               ..tension t..z4l..tension t..cycle;
 fet_endchar;
        
 fet_beginchar("Numeral 1", "1", "one")
-%      set_char_box(0, 11/15height#, 0, height#);
-       set_char_box(0, 19/30height#, 0, height#);
+%      set_char_box(0, 19/30height#*widen, 0, height#);
+       set_char_box(0, 1/2foot_width#+3/2thick#+1/2hair#, 0, height#);
        message "w:"&decimal w;
        message "h:"&decimal h;
 
        save alpha; alpha=0;
        calc_kuulleke(thick,alpha);
-       z1=(thick+thick/2,height);
+       z1=(3/2thick,height);
 
        penpos5(thick,0);
        z5=(x1,foot_top);
@@ -120,15 +119,17 @@ fet_beginchar("Numeral 1", "1", "one")
        z9r=z8r+(thin/cosd(beta))*(0,-1);
        penlabels(1,2,3,4,5,6,7,8,9);
        save gamma; gamma=angle(length(z1r-z1),+2kuulleke);
-       fill z2r{dir(alpha-gamma)}..z4..{dir(alpha+gamma)}z3l..z3r{down}..{down}z5r{left}..z5..{left}z5l{up}..{up}z2l..cycle;
-       fill z7l{dir(beta)}..{dir(beta)}z1l..z2r..z9r{up}..z9l{dir(180+beta)}..{dir(180+beta)}z7r..cycle;
+       fill z2r{dir(alpha-gamma)}..z4..{dir(alpha+gamma)}z3l..z3r{down}
+               ..{down}z5r{left}..z5..{left}z5l{up}..{up}z2l..cycle;
+       fill z7l{dir(beta)}..{dir(beta)}z1l..z2r..z9r{up}
+               ..z9l{dir(180+beta)}..{dir(180+beta)}z7r..cycle;
        penlabels(7,8,9);
 
        draw_foot(x1);
 fet_endchar;
 
 fet_beginchar("Numeral 2", "2", "two")
-       set_char_box(0, 11/15height#, 0, height#);
+       set_char_box(0, 11/15height#*widen, 0, height#);
        message "w:"&decimal w;
        message "h:"&decimal h;
        clearxy;
@@ -139,7 +140,7 @@ fet_beginchar("Numeral 2", "2", "two")
        penpos3(hair,90+beta);
        z3=(w,thick)+(1/2sqrt(2)*hair)*dir(-135);
        penpos2(thick-hair,90+alpha);
-       x2-x1=x3-x2; y2=thick/2+hair;
+       x2-x1=x3-x2; y2=5/8thick/fatten;
        penlabels(1,2,3);
        fill z1r{dir(beta)}..{dir(alpha)}z2r..{dir(beta)}z3r
                ..z3l{dir(180+beta)}..{dir(180+alpha)}z2l
@@ -150,55 +151,50 @@ fet_beginchar("Numeral 2", "2", "two")
        penpos5(thick,0);
        z5r=(w-thin,.72h);
        penpos6(thin,90);
-       z6r=(w/2-thin-hair,h);
+       z6r=(1/2hair+thick,h);
        penlabels(4,5,6);
        fill z1l{dir(beta)}..z4l{dir(15)}..z5r{up}..
                tension 0.9 ..          
                z6r{left}
                ..z6l{right}..z5l{down}..z4r{dir(180+15)}
                ..{dir(180+beta)}z1r..cycle;
+       % nice without flaren correction...
        draw_flare(z6r,180,90,thin,thick);
 fet_endchar;
 
 fet_beginchar("Numeral 3", "3", "three")
-       set_char_box(0, 2/3height#, 0, height#);
+       set_char_box(0, 2/3height#*widen, 0, height#);
        message "w:"&decimal w;
        message "h:"&decimal h;
        penpos1(hair,-90);
-       z1l=(thick+hair/2,h);
+       z1l=(17/16thick,h);
        penpos2(thick-hair,180);
-       z2l=(w-hair,3/4h+hair/2);
+       z2l=(w-thick/8,3/4h+thick/16);
        penpos3(hair,90);
-       z3=(w/2,h/2+hair);
+       z3=(w/2,h/2+1/8thick);
        penpos4(hair,90);
        z4=(1/2thick+hair,y3);
        penpos5(thick,0);
-       z5r=(w,1/4h+hair/2);
+       z5r=(w,1/4h+thick/16);
        penpos6(hair,-90);
-       z6r=(thick+hair,0);
+       z6r=(9/8thick,0);
        penpos7(thin+hair,90);
        z7=(x2,y3);
        penlabels(1,2,3,4,5,6,7);
        save alpha; alpha=25;
        save t; t=0.833;
-%      fill z1l{right}..z2l{down}..z7r{dir(180+alpha)}
-%              ..z7l{dir(-alpha)}..z5r{down}..z6r{left}
-%              ..z6l{right}..tension t..z5l{up}
-%              ..tension t..z3l{left}..z4l{left}
-%              ..z4r{right}..z3r{right}..tension t..z2r{up}
-%              ..tension t..z1r{left}..cycle;
        fill z1l{right}..tension t..z2l{down}..z7r{dir(180+alpha)}
                ..z7l{dir(-alpha)}..z5r{down}..tension t..z6r{left}
                ..z6l{right}..tension t..z5l{up}
                ..tension t..z3l{left}..z4l{left}
                ..z4r{right}..z3r{right}..tension t..z2r{up}
                ..tension t..z1r{left}..cycle;
-       draw_flare(z1l,180,90,hair,thick);
-       draw_flare(z6r,180,-90,hair,thick+hair);
+       draw_flare(z1l,180,90,hair,thick*flaren);
+       draw_flare(z6r,180,-90,hair,9/8thick*flaren);
 fet_endchar;
 
 fet_beginchar("Numeral 4", "4", "four")
-       set_char_box(0, 4/5height#, 0, height#);
+       set_char_box(0, 4/5height#*widen, 0, height#);
        message "w:"&decimal w;
        message "h:"&decimal h;
 
@@ -216,37 +212,43 @@ fet_beginchar("Numeral 4", "4", "four")
        z8r=z5;
        penlabels(1,2,3,4,5,6,7);
        save gamma; gamma=angle(length(z1r-z1),+2kuulleke);
-       fill z2r{dir(alpha-gamma)}..z4..{dir(alpha+gamma)}z3l..z3r{dir(180+beta)}..{dir(180+beta)}z8r{right}..{right}z7l..z7r{left}..{left}z6r..z8l{dir(beta)}..{up}z2l..cycle;
+       fill z2r{dir(alpha-gamma)}..z4..{dir(alpha+gamma)}z3l
+               ..z3r{dir(180+beta)}..{dir(180+beta)}z8r{right}
+               ..{right}z7l..z7r{left}..{left}z6r..z8l{dir(beta)}
+               ..{up}z2l..cycle;
 
        clearxy;
 
        save alpha; alpha=beta;
        calc_kuulleke(thick,alpha);
-       z1r=(w-3thin,height-(thin+hair)/cosd(alpha));
+%      z1r=(w-3thin,height-(thin+hair)/cosd(alpha));
+       z1r=(w-3thin,height-(thin+1/2hair)/cosd(alpha));
 
        penpos5(thick,0);
        z5=(x1,foot_top);
        
        save gamma; gamma=angle(length(z1r-z1),+2kuulleke);
-       fill z2r{dir(alpha-gamma)}..z4..{dir(alpha+gamma)}z3l..z3r{down}..{down}z5r{left}..z5..{left}z5l{up}..{up}z2l..cycle;
+       fill z2r{dir(alpha-gamma)}..z4..{dir(alpha+gamma)}z3l
+               ..z3r{down}..{down}z5r{left}..z5..{left}z5l{up}
+               ..{up}z2l..cycle;
        penlabels(1,2,3,4,5);
 
        draw_foot(x5);
 fet_endchar;
 
 fet_beginchar("Numeral 5", "5", "five")
-       set_char_box(0, 7/10height#, 0, height#);
+       set_char_box(0, 7/10height#*widen, 0, height#);
        message "w:"&decimal w;
        message "h:"&decimal h;
        calc_kuulleke(w-thin,0);
        z1=(w/2+thin/2,h);
        save alpha; alpha=0;
        penpos5(thin,0);
-       z5l=(x1l,h-thick);
+       z5l=(x1l,h-15/16thick);
        penpos6(hair,90-45);
        z6=z5r+1/2hair*dir(-45);
        penpos7(thin,0);
-       z7l=(x1l,h/2+thin/2);
+       z7l=(x1l,h/2+thin-hair);
        penlabels(1,2,3,4,5,6,7);
        save gamma; gamma=angle(length(z1r-z1),+2kuulleke);
        fill z2r{dir(alpha-gamma)}..z4..{dir(alpha+gamma)}z3l
@@ -255,22 +257,19 @@ fet_beginchar("Numeral 5", "5", "five")
        penpos8(thin,90);
        z8l=z7r;
        penpos9(hair,90);
-       z9l=(x11,y7+thin+hair);
+       z9=(x11,1/2[y5,y7]);
        penpos10(thick,0);
        z10r=(w,1/2[y9r,y11r]);
        penpos11(hair,-90);
-        z11r=(thick+hair,0);
+        z11r=(9/8thick,0);
        penlabels(8,9,10,11);
        save beta; beta=45;
        save t; t=0.833;
-%      fill z8r{dir(beta)}..z9r{right}..z10r{down}..z11r{left}
-%              ..z11l{right}..tension t..z10l{up}..tension t
-%              ..z9l{left}..z8l{dir(180+beta)}..cycle;
        fill z8r{dir(beta)}..z9r{right}..tension t..z10r{down}
                ..tension t..z11r{left}
                ..z11l{right}..tension t..z10l{up}..tension t
                ..z9l{left}..z8l{dir(180+beta)}..cycle;
-       draw_flare(z11r,180,-90,hair,thick+hair);
+       draw_flare(z11r,180,-90,hair,9/8thick*flaren);
 fet_endchar;
 
 fet_beginchar("Numeral 6", "6", "six")
@@ -278,7 +277,7 @@ fet_beginchar("Numeral 6", "6", "six")
 fet_endchar;
 
 fet_beginchar("Numeral 7", "7", "seven")
-       set_char_box(0, 11/15height#, 0, height#);
+       set_char_box(0, 11/15height#*widen, 0, height#);
        message "w:"&decimal w;
        message "h:"&decimal h;
 
@@ -315,7 +314,7 @@ fi
        penpos3(thin,90+beta);
        z3=(w,h)+(1/2sqrt(2)*thin)*dir(-135);
        penpos2(thick-hair,90+alpha);
-       x2-x1=x3-x2; y2=h-thick/2-hair;
+       x2-x1=x3-x2; y2=h-5/8thick/fatten;
 
        penpos4(thin,0);
        z4l=(0,h-thin/2);
@@ -333,26 +332,26 @@ fi
 fet_endchar;
 
 fet_beginchar("Numeral 8", "8", "eight")
-       set_char_box(0, 11/15height#, 0, height#);
+       set_char_box(0, 11/15height#*widen, 0, height#);
        message "w:"&decimal w;
        message "h:"&decimal h;
        save alpha; alpha=60;
        save beta; beta=alpha-15;
-       z1=(w/2,h/2+hair);
+       z1=(w/2,h/2+thick/8);
        penpos2(hair,90+180+beta);
        z2=(w/3,h/2+thin);
-       penpos3(thin+hair,0);
+       penpos3(3/2thin,0);
        z3l=(0,h/4+thin/2);
        penpos4(hair,90);
        z4l=(x1,0);
        penpos5(thick,90+90+alpha);
        z5=z1+w/4*dir(alpha-90);
        penpos6(thick,90+90+alpha);
-       z6=z1+w/4*dir(90+alpha);
+       z6=z1+(w/4-thin/2)*dir(90+alpha);
        penpos7(hair,90);
        z7r=(x1,h);
-       penpos8(thin+hair,0);
-       z8r=(w-hair,3/4h+thin/2);
+       penpos8(3/2thin,0);
+       z8r=(w-thin/2,3/4h+thin/2);
        penpos9(hair,90+180+beta);
        z9=(2/3w,h/2);
        penlabels(1,2,3,4,5,6,7,8,9);
index 73d46c94eee624763b37fcceb5b3fce93f1dab6a..0780b1adca59a2e3ead64e062c5bda20027fb87a 100644 (file)
@@ -9,13 +9,20 @@ mode_setup;
 
 test:=0;
 input feta-macros;
+input feta-params;
 
 height#:=designsize;
-thick#:=7/30height#;
-thin#:=thick#/4;
-hair#:=thin#/2;
-kuulleke#:=hair#;
-%kuulleke#:=0;
+
+fatten:=1;
+widen:=1;
+flaren:=1;
+thick#:=7/30height#*fatten;
+thin#:=thick#/4*fatten;
+hair#:=blot_diameter#;
+kuulleke#:=1/8thick#;
+
+message "thin:"&decimal(thin#);
+message "blot:"&decimal(blot_diameter#);
 
 input feta-nummer;
 
index e3c4e7fafd67cd8032b69592fd6e3eed0569a277..026942c4ab47080f7423950e29f2a017d4a32ac7 100644 (file)
@@ -9,14 +9,20 @@ mode_setup;
 
 test:=0;
 input feta-macros;
+input feta-params;
 
-% copied from 8; will it work?
 height#:=designsize;
-thick#:=7/30height#;
-thin#:=thick#/4;
-hair#:=thin#/2;
-kuulleke#:=hair#;
-%kuulleke#:=0;
+
+fatten:=1.15;
+widen:=1.05;
+flaren:=0.9;
+thick#:=7/30height#*fatten;
+thin#:=thick#/4*fatten;
+hair#:=blot_diameter#;
+kuulleke#:=1/8thick#;
+
+message "thin:"&decimal(thin#);
+message "blot:"&decimal(blot_diameter#);
 
 input feta-nummer;
 
index f366ba40300737b0382c7205327259f6a65d9a6b..f1e6b07113b9cdc0af92e8f1519e029690ccaa5c 100644 (file)
@@ -9,14 +9,17 @@ mode_setup;
 
 test:=0;
 input feta-macros;
+input feta-params;
 
-% copied from 4; will it work?
 height#:=designsize;
-thick#:=7/30height#;
-thin#:=thick#/4;
-hair#:=thin#/2;
-kuulleke#:=hair#;
-%kuulleke#:=0;
+
+fatten:=1.12;
+widen:=1.03;
+flaren:=0.92;
+thick#:=7/30height#*fatten;
+thin#:=thick#/4*fatten;
+hair#:=blot_diameter#;
+kuulleke#:=1/8thick#;
 
 input feta-nummer;
 
index d1f2caa70bb9be46592f3429b9dca08373e94290..defbc7f38eb22c1fa2ab978ca2aff84756be49ff 100644 (file)
@@ -9,14 +9,17 @@ mode_setup;
 
 test:=0;
 input feta-macros;
+input feta-params;
 
-% copied from 10; will it work?
 height#:=designsize;
-thick#:=7/30height#;
-thin#:=thick#/4;
-hair#:=thin#/2;
-kuulleke#:=hair#;
-%kuulleke#:=0;
+
+fatten:=1;
+widen:=1;
+flaren:=1;
+thick#:=7/30height#*fatten;
+thin#:=thick#/4*fatten;
+hair#:=blot_diameter#;
+kuulleke#:=1/8thick#;
 
 input feta-nummer;