Page 1 of 2

Wrong.

PostPosted: Fri Jan 20, 2012 9:02 am
by Reqrezentin
How did you manage to get down to Abdullahi Yusuf? There's one extra guy who didn't even exist but it's great work.

Anyway, excellent website though, I am saddened I didn't stumble upon this before. I've previously read your work though it has not aroused any curiosity in me and left me thinking that you are one retarded monkey, I have no come to other terms with those thoughts. Please don't ban me for insulting you, I need a home.

Re: Wrong.

PostPosted: Fri Jan 20, 2012 7:22 pm
by James Dahl
I don't mind, everyone is welcome here :v

Which names are you referring to?

Re: Wrong.

PostPosted: Sat Jan 21, 2012 5:03 am
by Reqrezentin

Re: Wrong.

PostPosted: Sat Jan 21, 2012 8:17 am
by James Dahl
Fixed, thanks man

BTW what do you think of the Cismaaniya font?

Re: Wrong.

PostPosted: Sat Jan 21, 2012 10:35 pm
by Reqrezentin
It's excellent. How did you do it? I've been trying to do it for a long time but never in unicode. Do you have the codes?

Re: Wrong.

PostPosted: Sun Jan 22, 2012 12:53 am
by James Dahl
I had to make my own font, but there actually is a unicode range reserved for Cismaaniya, it's just never supported by any fonts :lol:

Re: Wrong.

PostPosted: Sun Jan 22, 2012 5:30 am
by Reqrezentin
You've made it from scratch? Sure ok. :)

Cismaaniya isn't recognized by Unicode, you'd have to translate it, as you've done. So what I am wondering is, if a website is not based on php, could it still be used?

Re: Wrong.

PostPosted: Sun Jan 22, 2012 6:00 am
by James Dahl
You're wrong it IS supported by Unicode, that's not the problem heheh
http://unicode.org/charts/PDF/Unicode-4.0/U40-10480.pdf

The problem is if you copied the Cismaaniya and pasted it somewhere else it will show up as unknown characters because the font on the other website won't support Cismaaniya characters. If you installed the Cismaaniya font on that site and used it though, it would

Re: Wrong.

PostPosted: Sun Jan 22, 2012 7:24 am
by Reqrezentin
Ok, I understand the problem is how it appears on websites where it is not supported. So where's the code? Is it .php? How would it work if I wanted to put it on a website that isn't in .php?

Re: Wrong.

PostPosted: Sun Jan 22, 2012 10:38 am
by James Dahl
Well I wrote some PHP code to transliterate text, let me post it below here:

Code: Select all
function AbtirsiLanguageConvert($text, $abtirsiLanguageSetting, $addSpan = 1) {
   $newtext = $text;
   if($abtirsiLanguageSetting == 2) {
      $somali = array("Aa", "aa",
                  "Ee", "ee",
                  "Ii", "ii",
                  "Oo", "oo",
                  "Uu", "uu",
                  "A", "a",
                  "E", "e",
                  "I", "i",
                  "O", "o",
                  "U", "u",
                  "B", "b",
                  "Th", "th",
                  "T", "t",
                  "J", "j",
                  "X", "x",
                  "Kh", "kh",
                  "Dh", "dh",
                  "D", "d",
                  "R", "r",
                  "Sh", "sh",
                  "Sc", "sc",
                  "Dc", "dc",
                  "Tc", "tc",
                  "Zc", "zc",
                  "Z", "z",
                  "C", "c",
                  "S", "s",
                  "G", "g",
                  "F", "f",
                  "Q", "q",
                  "K", "k",
                  "L", "l",
                  "M", "m",
                  "N", "n",
                  "H", "h",
                  "Y", "y",
                  "W", "w",
                  "'");
      $arabic = array("ع", "َا",   //Aa
                  "ى", "َى",   //Ee
                  "إ", "ِي",   //Ii
                  "و", "ُو",   //Oo
                  "و", "ُو",   //Uu
                  "ا", "َ",   //A
                  "ى", "َ",   //E
                  "إ", "ِ",   //I
                  "و", "ُ",   //O
                  "و", "ُ",   //U
                  "ب", "ب",   //Ba
                  "ث", "ث",   //Tha
                  "ت", "ت",   //Ta
                  "ج", "ج",   //Jim
                  "ح", "ح",   //Xa
                  "خ", "خ",   //Kha
                  "ذ", "ذ",   //Dhal
                  "د", "د",   //Dal
                  "ر", "ر",   //Reh
                  "ش", "ش",   //Shin
                  "ص", "ص",   //Sad
                  "ض", "ض",   //Dad
                  "ط", "ط",   //Ta
                  "ط", "ط",   //Za
                  "ز", "ز",   //Zayn
                  "ع", "ع",   //Ayn
                  "س", "س",   //Sin
                  "غ", "غ",   //Ghayn
                  "ف", "ف",   //Fa
                  "ق", "ق",   //Qaf
                  "ك", "ك",   //Kaf
                  "ل", "ل",   //Lam
                  "م", "م",   //Mim
                  "ن", "ن",   //Nun
                  "ه", "ه",   //Ha
                  "ي", "ي",   //Ya
                  "و", "و",   //Waw
                  "ء");  //Hamza
      $newtext = str_replace($somali, $arabic, $text);
   }
   
   if($abtirsiLanguageSetting == 3) {
      $somali = array("Aa", "aa",
                  "Ee", "ee",
                  "Oo", "oo",
                  "Uu", "uu",
                  "Ii", "ii",
                  "A", "a",
                  "E", "e",
                  "I", "i",
                  "O", "o",
                  "U", "u",
                  "B", "b",
                  "T", "t",
                  "J", "j",
                  "X", "x",
                  "Kh", "kh",
                  "Dh", "dh",
                  "D", "d",
                  "R", "r",
                  "Sh", "sh",
                  "S", "s",
                  "Z", "z",
                  "C", "c",
                  "G", "g",
                  "F", "f",
                  "Q", "q",
                  "K", "k",
                  "L", "l",
                  "M", "m",
                  "N", "n",
                  "W", "w",
                  "H", "h",
                  "Y", "y",
                  "'");
      $cismaniya = array("𐒛", "𐒛",   //Aa
                  "𐒜", "𐒜",      //Ee
                  "𐒝", "𐒝",      //Oo
                  "𐒓", "𐒓",      //Uu
                  "𐒕", "𐒕",      //Ii
                  "𐒖", "𐒖", //A
                  "𐒗", "𐒗", //E
                  "𐒘", "𐒘", //I
                  "𐒙", "𐒙", //O
                  "𐒚", "𐒚", //U
                  "𐒁", "𐒁", //Ba
                  "𐒂", "𐒂", //Ta
                  "𐒃", "𐒃", //Ja
                  "𐒄", "𐒄", //Xa
                  "𐒅", "𐒅", //Kha
                  "𐒊", "𐒊", //Dha
                  "𐒆", "𐒆", //Deel
                  "𐒇", "𐒇", //Ra
                  "𐒉", "𐒉", //Shiin
                  "𐒈", "𐒈", //Sa
                  "𐒈", "𐒈", //Sa for Z
                  "𐒋", "𐒋", //Cayn
                  "𐒌", "𐒌", //Ga
                  "𐒍", "𐒍", //Fa
                  "𐒎", "𐒎", //Qaaf
                  "𐒏", "𐒏", //Kaaf
                  "𐒐", "𐒐", //Laan
                  "𐒑", "𐒑", //Miin
                  "𐒒", "𐒒", //Nuun
                  "𐒓", "𐒓", //Waw
                  "𐒔", "𐒔", //Ha
                  "𐒕", "𐒕", //Ya
                  "𐒀"); //Alef/Hamza
      $newtext = str_replace($somali, $cismaniya, $text);
      if($addSpan == 1) { $newtext = '<span class="osmanya">'.$newtext.'</span>'; }
   }
   
   if($abtirsiLanguageSetting == 4) {
      $somali = array("Ii", "ii",
                  "Aa", "aa",
                  "Ee", "ee",
                  "Oo", "oo",
                  "A", "a",
                  "E", "e",
                  "I", "i",
                  "O", "o",
                  "U", "u",
                  "B", "b",
                  "T", "t",
                  "J", "j",
                  "X", "x",
                  "Kh", "kh",
                  "Dh", "dh",
                  "D", "d",
                  "R", "r",
                  "Sh", "sh",
                  "S", "s",
                  "Z", "z",
                  "C", "c",
                  "G", "g",
                  "F", "f",
                  "Q", "q",
                  "K", "k",
                  "L", "l",
                  "M", "m",
                  "N", "n",
                  "W", "w",
                  "H", "h",
                  "Y", "y",
                  "'");
      $borama = array("&#66716;", "&#66716;",   //Ii
                  "&#66710;", "&#66710;", //Aa
                  "&#66711;", "&#66711;", //Ee
                  "&#66713;", "&#66713;", //Oo
                  "&#66710;", "&#66710;", //A
                  "&#66711;", "&#66711;", //E
                  "&#66712;", "&#66712;", //I
                  "&#66713;", "&#66713;", //O
                  "&#66714;", "&#66714;", //U
                  "&#66689;", "&#66689;", //Ba
                  "&#66690;", "&#66690;", //Ta
                  "&#66691;", "&#66691;", //Ja
                  "&#66692;", "&#66692;", //Xa
                  "&#66693;", "&#66693;", //Kha
                  "&#66698;", "&#66698;", //Dha
                  "&#66694;", "&#66694;", //Deel
                  "&#66695;", "&#66695;", //Ra
                  "&#66697;", "&#66697;", //Shiin
                  "&#66696;", "&#66696;", //Sa
                  "&#66696;", "&#66696;", //Sa for Z
                  "&#66699;", "&#66699;", //Cayn
                  "&#66700;", "&#66700;", //Ga
                  "&#66701;", "&#66701;", //Fa
                  "&#66702;", "&#66702;", //Qaaf
                  "&#66703;", "&#66703;", //Kaaf
                  "&#66704;", "&#66704;", //Laan
                  "&#66705;", "&#66705;", //Miin
                  "&#66706;", "&#66706;", //Nuun
                  "&#66707;", "&#66707;", //Waw
                  "&#66708;", "&#66708;", //Ha
                  "&#66709;", "&#66709;", //Ya
                  "&#66688;"); //Alef/Hamza
      $newtext = str_replace($somali, $borama, $text);
      if($addSpan == 1) { $newtext = '<span class="borama">'.$newtext.'</span>'; }
   }
   
   if($abtirsiLanguageSetting == 1) {
      $somali = array("Caa", "Caa",
                  "Cee", "cee",
                  "Cii", "cii",
                  "Coo", "coo",
                  "Cuu", "cuu",
                  "Ca", "ca",
                  "Ce", "ce",
                  "Ci", "ci",
                  "Co", "co",
                  "Cu", "cu",
                  "Aa", "aa",
                  "Ee", "ee",
                  "Ii", "ii",
                  "Oo", "oo",
                  "Uu", "uu",
                  "X", "x",
                  "c");
      $english = array("&#703;&#256;", "&#703;&#257;", //Caa
                   "&#703;Ay", "&#703;ay", //Cee
                   "&#703;&#298;", "&#703;&#299;", //Cii
                   "&#703;&#332;", "&#703;&#333;", //Coo
                   "&#703;&#362;", "&#703;&#363;", //Cuu
                   "&#703;A", "&#703;a", //Ca
                   "&#703;E", "&#703;e", //Ce
                   "&#703;I", "&#703;i", //Ci
                   "&#703;O", "&#703;o", //Co
                   "&#703;U", "&#703;u", //Cu
                   "&#256;", "&#257;", //Aa
                   "Ay", "ay", //Ee
                   "&#298;", "&#299;", //Ii
                   "&#332;", "&#333;", //Oo
                   "&#362;", "&#363;", //Uu
                   "&#7716;", "&#7717;", //X
                   "&#703;");  //c
      $newtext = str_replace($somali, $english, $text);
   }
   return $newtext;
}


But that's not actually necessary, all you need to do is use the web fonts I made is copy the SVG fonts I made to where your stylesheet is, and add these styles:

Code: Select all
/* Osmanya Font */
@font-face { font-family: Cismaaniya; font-weight: normal; src: local("Cismaaniya Normal"),  url('CismaaniyaNormal.svg') format('svg'); }
@font-face { font-family: Cismaaniya; font-weight: normal; font-style: italic; src: local("Cismaaniya Italic"),  url('CismaaniyaItalic.svg') format('svg'); }
@font-face { font-family: Cismaaniya; font-weight: bold; src: local("Cismaaniya Bold"),  url('CismaaniyaBold.svg') format('svg'); }

/* Osmanya Font */
@font-face { font-family: Borama; font-weight: normal; src: local("Borama Normal"),  url('BoramaNormal.svg') format('svg'); }
@font-face { font-family: Borama; font-weight: normal; font-style: italic; src: local("Borama Italic"),  url('BoramaItalic.svg') format('svg'); }
@font-face { font-family: Borama; font-weight: bold; src: local("Borama Bold"),  url('BoramaBold.svg') format('svg'); }

.osmanya { font-family: Cismaaniya; }
.borama { font-family: Borama; }