In the first part of the Galician-Portuguese period (from the 12th to the 14th century), the language was increasingly used for documents and other written forms. For some time, it was the language of preference for lyric poetry in Christian Hispania, much as Occitan was the language of the poetry of the troubadours in France. The Occitan digraphs "lh" and "nh", used in its classical orthography, were adopted by the orthography of Portuguese, presumably by Gerald of Braga, a monk from Moissac, who became bishop of Braga in Portugal in 1047, playing a major role in modernizing written Portuguese using classical Occitan norms. Portugal became an independent kingdom in 1139, under King Afonso I of Portugal. In 1290, King Denis of Portugal created the first Portuguese university in Lisbon (the "Estudos Gerais", which later moved to Coimbra) and decreed for Portuguese, then simply called the "common language", to be known as the Portuguese language and used officially.