dklang icon indicating copy to clipboard operation
dklang copied to clipboard

Unicode character is not showing properly in Android

Open shariful2011 opened this issue 7 years ago • 10 comments

I am trying to make one Android app with DKLang(truely the best component) for Unicode language. Language Id is 2117 (Bangla). In Windows all text property and constant are showing properly but in Android it's not showing properly. Please check screenshot.

For windows: http://prntscr.com/krrfvd For Android: http://prntscr.com/krrgik

I am using Delphi Tokyo 10.2.3

shariful2011 avatar Sep 07 '18 15:09 shariful2011

This looks like the font you are using on Android doesn't support all of the Bangla characters. Try to find a font that supports the full Bangla character set. You may need to install one for the app.

On Fri, Sep 7, 2018 at 11:11 AM shariful2011 [email protected] wrote:

I am trying to make one Android app with DKLang(truely the best component) for Unicode language. Language Id is 2117 (Bangla). In Windows all text property and constant are showing properly but in Android it's not showing properly. Please check screenshot.

For windows: http://prntscr.com/krrfvd For Android: http://prntscr.com/krrgik

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yktoo/dklang/issues/24, or mute the thread https://github.com/notifications/unsubscribe-auth/AArtcRREnDtICXXGHAGlUZok8jD5Dfntks5uYoy1gaJpZM4WfAU9 .

bjmillerpa avatar Sep 07 '18 17:09 bjmillerpa

I am using Google Translated text, just copy the translated text and put them lng file using DKLang Translation Editor.

shariful2011 avatar Sep 07 '18 18:09 shariful2011

That is not where the problem is. If the translated text works on Windows, it is good. That text does not change when you put it on Android. It is the final rendering of the text that is the issue and it appears to me that it is simply the font. The problem (as far as I can tell) is that the font you are using on the Android device does not support all Bangla characters.

On Fri, Sep 7, 2018 at 2:34 PM shariful2011 [email protected] wrote:

I am using Google Translated text, just copy the translated text and put them lng file using DKLang Translation Editor.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yktoo/dklang/issues/24#issuecomment-419528267, or mute the thread https://github.com/notifications/unsubscribe-auth/AArtcZ5lYhp_NTeohHi80NOILPMgdtaVks5uYrw9gaJpZM4WfAU9 .

bjmillerpa avatar Sep 07 '18 18:09 bjmillerpa

I am not using any special font in Android, just the lang file.

shariful2011 avatar Sep 07 '18 18:09 shariful2011

Exactly. You need to find and use a special font. Not all fonts support all Unicode characters. In fact, I don't think there is a single font that supports all Unicode characters, it would be too big. You will need to find one that supports Bangla completely and use it. Try Googling "android bangla font" and see what you can find.

On Fri, Sep 7, 2018 at 2:53 PM shariful2011 [email protected] wrote:

I am not using any special font in Android, just the lang file.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yktoo/dklang/issues/24#issuecomment-419533067, or mute the thread https://github.com/notifications/unsubscribe-auth/AArtcYtaREUaV5Pd3paJgiDAKpX7sEZgks5uYsCxgaJpZM4WfAU9 .

bjmillerpa avatar Sep 07 '18 18:09 bjmillerpa

How can I install it? Do I have to use FMX.FontGlyphs.Android for installing this?

shariful2011 avatar Sep 07 '18 19:09 shariful2011

I don't know. You'll have to Google it.

On Fri, Sep 7, 2018 at 3:03 PM shariful2011 [email protected] wrote:

How can I install it? Do I have to use FMX.FontGlyphs.Android for installing this?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yktoo/dklang/issues/24#issuecomment-419535752, or mute the thread https://github.com/notifications/unsubscribe-auth/AArtcXmN-An_VamYtmQv_R36gKNS8Lgzks5uYsMOgaJpZM4WfAU9 .

bjmillerpa avatar Sep 07 '18 19:09 bjmillerpa

Did you have any luck with this issue? I am having the similar issue with Malayalam font. I am using a UTF8 encoded string. I tried with multiple unicode fonts as well thinking it might be a rendering issue as it seems to have all the unicode code points in the string. It just not seem to render the combining marks...

coderdoniv avatar Dec 14 '19 00:12 coderdoniv

Sorry, no. I haven't done any Android work in a couple of years.

On Fri, Dec 13, 2019 at 7:22 PM coderdoniv [email protected] wrote:

Did you hasve any luck with this issue? I am having the similar issue with Malayalam font. I am using a UTF8 encoded string. I tried with multiple unicode fonts as well thinking it might be a rendering issue as it seems to have all the unicode code points in the string. It just not seem to render the combining marks...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yktoo/dklang/issues/24?email_source=notifications&email_token=AAFO24LFBOE5CQZVJPV6UXLQYQRMNA5CNFSM4FT4AU62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG3UHHA#issuecomment-565658524, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFO24O6KLCHEJGDS2NEVXDQYQRMNANCNFSM4FT4AU6Q .

bjmillerpa avatar Dec 14 '19 14:12 bjmillerpa

Thanks,I used Twebbrowser  as the font rendering library for that seems to be supporting Indian scripts. But it is a dirty solution...Regards,Vinod.Sent from my Samsung Galaxy smartphone. -------- Original message --------From: bjmillerpa [email protected] Date: 15/12/19 3:52 AM (GMT+12:00) To: yktoo/dklang [email protected] Cc: coderdoniv [email protected], Comment [email protected] Subject: Re: [yktoo/dklang] Unicode character is not showing properly in Android (#24) Sorry, no. I haven't done any Android work in a couple of years.

On Fri, Dec 13, 2019 at 7:22 PM coderdoniv [email protected] wrote:

Did you hasve any luck with this issue? I am having the similar issue with

Malayalam font. I am using a UTF8 encoded string. I tried with multiple

unicode fonts as well thinking it might be a rendering issue as it seems to

have all the unicode code points in the string. It just not seem to render

the combining marks...

You are receiving this because you commented.

Reply to this email directly, view it on GitHub

https://github.com/yktoo/dklang/issues/24?email_source=notifications&email_token=AAFO24LFBOE5CQZVJPV6UXLQYQRMNA5CNFSM4FT4AU62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG3UHHA#issuecomment-565658524,

or unsubscribe

https://github.com/notifications/unsubscribe-auth/AAFO24O6KLCHEJGDS2NEVXDQYQRMNANCNFSM4FT4AU6Q

.

—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.

[

{

"@context": "http://schema.org",

"@type": "EmailMessage",

"potentialAction": {

"@type": "ViewAction",

"target": "https://github.com/yktoo/dklang/issues/24?email_source=notifications\u0026email_token=AMUCJFCRAT2WVQMO4DIN6QTQYTXLNA5CNFSM4FT4AU62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG4EK5A#issuecomment-565724532",

"url": "https://github.com/yktoo/dklang/issues/24?email_source=notifications\u0026email_token=AMUCJFCRAT2WVQMO4DIN6QTQYTXLNA5CNFSM4FT4AU62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG4EK5A#issuecomment-565724532",

"name": "View Issue"

},

"description": "View this Issue on GitHub",

"publisher": {

"@type": "Organization",

"name": "GitHub",

"url": "https://github.com"

}

}

]

coderdoniv avatar Dec 15 '19 01:12 coderdoniv