diff options
Diffstat (limited to 'fontd')
-rwxr-xr-x | fontd | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -18,10 +18,10 @@ bdf=$(cat $2/*bdf | awk "NR==1{fflag=0}/ENCODING $1$/{if(fflag==0){cflag=1;fflag #convert to binary, cols depends on size bin=$(echo $bdf | xxd -r -ps | xxd -b -c $(($size/8))|\ -#strip all the formating, replace '0' with '.' for bbrll -sed 's/^.*://g;s/\s[^[:space:]]*$//;s/\s//g;s/0/\./g') - +#strip all the formating, bbrll takes 0s and 1s as input +sed 's/^.*://g;s/\s[^[:space:]]*$//;s/\s//g') #saving it as a var removed newlines, must add in with sed, send to bbrll to # display -echo LOAD_RAW $bin END_RAW PRINT_BRAILLE | sed 's/\s/\n/g' | bbrll +#echo LOAD_RAW $bin END_RAW PRINT_BRAILLE | sed 's/\s/\n/g' | bbrll +echo LOAD_RAW $bin END_RAW PRINT_RAW | sed 's/\s/\n/g' | bbrll |