From e543860837efc57c84a30e76f93567048c8b1f00 Mon Sep 17 00:00:00 2001 From: Abdil <90824488+metatronslove@users.noreply.github.com> Date: Wed, 7 Aug 2024 22:45:25 +0300 Subject: [PATCH] Abjad Functions for Google Sheets --- Google Sheets/4_google_sheets.min.gs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Google Sheets/4_google_sheets.min.gs b/Google Sheets/4_google_sheets.min.gs index fa62e42..8e922ce 100644 --- a/Google Sheets/4_google_sheets.min.gs +++ b/Google Sheets/4_google_sheets.min.gs @@ -1 +1 @@ -function abjad(a,e,s,c){var r,t,b,k,l,o,i,p,F,h,d,f;if(r=0,b=0,t=0,k=0,o=0,i=0,p=0,d="",F="",void 0!=a&&void 0!=e){for(l=0;l2)o=3;else if(2==s){f=0;do{h=a[l-f],t=parseFloat(abjad(h,e,1)),f+=1,k+=1}while(""==saf(h,"",1))}else(void 0==s&&void 0==c||void 0==s&&void 0!=c)&&(o=3);p+=1;break;case"ٰ":f=0;do{"ـ"==(h=a[l-f])&&(t=parseFloat(abjad("ا",e,1))),f+=1}while(""==saf(h,"",1)||"ـ"!=h);break;case" ":i+=1;break;case String.fromCharCode(10):case String.fromCharCode(13):break;case"َ":case"ِ":case"ً":case"ٍ":case"ُ":case"ْ":case"ٌ":case"ـ":p+=1;break;default:d+=h,o=2}}if(1==c)switch(saf(h,"",1)){case" ":break;case"ا":F+="ا="+t+" / ";break;case h:F+=h+"="+t+" / "}else r+=t}switch(e){case 4:case 10:case 15:case 20:case 25:case 30:case 35:1==c&&void 0==s||1==c&&void 0!=s?F+=" +"+(a.length-b+k).toString()+" ":r+=a.length-b+k}}switch(o){case 0:return 1==c&&void 0==s||1==c&&void 0!=s?" "+F+" ":r;case 1:return" Tablo Kodu? ";case 2:return" "+(b-(i+p)).toString()+" Tanımsız:"+d+"|"+i.toString()+" boşluk|"+p.toString()+" hareke ";case 3:return" Şedde Ayarı? "}}function wordbyword(a,e,s,c){if(void 0!=a){a+=" ";var r,t="",b="",k="";for(counter=0;countera)do{a+=361}while(c>a);if((r=(a-c).toString()).length>3){for(l=r.length;l>r.length-3*Math.floor(r.length/3);l-=3)g[k]=r.substring(l-3,l),k+=1;(o=r.length-3*(k-1))>0?g[k]=r.substring(0,o):k-=1}else g[1]=r;for(i=k;i>0;i-=1)if(void 0!=g[i]){for(p=0;p0)for(h=1;h1);b=c}else{do{for(s=0,t=0;te);b=r}return b}function tesbeh(a,e,s,c){var r,t,b,k;return k="",(a=parseFloat(a))0&&void 0!=r&&(k+="["+r+" tur]"),t>0&&void 0!=t&&(k+="["+t+"X"+c+"]"),b>0&&void 0!=b&&(k+="["+b+" kalan]"),k}function altayaz(a){var e,s,c;for(a=a.toString(),e="",s=0;s12?s-12*Math.floor(s/12):s}function newline(a){for(var e="",s=1;s0&&1==parseFloat(Right(a,3))?(s="",c=c.length>0?t[r]+" و "+c:t[r]+" "+c):r>0&&2==parseFloat(Right(a,3))?(s="",c=c.length>0?b[r]+" و "+c:b[r]+" "+c):s=GetHundreds(Right(a,3),e,r,c),""!=s&&(r>0&&(c.length>0&&(c=" و "+c),2!=parseFloat(Right(a,3))&&1!=Math.floor(parseFloat(Right(a,3))/100)&&parseFloat(Right(a,3))>=3&&parseFloat(Right(a,3))<=10&&(c=" "+l[r]+c,o=1)),0==o?c=c.length>0?" "+k[r]+c:" "+t[r]+c:o=0,c=s+c,s=""),a=a.length>3?Left(a,a.length-3):"",r+=1}while(""!=a);break;case"HEBREW":if(0==a&&0==r)return"אֶפֶס";t=["","אלף","מיליון","מיליארד","טריליון"],b=["","אלפיים ","שני מיליון ","שני מיליארד ","שני טריליון "],k=["","אלפא","מיליון","מיליארד","טריליון"],l=["","אלפים","מיליונים","מיליארדים","טריליונים"];a=a.toString().trim();do{o=0;r>0&&1==parseFloat(Right(a,3))?(s="",c=c.length>0?t[r]+" ו "+c:t[r]+" "+c):r>0&&2==parseFloat(Right(a,3))?(s="",c=c.length>0?b[r]+" ו "+c:b[r]+" "+c):s=GetHundreds(Right(a,3),e,r,c),""!=s&&(r>0&&(c.length>0&&(c=" ו "+c),2!=parseFloat(Right(a,3))&&1!=Math.floor(parseFloat(Right(a,3))/100)&&parseFloat(Right(a,3))>=3&&parseFloat(Right(a,3))<=10&&(c=" "+l[r]+c,o=1)),0==o?c=c.length>0?" "+k[r]+c:" "+t[r]+c:o=0,c=s+c,s=""),a=a.length>3?Left(a,a.length-3):"",r+=1}while(""!=a);break;case"TURKCE":var i=0;if(0==a&&0==i)return"sıfır";var p=["","bin ","milyon ","milyar ","trilyon "];for(a=a.toString().trim();""!=a;)1==i&&1==parseFloat(Right(a,3))?(s="",c=p[i]+c):s=GetHundreds(Right(a,3),e,i,c),""!=s&&(c=s+" "+p[i]+c,s=""),a=a.length>3?Left(a,a.length-3):"",i+=1}return r=0,c.trim()}function GetHundreds(a,e,s,c){var r="";switch(a=Right("000"+a,3),e){case"ARABIC":if(parseFloat(Left(a,1))>0)if(0==parseFloat(Right(a,2))&&2==parseFloat(Left(a,1)))r=0==s?"مئتان ":"مئتا ";else switch(parseFloat(Left(a,1))){case 1:r="مائة ";break;case 2:r="مئتان ";break;case 3:r="ثلاثمائة ";break;case 4:r="أربعمائة ";break;case 5:r="خمسمائة ";break;case 6:r="ستمائة ";break;case 7:r="سبعمائة ";break;case 8:r="ثمانمائة ";break;case 9:r="تسعمائة "}r.length>0&&0!=parseFloat(Right(a,2))&&(r+=" و "),"0"!=a.substring(1,2)?r+=GetTens(a.substring(1),e,s,parseFloat(Left(a,1)),r+c):r+=GetDigit(parseFloat(Right(a,1)),e);break;case"HEBREW":if(parseFloat(Left(a,1))>0)switch(parseFloat(Left(a,1))){case 1:r="מאה ";break;case 2:r="מאתיים ";break;case 3:r="שלוש מאות ";break;case 4:r="ארבע מאות ";break;case 5:r="חמש מאות ";break;case 6:r="שש מאות ";break;case 7:r="שבע מאות ";break;case 8:r="שמונה מאות ";break;case 9:r="תשע מאות "}r.length>0&&0!=parseFloat(Right(a,2))&&(r+=" ו "),"0"!=a.substring(1,2)?r+=GetTens(a.substring(1),e,s,parseFloat(Left(a,1)),r+c):r+=GetDigit(parseFloat(Right(a,1)),e);break;case"TURKCE":parseFloat(Left(a,1))>0&&(r=parseFloat(Left(a,1))>1?GetDigit(parseFloat(Left(a,1)),e)+" yüz ":"yüz "),"0"!=a.substring(1,2)?r+=GetTens(a.substring(1),e):r+=GetDigit(parseFloat(Right(a,1)),e)}return r}function GetTens(a,e,s,c,r){var t="";switch(e){case"ARABIC":var b=["","ألف ","مليون ","مليار ","تريليون "],k=["","ألفان ","مليونان ","ملياران ","تريليونان "];if(1==parseFloat(Left(a,1)))switch(parseFloat(a)){case 10:t="عشرة";break;case 11:t="إحدى عشرة";break;case 12:t="اثنتا عشرة";break;case 13:t="ثلاث عشرة";break;case 14:t="أربع عشرة";break;case 15:t="خمس عشرة";break;case 16:t="ست عشرة";break;case 17:t="سبع عشرة";break;case 18:t="ثماني عشرة";break;case 19:t="تسع عشرة"}else 2==parseFloat(a)&&0==c&&s>0?t=k[s]+t:1==parseFloat(a)&&s>0?t=b[s]+t:1!=parseFloat(a)&&2!=parseFloat(a)||0==s&&0==c&&0==parseFloat(a)&&(t+=""),parseFloat(a)>0?(parseFloat(Left(a,1))>1&&(t+=GetTensStatus(parseFloat(Left(a,1)),e)),t.length>0&&0!=parseFloat(Right(a,1))&&(t+="و "),t+=GetDigit(parseFloat(Right(a,1)),e)):((r.length>0&&0!=parseFloat(Left(a,1))||t.length>0&&0!=parseFloat(Left(a,1)))&&(t+="و "),t+=GetTensStatus(parseFloat(Left(a,1)),e));break;case"HEBREW":b=["","אלפים ","מיליון ","מיליארד ","טריליון "],k=["","אלפיים ","שני מיליון ","שני מיליארד ","שני טריליון "];if(1==parseFloat(Left(a,1)))switch(parseFloat(a)){case 10:t="עשר ";break;case 11:t="אחת עשרה ";break;case 12:t="שתים עשרה ";break;case 13:t="שלוש עשרה ";break;case 14:t="ארבע עשרה ";break;case 15:t="חמש עשרה ";break;case 16:t="שש עשרה ";break;case 17:t="שבע עשרה ";break;case 18:t="שמונה עשרה ";break;case 19:t="תשע עשרה "}else 2==parseFloat(a)&&0==c&&s>0?t=k[s]+t:1==parseFloat(a)&&s>0?t=b[s]+t:1!=parseFloat(a)&&2!=parseFloat(a)||0==s&&0==c&&0==parseFloat(a)&&(t+=""),parseFloat(a)>0?(parseFloat(Left(a,1))>1&&(t+=GetTensStatus(parseFloat(Left(a,1)),e)),t.length>0&&0!=parseFloat(Right(a,1))&&(t+="ו "),t+=GetDigit(parseFloat(Right(a,1)),e)):((r.length>0&&0!=parseFloat(Left(a,1))||t.length>0&&0!=parseFloat(Left(a,1)))&&(t+="ו "),t+=GetTensStatus(parseFloat(Left(a,1)),e));break;case"TURKCE":switch(parseFloat(Left(a,1))){case 1:t="on ";break;case 2:t="yirmi ";break;case 3:t="otuz ";break;case 4:t="kırk ";break;case 5:t="elli ";break;case 6:t="altmış ";break;case 7:t="yetmiş ";break;case 8:t="seksen ";break;case 9:t="doksan "}t+=GetDigit(parseFloat(Right(a,1)),e)}return t}function GetTensStatus(a,e){var s="";switch(e){case"ARABIC":switch(a){case 2:s="عشرين ";break;case 3:s="ثلاثين ";break;case 4:s="أربعين ";break;case 5:s="خمسين ";break;case 6:s="ستين ";break;case 7:s="سبعين ";break;case 8:s="ثمانين ";break;case 9:s="تسعين "}break;case"HEBREW":switch(a){case 2:s="עשרים ";break;case 3:s="שלושים ";break;case 4:s="ארבעים ";break;case 5:s="חמישים ";break;case 6:s="שישים ";break;case 7:s="שבעים ";break;case 8:s="שמונים ";break;case 9:s="תשעים "}}return s}function GetDigit(a,e){var s="";switch(e){case"ARABIC":switch(a){case 1:s="احد";break;case 2:s="اثنان";break;case 3:s="ثلاثة";break;case 4:s="أربعة";break;case 5:s="خمسة";break;case 6:s="ستة";break;case 7:s="سبعة";break;case 8:s="ثمانية";break;case 9:s="تسعة";break;default:s=""}break;case"HEBREW":switch(a){case 1:s="אחת";break;case 2:s="שניים";break;case 3:s="שלושה";break;case 4:s="ארבעה";break;case 5:s="חמש";break;case 6:s="שישה";break;case 7:s="שבע";break;case 8:s="שמונה";break;case 9:s="תשע";break;default:s=""}break;case"TURKCE":switch(a){case 1:s="bir";break;case 2:s="iki";break;case 3:s="üç";break;case 4:s="dört";break;case 5:s="beş";break;case 6:s="altı";break;case 7:s="yedi";break;case 8:s="sekiz";break;case 9:s="dokuz";break;default:s=""}}return s}function Left(a,e){return e<=0?"":e>String(a).length?a:String(a).substring(0,e)}function Right(a,e){if(e<=0)return"";if(e>String(a).length)return a;var s=String(a).length;return String(a).substring(s,s-e)}function hepart(a,e){var s,c=2;do{s=a*c,c+=1}while(Math.floor((s-30)/4)<1);return 1==e?c-1:s} \ No newline at end of file +!= abjad(a,e,s,c){var r,t,b,k,l,o,i,p,F,h,d,f;if(r=0,b=0,t=0,k=0,o=0,i=0,p=0,d="",F="",void 0!=a&&void 0!=e){for(l=0;l2)o=3;else if(2==s){f=0;do{h=a[l-f],t=parseFloat(abjad(h,e,1)),f+=1,k+=1}while(""==saf(h,"",1))}else(void 0==s&&void 0==c||void 0==s&&void 0!=c)&&(o=3);p+=1;break;case"ٰ":f=0;do{"ـ"==(h=a[l-f])&&(t=parseFloat(abjad("ا",e,1))),f+=1}while(""==saf(h,"",1)||"ـ"!=h);break;case" ":i+=1;break;case String.fromCharCode(10):case String.fromCharCode(13):break;case"َ":case"ِ":case"ً":case"ٍ":case"ُ":case"ْ":case"ٌ":case"ـ":p+=1;break;default:d+=h,o=2}}if(1==c)switch(saf(h,"",1)){case" ":break;case"ا":F+="ا="+t+" / ";break;case h:F+=h+"="+t+" / "}else r+=t}switch(e){case 4:case 10:case 15:case 20:case 25:case 30:case 35:1==c&&void 0==s||1==c&&void 0!=s?F+=" +"+(a.length-b+k).toString()+" ":r+=a.length-b+k}}switch(o){case 0:return 1==c&&void 0==s||1==c&&void 0!=s?" "+F+" ":r;case 1:return" Tablo Kodu? ";case 2:return" "+(b-(i+p)).toString()+" Tanımsız:"+d+"|"+i.toString()+" boşluk|"+p.toString()+" hareke ";case 3:return" Şedde Ayarı? "}}!= wordbyword(a,e,s,c){if(void 0!=a){a+=" ";var r,t="",b="",k="";for(counter=0;countera)do{a+=361}while(c>a);if((r=(a-c).toString()).length>3){for(l=r.length;l>r.length-3*Math.floor(r.length/3);l-=3)g[k]=r.substring(l-3,l),k+=1;(o=r.length-3*(k-1))>0?g[k]=r.substring(0,o):k-=1}else g[1]=r;for(i=k;i>0;i-=1)if(void 0!=g[i]){for(p=0;p0)for(h=1;h1);b=c}else{do{for(s=0,t=0;te);b=r}return b}!= tesbeh(a,e,s,c){var r,t,b,k;return k="",(a=parseFloat(a))0&&void 0!=r&&(k+="["+r+" tur]"),t>0&&void 0!=t&&(k+="["+t+"X"+c+"]"),b>0&&void 0!=b&&(k+="["+b+" kalan]"),k}!= altayaz(a){var e,s,c;for(a=a.toString(),e="",s=0;s12?s-12*Math.floor(s/12):s}!= newline(a){for(var e="",s=1;s0&&1==parseFloat(Right(a,3))?(s="",c=c.length>0?t[r]+" و "+c:t[r]+" "+c):r>0&&2==parseFloat(Right(a,3))?(s="",c=c.length>0?b[r]+" و "+c:b[r]+" "+c):s=GetHundreds(Right(a,3),e,r,c),""!=s&&(r>0&&(c.length>0&&(c=" و "+c),2!=parseFloat(Right(a,3))&&1!=Math.floor(parseFloat(Right(a,3))/100)&&parseFloat(Right(a,3))>=3&&parseFloat(Right(a,3))<=10&&(c=" "+l[r]+c,o=1)),0==o?c=c.length>0?" "+k[r]+c:" "+t[r]+c:o=0,c=s+c,s=""),a=a.length>3?Left(a,a.length-3):"",r+=1}while(""!=a);break;case"HEBREW":if(0==a&&0==r)return"אֶפֶס";t=["","אלף","מיליון","מיליארד","טריליון"],b=["","אלפיים ","שני מיליון ","שני מיליארד ","שני טריליון "],k=["","אלפא","מיליון","מיליארד","טריליון"],l=["","אלפים","מיליונים","מיליארדים","טריליונים"];a=a.toString().trim();do{o=0;r>0&&1==parseFloat(Right(a,3))?(s="",c=c.length>0?t[r]+" ו "+c:t[r]+" "+c):r>0&&2==parseFloat(Right(a,3))?(s="",c=c.length>0?b[r]+" ו "+c:b[r]+" "+c):s=GetHundreds(Right(a,3),e,r,c),""!=s&&(r>0&&(c.length>0&&(c=" ו "+c),2!=parseFloat(Right(a,3))&&1!=Math.floor(parseFloat(Right(a,3))/100)&&parseFloat(Right(a,3))>=3&&parseFloat(Right(a,3))<=10&&(c=" "+l[r]+c,o=1)),0==o?c=c.length>0?" "+k[r]+c:" "+t[r]+c:o=0,c=s+c,s=""),a=a.length>3?Left(a,a.length-3):"",r+=1}while(""!=a);break;case"TURKCE":var i=0;if(0==a&&0==i)return"sıfır";var p=["","bin ","milyon ","milyar ","trilyon "];for(a=a.toString().trim();""!=a;)1==i&&1==parseFloat(Right(a,3))?(s="",c=p[i]+c):s=GetHundreds(Right(a,3),e,i,c),""!=s&&(c=s+" "+p[i]+c,s=""),a=a.length>3?Left(a,a.length-3):"",i+=1}return r=0,c.trim()}!= GetHundreds(a,e,s,c){var r="";switch(a=Right("000"+a,3),e){case"ARABIC":if(parseFloat(Left(a,1))>0)if(0==parseFloat(Right(a,2))&&2==parseFloat(Left(a,1)))r=0==s?"مئتان ":"مئتا ";else switch(parseFloat(Left(a,1))){case 1:r="مائة ";break;case 2:r="مئتان ";break;case 3:r="ثلاثمائة ";break;case 4:r="أربعمائة ";break;case 5:r="خمسمائة ";break;case 6:r="ستمائة ";break;case 7:r="سبعمائة ";break;case 8:r="ثمانمائة ";break;case 9:r="تسعمائة "}r.length>0&&0!=parseFloat(Right(a,2))&&(r+=" و "),"0"!=a.substring(1,2)?r+=GetTens(a.substring(1),e,s,parseFloat(Left(a,1)),r+c):r+=GetDigit(parseFloat(Right(a,1)),e);break;case"HEBREW":if(parseFloat(Left(a,1))>0)switch(parseFloat(Left(a,1))){case 1:r="מאה ";break;case 2:r="מאתיים ";break;case 3:r="שלוש מאות ";break;case 4:r="ארבע מאות ";break;case 5:r="חמש מאות ";break;case 6:r="שש מאות ";break;case 7:r="שבע מאות ";break;case 8:r="שמונה מאות ";break;case 9:r="תשע מאות "}r.length>0&&0!=parseFloat(Right(a,2))&&(r+=" ו "),"0"!=a.substring(1,2)?r+=GetTens(a.substring(1),e,s,parseFloat(Left(a,1)),r+c):r+=GetDigit(parseFloat(Right(a,1)),e);break;case"TURKCE":parseFloat(Left(a,1))>0&&(r=parseFloat(Left(a,1))>1?GetDigit(parseFloat(Left(a,1)),e)+" yüz ":"yüz "),"0"!=a.substring(1,2)?r+=GetTens(a.substring(1),e):r+=GetDigit(parseFloat(Right(a,1)),e)}return r}!= GetTens(a,e,s,c,r){var t="";switch(e){case"ARABIC":var b=["","ألف ","مليون ","مليار ","تريليون "],k=["","ألفان ","مليونان ","ملياران ","تريليونان "];if(1==parseFloat(Left(a,1)))switch(parseFloat(a)){case 10:t="عشرة";break;case 11:t="إحدى عشرة";break;case 12:t="اثنتا عشرة";break;case 13:t="ثلاث عشرة";break;case 14:t="أربع عشرة";break;case 15:t="خمس عشرة";break;case 16:t="ست عشرة";break;case 17:t="سبع عشرة";break;case 18:t="ثماني عشرة";break;case 19:t="تسع عشرة"}else 2==parseFloat(a)&&0==c&&s>0?t=k[s]+t:1==parseFloat(a)&&s>0?t=b[s]+t:1!=parseFloat(a)&&2!=parseFloat(a)||0==s&&0==c&&0==parseFloat(a)&&(t+=""),parseFloat(a)>0?(parseFloat(Left(a,1))>1&&(t+=GetTensStatus(parseFloat(Left(a,1)),e)),t.length>0&&0!=parseFloat(Right(a,1))&&(t+="و "),t+=GetDigit(parseFloat(Right(a,1)),e)):((r.length>0&&0!=parseFloat(Left(a,1))||t.length>0&&0!=parseFloat(Left(a,1)))&&(t+="و "),t+=GetTensStatus(parseFloat(Left(a,1)),e));break;case"HEBREW":b=["","אלפים ","מיליון ","מיליארד ","טריליון "],k=["","אלפיים ","שני מיליון ","שני מיליארד ","שני טריליון "];if(1==parseFloat(Left(a,1)))switch(parseFloat(a)){case 10:t="עשר ";break;case 11:t="אחת עשרה ";break;case 12:t="שתים עשרה ";break;case 13:t="שלוש עשרה ";break;case 14:t="ארבע עשרה ";break;case 15:t="חמש עשרה ";break;case 16:t="שש עשרה ";break;case 17:t="שבע עשרה ";break;case 18:t="שמונה עשרה ";break;case 19:t="תשע עשרה "}else 2==parseFloat(a)&&0==c&&s>0?t=k[s]+t:1==parseFloat(a)&&s>0?t=b[s]+t:1!=parseFloat(a)&&2!=parseFloat(a)||0==s&&0==c&&0==parseFloat(a)&&(t+=""),parseFloat(a)>0?(parseFloat(Left(a,1))>1&&(t+=GetTensStatus(parseFloat(Left(a,1)),e)),t.length>0&&0!=parseFloat(Right(a,1))&&(t+="ו "),t+=GetDigit(parseFloat(Right(a,1)),e)):((r.length>0&&0!=parseFloat(Left(a,1))||t.length>0&&0!=parseFloat(Left(a,1)))&&(t+="ו "),t+=GetTensStatus(parseFloat(Left(a,1)),e));break;case"TURKCE":switch(parseFloat(Left(a,1))){case 1:t="on ";break;case 2:t="yirmi ";break;case 3:t="otuz ";break;case 4:t="kırk ";break;case 5:t="elli ";break;case 6:t="altmış ";break;case 7:t="yetmiş ";break;case 8:t="seksen ";break;case 9:t="doksan "}t+=GetDigit(parseFloat(Right(a,1)),e)}return t}!= GetTensStatus(a,e){var s="";switch(e){case"ARABIC":switch(a){case 2:s="عشرين ";break;case 3:s="ثلاثين ";break;case 4:s="أربعين ";break;case 5:s="خمسين ";break;case 6:s="ستين ";break;case 7:s="سبعين ";break;case 8:s="ثمانين ";break;case 9:s="تسعين "}break;case"HEBREW":switch(a){case 2:s="עשרים ";break;case 3:s="שלושים ";break;case 4:s="ארבעים ";break;case 5:s="חמישים ";break;case 6:s="שישים ";break;case 7:s="שבעים ";break;case 8:s="שמונים ";break;case 9:s="תשעים "}}return s}!= GetDigit(a,e){var s="";switch(e){case"ARABIC":switch(a){case 1:s="احد";break;case 2:s="اثنان";break;case 3:s="ثلاثة";break;case 4:s="أربعة";break;case 5:s="خمسة";break;case 6:s="ستة";break;case 7:s="سبعة";break;case 8:s="ثمانية";break;case 9:s="تسعة";break;default:s=""}break;case"HEBREW":switch(a){case 1:s="אחת";break;case 2:s="שניים";break;case 3:s="שלושה";break;case 4:s="ארבעה";break;case 5:s="חמש";break;case 6:s="שישה";break;case 7:s="שבע";break;case 8:s="שמונה";break;case 9:s="תשע";break;default:s=""}break;case"TURKCE":switch(a){case 1:s="bir";break;case 2:s="iki";break;case 3:s="üç";break;case 4:s="dört";break;case 5:s="beş";break;case 6:s="altı";break;case 7:s="yedi";break;case 8:s="sekiz";break;case 9:s="dokuz";break;default:s=""}}return s}!= Left(a,e){return e<=0?"":e>String(a).length?a:String(a).substring(0,e)}!= Right(a,e){if(e<=0)return"";if(e>String(a).length)return a;var s=String(a).length;return String(a).substring(s,s-e)}!= hepart(a,e){var s,c=2;do{s=a*c,c+=1}while(Math.floor((s-30)/4)<1);return 1==e?c-1:s} \ No newline at end of file