Skip to content
Snippets Groups Projects
Commit 918d19a0 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

variierende Leerzeichen ergänzt

parent d4b6af4d
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ digitFile[13]='digit-F.png'
digitFile[14]='digit-H.png'
digitFile[15]='digit-r.png'
digitFile[16]='minus.png'
digitFile[99]=$emptyCanvas
digitFile[17]=$emptyCanvas
edigitFile[0]='edigit-0.png'
edigitFile[1]='edigit-1.png'
......@@ -71,7 +71,7 @@ edigitFile[8]='edigit-8.png'
edigitFile[9]='edigit-9.png'
edigitFile[10]='eminus.png'
edigitFile[11]='eplus.png'
edigitFile[99]=$emptyCanvas
edigitFile[12]=$emptyCanvas
NUM2PREFIXCHAR[0]='-'
NUM2PREFIXCHAR[1]='+'
......@@ -93,6 +93,7 @@ NUM2CHAR[13]='F'
NUM2CHAR[14]='H'
NUM2CHAR[15]='r'
NUM2CHAR[16]='-'
NUM2CHAR[17]='_'
NUM2ECHAR[0]='0'
NUM2ECHAR[1]='1'
......@@ -106,7 +107,7 @@ NUM2ECHAR[8]='8'
NUM2ECHAR[9]='9'
NUM2ECHAR[10]='-'
NUM2ECHAR[11]='+'
NUM2ECHAR[99]=''
NUM2ECHAR[12]='_'
digitPos[1]='+80+192'
digitPos[2]='+148+192'
......@@ -132,7 +133,7 @@ value=""
DPR=$((RANDOM % $NUMBER_OF_DIGITS + 1)) # random dot position (1..$NUMBER_OF_DIGITS)
for (( i=1; i<=$MAX_DIGITS; i++ )); do
if (( $i <= $NUMBER_OF_DIGITS )); then
R=$((RANDOM % 17)) # random digit number (0..16)
R=$((RANDOM % 18)) # random digit number (0..17)
eval DIGIT$i=${digitFile[R]}
value+="${NUM2CHAR[R]}"
if [ $DPR == $i ]; then
......@@ -149,7 +150,7 @@ done
for (( i=1; i<=$MAX_EDIGITS; i++ )); do
if $SHOW_EXP; then
R=$((RANDOM % 12)) # random digit number (0..11)
R=$((RANDOM % 13)) # random digit number (0..12)
eval EDIGIT$i=${edigitFile[R]}
value+="${NUM2ECHAR[R]}"
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment