Exemplo n.º 1
0
    def __init__(
        self,
        dstring_object,
        unknown_char=False,
        base_char=None,
        punctuation=False,
        capital_letter=False,
        cedilla=False,
        stress=0,
    ):
        """
                DCharacterFRO.__init__

                unknown_char                    : bool
                base_char                       : None or a string
                punctuation                     : True, False
                capital_letter                  : True, False

                cedilla                         : False
                stress                          : 1,2,3,4
        """
        DCharacterMotherClass.__init__(
            self, dstring_object=dstring_object, unknown_char=unknown_char, base_char=base_char, punctuation=punctuation
        )

        self.dstring_object = dstring_object
        self.capital_letter = capital_letter
        self.cedilla = cedilla
        self.stress = stress
Exemplo n.º 2
0
    def __init__(self,
                 dstring_object,
                 unknown_char = False,
                 base_char = None,
                 punctuation = False,
                 capital_letter = False,
                 length = None,
                 stress = False,
                 diaeresis = False):
        """
                DCharacterLAT.__init__

                unknown_char                    : bool
                base_char                       : None or a string
                punctuation                     : True, False
                capital_letter                  : True, False

                length                          : None or a string ("short", "long")
                stress                          : bool
                diaeresis                       : bool
        """
        DCharacterMotherClass.__init__(self,
                                       dstring_object = dstring_object,
                                       unknown_char = unknown_char,
                                       base_char = base_char,
                                       punctuation = punctuation)

        self.dstring_object = dstring_object
        self.capital_letter = capital_letter
        self.length = length
        self.stress = stress
        self.diaeresis = diaeresis
Exemplo n.º 3
0
    def __init__(self,
                 dstring_object,
                 unknown_char = False,
                 base_char = None,
                 punctuation = False,
                 capital_letter = False,
                 makron = False,
                 stress = 0,
                 upperdot = False):
        """
                DCharacterANG.__init__

                unknown_char                    : bool
                base_char                       : None or a string
                punctuation                     : True, False
                capital_letter                  : True, False

                makron                          : bool
                stress                          : -1 (stress not taken in account) 0 (no stress),
                                                  1 (half-stressed) or 2
                upperdot                        : bool
        """
        DCharacterMotherClass.__init__(self,
                                       dstring_object = dstring_object,
                                       unknown_char = unknown_char,
                                       base_char = base_char,
                                       punctuation = punctuation)

        self.dstring_object = dstring_object
        self.capital_letter = capital_letter
        self.makron = makron
        self.stress = stress
        self.upperdot = upperdot
Exemplo n.º 4
0
    def __init__(
        self,
        dstring_object,
        unknown_char=False,
        base_char=None,
        punctuation=False,
        accent=None,
        nukta=False,
        anusvara_candrabindu=None,
        virama=False,
        anudatta=False,
        is_an_independent_vowel=False,
        dependentvowel=None,
    ):
        """
                DCharacterSAN.__init__

                .. code-block:: none

                    unknown_char                    : bool
                    base_char                       : None or a string with the NAME of the
                                                      character not the character itself.
                    accent                          : None or a string
                                                      ("DEVANAGARI STRESS SIGN UDATTA",
                                                       "DEVANAGARI GRAVE ACCENT"
                                                       "DEVANAGARI ACUTE ACCENT"
                                                      )
                                                      but not "DEVANAGARI STRESS SIGN ANUDATTA",
                                                      see anudatta below.
                    punctuation                     : bool
                    nukta                           : bool
                    anusvara_candrabindu            : None, or a string
                                                      ("DEVANAGARI SIGN ANUSVARA",
                                                       "DEVANAGARI SIGN INVERTED CANDRABINDU",
                                                       'DEVANAGARI SIGN CANDRABINDU'
                                                      )
                    virama                          : bool
                    anudatta                        : bool
                    is_an_independent_vowel         : bool
                    dependentvowel                  : None, or a string
                                                      see symbol.SYMB_DEPENDENT_VOWELS
         """

        DCharacterMotherClass.__init__(
            self, dstring_object=dstring_object, unknown_char=unknown_char, base_char=base_char, punctuation=punctuation
        )

        self.dstring_object = dstring_object
        self.accent = accent
        self.nukta = nukta
        self.anusvara_candrabindu = anusvara_candrabindu
        self.virama = virama
        self.anudatta = anudatta
        self.is_an_independent_vowel = is_an_independent_vowel
        self.dependentvowel = dependentvowel
Exemplo n.º 5
0
    def __init__(self,
                 dstring_object,
                 unknown_char = False,
                 base_char = None,
                 punctuation = False,
                 contextual_form = None,
                 shin_sin_dot = None,
                 daghesh_mapiq = False,
                 methegh = False,
                 specialpoint = None,
                 vowel = None,
                 raphe = False,
                 cantillation_mark = None):
        """
                DCharacterHBO.__init__

                .. code-block:: none

                    unknown_char                    : bool
                    base_char                       : None or a string
                                                      E.g : "צ", not "TSADI" or "ץ" (final tsadi)
                    contextual_form                 : None or a string
                                                      ("initial+medium+final", "final")
                    punctuation                     : True, False
                    shin_sin_dot                    : None or a string
                                                      ("HEBREW POINT SHIN DOT",
                                                       "HEBREW POINT SIN DOT")
                    daghesh_mapiq                   : bool
                    methegh                         : bool
                    specialpoint                   : None or a string
                                                      ("HEBREW MARK UPPER DOT",
                                                       "HEBREW MARK LOWER DOT")
                    vowel                           : None or string
                                                      see symbols.py::SYMB_VOWELS
                    raphe                           : bool
                    cantillation_mark               : None or a list of strings
                                                      see symbols.py::SYMB_CANTILLATION_MARKS
        """

        DCharacterMotherClass.__init__(self,
                                       dstring_object = dstring_object,
                                       unknown_char = unknown_char,
                                       base_char = base_char,
                                       punctuation = punctuation)

        self.contextual_form = contextual_form
        self.shin_sin_dot = shin_sin_dot
        self.daghesh_mapiq = daghesh_mapiq
        self.methegh = methegh
        self.specialpoint = specialpoint
        self.vowel = vowel
        self.raphe = raphe
        self.cantillation_mark = cantillation_mark
Exemplo n.º 6
0
    def __init__(self,
                 dstring_object,
                 unknown_char = False,
                 base_char = None,
                 contextual_form = None,
                 punctuation = False,
                 capital_letter = False,
                 tonos = None,
                 pneuma = None,
                 hypogegrammene = False,
                 dialutika = False,
                 mekos=None):
        """
                DCharacterGRC.__init__

                .. code-block:: none

                    unknown_char                    : bool
                    base_char                       : None or a string
                    contextual_form                 : None or a string
                                                      ("initial+medium+final"+"initial",
                                                       "initial+medium", "final", "medium+final")
                    punctuation                     : True, False
                    capital_letter                  : True, False

                    mekos(μῆκος)                    : None, "βραχύ", "μακρόν"
                    tonos(τόνος)                    : None, "ὀξεῖα", "βαρεῖα", "περισπωμένη"
                    pneuma(πνεῦμα)                  : None, "ψιλὸν", "δασὺ"
                    hypogegrammene(ὑπογεγραμμένη)   : True, False
                    dialutika(διαλυτικά)            : True, False
        """
        DCharacterMotherClass.__init__(self,
                                       dstring_object = dstring_object,
                                       unknown_char = unknown_char,
                                       base_char = base_char,
                                       punctuation = punctuation)

        self.dstring_object = dstring_object
        self.contextual_form = contextual_form
        self.capital_letter = capital_letter
        self.tonos = tonos
        self.pneuma = pneuma
        self.hypogegrammene = hypogegrammene
        self.dialutika = dialutika
        self.mekos = mekos
Exemplo n.º 7
0
    def __init__(self,
                 dstring_object,
                 unknown_char = False,
                 base_char = None,
                 subj_consonants = None,
                 punctuation = False,
                 rnam_bcad = False,
                 halanta = False,
                 anusvara_candrabindu = None,
                 vowel1 = None,
                 vowel2 = None):
        """
                DCharacterBOD.__init__

                .. code-block:: none

                    unknown_char                    : bool
                    base_char                       : None or a string with the NAME of the
                                                      character, not the character itself.
                    subj_consonants                 : None or a list of the NAME of the characters,
                                                      not the characters themselves.
                    rnam_bcad                       : bool
                    punctuation                     : bool
                    halanta                         : bool
                    anusvara_candrabindu            : None, or a string
                                                      see symbol.SYMB_DIACRITICS__ANUSV_CANDR
                    vowel1                          : None, or a string
                    vowel2                            see symbol.SYMB_VOWELS
         """

        DCharacterMotherClass.__init__(self,
                                       dstring_object = None,
                                       unknown_char = unknown_char,
                                       base_char = base_char,
                                       punctuation = punctuation)

        self.subj_consonants = subj_consonants
        self.rnam_bcad = rnam_bcad
        self.halanta = halanta
        self.anusvara_candrabindu = anusvara_candrabindu
        self.vowel1 = vowel1
        self.vowel2 = vowel2

        self.dstring_object = dstring_object
Exemplo n.º 8
0
    def __init__(self,
                 dstring_object,
                 unknown_char = False,
                 base_char = None,
                 chartype = None,
                 punctuation = False,
                 diacritic = None,
                 smallsize = False):
        """
                DCharacterJPN.__init__

                .. code-block:: none

                    unknown_char        : bool
                    base_char           : None or a string
                                            o "あ", "い", ... (one hiragana, NOT A KATAKANA)

                                            o "東", "名" (one kanji)

                    chartype            : None (=unknown character) or a string
                                            "hiragana" / "katakana" / "kanji" / "choonpu" / "other"

                                              about "ー" (the chōonpu 長音符 symbol)
                                              confer http://en.wikipedia.org/wiki/Ch%C5%8Donpu

                    punctuation         : bool
                    diacritic           : None / "dakuten" / "handakuten"
                    smallsize           : bool
        """
        DCharacterMotherClass.__init__(self,
                                       dstring_object = dstring_object,
                                       unknown_char = unknown_char,
                                       base_char = base_char,
                                       punctuation = punctuation)

        self.dstring_object = dstring_object
        self.chartype = chartype
        self.diacritic = diacritic
        self.smallsize = smallsize