Skip to content

Commit

Permalink
Did something better
Browse files Browse the repository at this point in the history
  • Loading branch information
metatronslove committed May 17, 2024
1 parent 9310001 commit 6bc6146
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
18 changes: 9 additions & 9 deletions Google Sheets/4_google_sheets.gs
Original file line number Diff line number Diff line change
Expand Up @@ -3138,14 +3138,14 @@ function abjad(metin, tablo, shadda, detail) {
n = n + 1;
switch (choosen) {
case "ّ":
if (shadda == 1 && detail == undefined || shadda == 1 && detail !== undefined) {
if (shadda == 1) {
s = 0;
} else if (shadda > 2 && detail == undefined || shadda > 2 && detail !== undefined) {
} else if (shadda > 2){
err = 3;
} else if (shadda == 2 && detail == undefined || shadda == 2 && detail !== undefined) {
c = 1;
} else if (shadda == 2) {
c = 0;
do {
choosen = metin[counter - 1 - c];
choosen = metin[counter - c];
s = parseFloat(abjad(choosen, tablo, 1));
c += 1;
shaddie = shaddie + 1;
Expand All @@ -3156,9 +3156,9 @@ function abjad(metin, tablo, shadda, detail) {
hrk = hrk + 1;
break;
case "ٰ":
c = 1;
c = 0;
do {
choosen = metin[counter - 1 - c];
choosen = metin[counter - c];
if (choosen == "ـ") {
s = parseFloat(abjad("ا", tablo, 1));
}
Expand Down Expand Up @@ -3460,7 +3460,7 @@ function unsur(metin, otabiat, otype, shadda, guide) {
for (counter = 0; counter < metin.length; counter++) {
choosen = metin[counter];
if (choosen == "ّ" && shadda == 2) {
c = 1;
c = 0;
do {
choosen = metin[counter - c];
c += 1;
Expand Down Expand Up @@ -4975,7 +4975,7 @@ function saf(metinsaf, ayrac, shadda) {
choosen = metinsaf[counter];
s = "";
if (choosen == "ّ" && shadda == 2) {
c = 1;
c = 0;
do {
choosen = metinsaf[counter - c];
c += 1;
Expand Down
2 changes: 1 addition & 1 deletion Google Sheets/4_google_sheets.min.gs

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions Web Developers/abjad.js
Original file line number Diff line number Diff line change
Expand Up @@ -3138,14 +3138,14 @@ function abjad(metin, tablo, shadda, detail) {
n = n + 1;
switch (choosen) {
case "ّ":
if (shadda == 1 && detail == undefined || shadda == 1 && detail !== undefined) {
if (shadda == 1) {
s = 0;
} else if (shadda > 2 && detail == undefined || shadda > 2 && detail !== undefined) {
} else if (shadda > 2){
err = 3;
} else if (shadda == 2 && detail == undefined || shadda == 2 && detail !== undefined) {
c = 1;
} else if (shadda == 2) {
c = 0;
do {
choosen = metin[counter - 1 - c];
choosen = metin[counter - c];
s = parseFloat(abjad(choosen, tablo, 1));
c += 1;
shaddie = shaddie + 1;
Expand All @@ -3156,9 +3156,9 @@ function abjad(metin, tablo, shadda, detail) {
hrk = hrk + 1;
break;
case "ٰ":
c = 1;
c = 0;
do {
choosen = metin[counter - 1 - c];
choosen = metin[counter - c];
if (choosen == "ـ") {
s = parseFloat(abjad("ا", tablo, 1));
}
Expand Down Expand Up @@ -3460,7 +3460,7 @@ function unsur(metin, otabiat, otype, shadda, guide) {
for (counter = 0; counter < metin.length; counter++) {
choosen = metin[counter];
if (choosen == "ّ" && shadda == 2) {
c = 1;
c = 0;
do {
choosen = metin[counter - c];
c += 1;
Expand Down Expand Up @@ -4975,7 +4975,7 @@ function saf(metinsaf, ayrac, shadda) {
choosen = metinsaf[counter];
s = "";
if (choosen == "ّ" && shadda == 2) {
c = 1;
c = 0;
do {
choosen = metinsaf[counter - c];
c += 1;
Expand Down
2 changes: 1 addition & 1 deletion Web Developers/abjad.min.js

Large diffs are not rendered by default.

0 comments on commit 6bc6146

Please sign in to comment.