Search Unity

How do I write proper Hindi or similar language ?

Discussion in 'UGUI & TextMesh Pro' started by bhavinpanara22, Jul 12, 2017.

  1. bhavinpanara22

    bhavinpanara22

    Joined:
    Jul 5, 2013
    Posts:
    126
    Hello,

    How do I write Hindi text properly. If I write it, it's screwed in both Unity UI & TextMesh Pro also.
    Please guide me.
    Examples included for Unity & TextEdit(on mac). See the difference.

    Thanks.
    Screen Shot 2017-07-11 at 12.01.54 PM copy.png Screen Shot 2017-07-11 at 12.07.41 PM.png
     
  2. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,637
    Hi @bhavinpanara22 - What actually is the issue? I fail to see it... The only difference in addition to minor style and color differences is the left aligned text?

    You can align text from Text component, Paragraph/Alignment. But I just wonder what the issue is in your case, as the text should be left aligned by default.
     
  3. rahuxx

    rahuxx

    Joined:
    May 8, 2009
    Posts:
    537
    there are issues with character joining i think.
     
  4. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    The issue is the current lack of support for ligatures and other font features in TextMesh Pro and other Unity text components.

    Support for font features also known as glyph shaping as well as bidirectional text are some of the new features that I am planning on supporting in the new integrated version of TMP.

    I am currently focused on this new integrated version of TMP and do not have an ETA yet on when it will be available.
     
    karl_jones likes this.
  5. bhavinpanara22

    bhavinpanara22

    Joined:
    Jul 5, 2013
    Posts:
    126
    Issue is not as simple as you think.
    Unity renders Hindi( and all indic scripts) completely wrong. Unity can not join some characters. It is not even placing characters in proper sequence. It can not form complex words written in Hindi(or any other Indic script).
     
    URPian likes this.
  6. bhavinpanara22

    bhavinpanara22

    Joined:
    Jul 5, 2013
    Posts:
    126
    You are understanding my problem very well. Can you please give me a hint what should I do now until you release the next version with GPOS & GSUB support.
    Is there any other way to do so ?

    Thanks.
     
  7. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    Unfortunately there is no easy solution. There might be some TextMesh Pro users who may have written some utility to handle ligatures for Hindi but we are sort of stuck hoping for one of them to read this post.

    The idea behind this utility would be to take the source string (text) and parse it to replace / insert the correct ligatures. You would also need to make sure that the substituted glyph is also included in the font asset.
     
  8. bhavinpanara22

    bhavinpanara22

    Joined:
    Jul 5, 2013
    Posts:
    126
    @Stephan_B Hello Sir,

    Please visit the link below.
    This guy has done the work for tamil & telugu. But I can't understand how he has done this ? Can you please giude me about it ? And that guy has done for the 3D text. How can I do it for Unity UI text component ?

    http://nareshkumaryakkala.in/unity-text-rendering-issue/

    Thanks.
     
  9. ds13

    ds13

    Joined:
    Mar 12, 2018
    Posts:
    4
    Hi,
    Any update on supporting ligatures or glyph shaping for Hindi font, other than the link in above comment.
    Please update.

    Thanks.
     
  10. CircusCharlie

    CircusCharlie

    Joined:
    Jul 22, 2014
    Posts:
    38
    Any update on this please?
     
  11. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    This functionality is still being worked on and part of the larger work being done on the new text system. Unfortunately, I don't have a firm ETA on this yet.
     
  12. amjaliks

    amjaliks

    Joined:
    Jul 11, 2015
    Posts:
    159
    Any update on this?
     
  13. grobm

    grobm

    Joined:
    Aug 15, 2005
    Posts:
    217
    Same sort of ordering issue with Arabic fonts as well.
     
  14. weepingwitch

    weepingwitch

    Joined:
    Dec 5, 2016
    Posts:
    3
    Still having this problem in numerous languages.... any hope of updates?
     
  15. Roshan-Rd

    Roshan-Rd

    Joined:
    Oct 2, 2015
    Posts:
    1
    any updates on this ? still not working in text mesh pro 2.0 , unity version 2019.1
     
  16. ranch000

    ranch000

    Joined:
    Mar 24, 2017
    Posts:
    18
    Any approximate ETA on this?
     
  17. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    No firm ETA yet.

    Right now I am focused on making sure the new Dynamic SDF System is stable and provides the necessary functionality.

    Still hoping to get basic support for Pair Adjustments, Diacritical Marks, Ligatures / Emoji combinations in 2019.1 at some point. That won't get us all the way there but will be an improvement.
     
  18. DanishSinha

    DanishSinha

    Joined:
    Nov 9, 2016
    Posts:
    18
    Wow, this is impossible for us now as we are building language localized profiling games.
    Just to know Unity doesn't support Hindi, Kannada etc.
     
  19. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    Look at the following add-on which works with TextMesh Pro.
     
  20. Umresh

    Umresh

    Joined:
    Oct 14, 2013
    Posts:
    56
    Hi, Did you guys found solution to render Hindi text in TextMeshPro UGUI. I have <sub> tags too which is rendered in TextMeshPro and i'm using <sprite> tags to show images. So I'm hoping we have a solution to render Hindi in TextMeshPro.
     
  21. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    Have you tried the following plugin that works with TMP?

    If so, are you still running into tag issues with it?
     
  22. Umresh

    Umresh

    Joined:
    Oct 14, 2013
    Posts:
    56
    Hi @Stephan_B I Used the instructions in the RTL plugin(I'm Using "Devnagari" font for hindi text). I copied unicode(0923) for the character on the "Character Sequence" and it says character missing from font file. I get the text from json(string) and assign it using script.
     
  23. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    Make sure the character is present in your font asset or make sure you have a dynamic fallback assigned to your primary font asset.
     
  24. Umresh

    Umresh

    Joined:
    Oct 14, 2013
    Posts:
    56
    Fixed the issue added the Unicode to the custom Unicode in TMPro. I can't render the GSUB table, is there a workaround to render GSUB table for glyphs substitution.
     
  25. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    Support for OpenType features is not available yet. Initial support for Diacritical marks and Ligatures are planned for the Unity 2019.x cycle.
     
  26. Pranjal_Nayak

    Pranjal_Nayak

    Joined:
    Sep 12, 2019
    Posts:
    3
  27. Pranjal_Nayak

    Pranjal_Nayak

    Joined:
    Sep 12, 2019
    Posts:
    3
  28. Pranjal_Nayak

    Pranjal_Nayak

    Joined:
    Sep 12, 2019
    Posts:
    3
  29. musheerxcubelabs

    musheerxcubelabs

    Joined:
    Nov 5, 2019
    Posts:
    2
  30. vasanthbalaji

    vasanthbalaji

    Joined:
    Nov 15, 2014
    Posts:
    34
  31. kunialabs

    kunialabs

    Joined:
    Nov 26, 2018
    Posts:
    1
    Hi guys

    Kindly reply if anyone has cracked Hindi fonts for Unity game.

    Thnx
     
  32. Doo-Joo

    Doo-Joo

    Joined:
    Jun 20, 2013
    Posts:
    1
    Last edited: May 26, 2020
    URPian and RaviSinha like this.
  33. pnayak

    pnayak

    Joined:
    May 8, 2020
    Posts:
    5
  34. pnayak

    pnayak

    Joined:
    May 8, 2020
    Posts:
    5
    Please Reach out to marketing@reverieinc.com
     
  35. URPian

    URPian

    Joined:
    Aug 13, 2012
    Posts:
    33
    The product seems interesting, any chance that they can publish it on the asset store, instead of trying to market it themselves? Many devs would be interested to incorporate Indic languages in their games.
     
  36. vasanthbalaji

    vasanthbalaji

    Joined:
    Nov 15, 2014
    Posts:
    34
    @URPian I have a solution for rendering Hindi letters properly in TextMesh Pro, Hindi letters will not be broken,please contact me vasanthbalaji88@gmail.com Screenshot_20200519-074944.png
     
    Stephan_B and URPian like this.
  37. URPian

    URPian

    Joined:
    Aug 13, 2012
    Posts:
    33
    Hello @vasanthbalaji,
    Firstly, the correct Hindi usage in Unity TMP is admirable work considering Unity does not handle non-English text gracefully. Kudos to that!

    Secondly, I would like to request you to please publish your work on the Unity Store. We need more quality Indic text plugins for Unity.

    There are other languages in India like-Telugu, Tamil, Gujarati, Bengali, Punjabi, Kannada, Malayalam, Urdu which are implemented in some popular apps to enormous success. Having games translated in these languages would enable a lot of developers to expand their reach.

    PS. I was trying to post this

    https://imgur.com/a/yq4PQww


    but got an error, seems like Unity Forum itself is not compatible with Indic texts
    https://imgur.com/a/NaSn5jp

     
  38. vasanthbalaji

    vasanthbalaji

    Joined:
    Nov 15, 2014
    Posts:
    34
    @URPian

    I have submitted the package in asset Store for Tamil and Hindi ,waiting for asset Store Team to review it. I think it will take longer than usual time to review the package. Right now I have done only Tamil and Hindi for properly rendering in TextMesh Pro. Screenshot_20200516-215449.png
     
    URPian likes this.
  39. URPian

    URPian

    Joined:
    Aug 13, 2012
    Posts:
    33
    Looking forward to it. Please update the thread when it's live.
    Thank you for your efforts!:)
     
  40. vasanthbalaji

    vasanthbalaji

    Joined:
    Nov 15, 2014
    Posts:
    34
    Last edited: Jun 10, 2020
    URPian likes this.
  41. URPian

    URPian

    Joined:
    Aug 13, 2012
    Posts:
    33
  42. tamizhan

    tamizhan

    Joined:
    Feb 23, 2018
    Posts:
    6
    Tamil and English has support or not and same text content .
     
  43. vasanthbalaji

    vasanthbalaji

    Joined:
    Nov 15, 2014
    Posts:
    34
    @tamizhan

    Both English and Tamil can be written on Tamil font Plugin.Can you elaborate your question please
     
  44. pnayak

    pnayak

    Joined:
    May 8, 2020
    Posts:
    5
  45. pnayak

    pnayak

    Joined:
    May 8, 2020
    Posts:
    5
  46. pnayak

    pnayak

    Joined:
    May 8, 2020
    Posts:
    5
    Presently we do not have plans to put it on asset store. Please reach out to us through our website https://reverieinc.com/contact.html
     
  47. nayakshasvat

    nayakshasvat

    Joined:
    Jan 25, 2018
    Posts:
    2

    Attached Files:

    Smj7 and rohitvishwakarma1819 like this.
  48. rohitvishwakarma1819

    rohitvishwakarma1819

    Joined:
    Feb 15, 2018
    Posts:
    14
    Smj7 and nayakshasvat like this.
  49. Smj7

    Smj7

    Joined:
    Dec 13, 2018
    Posts:
    1
  50. rohitvishwakarma1819

    rohitvishwakarma1819

    Joined:
    Feb 15, 2018
    Posts:
    14