• Login
Community
  • Login

How to change format of inserted Bengali text

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
7 Posts 3 Posters 1.3k 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.
  • R
    Randy Miller 0
    last edited by Mar 17, 2022, 5:00 AM

    I’m fairly new to Notepad++.
    When I insert Bengali text into my ASCII text file, it changes the pitch/spacing for that part of the line. When I do this in Microsoft Word, formatting the inserted text to be the same as the rest of the text takes care of the problem.
    How do I do this in Notepad++?

    Notepad++ v8.1.9.3 (64-bit)
    Build time : Dec 6 2021 - 19:21:37
    Path : C:\Program Files\Notepad++\notepad++.exe
    Command Line :
    Admin mode : OFF
    Local Conf mode : OFF
    Cloud Config : OFF
    OS Name : Windows 10 Pro (64-bit)
    OS Version : 2009
    OS Build : 19042.985
    Current ANSI codepage : 1252
    Plugins : mimeTools.dll NppConverter.dll NppExport.dll

    E L 2 Replies Last reply Mar 17, 2022, 10:41 AM Reply Quote 0
    • E
      Ekopalypse @Randy Miller 0
      last edited by Mar 17, 2022, 10:41 AM

      @randy-miller-0

      A picture is worth a thousands words.
      It could be that a lexer used for the current document signals some kind of error notice in such a case.

      R 1 Reply Last reply Mar 18, 2022, 3:44 AM Reply Quote 1
      • L
        Lycan Thrope @Randy Miller 0
        last edited by Mar 17, 2022, 7:27 PM

        @randy-miller-0 ,

        Guessing here.

        CodePage    Charset Friendly Name       Preferred Charset Label
        57003 	    ISCII Bengali 	                x-iscii-be
        

        You’ll find this at http://www.lingoes.net/en/translator/codepage.htm
        Your debug info says code page 1252, which means if it’s interpreting and showing your Bengali characters at all, it’s using double byte characters to do it and can’t change it for display in NPP, when mixing languages.

        Like @Ekopalypse said, pictures are better for viewing the problem you’re stating. I’m just guessing at this point.

        1 Reply Last reply Reply Quote 2
        • R
          Randy Miller 0 @Ekopalypse
          last edited by Randy Miller 0 Mar 18, 2022, 3:47 AM Mar 18, 2022, 3:44 AM

          @ekopalypse
          Rahasya-Romancho Somogro - 2015 ss’s Bengali
          (রহস্য রোমাঞ্চ সমগ্র) Bengali
          (xx)

          This is a cut and paste of part of the text file. The cut and paste “fixed” the problem, in that the second line lines up vertically with the third line.
          The first line leads with 8 spaces.
          The second line (with Bengali script) leads with 12 spaces.
          The line with (xx) leads with 12 spaces.

          However in the original file the second line (with Bengali script), when displayed on the screen, still leads with 12 spaces, but the spaces are not as wide, which moves the display of the beginning of the second line (Bengali text) to before the beginning of the first line of text. A “show all symbols” shows the spaces as a solid line to the (রহস্য রোমাঞ্চ সমগ্র) text, while the first and second lines show separate dots for each space. It’s as if the characters (in the second line) were squished horizontally, like make pitch smaller.

          I have noticed that if I add one ASCII letter character (upper or lower case) in front of the Bengali text then the line becomes “unsquished” and is displayed properly. The parenthesis “(”, as the first character following the 12 spaces, does not undo the squishyness. Neither does adding a “?” or some other non-letter ASCII characters.

          I’m looking into how I can upload a phone pix of this part of the file.

          R 1 Reply Last reply Mar 18, 2022, 4:09 AM Reply Quote 0
          • R
            Randy Miller 0 @Randy Miller 0
            last edited by Randy Miller 0 Mar 18, 2022, 4:10 AM Mar 18, 2022, 4:09 AM

            @randy-miller-0
            Bengali_text_problem cropped.jpg

            The first line beginning with Raha has 8 spaces before it.
            The second line with Bengali text has 12 spaces before it, and should line up with the third line.
            The third with (xx) has 12 spaces before it.

            If I type a letter character on the second line, after the “(” but before the Bengali text, then the display of the beginning of the line suddenly shifts to being in line with the third line.

            E 1 Reply Last reply Mar 18, 2022, 9:28 AM Reply Quote 0
            • E
              Ekopalypse @Randy Miller 0
              last edited by Ekopalypse Mar 18, 2022, 9:29 AM Mar 18, 2022, 9:28 AM

              @randy-miller-0

              Sounds strange and is no problem for me with utf8 encoded buffer and RobotoMono font.

              8df66115-0c9f-4221-af14-b57fcd8895ab-image.png

              I would give it a try by enabling DirectWrite

              101f1b22-7514-4dac-ad10-5f24c6e7265a-image.png

              1 Reply Last reply Reply Quote 4
              • R
                Randy Miller 0
                last edited by Mar 20, 2022, 11:15 PM

                Thank you. Enabling DirectWrite fixed the problem.

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