of the 18th century and the first half of the 19th century Albanian Pashaliks were established by Kara Mahmud pasha of Scutari, Ali pasha of Yanina, and Ahmet Kurt pasha of Berat, while the Albanian wālī Muhammad Ali established a dynasty that ruled over Egypt and Sudan until the middle of the 20th century, a period in which Albanians formed a substantial community in Egypt. During the 19th century, cultural developments, widely attributed to Albanians having gathered both spiritual and intellectual strength, conclusively led to the Albanian Renaissance. In 1912 during the Balkan Wars, Albanians declared the independence of their country. The demarcation of the new Albanian state was established following the Treaty of Bucharest and left about half of the ethnic Albanian population outside of its borders, partitioned between Greece, Montenegro and Serbia. After the Second World War up until the Revolutions of 1991, Albania was governed by a communist government under Enver Hoxha where Albania became largely isolated from the rest of Europe. In neighbouring Yugoslavia, Albanians underwent periods of discrimination and systematic oppression that concluded with the War of Kosovo and eventually with Kosovar independence. Ethnonym The Albanians () and their country Albania () have been identified by many ethnonyms. The most common native ethnonym is "Shqiptar", plural "Shqiptarë"; the name "Albanians" (Byzantine Greek: Albanoi/Arbanitai/Arbanites; Latin: Albanenses/Arbanenses) was used in medieval documents and gradually entered European Languages from which other similar derivative names emerged, many of which were or still are in use, such as English "Albanians"; Italian "Albanesi"; German "Albaner"; Greek "Arvanites", "Alvanitis" (Αλβανίτης) plural: "Alvanites" (Αλβανίτες), "Alvanos" (Αλβανός) plural: "Alvanoi" (Αλβανοί); Turkish "Arnaut", "Arnavut"; South Slavic languages "Arbanasi" (Арбанаси), "Albanci" (Албанци); Aromanian "Arbinesh" and so on.{{efn|See:<ref name="BardhylDemiraj534">. "The ethnic name shqiptar has always been discussed together with the ethnic complex: (tosk) arbëresh, arbëror, arbër — (gheg) arbënesh, arbënu(e)r, arbën; i.e. [arbën/r(—)]. p.536. Among the neighbouring peoples and elsewhere the denomination of the Albanians is based upon the root arb/alb, cp. Greek Αλβανός, Αρβανός "Albanian", Αρβανίτης "Arbëresh of Greece", Serbian Albanac, Arbanas, Bulg., Mac. албанец, Arom. arbinés (Papahagi 1963 135), Turk. arnaut, Ital. albanese, German Albaner etc. This basis is in use among the Arbëreshs of Italy and Greece as well; cp. arvanit, more rarely arbëror by the arbëreshs of Greece, as against arbëresh, arbëresh, bri(e)sh (beside gjegj — Altimari 1994 (1992) 53 s.). (Italy) (Kr. ?) árbanas, (Mandr.) allbanc, (Ukr.) allbanc(er) (Musliu – Dauti 1996)