The rules of Tanvin