Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 8 additions & 2 deletions bijoy2unicode.php
Original file line number Diff line number Diff line change
Expand Up @@ -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).
*/


Expand Down Expand Up @@ -132,7 +135,7 @@
'Š' => 'ৗ', // Ou-Kar
'\\|' => '।', // Full-Stop
'\\&' => '্‌', // Ho-shonto
// Jukto Okkhor
// Jukto Okkhor
'\\^' => '্ব',
'‘' => '্তু',
'’' => '্থ',
Expand Down Expand Up @@ -168,6 +171,7 @@
'´' => 'ক্ম',
'µ' => 'ক্র',
'¶' => 'ক্ষ',
'ÿ' => 'ক্ষ',
'·' => 'ক্স',
'¸' => 'গু',
'¹' => 'জ্ঞ',
Expand Down Expand Up @@ -264,6 +268,8 @@
'\\[ঃ' => '\\[:',
' ' => ' ',
'অা' => 'আ',
'লস্ন' => 'ল্ল',
'রম্ন' => 'রু',
'্‌্‌' => '্‌'
);

Expand Down
8 changes: 7 additions & 1 deletion example.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@

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);

echo $converted;

// উভয় পাশে ধানের শীষে বেষ্টিত পানিতে ভাসমান জাতীয় ফুল শাপলা। তার মাথায় পাটগাছের পরস্পর সংযুক্ত তিনটি পাতা এবং উভয পাশে দুটি করে তারকা।

// After fix
// কুমিল্লা সাতক্ষিরা মোল্লাপাড়া নুরুল কামরুজ্জামান

// Before fix With error
// কুমিলস্না সাতÿিরা মোলস্নাপাড়া নুরম্নল কামরম্নজ্জামান
?>