Julow / Unexpected-Keyboard

A lightweight virtual keyboard for developers.
GNU General Public License v3.0
1.31k stars 174 forks source link

Question: Copyrightright, registered, trademark and other alt symbols? #686

Open JackDSRS opened 3 weeks ago

JackDSRS commented 3 weeks ago

Sorry to ask yet another stupid question but how do I enter symbols I can't find on the keyboard? Alt combinations, like,

Copyright © Alt + 0169 Registered ® Alt + 0174 Trademark ™ Alt + 0153 One fourth fraction ¼ Alt + 0188 One half fraction ½ Alt + 0189 Three fourth fraction ¾ Alt + 0190

Yes, these have been cut and pasted as text from a website, and yes, some exist as emoji's but:

  1. I'd rather not create an entire new keyboard or tweak another app .json, .dat, .sys, or whatever file again when a keyboard combination already exists. Also, as text, I can bold, italic, enlarge, color or modify the text inline with other text or by itself with normal text options

  2. I can't do those types of text modifications with emoji's.

This is more important in digital art apps as emoji's may have to be independent from text but part of a slogan, and text effects applied, like arching, animating or warping. Finding, clipping and pasting is maddening.

So, again, anyway to add these Alt + number combos? I can do Alt and the first number but then the Alt key releases. If I do swipe/hold Alt, the Alt key stays up, but the number codes do nothing. I've tried it inside the 123+ character keyboard as well.

I smell a "You're SOL coming" but it's worth asking.

JackDSRS commented 3 weeks ago

Sorry to ask yet another stupid question but how do I enter symbols I can't find on the keyboard? Alt combinations, like,

Copyright © Alt + 0169 Registered ® Alt + 0174 Trademark ™ Alt + 0153 One fourth fraction ¼ Alt + 0188 One half fraction ½ Alt + 0189 Three fourth fraction ¾ Alt + 0190

Yes, these have been cut and pasted as text from a website, and yes, some exist as emoji's but:

  1. I'd rather not create an entire new keyboard or tweak another app .json, .dat, .sys, or whatever file again when a keyboard combination already exists. Also, as text, I can bold, italic, enlarge, color or modify the text inline with other text or by itself with normal text options
  2. I can't do those types of text modifications with emoji's.

This is more important in digital art apps as emoji's may have to be independent from text but part of a slogan, and text effects applied, like arching, animating or warping. Finding, clipping and pasting is maddening.

So, again, anyway to add these Alt + number combos? I can do Alt and the first number but then the Alt key releases. If I do swipe/hold Alt, the Alt key stays up, but the number codes do nothing. I've tried it inside the 123+ character keyboard as well.

I smell a "You're SOL coming" but it's worth asking.

I got what I wanted by constantly pasting the missing characters to the keyboard, but man, its a hot mess. Well, at least they're there. It could't take the bold tick mark though.

™➥➦©➩¼½®¾

Right down the middle row, right down slide, skipped the }] symbols, but bumped paste as plain text to the L key. The remaining keys went to the num pad 456 keys.

If I want any other order, I'm gonna have to do some dang editing.

Julow commented 3 weeks ago

That's what the compose key is, it's on the middle of the arrow keys. <compose> t m = ™ <compose> - > = → <compose> 1 4 = ¼ <compose> ( c = ©

The arrows you want though don't seem to be in there. To make your layout you can use a <modmap>. You can follow this issue, which is about entering the unicode codes: https://github.com/Julow/Unexpected-Keyboard/issues/191

JackDSRS commented 3 weeks ago

That's what the compose key is, it's on the middle of the arrow keys. <compose> t m = ™ <compose> - > = → <compose> 1 4 = ¼ <compose> ( c = ©

The arrows you want though don't seem to be in there. To make your layout you can use a <modmap>. You can follow this issue, which is about entering the unicode codes: #191

Ok. We have definitely gotta work on a wiki or documentation or manual here. I do searches before asking anything because I don't want to reinvent the wheel. There's way too many features in this keyboard for them to be remotely intuitive!

Spike-from-NH commented 3 weeks ago

Dittos, @JackDSRS. Julow has a neat state-machine where the legends change and invalid keys dim IF you start a compose sequence correctly. The file that drives that engine is 445 Kb, but I have that plus the one from Hacker's. I too mostly grab my favorites and copypaste them into a custom layout.