Ejemplo n.º 1
0
    def phonetic_u_umlaut(sound: Vowel):
        """
        >>> umlaut_a = OldNorsePhonology.phonetic_u_umlaut(a)
        >>> umlaut_a.ipar
        'ø'

        :param sound:
        :return:
        """
        if sound.is_equal(a):
            return oee  # or oe
        elif sound.is_equal(a.lengthen()):
            return a.lengthen()
        elif sound.is_equal(o):
            return u
        else:
            return sound
Ejemplo n.º 2
0
    def phonetic_i_umlaut(sound: Vowel):
        """
        >>> umlaut_a = OldNorsePhonology.phonetic_i_umlaut(a)
        >>> umlaut_a.ipar
        'ɛ'

        >>> umlaut_au = OldNorsePhonology.phonetic_i_umlaut(DIPHTHONGS_IPA_class["au"])
        >>> umlaut_au.ipar
        'ɐy'

        :param sound:
        :return:
        """
        if sound.is_equal(a):
            return ee
        elif sound.is_equal(a.lengthen()):
            return ee.lengthen()
        elif sound.is_equal(o):
            return oee
        elif sound.is_equal(o.lengthen()):
            return oee.lengthen()
        elif sound.is_equal(u):
            return y
        elif sound.is_equal(u.lengthen()):
            return y.lengthen()
        if sound.is_equal(DIPHTHONGS_IPA_class["au"]):
            return DIPHTHONGS_IPA_class["ey"]
Ejemplo n.º 3
0
    def phonetic_i_umlaut(sound: Vowel) -> Vowel:
        """
        >>> umlaut_a = OldNorsePhonology.phonetic_i_umlaut(a)
        >>> umlaut_a.ipar
        'ɛ'

        >>> umlaut_au = OldNorsePhonology.phonetic_i_umlaut(DIPHTHONGS_IPA_class["au"])
        >>> umlaut_au.ipar
        'ɐy'

        :param sound:
        :return:
        """
        if sound.is_equal(a):
            return ee
        elif sound.is_equal(a.lengthen()):
            return ee.lengthen()
        elif sound.is_equal(o):
            return oee
        elif sound.is_equal(o.lengthen()):
            return oee.lengthen()
        elif sound.is_equal(u):
            return y
        elif sound.is_equal(u.lengthen()):
            return y.lengthen()
        if sound.is_equal(DIPHTHONGS_IPA_class["au"]):
            return DIPHTHONGS_IPA_class["ey"]
Ejemplo n.º 4
0
    def phonetic_u_umlaut(sound: Vowel) -> Vowel:
        """
        >>> umlaut_a = OldNorsePhonology.phonetic_u_umlaut(a)
        >>> umlaut_a.ipar
        'ø'

        >>> umlaut_o = OldNorsePhonology.phonetic_u_umlaut(o)
        >>> umlaut_o.ipar
        'u'

        >>> umlaut_e = OldNorsePhonology.phonetic_u_umlaut(e)
        >>> umlaut_e.ipar
        'e'


        :param sound: instance of Vowel
        :return:
        """
        if sound.is_equal(a):
            return oee  # or oe
        elif sound.is_equal(o):
            return u
        else:
            return sound
Ejemplo n.º 5
0
    def phonetic_u_umlaut(sound: Vowel) -> Vowel:
        """
        >>> umlaut_a = OldNorsePhonology.phonetic_u_umlaut(a)
        >>> umlaut_a.ipar
        'ø'

        >>> umlaut_o = OldNorsePhonology.phonetic_u_umlaut(o)
        >>> umlaut_o.ipar
        'u'

        >>> umlaut_e = OldNorsePhonology.phonetic_u_umlaut(e)
        >>> umlaut_e.ipar
        'e'


        :param sound: instance of Vowel
        :return:
        """
        if sound.is_equal(a):
            return oee  # or oe
        elif sound.is_equal(o):
            return u
        else:
            return sound
Ejemplo n.º 6
0
        """
        >>> OldNorsePhonology.orthographic_u_umlaut("a")
        'ö'
        >>> OldNorsePhonology.orthographic_u_umlaut("e")
        'e'

        :param sound:
        :return:
        """
        if sound in OldNorsePhonology.U_UMLAUT:
            return OldNorsePhonology.U_UMLAUT[sound]
        else:
            return sound


a = Vowel(Height.open, Backness.front, False, Length.short, "a")
ee = Vowel(Height.open_mid, Backness.front, False, Length.short, "ɛ")
e = Vowel(Height.close_mid, Backness.front, False, Length.short, "e")
oee = Vowel(Height.close_mid, Backness.front, True, Length.short, "ø")
oe = Vowel(Height.open_mid, Backness.front, True, Length.short, "œ")
i = Vowel(Height.close, Backness.front, False, Length.short, "i")
y = Vowel(Height.close, Backness.front, True, Length.short, "y")
ao = Vowel(Height.open, Backness.back, True, Length.short, "ɒ")
oo = Vowel(Height.open_mid, Backness.back, True, Length.short, "ɔ")
o = Vowel(Height.close_mid, Backness.back, True, Length.short, "o")
u = Vowel(Height.close, Backness.back, True, Length.short, "u")

b = Consonant(Place.bilabial, Manner.stop, True, "b", False)
d = Consonant(Place.alveolar, Manner.stop, True, "d", False)
f = Consonant(Place.labio_dental, Manner.fricative, False, "f", False)
g = Consonant(Place.velar, Manner.stop, True, "g", False)
Ejemplo n.º 7
0
        """
        >>> OldNorsePhonology.orthographic_u_umlaut("a")
        'ö'
        >>> OldNorsePhonology.orthographic_u_umlaut("e")
        'e'

        :param sound:
        :return:
        """
        if sound in OldNorsePhonology.U_UMLAUT:
            return OldNorsePhonology.U_UMLAUT[sound]
        else:
            return sound


a = Vowel(Height.open, Backness.front, False, Length.short, "a")
ee = Vowel(Height.open_mid, Backness.front, False, Length.short, "ɛ")
e = Vowel(Height.close_mid, Backness.front, False, Length.short, "e")
oee = Vowel(Height.close_mid, Backness.front, True, Length.short, "ø")
oe = Vowel(Height.open_mid, Backness.front, True, Length.short, "œ")
i = Vowel(Height.close, Backness.front, False, Length.short, "i")
y = Vowel(Height.close, Backness.front, True, Length.short, "y")
ao = Vowel(Height.open, Backness.back, True, Length.short, "ɒ")
oo = Vowel(Height.open_mid, Backness.back, True, Length.short, "ɔ")
o = Vowel(Height.close_mid, Backness.back, True, Length.short, "o")
u = Vowel(Height.close, Backness.back, True, Length.short, "u")

b = Consonant(Place.bilabial, Manner.stop, True, "b", False)
d = Consonant(Place.alveolar, Manner.stop, True, "d", False)
f = Consonant(Place.labio_dental, Manner.fricative, False, "f", False)
g = Consonant(Place.velar, Manner.stop, True, "g", False)