16 Commits

Author SHA1 Message Date
Marco van Dijk
f26e80b245 Added minimum page config entry
Fixed expected height calculation to either take the whitespace in the input file or a set margin in between sections
Changed default settings slightly
2021-07-23 23:09:05 +02:00
Marco van Dijk
f7ec726eae fix typo 2021-07-09 23:46:59 +02:00
Marco van Dijk
50e1fe05c0 Added abilit to write header file containing info on what lines contain what kind of data in .txt and .rawtxt output 2021-07-09 23:43:39 +02:00
Marco van Dijk
15400a037f Added config option for stripping or keeping whitelines 2021-07-09 23:06:39 +02:00
Marco van Dijk
b87b6cc9c6 added variables for resize behaviour 2021-07-09 22:22:20 +02:00
Marco van Dijk
5c82258228 Added variable for aggressiveness when resizing down, since we also consider whitespace atm we can do this more aggressively at the cost of speed 2021-07-09 22:01:54 +02:00
Marco van Dijk
ca12e20a7a Fix topmargin, increased default margins 2021-07-09 20:45:38 +02:00
Marco van Dijk
8d03f6d665 Added support for writing to txt and rawtxt (which is quick to parse as input)
Added config options for choosing which extensions to read and which to write to
2021-07-09 20:35:33 +02:00
Marco van Dijk
3305efd7d0 Set font size based on PPI
In combination with the dynamic up/down sizing to fit whitespace, we get pretty good output images
Also removed the check that we do not resize the font size that much
fixes #13
2021-07-09 17:40:28 +02:00
Marco van Dijk
682278fcd5 Added support for DPI instead of fixed image dimensions
fixes #11
2021-07-09 16:35:17 +02:00
Marco van Dijk
bf0352a600 Added optimalisation to resize down to fit whitespace better
Also increased default font size, since we resize down if needed
A lower default font size will speed up the program
fixes #8
2021-07-09 16:20:11 +02:00
Marco van Dijk
5325906c22 Added a right-margin propert
Overflow-X check function now takes left and right margin into account
2021-07-09 14:26:51 +02:00
Marco van Dijk
0767b7c2eb Added a simple arranger, which arranges the sections on pages
Output2Img now simply writes all of the sections on a page below each other
2021-07-09 14:26:50 +02:00
Marco van Dijk
db9633a855 Added simple prerender functions to estimate seciton dimensions
Added width-overflow check. Program will downsize the fontSize down untill all lines are readable
Moved config options into the song object
Fixes #3
2021-07-09 14:26:49 +02:00
Marco van Dijk
9564f214b5 fixes #4
Input files now get listed based on a list of input paths (to either folders or files)
Also check subdirectories up to a set max recursion
2021-07-08 01:09:49 +02:00
Marco van Dijk
e6a0e920af fixes #7
add config file, created if it does not exist
2021-07-08 00:46:54 +02:00