songflower

reflow bitmap sheet music to a different paper format
git clone https://a3nm.net/git/songflower/
Log | Files | Refs | README | LICENSE

commit e82ecefe8d95281cb395c131db7bc1f0df50e47b
parent 4b553dc9f298ce8fe04ac8f3fedefdc33633b60f
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Fri,  6 Sep 2019 00:49:40 +0200

fix some problems by hand

Diffstat:
fix_melodia.sh | 27++++++++++++++++++++++++---
melodia_hard_stuff.txt | 32++++++++++++++++++--------------
2 files changed, 42 insertions(+), 17 deletions(-)

diff --git a/fix_melodia.sh b/fix_melodia.sh @@ -6,18 +6,21 @@ for a in $(seq 0 9) do rm -f chunks/page_000${a}*.png done - + rm -f chunks/page_0010_0000*.png -rm -f chunks/page_0010_0001*.png +# volume headings +rm -f chunks/page_0010_0001*.png rm -f chunks/page_0050_0000*.png +rm -f chunks/page_0110_0000*.png + + rm -f chunks/page_0050_0001*.png rm -f chunks/page_0070_0000*.png rm -f chunks/page_0082_0002*.png rm -f chunks/page_0085_0000*.png rm -f chunks/page_0085_0009*.png rm -f chunks/page_0090_0000*.png -rm -f chunks/page_0110_0000*.png rm -f chunks/page_0138_0000*.png rm -f chunks/page_0140_0000*.png rm -f chunks/page_0160_0000*.png @@ -27,6 +30,7 @@ rm -f chunks/page_0170_0001*.png rm -f chunks/page_0174_0010*.png rm -f chunks/page_0177_0012*.png rm -f chunks/page_0180_0011*.png +rm -f chunks/page_0186_0000*.png rm -f chunks/page_0215_*.png convert -density 1200 -resize ${WIDTH}x melodia_title_page.svg chunks/page_0000_0000.png @@ -46,3 +50,20 @@ for a in lines/page_0058*.png; do ./splitw.py --weightthreshold=10 --weightwindow=3 $a chunks "$WIDTH"; done +rm chunks/page_0153_0009* +./splitw.py --heightthreshold=8 lines/page_0153_0009.png chunks "$WIDTH" + +rm chunks/page_0159_0005* +./splitw.py --weightthreshold=12 lines/page_0159_0005.png chunks "$WIDTH" + +rm chunks/page_0159_0009* +./splitw.py --maxbardistance=20 lines/page_0159_0009.png chunks "$WIDTH" + +rm chunks/page_0167_0003* +./splitw.py --weightthreshold=20 lines/page_0167_0003.png chunks "$WIDTH" + +rm chunks/page_0169_0004* +./splitw.py --weightthreshold=20 --heightthreshold=20 lines/page_0169_0004.png chunks "$WIDTH" + +rm chunks/page_0171_0008* +./splitw.py --maxbardistance=20 lines/page_0171_0008.png chunks "$WIDTH" diff --git a/melodia_hard_stuff.txt b/melodia_hard_stuff.txt @@ -5,28 +5,32 @@ 0058_0007 fixed -0109_0014 +0109_0014 fixed -0153_0009 -0153_0010 -0153_0014 +0113_0002 fixed -0159_0005 -0159_0006 -0159_0009 +0153_0009 fixed +0153_0010 no good solution (3 complicated measures) +0153_0014 no good solution (3 complicated measures) -0167_0003 +0159_0005 fixed +0159_0006 no good solution except giving up on stretch, or merging adjacent +lines +0159_0009 fixed -0169_0004 +0167_0003 fixed -0171_0002 -0171_0007 -0171_0008 +0169_0004 fixed -0175_0012 +0171_0002 no good solution (words) +0171_0007 no good solution (words) +0171_0008 fixed -0182_0014 +0175_0012 TODO: fix bad h split +0182_0014 TODO: fix bad h split + +0186_0001 no good solution (words) 0186_* 0188_0005 0188_0006