index.js
function convertArabicBack(apfb) {
	var toReturn = "",
		selectedChar;
	
	theLoop:
	for( var i = 0 ; i < apfb.length ; ++i ) {
		selectedChar = apfb.charCodeAt(i);

		for( var j = 0 ; j < charsMap.length ; ++j ) {
			if( charsMap[j][4] == selectedChar || charsMap[j][2] == selectedChar || 
				charsMap[j][1] == selectedChar || charsMap[j][3] == selectedChar ) {
				toReturn += String.fromCharCode(charsMap[j][0]);
				continue theLoop;
			}
		}

		for( var j = 0 ; j < combCharsMap.length ; ++j ) {
			if( combCharsMap[j][4] == selectedChar || combCharsMap[j][2] == selectedChar || 
				combCharsMap[j][1] == selectedChar || combCharsMap[j][3] == selectedChar ) {
				toReturn += String.fromCharCode(combCharsMap[j][0][0]) + String.fromCharCode(combCharsMap[j][0][1]);
				continue theLoop;
			}
		}

		toReturn += String.fromCharCode( selectedChar );
	}
	return toReturn;
}
function convertArabicBack(apfb) {
	var toReturn = "",
		selectedChar;
	
	theLoop:
	for( var i = 0 ; i < apfb.length ; ++i ) {
		selectedChar = apfb.charCodeAt(i);

		for( var j = 0 ; j < charsMap.length ; ++j ) {
			if( charsMap[j][4] == selectedChar || charsMap[j][2] == selectedChar || 
				charsMap[j][1] == selectedChar || charsMap[j][3] == selectedChar ) {
				toReturn += String.fromCharCode(charsMap[j][0]);
				continue theLoop;
			}
		}

		for( var j = 0 ; j < combCharsMap.length ; ++j ) {
			if( combCharsMap[j][4] == selectedChar || combCharsMap[j][2] == selectedChar || 
				combCharsMap[j][1] == selectedChar || combCharsMap[j][3] == selectedChar ) {
				toReturn += String.fromCharCode(combCharsMap[j][0][0]) + String.fromCharCode(combCharsMap[j][0][1]);
				continue theLoop;
			}
		}

		toReturn += String.fromCharCode( selectedChar );
	}
	return toReturn;
}
function convertArabicBack ( apfb ) { var toReturn = "" , selectedChar ; theLoop : for ( var i = 0 ; i < apfb . length ; ++ i ) { selectedChar = apfb . charCodeAt ( i ) ; for ( var j = 0 ; j < charsMap . length ; ++ j ) { if ( charsMap [ j ] [ 4 ] == selectedChar || charsMap [ j ] [ 2 ] == selectedChar || charsMap [ j ] [ 1 ] == selectedChar || charsMap [ j ] [ 3 ] == selectedChar ) { toReturn += String . fromCharCode ( charsMap [ j ] [ 0 ] ) ; continue theLoop ; } } for ( var j = 0 ; j < combCharsMap . length ; ++ j ) { if ( combCharsMap [ j ] [ 4 ] == selectedChar || combCharsMap [ j ] [ 2 ] == selectedChar || combCharsMap [ j ] [ 1 ] == selectedChar || combCharsMap [ j ] [ 3 ] == selectedChar ) { toReturn += String . fromCharCode ( combCharsMap [ j ] [ 0 ] [ 0 ] ) + String . fromCharCode ( combCharsMap [ j ] [ 0 ] [ 1 ] ) ; continue theLoop ; } } toReturn += String . fromCharCode ( selectedChar ) ; } return toReturn ; }
convert from Arabic Presentation Forms B
convert from Arabic Presentation Forms B