Blame bin/filter-fontlint

Packit 46375d
#!/bin/sh
Packit 46375d
# Try to filter useless fontlint messages
Packit 46375d
Packit 46375d
awk -F "|" '
Packit 46375d
    NR==4               { result = $0 }
Packit 46375d
    NR>4 && $1 !~ /^  / { result = result "\n" $0 }
Packit 46375d
    NR>4 && $1  ~ /^  / { gsub("^  ", "|",$1)
Packit 46375d
                        result = result $0 }
Packit 46375d
    END { print result }' \
Packit 46375d
  | awk -F "|" '
Packit 46375d
    $1 ~ /Validation/ {
Packit 46375d
      l=2
Packit 46375d
      while (l<=NF) {
Packit 46375d
        print $l
Packit 46375d
        l++
Packit 46375d
      }
Packit 46375d
    }
Packit 46375d
    $1 !~ /Validation/ { print }' \
Packit 46375d
  | awk -F "|" '
Packit 46375d
    NR==1              { result = $0 }
Packit 46375d
    NR>1 && $1 !~ /^ / { result = result "\n" $0 }
Packit 46375d
    NR>1 && $1  ~ /^ / { gsub("^ ", "|",$1)
Packit 46375d
                         result = result $0 }
Packit 46375d
    END { if (result != "") { print result } }' \
Packit 46375d
  | grep -v -e "^The following table(s) in the font have been ignored by FontForge" \
Packit 46375d
            -e "^The glyph named .* is mapped to .*But its name indicates it should be mapped to .*." \
Packit 46375d
            -e "^A glyph uses at least one, but not all, anchor classes in a subtable" \
Packit 46375d
            -e "^This font contains both a .* table and a .* table." \
Packit 46375d
            -e "^Missing Points at Extrema" \
Packit 46375d
            -e "^Self Intersecting Glyph" \
Packit 46375d
            -e "^Wrong Direction"