#! /bin/bash -e
# Last edited on 2023-09-16 10:33:41 by stolfi

# Applies the implied shifts to the coordinates in "glyphs/raw/{sg}.raw"
# writes the result to "glyphs/raw/out/{sg}.okys" and 
# analyzes those coordinates for consistency.

sg="$1"; shift

echo "=== ${sg} ==="

adjust_sign_feature_coords.gawk -v sg=${sg} \
  < glyphs/raw/${sg}.raw \
  | cat -s \
  > glyphs/raw/out/${sg}.okys
analyze_glyph_feature_points.sh ${sg} \
  < glyphs/raw/out/${sg}.okys
