The name ''Sofia'' comes from the Saint Sofia Church, as opposed to the prevailing Slavic origin of Bulgarian cities and towns. The origin is in the Greek word ''sophia'' (σοφία) "wisdom". The earliest works where this latest name is registered are the duplicate of the Gospel of Serdica, in a dialogue between two salesmen from Dubrovnik around 1359, in the 14th-century Vitosha Charter of Bulgarian tsar Ivan Shishman and in a Ragusan merchant's notes of 1376. In these documents the city is called ''Sofia'', but at the same time the region and the city's inhabitants are still called ''Sredecheski'' (срѣдечьскои, "of Sredets"), which continued until the 20th century. The Ottomans came to favour the name ''Sofya'' (صوفيه). In 1879 there was a dispute about what the name of the new Bulgarian capital should be, when the citizens created a committee of famous people, insisting for the Slavic name. Gradually, a compromise arose, officialisation of ''Sofia'' for the nationwide institutions, while legitimating the title ''Sredets'' for the administrative and church institutions, before the latter was abandoned through the years.