There's no such thing as "spelling" in Chinese or Japanese. Just pronunciation. Deciding on how to pronounce the kanji just depends on context. (you can see that a single character has multiple, but similar meanings.) You'll just have to learn this as time goes on.
Chinese characters are...