Rules and structure of Arabic calligraphy