of the regional dialects such as Braj or Awadhi." Elites from Muslim communities, as well as a minority of Hindu elites, such as Munshis of Hindu origin, wrote the language in the Perso-Arabic script in courts and government offices, though Hindus continued to employ the Devanagari script in certain literary and religious contexts. Through the late 19th century, people did not view Urdu and Hindi as being two distinct languages, though in urban areas, the standardized Hindustani language was increasingly being referred to as Urdu and written in the Perso-Arabic script. Urdu and English replaced Persian as the official languages in northern parts of India in 1837. In colonial Indian Islamic schools, Muslims were taught Persian and Arabic as the languages of Indo-Islamic civilization; the British, in order to promote literacy among Indian Muslims and attract them to attend government schools, started to teach Urdu written in the Perso-Arabic script in these governmental educational institutions and after this time, Urdu began to be seen by Indian Muslims as a symbol of their religious identity. Hindus in northwestern India, under the Arya Samaj agitated against the sole use of the Perso-Arabic script and argued that the language should be written in the native Devanagari script, which triggered a backlash against the use of Hindi written in Devanagari by the Anjuman-e-Islamia of Lahore. Hindi in the Devanagari script and Urdu written in the Perso-Arabic script established a sectarian divide of "Urdu" for Muslims and "Hindi" for Hindus, a divide that was formalized with the partition of colonial India into the Dominion of India and the Dominion of Pakistan after independence (though there are Hindu poets who continue to write in Urdu, including Gopi Chand Narang and Gulzar). Post-Partition Urdu had been used as a literary medium for colonial Indian writers from the Bombay Presidency, Bengal, Orissa Province, and Tamil Nadu as well. In 1973, Urdu was recognized as the sole national language of Pakistan – although English and regional languages were also granted official recognition. Following the 1979 Soviet Invasion of Afghanistan and subsequent arrival of millions of Afghan refugees who have lived in Pakistan for many decades, many Afghans, including those who moved back to Afghanistan, have also become fluent in Hindi-Urdu, an occurrence aided by exposure to the Indian media, chiefly Hindi-Urdu Bollywood films and songs. There have been attempts to purge Urdu of native Prakrit and Sanskrit words, and