Skip to content

Commit

Permalink
fix some extractions?
Browse files Browse the repository at this point in the history
  • Loading branch information
flammie committed Sep 6, 2024
1 parent 53dd93a commit 3ca1d11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/extract-used-tags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ sed 's/ [0-9A-Za-z/#_-]* ;//' | # get rid of all contlexes
cut -d':' -f1 | # get rid of the surface side
grep -E '[@+][0-9A-Za-z][0-9A-Za-z@+]' | # Only keep interesting strings
sed 's/@@/@€@/g' | # insert newline placeholder between flag diacritics
sed 's/@+/@€+/g' | # insert newline placeholder between flag and tag
tr '€#"' '\n' | # insert newlines now, for cleaner data for the next steps
sed '/^[^@+]/ s/^[^@+]*//' | # remove non-tag text at beginning of line
sed 's/^\(@[^@]*@\)/\1€/' | # insert newline placeholer after initial flag diacritic
Expand All @@ -24,5 +25,5 @@ sed '/^\+/ s/\+/€+/g' | # if begins with +, insert newlines before
sed '/\+$/ s/\+/\+€/g' | # if ends with +, insert newlines after + (prefix tags)
tr '' '\n' | # insert newlines
grep '[\+@].' | # keep only interesting stuff
sed 's/[-%]*$//'
sed -e 's/[-%]*$//' -e 's/^[-%]*//'
# Get rid of final stuff that is odd

0 comments on commit 3ca1d11

Please sign in to comment.