Beispiel #1
0
def up_lo_kontrol2():
    up = "ÇĞIİÖŞÜ"
    lo = "çğıiöşü"

    s = kucukharf(up)
    if kucukharf(up) != lo:
        print("kucukharf(up) != lo")
        print("kucukharf({}) != {}".format(up, s))
    else:
        print("kucukharf({}) = {}".format(up, s))

    s = buyukharf(lo)
    if buyukharf(lo) != up:
        print("buyukharf(lo) != up")
        print("buyukharf({}) != {}".format(lo, s))
        for i in range(len(s)):
            print("({} - {}) ".format(s[i], hex(ord(s[i]))))
    else:
        print("buyukharf({}) = {}".format(lo, s))
Beispiel #2
0
def up_lo_kontrol2():
    up = "ÇĞIİÖŞÜ"
    lo = "çğıiöşü"

    s = kucukharf(up)
    if kucukharf(up) != lo:
        print("kucukharf(up) != lo")
        print("kucukharf({}) != {}".format(up, s))
    else:
        print("kucukharf({}) = {}".format(up, s))

    s = buyukharf(lo)
    if buyukharf(lo) != up:
        print("buyukharf(lo) != up")
        print("buyukharf({}) != {}".format(lo, s))
        for i in range(len(s)):
            print("({} - {}) ".format(s[i], hex(ord(s[i]))))
    else:
        print("buyukharf({}) = {}".format(lo, s))
Beispiel #3
0
        print("kucukharf({}) != {}".format(up, s))
    else:
        print("kucukharf({}) = {}".format(up, s))

    s = buyukharf(lo)
    if buyukharf(lo) != up:
        print("buyukharf(lo) != up")
        print("buyukharf({}) != {}".format(lo, s))
        for i in range(len(s)):
            print("({} - {}) ".format(s[i], hex(ord(s[i]))))
    else:
        print("buyukharf({}) = {}".format(lo, s))


if __name__ == "__main__":
    s = kucukharf("Bir varmis bir yokmus bu köse yaz kösesi bu köse kis kösesi ortasinda su sisesi")
    print(s)
    print(duzelt(s))

    """
    say = 0
    fout =open("veri/ekler.txt","w",encoding="utf-8")
    fcok =open("veri/coklar.txt","w",encoding="utf-8")
    fyok =open("veri/yoklar.txt","w",encoding="utf-8")
    ftek =open("veri/tekler.txt","w",encoding="utf-8")
    t0 = time.perf_counter()
    for soz in dertop:
        adaylar = []        #kök adayları buraya depolanacak
        s=soz
        if s in lstKokler:
            adaylar.append(s)
Beispiel #4
0
    else:
        print("kucukharf({}) = {}".format(up, s))

    s = buyukharf(lo)
    if buyukharf(lo) != up:
        print("buyukharf(lo) != up")
        print("buyukharf({}) != {}".format(lo, s))
        for i in range(len(s)):
            print("({} - {}) ".format(s[i], hex(ord(s[i]))))
    else:
        print("buyukharf({}) = {}".format(lo, s))


if __name__ == "__main__":
    s = kucukharf(
        'Bir varmis bir yokmus bu köse yaz kösesi bu köse kis kösesi ortasinda su sisesi'
    )
    print(s)
    print(duzelt(s))
    """
    say = 0
    fout =open("veri/ekler.txt","w",encoding="utf-8")
    fcok =open("veri/coklar.txt","w",encoding="utf-8")
    fyok =open("veri/yoklar.txt","w",encoding="utf-8")
    ftek =open("veri/tekler.txt","w",encoding="utf-8")
    t0 = time.perf_counter()
    for soz in dertop:
        adaylar = []        #kök adayları buraya depolanacak
        s=soz
        if s in lstKokler:
            adaylar.append(s)