예제 #1
0
	def get_phone( self, ArtMan1_=ArticulationManner1st.Min_, 
	               ArtMan2_ = ArticulationManner2nd.Min_,
	               ArtMan3_ = ArticulationManner3rd.Min_,
	               ArtTyp_ = ArticulationType.Min_,
	               ArtPlc_ = ArticulationPlace.Min_,
	               CoArtPlc_ = ArticulationPlace.Min_,
	               Voice_ = Voicing.Min_ ):
		pass
		
		
###################################################################################
#
# Version Information Control & UnExported [but Versioned] Object Instantiation
#

__versions = Version_Registry(Consonants())

def register( version, functor ):
    if isinstance( version, Consonants ):
        return __versions.register( version, functor )
    else:
        raise TypeError()

def get_version(major=0, minor=0, patch=0, version=None):
    return __versions.get( major, minor, patch, version )

def gen_version( major=0, minor=0, patch=0, version=None ):
    return __versions.gen( major, minor, patch, version )

def get_all_versions():
    return list(__versions)
예제 #2
0
        return self.__nucleus_mat

    def get_coda(self):
        ''' Closed Syllables *have* Codas. '''
        return self.__coda

    def get_coda_matcher(self):
        return self.__coda_mat


###################################################################################
#
#   Version Information Control & UnExported [but Versioned] Object Instantiation
#

__versions = Version_Registry(Closed())


def register(version, functor):
    if isinstance(version, Closed):
        return __versions.register(version, functor)
    else:
        raise TypeError()


def get_version(major=0, minor=0, patch=0, version=None):
    return __versions.get(major, minor, patch, version)


def gen_version(major=0, minor=0, patch=0, version=None, **kw):
    return __versions.gen(major, minor, patch, version, kw)
예제 #3
0
        ''' Open Syllables do not have Codas so,
            return an empty list.'''
        return list()

    def get_coda_matcher(self):
        ''' Open Syllables do not have Codas so,
            return None.'''
        return None


###################################################################################
#
#   Version Information Control & UnExported [but Versioned] Object Instantiation
#

__versions = Version_Registry(Open())


def register(version, functor):
    if isinstance(version, Open):
        return __versions.register(version, functor)
    else:
        raise TypeError()


def get_version(major=0, minor=0, patch=0, version=None):
    return __versions.get(major, minor, patch, version)


def gen_version(major=0, minor=0, patch=0, version=None, **kw):
    return __versions.gen(major, minor, patch, version, kw)
예제 #4
0
class Nucleus(abc):
    def __init__(self, min_length=0, max_length=0, 
                 major=0, minor=0, patch=0, version=None):
        super().__init__(min_length, max_length, 
                         major, minor, patch, version)
        pass
    
    
    
################################################################################
#
# Version Information Control & UnExported [but Versioned] Object Instantiation
#
#

__versions = Version_Registry( Nucleus() )

def register( version, functor ):
    if isinstance( version, Nucleus ):
        return __versions.register( version, functor )
    else:
        raise TypeError()

def get_version(major=0, minor=0, patch=0, version=None):
    return __versions.get( major, minor, patch, version )

def gen_version( major=0, minor=0, patch=0, version=None ):
    return __versions.gen( major, minor, patch, version )

def get_all_versions():
    return list(__versions)
예제 #5
0
                 major=0,
                 minor=0,
                 patch=0,
                 version=None):
        super().__init__(min_length, max_length, major, minor, patch, version)

    pass


################################################################################
#
# Version Information Control & UnExported [but Versioned] Object Instantiation
#
#

__versions = Version_Registry(Onsets())


def register(version, functor):
    if isinstance(version, Onsets):
        return __versions.register(version, functor)
    else:
        raise TypeError()


def get_version(major=0, minor=0, patch=0, version=None):
    return __versions.get(major, minor, patch, version)


def gen_version(major=0, minor=0, patch=0, version=None):
    return __versions.gen(major, minor, patch, version)
예제 #6
0
class Codas(abc):
    def __init__(self, major=0, minor=0, patch=0,
                 min_length=0, max_length=0, version=None):
        super().__init__(self, major, minor, patch,
                         min_length, max_length, version)
        pass
    
    
    
################################################################################
#
# Version Information Control & UnExported [but Versioned] Object Instantiation
#
#

__versions = Version_Registry( Codas() )

def register( version, functor ):
    if isinstance( version, Codas ):
        return __versions.register( version, functor )
    else:
        raise TypeError()

def get_version(major=0, minor=0, patch=0, version=None):
    return __versions.get( major, minor, patch, version )

def gen_version( major=0, minor=0, patch=0, version=None ):
    return __versions.gen( major, minor, patch, version )

###################################################################################
#
예제 #7
0
                 max_length=0,
                 major=0,
                 minor=0,
                 patch=0,
                 version=None):
        super().__init__(min_length, max_length, major, minor, patch, version)
        pass


################################################################################
#
# Version Information Control & UnExported [but Versioned] Object Instantiation
#
#

__versions = Version_Registry(Codas())


def register(version, functor):
    if isinstance(version, Codas):
        return __versions.register(version, functor)
    else:
        raise TypeError()


def get_version(major=0, minor=0, patch=0, version=None):
    return __versions.get(major, minor, patch, version)


def gen_version(major=0, minor=0, patch=0, version=None):
    return __versions.gen(major, minor, patch, version)
예제 #8
0
        Rounded_ = 1
        Max_ = 1

    class Nasality(int, Enum):
        Min_ = 0
        Non_Nasal_ = 0
        Nasal_ = 1
        Max_ = 1

    
###################################################################################
#
#   Version Information Control & UnExported [but Versioned] Object Instantiation
#

__versions = Version_Registry(Vowels())

def register( version, functor ):
    if isinstance( version, Vowels ):
        return __versions.register( version, functor )
    else:
        raise TypeError()

def get_version(major=0, minor=0, patch=0, version=None):
    return __versions.get( major, minor, patch, version )

def gen_version( major=0, minor=0, patch=0, version=None ):
    return __versions.gen( major, minor, patch, version )

def get_all_versions():
    return list(__versions)