diff --git a/README.rst b/README.rst index ab57a15..b2d2bfe 100755 --- a/README.rst +++ b/README.rst @@ -1,11 +1,13 @@ ================================= -Bijoy to Unicode Converter v 1.0 +Bijoy to Unicode Converter v 1.1 ================================= ----------- Description ----------- This is a PHP script to convert any string, document written in Bijoy font (eg SutonnyMJ) to Unicode (UTF-8) format. +Some bug fixed by AnonTech.info (https://github.com/AnonTech/BijoyToUnicode). +Check the updated example.php for sample output. -------------------- Prerequisite diff --git a/bijoy2unicode.php b/bijoy2unicode.php index 830f21b..4c94698 100644 --- a/bijoy2unicode.php +++ b/bijoy2unicode.php @@ -19,7 +19,10 @@ Copyright: GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPL-3.0) - + + Version: 1.1 + Date: Oct 10, 2016, 8:47 AM + Some bug fixed by AnonTech.info (https://github.com/AnonTech/BijoyToUnicode). */ @@ -132,7 +135,7 @@ 'Š' => 'ৗ', // Ou-Kar '\\|' => '।', // Full-Stop '\\&' => '্‌', // Ho-shonto - // Jukto Okkhor + // Jukto Okkhor '\\^' => '্ব', '‘' => '্তু', '’' => '্থ', @@ -168,6 +171,7 @@ '´' => 'ক্ম', 'µ' => 'ক্র', '¶' => 'ক্ষ', + 'ÿ' => 'ক্ষ', '·' => 'ক্স', '¸' => 'গু', '¹' => 'জ্ঞ', @@ -264,6 +268,8 @@ '\\[ঃ' => '\\[:', ' ' => ' ', 'অা' => 'আ', + 'লস্ন' => 'ল্ল', + 'রম্ন' => 'রু', '্‌্‌' => '্‌' ); diff --git a/example.php b/example.php index 28f2118..4d8ce13 100644 --- a/example.php +++ b/example.php @@ -4,7 +4,8 @@ require_once 'bijoy2unicode.php'; -'$demo = 'Dfq cv‡k av‡bi kx‡l †ewóZ cvwb‡Z fvmgvb RvZxq dzj kvcjv| Zvi gv_vq cvUMv‡Qi ci¯úi mshy³ wZbwU cvZv Ges Dfh cv‡k `ywU K‡i ZviKv|'; +// $demo = 'Dfq cv‡k av‡bi kx‡l †ewóZ cvwb‡Z fvmgvb RvZxq dzj kvcjv| Zvi gv_vq cvUMv‡Qi ci¯úi mshy³ wZbwU cvZv Ges Dfh cv‡k `ywU K‡i ZviKv|'; +$demo = 'Kzwgjøv mvZwÿiv †gvjøvcvov byiæj Kvgiæ¾vgvb'; // text with some complex ligature $converted = convertBijoyToUnicode($demo); @@ -12,4 +13,9 @@ // উভয় পাশে ধানের শীষে বেষ্টিত পানিতে ভাসমান জাতীয় ফুল শাপলা। তার মাথায় পাটগাছের পরস্পর সংযুক্ত তিনটি পাতা এবং উভয পাশে দুটি করে তারকা। +// After fix +// কুমিল্লা সাতক্ষিরা মোল্লাপাড়া নুরুল কামরুজ্জামান + +// Before fix With error +// কুমিলস্না সাতÿিরা মোলস্নাপাড়া নুরম্নল কামরম্নজ্জামান ?> \ No newline at end of file