How to change format of inserted Bengali text
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++ v220.127.116.11 (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
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.
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.
Rahasya-Romancho Somogro - 2015 ss’s Bengali
(রহস্য রোমাঞ্চ সমগ্র) Bengali
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.
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.
Sounds strange and is no problem for me with utf8 encoded buffer and RobotoMono font.
I would give it a try by enabling DirectWrite
Thank you. Enabling DirectWrite fixed the problem.