Except x, it is not grammatical. They are just a simple letter in Portuguese. Just highlighting some nasal sounds on the basis of A O sounds like thinking, doesn't it? A It's Barcelona. Just open your mouth a little and pronounce on the basis of e.
You can go to Wanmen University/Ouna Portuguese and other places to learn some pronunciation and grammar rules. Most people get started in crash Portuguese.