alt codes not working
-
I like to use alt codes for bullets and notice some don’t work like they do in Windows. For example alt+8 just gives me a ? with a box around it but should be a symbol like this ◘. Any ideas how to fix this? I have encoding set to UTF-8.
-
Hello, George Reschke,
It works nice, in my 6.9.1 local N++ configuration :-)) Just :
-
Press the
ALTkey -
Type a number between
1and31, on your numeric keyboard, without any leading zero ! -
Release the
ALTkey
You’ll obtain the 31 following characters, below :
☺ ☻ ♥ ♦ ♣ ♠ • ◘ ○ ◙ ♂ ♀ ♪ ♫ ☼ ► ◄ ↕ ‼ ¶ § ▬ ↨ ↑ ↓ → ← ∟ ↔ ▲ ▼IMPORTANT :
Your file must have a Unicode encoding, that is to say, one of the four following encodings :
- UTF-8
- UTF-8 BOM
- UCS-2 BE BOM
- UCS-2 LE BOM
On the other hand, keep in mind that, with similar gestures :
ALT+ a number n, from001to255, writes the character, of coden, from the appropriate Windows OEM Code page, on your system. Refer to the link, below :
http://msdn.microsoft.com/en-us/goglobal/bb964655
For instance, as I’m French, it’s the 850 (Multilingual Latin I)
ALT+ a number n, from0001to0255, writes the character, of coden, from the appropriate Windows SBCS Code page, on your system. Refer to the link, below :
http://msdn.microsoft.com/en-us/goglobal/bb964654,
Again, on my system, it’s the 1252(Latin I) code page. You can see all the characters of this table, by selecting, in N++, the menu option Edit - Character Panel !
You may, also, have a glance to an other post, on SourceForge, written on February 2015, about that topic :
https://sourceforge.net/p/notepad-plus/discussion/331753/thread/e5b72494/#b5c1
Best Regards,
guy038
-
-
guy038, you nailed it. It was my font which was pointed out in the last link in your post. Nice job and much appreciated.
George
-
@George Reschke
In Npp, guy038’s solution works from decimal char code 1 up to 32 only.
The subsequent characters, up from code 33, have been substituted by various npp control codes.
Look at this two alternative solutions I’m using with success instead:
https://notepad-plus-plus.org/community/topic/11609/how-to-enter-character-codesCheers
Thempleton Aart -
Hello, George Reschke, Thempleton Aart, Claudia, and All,
I’m a bit confused because, the two methods, described in my previous post, for getting characters, with code between
1and255, do work on my N++ configuration ! Of course, when I wrote the expression “ALT + a number n, from …”, there’s no need to press on the numeric pad key +. That’s just a shortcut for the word and !Anyway, many thanks for giving the link below :
https://notepad-plus-plus.org/community/topic/11609/how-to-enter-character-codes/2
Indeed, because the Claudia Franck’s method, about adding a registry entry, works perfectly well :-)). That’s incredible : although involved, since more than 30 years, with computer science, I’ve never heard about that third way to get any Unicode character !!
I found out, on Wikipedia, these three interesting links, below, about all the Input methods :
https://en.wikipedia.org/wiki/Unicode_input
https://en.wikipedia.org/wiki/Unicode_input#Hexadecimal_code_input
https://en.wikipedia.org/wiki/Alt_code
So, once the Claudia’s registry trick realized, on your system, the third and general method for getting any Unicode character, with code-point between
0001andffff, is :-
Hold down the
ALTkey -
Type the
+key, on the NUMERIC keypad -
Type the hexadecimal code-point of the character, using the
0to9keys, on the numeric keypad AND/OR the normalatofkeys, of the alphanumeric keypad -
Release the
ALTkey
=> The appropriate character is written, at cursor location, in your current file
NOTES :
-
You must lock the numeric keypad in “number-mode” ( the NumLock indicator is active and switched on )
-
Of course, the current N++ font must be able to reproduce the glyph of these input characters !
-
All the characters, with code-point outside the Basic Multilingual Plane ( between
\x10000and\x10ffff) CANNOT be obtained, from within Notepad++, with this method :-((
EXAMPLES, by increasing Unicode code-point :
( IMPORTANT : the Courrier New font must be selected, for the N++ Default Style style !! )
-
ALT,+,0,0,0and1writes the Start of Heading control character SOH, -
ALT,+,0,0,9andawrites the Single Character Introducer control character SCI, -
ALT,+,0,0,aandewrites the Registered sign,® -
ALT,+,0,1,6and6writes the Latin Capital letter T with Stroke,Ŧ -
ALT,+,0,3,aand6writes the Greek Capital letter Phi,Φ -
ALT,+,0,4,4andewrites the Cyrillic Small letter Yu,ю -
ALT,+,2,0,3and0writes the Per Mille sign,‰ -
ALT,+,2,0,3andcwrites the Double Exclamation Mark symbol,‼ -
ALT,+,2,0,aand7writes the Spanish Peseta sign,₧ -
ALT,+,2,0,aandcwrites the Euro sign,€ -
ALT,+,2,1,5andewrites the Fraction Seven Eights symbol,⅞ -
ALT,+,2,2,1andewrites the Infinity symbol,∞ -
ALT,+,2,5,6andcwrites the Double Vertical and Horizontal Box drawing symbol,╬ -
ALT,+,2,5,bandawrites the Black Right-Pointing Pointer symbol,► -
ALT,+,2,6,6and3writes the Black Club Suit symbol,♣ -
ALT,+,f,0,0and2writes the Latin Small Ligature fl, -
ALT,+,f,b,3andcwrites the Hebrew letter Lamed with Dagesh,לּ -
ALT,+,f,b,6andawrites the Arabic letter Veh Isolated Form,ﭪ -
ALT,+,f,f,fandfwrites the Last NON character of the BMP, according to its UTF-8 syntax, xEF xBF xBF
Best Regards,
guy038
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login