My two cents.
you base your pronounciation on the letter and not to the word to which the letter is referring to
The letter G is pronounded soft
Gerrymandering in Gary, Indiana…