massively reduced unnecessary html in fields

This commit is contained in:
Alexander Bocken 2020-09-21 22:21:02 +02:00
parent bd07776710
commit fddb390d49
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8
5 changed files with 838 additions and 838 deletions

BIN
AVL.apkg

Binary file not shown.

592
deck.json

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -63,7 +63,7 @@ handle_cleaned_html(){
#echo "$line" #echo "$line"
echo "$line" | grep "<P> <U> " | perl -pe "s|<P> <U> (.*?) </U>(.*?)$|<P> <U> \1 </U> </P>|" >> categoriestmp echo "$line" | grep "<P> <U> " | perl -pe "s|<P> <U> (.*?) </U>(.*?)$|<P> <U> \1 </U> </P>|" >> categoriestmp
done <<< $(echo "$meaning_clean") done <<< $(echo "$meaning_clean")
backside="$( echo "$meaning_clean_func" | tr '\n' ' ')" backside="$( echo "$meaning_clean_func" | grep "<P> <U> " | grep -vF '<DIV class="item"><P class="word"><B>'| tr '\n' ' ')"
#cat categoriestmp #cat categoriestmp
categories="$(cat categoriestmp | tr '\n' ' ' )" categories="$(cat categoriestmp | tr '\n' ' ' )"
printf "%s;\"%s\";\"%s\";\"%s\";\"%s\";\"%s\"\n" "$no_func" "$word_func" "$meaning" "$categories" "$backside" "$pof_func" >> cards.csv printf "%s;\"%s\";\"%s\";\"%s\";\"%s\";\"%s\"\n" "$no_func" "$word_func" "$meaning" "$categories" "$backside" "$pof_func" >> cards.csv