Semi-space in NP++
-
@Alan-Kilborn said in Semi-space in NP++:
I’d be willing to bet that OP didn’t get that with a Shift+Space press; he just thinks he did.
There are keyboard layouts (reference) which generate a Zero Width Non-Joiner from Shift+space.
-
@mkupper :
At least, simple tabling
| Tables | Are | Cool | | ------------- |:-------------:| -----:| | col 3 is | right-aligned | $1600 | | col 2 is | centered | $12 | | zebra stripes | are neat | $1 |produces:
Tables Are Cool col 3 is right-aligned $1600 col 2 is centered $12 zebra stripes are neat $1 -
@Alan-Kilborn
This is such a nice, compact example of how to make Markdown tables that I think it might make sense for @PeterJones to add it to the Formatting Forum Posts FAQ.Of course, I understand that that FAQ isn’t really meant to be a comprehensive guide to Markdown, and therefore it might make sense to omit it for the sake of conciseness.
-
I think what the OP got is this:
, a Zero Width Non-Joiner (‌). And this matches what @Coises has mentioned here.@JamesWebb: These black-boxed items show characters that are invisible otherwise if you have “Show All Characters” (
) checked in the toolbar. Do not confuse this with the literal text “ZWNJ”. -
I want to clarify that when I mentioned the need for spacing in Persian language, I was not referring to em/en space. In Persian, which is a right-to-left (RTL) language, we use semi-space to indicate that two words are closer to each other than a normal space (Spacebar) would suggest, yet they do not touch each other. This is not an issue when using MS Notepad or Office Word.
I have a screenshot and a screen recording of the issue that occurs when I press Shift+Space. Unfortunately, I cannot share the link due to my zero reputation.
The SS link (just replace “[dot]” with “.” ):
ibb[dot]co/X4H3qPG -
According to this issue on the Windows user forum, as well as this issue with another open source editor, the expected behaviour of the Persian IME keyboard is to insert a
ZWNJcharacter whenShift+SpaceorShift+Bare pressed. The title of the Windows issue refers to “‘half-space’ or ZWNJ”, so they are actually the same thing.Notepad++ is correctly receiving a
ZWNJas input from the keyboard. It was decided in version 8.5.3 to display boxed annotations of non-printing Unicode characters by default — which admittedly favours writers of source code, who need to be aware of every character in the file. MS Word doesn’t do this by default since it’s more attuned to presenting documents as they will look on paper.If you don’t want to see the annotations, go to the
Viewmenu, then theShow Symbolsubmenu, and make sure thatShow Non-Printing Charactersdoes not have a check mark, as suggested already. -
@ rdipardo
It was decided in version 8.5.3 to display boxed annotations of non-printing Unicode characters by default
Yes! I didn’t have it before, it appears in recent (NP++) updates.
Thanks. It worked. -
@Mark-Olson said in Semi-space in NP++:
I think it might make sense for @PeterJones to add it to the Formatting Forum Posts FAQ.
Sorry, I guess since I used that table-technique throughout the FAQ, and even posted screenshots of source code which produces such a table, and posted links to other Markdown resources, it hadn’t struck me that I’d never mentioned there was, in fact, a table syntax. But I suppose I could add an explicit mention.
—
Update: Done. I have added “Tables” to the FAQ. -
Hello, @jameswebb, @alan-kilborn, @mkupper, @terry-r, @Coises, @mark-olson, @gerdb42, @rdipardo and All,
May be, I did not understand all that topic very clearly but, to my mind, it seems easy to bound the
ZWNJcharacter to theShift + Spacebarshortcut !You just have to create a new macro :
So :
-
Start Notepad++ and click on the
¶button of theToolBar -
Open your active
shortcuts.xmlfile within N++ -
Right before the
</macros>line, insert this new macro :
<Macro name="ZWNJ (Semi Space)" Ctrl="no" Alt="no" Shift="yes" Key="32"> <Action type="1" message="2170" wParam="0" lParam="0" sParam="" /> </Macro>Note : Although not visible, there is a
ZWNJcharacter between the two double-quotes desParam!-
Save the modifications of the
shortcut.xmlfile (Ctrl + S) -
Close the
shortcut.xmlfile (Ctrl + W) -
Exit N++ (
Alt + F4) -
Restart N++
Here you are ! Now, each time you use the
Shift + Spacebarshortcut, it will insert azero Width Non Joinercharacter, at caret location, even if theCaps Lockkey is set ;-))Best Regards,
guy038
-
-
@ guy038
You just have to create a new macro
Thank you for providing the macro. The solution was already present, but I wasn’t aware of it.
View menu>Show Symbol submenu> turn off Show Non-Printing Characters