20
submitted 2 days ago* (last edited 2 days ago) by MonkderDritte@feddit.de to c/linux@lemmy.ml

For example, there is Material Notes which has a editor toolbar with bold, indented, ~~stroke~~, etc. But this is rendered, exported to json or syntax like Markdown. This app too, in which i write this on lemmy, does the same. We have ☐, ☒, •, ‣ in Unicode, 𝗕𝗼𝗹𝗱, 𝑖𝑛𝑑𝑒𝑛𝑡, s̵t̵r̵o̵k̵e̵, so why not use this?

Basically, what i'm looking for is a text editor with toolbar/keystrokes for Android or Linux, which adds unicode symbols for rich text. It would make reading plain text notes/todo lists cross-device simpler. Yes, there's UnicodePad and Charmap but that's not the same.

edit: something where you mark a word, tap the B in the toolbar or press ctrl+b and it replaces the characters with uc bold characters, no? Tap the list button and it adds uc bullet points, etc...

top 17 comments
sorted by: hot top controversial new old
[-] therealjcdenton@lemmy.zip 2 points 1 day ago
[-] nmtake@lemm.ee 6 points 2 days ago

Some applications can't display some Unicode strings like s̵t̵r̵o̵k̵e̵, so replacing Markdown element like ~strike~ with Unicode equivalent (s̵t̵r̵o̵k̵e̵ ) may not be a good idea if you want portability. I opened your post in text editors and noticed that neovim-qt drops s̵t̵r̵o̵k̵e̵'s combining characters (issue on Github) and just displays stroke instead of s̵t̵r̵o̵k̵e̵; GUI Emacs with my font settings (Noto) doesn't combine the characters and displays s-t-r-o-k-e- (as I said, this may depends on font settings).

[-] MonkderDritte@feddit.de 1 points 2 days ago* (last edited 2 days ago)

Yeah, of course font an tool needs to support it. Well ok, maybe we're not yet there. On the other hand, Emacs and Vim are quite old. It works in Kate, Mousepad, Leafpad... Nano does s-t-r-o-k-e too. Geany does a mix where it displays correctly but each char has two strokes, weird. But that is still good enough.

[-] asap@lemmy.world 3 points 2 days ago* (last edited 2 days ago)

If you know Javascript you could very easily write a plugin in Obsidian to do this. Just have the plugin replace any markdown with the Unicode equivalent on save.

Great question though, it's actually making me wonder why this isn't a thing in normal plain text editors!

[-] leopold@lemmy.kde.social 4 points 1 day ago

Because it's not actually a good idea.

You create text that is basically impossible to search. Like, for instance, do a Ctrl+F on this page and search for "Bold". You'll see the example from OP doesn't get picked up, because it's not a B, it's a 𝗕. And it's not an o, it's an 𝗼. And so on. Or how about this? Go on Google and copy-paste this word from OP: "s̵t̵r̵o̵k̵e̵". Now, stroke isn't a particularly unusual word, but this thread is just about the only result Google returns. Because it's not stroke. It's s̵t̵r̵o̵k̵e̵.

It's also bad for accessibility. A lot of the time screen readers just won't know what to do with your bold or italic Unicode text.

And of course this only works for characters for which Unicode actually has these variants. Not a problem with the Latin alphabet, but what about Arabic? Cyrillic? Chinese? Devanagari? Hangul? Not gonna work.

These characters are from the Mathematical Alphanumeric Symbols code block. They're stylized Greek and Latin letters meant chiefly for use in mathematical contexts. The Unicode standard explicitly advises against using them to fake markup for the reasons outlined above and more. A simple markup language is just about always going to be preferable to faking it with Unicode.

[-] MonkderDritte@feddit.de 1 points 2 days ago* (last edited 2 days ago)

Great question though, it's actually making me wonder why this isn't a thing in normal plain text editors!

Right? Why make the text editor Unicode capable but not implement this? Are we too stuck in the xml ways?

[-] django@discuss.tchncs.de 2 points 2 days ago

This shouldn't be too hard to implement in Emacs.

[-] just_another_person@lemmy.world 2 points 2 days ago

I doubt toolbars in a rich text editor specifically for Unicode symbols would be a thing, because...why?

There's definitely VScode extensions that would show the glyphs or convert the actual unicode hex to whatever it should be.

[-] MonkderDritte@feddit.de 1 points 2 days ago* (last edited 2 days ago)

I mean with rich text, text with bold, indent, etc., not a specific markup. On the contrary, i want to replace markup with native Unicode symbols.

[-] just_another_person@lemmy.world 2 points 2 days ago

You probably want a code editor then.

[-] MonkderDritte@feddit.de 1 points 2 days ago* (last edited 2 days ago)

~~No.~~

Ah, you meant implement it myself? Well, maybe in a few years, i have a gazilion other things to work on.

[-] just_another_person@lemmy.world 3 points 2 days ago

No, like VScode or similar. That's probably where you're going to find a feature like this.

[-] ElectronBadger@lemmy.ml 1 points 2 days ago

SublimeText with this plugin: https://github.com/mvoidex/UnicodeMath

Despite the name, it works for all Unicode characters :)

[-] MonkderDritte@feddit.de 2 points 2 days ago

Ah damn, proprietary.

And looks like it only pastes? I make an edit.

[-] 2xsaiko@discuss.tchncs.de 0 points 2 days ago

Why not just use RTF documents?

this post was submitted on 02 Jul 2024
20 points (100.0% liked)

Linux

45501 readers
1902 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS