improve boxes

main
Christos Angelopoulos 2022-05-06 01:15:32 +03:00
parent 6ad66b97a0
commit df93b408c5
1 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@
# ▀▀▘ ▀▀▝▘▐▌▀▘ ▝▀▘ ▝▘ ▝▀▀▀▘▝▀ ▀▘ ▝▀▀ ▀▀ ▝▀▀▀▘
# ▐▌
#
# a tts bash script by Christos Angelopoulos, February 2022
# a tts bash script by Christos Angelopoulos, April 2022
#Attempts to fix errors in wav files generated by sapo.sh (txt to wav)
#using the all powerful https://github.com/coqui-ai/TTS
FILE="$(yad --file-selection --filename=Desktop --height='400' --width='800' --title='Sapo-fix' --window-icon=$HOME/git/sapo/sapo-fix.png --hscroll-policy=never --vscroll-policy=never)"
@ -85,9 +85,9 @@ do
BOXTEXT=$(echo "$TEXT_TO_CORRECT"|fold -w 78 -s|sed 's/$/ /g'|sed 's/\(^.\{1,78\}\).*/\1/'|sed 's/^/│/g;s/$/│/g')
BOXDURATION=$(echo "Duration : $DURATION sec"|sed 's/$/ /g'|sed 's/\(^.\{1,38\}\).*/\1/')
BOXFIRSTLINE=$(echo "Text of line $ERROR_TEXT_LINE ( of $TOTAL_ERRORS ):"|sed 's/$/ /g'|sed 's/\(^.\{1,38\}\).*/\1/')
echo -e "╭──────────────────────────────────────┬───────────────────────────────────────╮
$BOXFIRSTLINE $BOXDURATION
╰──────────────────────────────────────┴───────────────────────────────────────╯
echo -e "╭──────────────────────────────────────╮╭──────────────────────────────────────╮
$BOXFIRSTLINE$BOXDURATION
╰──────────────────────────────────────╯╰──────────────────────────────────────╯
${Yellow}${italic}╭──────────────────────────────────────────────────────────────────────────────╮
$BOXTEXT
╰──────────────────────────────────────────────────────────────────────────────╯${normal}