Beispiel #1
0
        private static BanglaBornoResultSet isByanjon1(char romok, char romok_1)
        {
            BanglaBornoResultSet byanjonborno
                = new BanglaBornoResultSet(isBorgiio(romok, romok_1));
            if (byanjonborno.Num > 0)
                return byanjonborno;
            else
            {
                if (romok == 'n')
                {
                    if (romok_1 == '~')
                        return byanjonborno.SetVal(2, BanglaBorno.Byanzon.uno);
                    else if (romok_1 == '_')
                        return byanjonborno.SetVal(2, BanglaBorno.Byanzon._chondrobindu);
                    else
                        return byanjonborno.SetVal(1, BanglaBorno.Byanzon.n);
                }
                else if (romok == 'm')
                {
                    if (romok_1 == '~')
                        return byanjonborno.SetVal(2, BanglaBorno.Byanzon.nio);
                    else
                        return byanjonborno.SetVal(1, BanglaBorno.Byanzon.m);
                }
                else if (romok == 'j')
                    return byanjonborno.SetVal(1, BanglaBorno.Byanzon.j);
                else if (romok == 'r')
                    return byanjonborno.SetVal(1, BanglaBorno.Byanzon.r);
                else if (romok == 'l')
                    return byanjonborno.SetVal(1, BanglaBorno.Byanzon.l);
                else if (romok == 's')
                {
                    if (romok_1 == 'h')
                        return byanjonborno.SetVal(2, BanglaBorno.Byanzon.sh);
                    else if (romok_1 == 's')
                        return byanjonborno.SetVal(2, BanglaBorno.Byanzon.ss);
                    else
                        return byanjonborno.SetVal(1, BanglaBorno.Byanzon.s);
                }
                else if (romok == 'h')
                    return byanjonborno.SetVal(1, BanglaBorno.Byanzon.h);
                else if (romok == 'R')
                {
                    if (romok_1 == 'h')
                        return byanjonborno.SetVal(2, BanglaBorno.Byanzon.Rh);
                    else
                        return byanjonborno.SetVal(1, BanglaBorno.Byanzon.R);
                }
                else if (romok == 'y')
                    return byanjonborno.SetVal(1, BanglaBorno.Byanzon.y);

                else return byanjonborno;
            }
        }
Beispiel #2
0
        private static BanglaBornoResultSet isBorgiio1(char romok, char romok_1)
        {
            BanglaBornoResultSet byanjonborno
                = new BanglaBornoResultSet();
            BanglaBorno.Byanzon x = BanglaBorno.Byanzon._NULL;

            {
                if (romok == 'k')
                    x = BanglaBorno.Byanzon.k;
                else if (romok == 'g')
                    x = BanglaBorno.Byanzon.g;
                else if (romok == 'c')
                    x = BanglaBorno.Byanzon.c;
                else if (romok == 'z')
                    x = BanglaBorno.Byanzon.z;
                else if (romok == 'T')
                    x = BanglaBorno.Byanzon.T;
                else if (romok == 'D')
                    x = BanglaBorno.Byanzon.D;
                else if (romok == 't')
                    x = BanglaBorno.Byanzon.t;
                else if (romok == 'd')
                    x = BanglaBorno.Byanzon.d;
                else if (romok == 'p')
                    x = BanglaBorno.Byanzon.p;
                else if (romok == 'b')
                    x = BanglaBorno.Byanzon.b;
                else return byanjonborno;
            }
            if (romok_1 == 'h')
                byanjonborno.SetVal(2, BanglaBorno.toMohapran(x));
            else
                byanjonborno.SetVal(1, x);

            return byanjonborno;
        }
Beispiel #3
0
 private static BanglaBornoResultSet isSwor1(char romok, char romok_1)
 {
     BanglaBornoResultSet sworoborno = new BanglaBornoResultSet();
     if (romok == 'o')
     {
         if (romok_1 == 'a')
             return sworoborno.SetVal(2, BanglaBorno.Swor.oa);//ও ো
         else if (romok_1 == 'w')
             return sworoborno.SetVal(2, BanglaBorno.Swor.ow);//ঔ ৌ
         else
             return sworoborno.SetVal(1, BanglaBorno.Swor.o);//অ
     }
     else if (romok == 'a')
     {
         return sworoborno.SetVal(1, BanglaBorno.Swor.a);//আ া
     }
     else if (romok == 'i')
     {
         if (romok_1 == 'i')
             return sworoborno.SetVal(2, BanglaBorno.Swor.ii);//ঈ ী
         else
             return sworoborno.SetVal(1, BanglaBorno.Swor.i);//ই ি
     }
     else if (romok == 'u')
     {
         if (romok_1 == 'u')
             return sworoborno.SetVal(2, BanglaBorno.Swor.uu);//ঊ ূ
         else
             return sworoborno.SetVal(1, BanglaBorno.Swor.u);//উ ু
     }
     else if (romok == 'R')
     {
         if (romok_1 == 'I' || romok_1 == 'i')
             return sworoborno.SetVal(2, BanglaBorno.Swor.RI);//ঋ ৃ
         else return sworoborno;
     }
     else if (romok == 'e')
     {
         return sworoborno.SetVal(1, BanglaBorno.Swor.e);
     }
     else if (romok == 'O')
     {
         if (romok_1 == 'I' || romok_1 == 'i')
             return sworoborno.SetVal(2, BanglaBorno.Swor.OI);
         else
             return sworoborno.SetVal(1, BanglaBorno.Swor.oa);
     }
     else
         return sworoborno;
 }
Beispiel #4
0
        private static BanglaBornoResultSet isSwor(char romok, char romok_1)
        {
            BanglaBornoResultSet sworoborno = new BanglaBornoResultSet();
            if (char.IsUpper(romok_1))
                romok_1 = char.ToLower(romok_1);

            switch (romok)
            {
                default: return sworoborno.SetVal(1, romok);
                case 'o': return sworoborno.SetVal(1, BanglaBorno.Swor.o);//অ
                case 'A': return sworoborno.SetVal(1, BanglaBorno.Swor.a);//আ া
                case 'a':
                    switch (romok_1)
                    {
                        default: return sworoborno.SetVal(1, BanglaBorno.Swor.a);//আ া
                        case 'e': return sworoborno.SetVal(2, BanglaBorno.Swor.ae);//
                    }
                case 'i': return sworoborno.SetVal(1, BanglaBorno.Swor.i);//ই ি
                case 'I': return sworoborno.SetVal(1, BanglaBorno.Swor.ii);//ঈ ী
                case 'u': return sworoborno.SetVal(1, BanglaBorno.Swor.u);//উ ু
                case 'U': return sworoborno.SetVal(1, BanglaBorno.Swor.uu);//ঊ ূ
                case 'x': return sworoborno.SetVal(1, BanglaBorno.Swor.RI);//ঋ ৃ
                case 'e': return sworoborno.SetVal(1, BanglaBorno.Swor.e);
                case 'w':
                    switch (romok_1)
                    {
                        case 'i': return sworoborno.SetVal(2, BanglaBorno.Swor.OI);// ঐ
                        case 'w': return sworoborno.SetVal(2, BanglaBorno.Swor.ow);//ঔ ৌ
                        default: return sworoborno.SetVal(1, BanglaBorno.Swor.oa);////ও ো
                    }
                case 'O': return sworoborno.SetVal(1, BanglaBorno.Swor.oa);////ও ো
            }
        }
Beispiel #5
0
 private static BanglaBornoResultSet isOnuByanjon(char romok, char romok_1)
 {
     BanglaBornoResultSet borno = new BanglaBornoResultSet();
     switch (romok)
     {
         default: return borno;
         case '`':
             switch (romok_1)
             {
                 case '`': return borno.SetVal(2, "্‌");
                 case '~': return borno.SetVal(2, BanglaBorno.Byanzon._chondrobindu);
                 case 'n': return borno.SetVal(2, BanglaBorno.Byanzon._anuswor);
                 case 't': return borno.SetVal(2, BanglaBorno.Byanzon.t_);
                 case 'h': return borno.SetVal(2, BanglaBorno.Byanzon._bisorgo);
                 case '*': return borno.SetVal(2, BanglaBorno.Chihno.hosonto);
                 //case '-': return borno.SetVal(2, "‌");//No Space Non Joiner
                 case '-': return borno.SetVal(2, BanglaBorno.Chihno._shunnodoirghoBicchinno);//No Space Non Joiner
                 //case '+': return borno.SetVal(2, "‍");//No Space Joiner
                 case '+': return borno.SetVal(2, BanglaBorno.Chihno._odourgoJukti);//No Space Joiner
                 //case '_': return borno.SetVal(2, " ");//nbsp No break Space
                 case '_': return borno.SetVal(2, BanglaBorno.Chihno._nbsp);//nbsp No break Space
                 case 'a':
                 case 'i':
                 case 'I':
                 case 'u':
                 case 'U':
                 case 'x':
                 case 'e':
                 case 'w':
                 case 'O': return borno.SetVal(1, BanglaBorno.Chihno._forceKar);
                 default: return borno.SetVal(1, "্‌");
             }
         case '^': return borno.SetVal(1, BanglaBorno.Byanzon._chondrobindu);
     }
 }
Beispiel #6
0
        private static BanglaBornoResultSet isByanjon(char romok, char romok_1)
        {
            BanglaBornoResultSet byanjonborno
                = new BanglaBornoResultSet(isBorgiio(romok, romok_1));
            if (byanjonborno.Num > 0)
                return byanjonborno;

            switch (romok)
            {
                default: return byanjonborno;
                case 'v': return byanjonborno.SetVal(1, BanglaBorno.Byanzon.bh);
                case 'f': return byanjonborno.SetVal(1, BanglaBorno.Byanzon.ph);
                case 'N':
                    return byanjonborno.SetVal(1, BanglaBorno.Byanzon.N);
                case 'n':
                    switch (romok_1)
                    {
                        default:
                            return byanjonborno.SetVal(1, BanglaBorno.Byanzon.n);
                        case '~':
                            return byanjonborno.SetVal(2, BanglaBorno.Byanzon.uno);
                        case 'k':
                        case 'g':
                            return byanjonborno.SetVal(1, BanglaBorno.Byanzon.uno);
                        case 'c':
                        case 'z':
                            return byanjonborno.SetVal(1, BanglaBorno.Byanzon.nio);
                    }
                case 'm':
                    switch (romok_1)
                    {
                        default:
                            return byanjonborno.SetVal(1, BanglaBorno.Byanzon.m);
                        case '~':
                            return byanjonborno.SetVal(2, BanglaBorno.Byanzon.nio);
                    }
                case 'j':
                    return byanjonborno.SetVal(1, BanglaBorno.Byanzon.j);
                case 'l':
                    return byanjonborno.SetVal(1, BanglaBorno.Byanzon.l);
                case 'W':
                    return byanjonborno.SetVal(1, BanglaBorno.Byanzon.b);
                case 's':
                    switch (romok_1)
                    {
                        default:
                            return byanjonborno.SetVal(1, BanglaBorno.Byanzon.s);
                        case 'h':
                            return byanjonborno.SetVal(2, BanglaBorno.Byanzon.sh);
                        case 's':
                            return byanjonborno.SetVal(2, BanglaBorno.Byanzon.ss);
                    }
                case 'H':
                case 'h':
                    return byanjonborno.SetVal(1, BanglaBorno.Byanzon.h);
                case 'r':
                    switch (romok_1)
                    {
                        default:
                            return byanjonborno.SetVal(1, BanglaBorno.Byanzon.r);
                        case 'y':
                            return byanjonborno.SetVal(2, "র‌্য");
                        case 'h':
                            return byanjonborno.SetVal(2, BanglaBorno.Byanzon.Rh);
                    }
                case 'R':
                    switch (romok_1)
                    {
                        case 'h':
                        case 'H':
                            return byanjonborno.SetVal(2, BanglaBorno.Byanzon.Rh);
                        default: return byanjonborno.SetVal(1, BanglaBorno.Byanzon.R);
                    }
                case 'y':
                    return byanjonborno.SetVal(1, BanglaBorno.Byanzon.y);
                case 'q':
                    switch (romok_1)
                    {
                        case 'h':
                            return byanjonborno.SetVal(2, "ক্ষ");
                        default: return byanjonborno.SetVal(1, "ক্ব");
                    }
            }
        }
Beispiel #7
0
        private static BanglaBornoResultSet isBorgiio(char romok, char romok_1)
        {
            BanglaBornoResultSet byanjonborno
                = new BanglaBornoResultSet();
            BanglaBorno.Byanzon x = BanglaBorno.Byanzon._NULL;

            switch (romok)
            {
                default: return byanjonborno;
                case 'K':
                case 'k':
                    x = BanglaBorno.Byanzon.k; break;
                case 'G':
                case 'g':
                    x = BanglaBorno.Byanzon.g; break;
                case 'C':
                case 'c':
                    x = BanglaBorno.Byanzon.c; break;
                case 'Z':
                case 'z':
                    x = BanglaBorno.Byanzon.z; break;
                case 'T':
                    x = BanglaBorno.Byanzon.T; break;
                case 'D':
                    x = BanglaBorno.Byanzon.D; break;
                case 't':
                    x = BanglaBorno.Byanzon.t; break;
                case 'd':
                    x = BanglaBorno.Byanzon.d; break;
                case 'P':
                case 'p':
                    x = BanglaBorno.Byanzon.p; break;
                case 'B':
                case 'b':
                    x = BanglaBorno.Byanzon.b; break;
            }
            if (romok_1 == 'h')
                return byanjonborno.SetVal(2, BanglaBorno.toMohapran(x));
            else
                return byanjonborno.SetVal(1, x);
        }