yktoo / dklang

DKLang Localization Package
56 stars 14 forks source link

Unicode character is not showing properly in Android #24

Open shariful2011 opened 6 years ago

shariful2011 commented 6 years ago

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

bjmillerpa commented 6 years ago

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 notifications@github.com 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 .

shariful2011 commented 6 years ago

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

bjmillerpa commented 6 years ago

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 notifications@github.com 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 .

shariful2011 commented 6 years ago

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

bjmillerpa commented 6 years ago

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 notifications@github.com 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 .

shariful2011 commented 6 years ago

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

bjmillerpa commented 6 years ago

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

On Fri, Sep 7, 2018 at 3:03 PM shariful2011 notifications@github.com 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 .

coderdoniv commented 4 years ago

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...

bjmillerpa commented 4 years ago

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

On Fri, Dec 13, 2019 at 7:22 PM coderdoniv notifications@github.com 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 .

coderdoniv commented 4 years ago

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 notifications@github.com Date: 15/12/19 3:52 AM (GMT+12:00) To: yktoo/dklang dklang@noreply.github.com Cc: coderdoniv coderdoniv@gmail.com, Comment comment@noreply.github.com 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 notifications@github.com 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"

}

}

]