• Login
Community
  • Login

Odia text not rendered properly in NPP

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 3 Posters 595 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    Ajit Nayak
    last edited by Jan 14, 2021, 12:28 AM

    Conjunct consonants are not rendered properly when one matra is combined with two consonants in Odia language.
    Example: କ + ର + ୁ = କ୍ରୁ rendered as (କ୍ ରୁ)
    Another: ସ + ମ + ୃ = ସ୍ମୃ rendered as (ସ୍ ମୃ )
    Please help

    The image of the problem is below:
    odia_rendering problem.jpg

    E 1 Reply Last reply Jan 14, 2021, 1:15 PM Reply Quote 0
    • E
      Ekopalypse @Ajit Nayak
      last edited by Jan 14, 2021, 1:15 PM

      @Ajit-Nayak

      Have you tried setting driectwrite?
      afc86a82-f140-4ad7-8cc5-0bb139724ccd-image.png

      1 Reply Last reply Reply Quote 2
      • G
        guy038
        last edited by guy038 Jan 16, 2021, 2:04 PM Jan 14, 2021, 2:12 PM

        Hello, @ajit-nayak, @ekopalypse and All,

        Sorry, @ajit-nayak, as an European man I’m not acquainted, of course, with Indian languages !

        However, I’m pretty sure that your problem is related to the current fonts, installed in your OS and not related to Notepad++

        Presently, on my OS ( an old XP SP3 laptop ) I’ve got the following typefaces, relative to Indian languages and scripts :

        •-------------•---------------•----------------------------•
        |  Typeface   |   Font Name   |  Target Language / Script  |
        •-------------•---------------•----------------------------•
        |  gautami    |  gautami.ttf  |  Telugu language           |
        |  MV Boli    |  mvboli.ttf   |  Thaana writing system     |
        |  Raavi.ttf  |  raavi.ttf    |  Gurmukhi abugida          |
        |  Shruti     |  shruti.ttf   |  Gujarati language         |
        |  Tunga      |  tunga.ttf    |  Kannada script            |
        |  Vrinda     |  vrinda.ttf   |  Bengali language          |
        •-------------•---------------•----------------------------•
        

        Refer to this link for an oversight of all the typefaces on Windows systems :

        https://en.wikipedia.org/wiki/List_of_typefaces_included_with_Microsoft_Windows

        From this list, I did not have any font for the Odia language ( formerly spelled as Oriya )

        Refer to the link below, which explicits all Odia Unicode characters :

        http://www.unicode.org/charts/PDF/U0B00.pdf

        Luckily, after some researches on Google, I came across this site   http://odiafonts.com/


        So, follow these steps :

        • Close any Notepad++ instance, first

        • Download the archive ananta.zip :    http://odiafonts.com/d/13058/ananta.zip

        • Extract the OR51_Ananta.ttf font file

        • Double-click on the OR51_Ananta.ttf file ( before installing this font, definitively, on your system ! )

        • Re-start Notepad++ :

        • Select the Settings > Style Configurator... > Global Styles > Global override style

        • Then, in the Font Style section, choose the Odia Ananta font

        • Tick the Enable global font option

        • Click on the Save & Close button


        With this font , containing 755 characters and 1245 glyphs, all the Unicode Odia characters are correctly displayed, except for the character \x{0B55} ( ORIYA SIGN OVERLINE ) !?

        And I was able to get your composed characters, shown in your post. For instance :

        • Concerning your first example :

          • \x{0B15} => କ
          • କ + \x{0B4D} => କ୍
          • କ୍ + \x{0B30} => କ୍ର
          • କ୍ର + \x{0B41} => କ୍ରୁ
        • Concerning your second example :

          • \x{0B38} => ସ
          • ସ + \x{0B4D} => ସ୍
          • ସ୍ + \x{0B2E} => ସ୍ମ
          • ସ୍ମ + \x{0B43} => ସ୍ମୃ

        To end with, here is an example of a regex S/R which change the latin letters A and Z, whatever their case, into your two characters :

        • SEARCH (?i)(A)|(Z)

        • REPLACE (?1\x{0B15}\x{0B4D}\x{0B30}\x{0B41})(?2\x{0B38}\x{0B4D}\x{0B2E}\x{0B43})

        So from the simple line

        A - Z
        

        You would get :

        କ୍ରୁ - ସ୍ମୃ
        

        I hope I’m not too “off-topic” !

        Best Regards,

        guy038

        P.S. :

        Of course, the real glyph of composed Odia characters, resulting of the four consecutive characters, can ONLY be seen is you open this text, using the OR51_Ananta.ttf font file :-))

        Ah ! Here is a picture of my file :

        e6a669f1-0989-4f71-93e4-3a13375691ba-image.png

        A 1 Reply Last reply Jan 16, 2021, 12:41 AM Reply Quote 3
        • A
          Ajit Nayak @guy038
          last edited by Jan 16, 2021, 12:41 AM

          Hello, @ekopalypse and @guy038
          Thank you very much for the quick response.
          The Solution provided by @guy038 completely solves the problem and now I can write anything in my language.
          So nice of you @guy038 to provide the solution with other research outputs that will further help us for using it effectively.
          with regards
          Ajit

          1 Reply Last reply Reply Quote 3
          4 out of 4
          • First post
            4/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors