Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Translating expressions to cyrillic
Message
De
26/03/2006 00:22:45
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
25/03/2006 16:57:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01107696
Message ID:
01107749
Vues:
27
>I have made a function that do translation from Serbian Latin to Serbian Cyrillic, but I have problems with some letters that are specific to Serbian language.

Now it's impossible to make the characters show properly here, but... they might, if I omit the < pre > tags:

lparameters cLat
cCyr=strtran(cLat, "NJ","Њ")
cCyr=strtran(cCyr, "LJ","Љ")
cCyr=strtran(cCyr, "DŽ","Џ")
cCyr=strtran(cCyr, "nj","Њ")
cCyr=strtran(cCyr, "lj","Љ")
cCyr=strtran(cCyr, "dž","Џ")
cCyr=strtran(cCyr, "Nj","њ")
cCyr=strtran(cCyr, "Lj","љ")
cCyr=strtran(cCyr, "Dž","џ")
ccyr=chrtran(cCyr, "abvgdđežzijklmnoprstćufhcčš","абвгдђежзијклмнопрстћуфхцчш")
return cCyr

Note that you can't translate "dj" as if it was a "đ", because these words will have an error (there's no such word as "ođahati"):

nadjačati
nenadjebiv
odjaukati
odjahati
odjava
odjaviti
odjebati
odjedanput
odjedared
odjednom
odjedriti
odjek
odjekivati
odjeknuti
odjezditi
odjuriti
odjutros
podjarmiti
podjebavati
podjednako
predjelo


and also the dialect differences would vanish in some places - if you transcribe "djeca" as "đeca", it turns from any ijekavian to jekavian, i.e. from any mid-Serbian, Bosnian and/or Croatian into Montenegrin.

El jasno?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform