typst icon indicating copy to clipboard operation
typst copied to clipboard

text.accent function counterpart to math.accent

Open Restioson opened this issue 2 years ago • 8 comments

It might be useful to provide a text.accent function to insert symbols like ö without having to look them up or memorize an alt code. This would be an exact counterpart to math.accent

I've migrated this manually from the old #bugs-and-features forum

Restioson avatar Apr 16 '23 10:04 Restioson

Isn't this better achieved by the code editor inserting the desired letter for you using a snippet?

Enivex avatar Apr 16 '23 23:04 Enivex

It is annoying to have to switch editors to type one character and the switch back, especially if you don't know the name of the diacritic. For instance, I just recently learned that the deelteken (dots on the ë) are called diaeresis in English.

Restioson avatar Apr 17 '23 06:04 Restioson

Isn't this better achieved by the code editor inserting the desired letter for you using a snippet?

Another counterpoint: typst has a symbol for ∈, but this can also be inserted by a code editor, so in could technically be removed. But, it is kept, since it's annoying for people to type.

Restioson avatar Apr 18 '23 07:04 Restioson

Isn't this better achieved by the code editor inserting the desired letter for you using a snippet?

Another counterpoint: typst has a symbol for ∈, but this can also be inserted by a code editor, so in could technically be removed. But, it is kept, since it's annoying for people to type.

That's a math symbol though. Presumably if you're typing ö often you'll with have the precomposed symbol on your keyboard, or a dead key for that diacritic.

I'm just getting flashbacks to older LaTeX documents full of stuff like \"{o} because UTF8 wasn't a thing.

Enivex avatar Apr 18 '23 07:04 Enivex

That's a math symbol though

I don't see how this is necessarily relevant as there are still multiple ways to input them with a keyboard as unicode symbols

Presumably if you're typing ö often you'll with have the precomposed symbol on your keyboard, or a dead key for that diacritic.

A lot of people don't as we may only need to type them infrequently; e.g a monolingual English speaker may want to type Gödel once or twice but not more than that.

Restioson avatar Apr 19 '23 07:04 Restioson

I do that constantly. I don't have a dedicated keyboard for every language I speak and write in.

Proliecan avatar Aug 26 '23 22:08 Proliecan

+1, writing a game theory paper right now, and having to type misère so much is misère

yichenchong avatar Apr 18 '24 01:04 yichenchong