Click here to Skip to main content
15,867,939 members
Please Sign up or sign in to vote.
1.00/5 (5 votes)
See more:
Hello,

how to convert non Unicode Bharti GopikaTwo font to Unicode Gujarati font.
any one can know this how to convert this.

thanks
Posted
Updated 29-Oct-20 21:41pm
v5
Comments
Sergey Alexandrovich Kryukov 4-Oct-14 8:05am    
The question makes no sense as formulated, even though it may refer to some real problem. What exactly do you mean by Unicode or non-Unicode fonts. What kind is the source font, exactly? By the way, why? Gujarati is basically supported on nearly all modern OS, even of you don't add any fonts. I can use Gujarati alphabet on my systems (strictly US English, no fonts added to support any specific culture).
—SA
Ashvinrajkot 5-Oct-14 2:54am    
any solution suggest me for that convert
Sergey Alexandrovich Kryukov 5-Oct-14 2:59am    
What "convert"? Did you really read my comment above?
—SA
Ashvinrajkot 7-Oct-14 8:01am    
any solution for this
Ashvinrajkot 4-Oct-14 8:16am    
i have one file and this file use B Bharti gopika gujarati font. when copy font and past in asp.net editor then all font format change than i can convert to unicode
below link convert the font but maximum 200 character converted.

http://service.vishalon.net/pramukhfontconverter-gujarati-bhartigopika-unicode.aspx

It is not the font which is to be converted, but encoding.
Your file uses - likely - an ISCII encoding. Those ISCII encodings are 8bit encodings, and they were made such that when shwoing the contents with a different Indian alphabet ("font"), someone knowing that alphabet could still read the contents. Such behavior may cause confusion. Let me tell you again: it is the encoding which needs to be changed, not the font!
See also http://en.wikipedia.org/wiki/Indian_Script_Code_for_Information_Interchange[^]
 
Share this answer
 
Comments
Ashvinrajkot 6-Oct-14 2:51am    
above comment we add formats and we have install bharti gopikatwo font then it's proper display.how to convert if the font ISCII then convert Unicode format
Ashvinrajkot 6-Oct-14 8:45am    
if the above contain is encoding then how to convert the proper font to read it.
Ashvinrajkot 7-Oct-14 3:07am    
i don't know this font is ISCII or not
Sergey Alexandrovich Kryukov 7-Oct-14 11:16am    
Then check it up. Use Solution 2.
—SA
Sergey Alexandrovich Kryukov 7-Oct-14 11:16am    
5ed.
—SA
This is not "converting of font", this is transcoding some text, a trivial problem. You know the second (non-Unicode encoding), and probably Gujarati. Transcode just all characters in question (whole Unicode range) and compare the results using the tool you referenced. You will obtain the transcoding table. Use it to create your own tool. It looks way too easy.

—SA
 
Share this answer
 
Comments
Ashvinrajkot 8-Oct-14 0:48am    
hello,
i referred tools only 200 character converted and i will try to make a tools but i am not able to convert them. you can help me to make a this type of tools because my jquery also week.
Sergey Alexandrovich Kryukov 8-Oct-14 12:27pm    
I don't understand. Help with what? How is that related to jQuery. You learn encoding as I advised and create some encoding table (Javascript associative array) or two (one to transcode in one direction another one — to another direction). Code on input character on output (to Unicode), and visa versa.
character = array[code].
—SA
Ashvinrajkot 8-Oct-14 12:56pm    
i can make a tools on this converter but its not working. so you can help me, i have add below code but not convert

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="gujaraticonvert.aspx.cs"
Inherits="gujaraticonvert" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>

<link href="http://service.vishalon.net/css/pramukhtypepad.css" rel="stylesheet"
type="text/css" />
<link href="http://service.vishalon.net/css/pramukhfontconverter.css?v=1.8" rel="Stylesheet" type="text/css" />
<script src="http://service.vishalon.net/js/pramukhime-common.js" type="text/javascript"></script>
<script src="http://service.vishalon.net/tiny_mce/plugins/pramukhime/js/pramukhime.js"
type="text/javascript"></script>
<script src="http://service.vishalon.net/tiny_mce/plugins/pramukhime/js/pramukhindic.js"
type="text/javascript"></script>
<script type="text/javascript" language="javascript">
// allocate variable value
function indicChange(lang)
{
pramukhIME.setLanguage(lang.split(':')[1], lang.split(':')[0]);
}
function setfont() {
var drpfont = document.getElementById('drpNonUnicodeFont');
var fontname = drpfont.options[drpfont.selectedIndex].value.toLowerCase();
document.getElementById('txtNonUnicode').className = language.toLowerCase() + fontname + " " + language.toLowerCase();
}
window.onload = function() {
setfont(); // set proper css class for the selected non unicode font. This function call is required after call back.
pramukhIME.onLanguageChange(scriptChangeCallback);
pramukhIME.addLanguage(PramukhIndic);
pramukhIME.enable("txtUnicode");
//change the language manually for the first time
indicChange(document.getElementById('drpLanguage').value);
// set width and height of dialog
var w = window, d = document, e = d.documentElement, g = d.getElementsByTagName('body')[0], x = w.innerWidth || e.clientWidth || g.clientWidth, y = w.innerHeight || e.clientHeight || g.clientHeight;
var elem = document.getElementById('dialog');
elem.style.top = ((y - 550) / 2) + 'px';
elem.style.left = ((x - 700) / 2) + 'px';
};
</script>
</head>
<body>
<form id="form1" runat="server" action="gujaraticonvert.aspx" method="post">
<table cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td colspan="5">
</td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="3" border="1" class="editor">
<tbody>
<tr class="editortoolbar">
<td>
<div class="iconflex big">
<span class="big" id="lblLanguage1">Gujarati</span> Text in </div>
<div class="iconflex">
<select >
<option value="">Select Non Unicode Font...</option>
<option value="BhartiGopika" selected="selected">Bharti Gopika</option>
<option value="Giridhar">Giridhar</option>
<option value="Gopika">Gopika</option>
<option value="Gopika2">Gopika 2</option>
<option value="GopikaTwo">Gopika Two</option>
<option value="GopikaTwo2">Gopika Two 2</option>
Sergey Alexandrovich Kryukov 8-Oct-14 13:14pm    
Why set font?
—SA
Ashvinrajkot 8-Oct-14 13:28pm    
Bharti Gopika

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900