core of the development of the historical Slovenian lands, the Carniola, the Styria and the western Goriška/Gorizia. The consolidation and formation of the historical Slovenian lands took place in a long period between 11th and 14th century being led by a number of important feudal families such as the Dukes of Spanheim, the Counts of Gorizia, the Counts of Celje and finally the House of Habsburg. Slovenes as a distinct ethnic group The first mentions of a common Slovene ethnic identity, transcending regional boundaries, date from the 16th century. During the 14th century, most of the Slovene Lands passed under the Habsburg rule. In the 15th century, the Habsburg domination was challenged by the Counts of Celje, but by the end of the century the great majority of Slovene-inhabited territories were incorporated into the Habsburg monarchy. Most Slovenes lived in the administrative region known as Inner Austria, forming the majority of the population of the Duchy of Carniola and the County of Gorizia and Gradisca, as well as of Lower Styria and southern Carinthia. Slovenes also inhabited most of the territory of the Imperial Free City of Trieste, although representing the minority of its population. Early modern period In the 16th century, the Protestant Reformation spread throughout the Slovene Lands. During this period, the first books in Slovene were written by the Protestant preacher Primož Trubar and his followers, establishing the base for the development of standard Slovene. In the second half of the 16th century, numerous books were printed in Slovene, including an integral translation of the Bible by Jurij Dalmatin. During the Counter-Reformation in the late 16th and 17th centuries, led by the bishop of Ljubljana Thomas Chrön and Seckau Martin Brenner, almost all Protestants were expelled from the Slovene Lands (with the exception of Prekmurje). Nevertheless, they left a strong legacy in the tradition of Slovene culture, which was partially incorporated in the Catholic Counter-Reformation in the 17th century. The old Slovene orthography, also known as Bohorič's alphabet, which was developed by the Protestants in the 16th century and remained in use until the mid-19th century, testified to the unbroken tradition of Slovene culture as established in the years of the Protestant Reformation. Between the 15th and the 17th centuries, the Slovene Lands suffered many calamities. Many areas, especially in southern Slovenia, were devastated by the Ottoman–Habsburg wars. Many flourishing towns, like Vipavski Križ and Kostanjevica na