Search Unity

How do I write proper Hindi or similar language ?

Discussion in 'Unity UI (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:
    1,258
    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:
    533
    there are issues with character joining i think.
     
  4. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    3,187
    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).
     
  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

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    3,187
    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. Divkaran

    Divkaran

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

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    3,187
    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:
    102
    Any update on this?
     
  13. grobm

    grobm

    Joined:
    Aug 15, 2005
    Posts:
    215
    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:
    4
    Any approximate ETA on this?
     
  17. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    3,187
    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:
    8
    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

    Unity Technologies

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

    Umresh

    Joined:
    Oct 14, 2013
    Posts:
    33
    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

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    3,187
    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:
    33
    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

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    3,187
    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:
    33
    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

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    3,187
    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