jgm / djot

A light markup language
https://djot.net
MIT License
1.63k stars 43 forks source link

Allow Unicode symbols for list items such as •, ◦, ‣ #195

Open toastal opened 1 year ago

toastal commented 1 year ago

Unicode is nice and typography and word processors have some established bullet symbols. I find them to be a more pleasant experience to read plaintext document with these symbols over * or - as they have many different meanings to me due to ANSI compatibility.

vassudanagunta commented 1 year ago

Yes, they would avoid the ambiguity of -, though djot already avoids most of this ambiguity by requiring a blank line before a new list.

toastal commented 1 year ago

It's mostly just an aesthetic choice, but has some history to it. With a pen we would certainly write and books have done it this way since before computers, but keyboard limitations are the reason we go for - and *. However in 2023 we certainly have the ability to type (with the Vim digraph oo supported since 2004).

If #196 proposals support emoji symbol, there would be precedence to support Unicode.

bpj commented 1 year ago

There is some difficulty in that Lua can't match chars above U+007F as classes. You will have to either match any character and look it up in a list, or try one match for (the bytes of) each possible char, both of which are suboptimal to say the least. If you want to preserve Lua compatibility that is.