After aligning each non‐terminal to its segment of the target and inserting only what’s needed:

Updated production rules:
rule_6:  A2 -> A14 A12 12 8
rule_37: A19 -> 17 16 A4 A20 15 14
rule_45: A25 -> 20 9 1
rule_60: A34 -> 22 1 1 6 5 7 3 1 4 19 1 18 1 21
rule_96: A49 -> A21 11 27 A50 26
rule_99: A52 -> A53 24 25 10