domschrei / krunner-symbols

A lightweight KRunner plugin (Plasma 5) to retrieve unicode symbols, or any other string, based on a corresponding keyword.
GNU General Public License v3.0
117 stars 12 forks source link

Add more typographical symbols #9

Closed OndraM closed 7 years ago

OndraM commented 7 years ago

Hi, thanks for the great krunner extensions, it is very handy!

I've added three symbols I often use. I added them to my local ~/.config/krunner-symbolsrc, however, it may be handy to make them part of the default distribution, as these symbol are often used in typography: non-breaking space `, en dashand em dash—`.

kupiqu commented 7 years ago

I guess "non-breaking" applies to the three of them (space , en dash – and em dash —), right?

OndraM commented 7 years ago

Hi, no, it applies to the one space character - it is special type of space, where browser, editors etc. won't break for a new line between two words.

domschrei commented 7 years ago

Hello there! Thanks for your contribution. Seems like something useful. I am gonna merge these (though maybe at the top of the "general symbols" section, as the symbols there get increasingly arbitrary from top to bottom); is it maybe better to call them "emdash" and "endash"? We could add them with both keywords as well (ndash/endash, mdash/emdash).

OndraM commented 7 years ago

@domschrei As your will. I based the name on the name of html entities (– and —), but its up to you. The alias is also an option :).

Thanks!

kupiqu commented 7 years ago

But dashes appear already in my system :/

Not the unbreakable space, but there is the unbreakable hyphen so that's why I asked...

On Jul 28, 2017 04:26, "Ondřej Machulda" notifications@github.com wrote:

Hi, no, it applies to the one space character - it is special type of space, where browser, editors etc. won't break for a new line between two words.

OndraM commented 7 years ago

@kupiqu Aren't you talking about hyphen (-)? Because there is no easy way on my system how to write ndash//mdash, except the Ctrl+Shift+U 2014... https://askubuntu.com/questions/31258/how-can-i-type-a-unicode-character-for-example-em-dash

kupiqu commented 7 years ago

See screenshot:

image

First two symbols correspond to EN and EM dashes.

domschrei commented 7 years ago

Sorry for the delay, I had much to do over the past weeks. I merged the symbols, with additional keywords:

nbsp,nobreakspace= 
ndash,endash=–
mdash,emdash=—

@kupiqu Yes, you appear to have the Unicode database enabled. It contains these symbols as well (but I understand if people do not want this, because it yields so many results, many of which are not wanted).

kupiqu commented 7 years ago

@kupiqu Yes, you appear to have the Unicode database enabled. It contains these symbols as well (but I understand if people do not want this, because it yields so many results, many of which are not wanted).

I see, that's why. I kind of like seeing all these weird symbols appearing :)