the distinction between open-mid and close-mid vowels occurred only in closed syllables. Standard Italian more or less maintains this. In French, /e/ and merged by the twelfth century or so, and the distinction between and was eliminated without merging by the sound changes , . Generally this led to a situation where both and occur allophonically, with the close-mid vowels in open syllables and the open-mid vowels in closed syllables. In French, both and were partly rephonemicized: Both and occur in open syllables as a result of , and both and occur in closed syllables as a result of . Old French also had numerous falling diphthongs resulting from diphthongization before palatal consonants or from a fronted /j/ originally following palatal consonants in Proto-Romance or later: e.g. pācem /patsʲe/ "peace" > PWR */padzʲe/ (lenition) > OF paiz /pajts/; *punctum "point" > Gallo-Romance */ponʲto/ > */pojɲto/ (fronting) > OF point /põjnt/. During the Old French period, preconsonantal /l/ [ɫ] vocalized to /w/, producing many new falling diphthongs: e.g. dulcem "sweet" > PWR */doltsʲe/ > OF dolz /duɫts/ > douz /duts/; fallet "fails, is deficient" > OF falt > faut "is needed"; bellus "beautiful" > OF bels > beaus . By the end of the Middle French period, all falling diphthongs either monophthongized or switched to rising diphthongs: proto-OF > early OF > modern spelling > mod. French . Nasalization In both French and Portuguese, nasal vowels eventually developed from sequences of a vowel followed by a nasal consonant (/m/ or /n/). Originally, all vowels in both languages were nasalized before any nasal consonants, and nasal consonants not immediately followed by a vowel were eventually dropped. In French, nasal vowels before remaining nasal consonants were subsequently denasalized, but not before causing the vowels to lower somewhat, e.g. dōnat "he gives" > OF dune > donne , fēminam > femme . Other vowels remained nasalized, and were dramatically lowered: fīnem "end" > fin (often pronounced ); linguam "tongue" > langue ; ūnum "one" > un . In Portuguese, /n/ between vowels was dropped, and the resulting hiatus eliminated through vowel contraction of various sorts, often producing diphthongs: manum, *manōs > PWR *manu, ˈmanos "hand(s)" > mão, mãos ; canem, canēs "dog(s)" > PWR *kane, ˈkanes > *can, ˈcanes > cão, cães ; ratiōnem, ratiōnēs "reason(s)" > PWR *raˈdʲzʲone, raˈdʲzʲones > *raˈdzon, raˈdzones > razão, razões (Brazil), (Portugal). Sometimes the nasalization was eliminated: lūna