typey-type icon indicating copy to clipboard operation
typey-type copied to clipboard

Provide textual description for symbol/punctuation items

Open YannCebron opened this issue 3 years ago • 4 comments

Sometimes it's a bit hard to distinguish the symbol to type.

e.g. vs. and vs.

Ideally, TT would add descriptions to all symbols by using some builtin map symbol->description text and show it automatically. This would also help using custom lessons to use non-default dicts (e.g. Emily Symbol System).

YannCebron avatar Oct 15 '22 13:10 YannCebron

Thanks for sharing this @YannCebron !

Are there particular lessons where punctuation is hard to distinguish? E.g. the punctuation lesson specifically or coding lessons or story lessons with dialogue or…?

Where might textual descriptions appear?

I didn’t quite follow what you meant about “help using custom lessons to use non-default dicts (e.g. Emily Symbol System)”, can you share some more detail there?

didoesdigital avatar Oct 16 '22 01:10 didoesdigital

Technically this should appear everywhere punctuation appears, probably via setting to turn it on/off.

Whenever a "punctuation word" appears, its textual description could be shown underneath it to clarify the current symbol. (basically a builtin version of references like https://en.wikipedia.org/wiki/List_of_typographical_symbols_and_punctuation_marks)

s

w/r to custom lessons, e.g. https://github.com/EPLHREU/emily-symbols offers way more punctuation symbols than the ones commonly appearing in TT lessons and regular texts, and the variations are thus more subtle making this feature even more needed.

YannCebron avatar Oct 23 '22 10:10 YannCebron

Ah! That all makes sense. I appreciate the extra detail and the visual.

This might work well as a setting called “Punctuation descriptions” next to “Simple typography”, so that people can turn it off if it’s too much visual clutter for them that they find it distracting, but it could default to on so it’s easy to discover.

It could possibly show a description for any material that is made only of punctuation i.e. ; and/* but not ”example.” where sentence context could help distinguish punctuation characters. It might be useful to have a limit and only show it on something like 3 character items so it doesn’t show a dozen words on ============ in the markdown lesson.

For the multi-line layout I think it makes sense to show the description in the same spot. It could possibly be in a p (paragraph) linked to the text input by aria-describedby to indicate it is describing the form field.

didoesdigital avatar Oct 23 '22 23:10 didoesdigital

It might also be useful with the speak content with words setting too!

didoesdigital avatar Oct 23 '22 23:10 didoesdigital

@YannCebron I've just published a version that starts with showing descriptions for quotation marks and back ticks, only for single-character items. Let me know what you think!

image image

didoesdigital avatar Nov 19 '22 09:11 didoesdigital

Awesome, thanks! But the checkbox doesn't work for me on FF 107, macOS - can't check it.

YannCebron avatar Nov 19 '22 09:11 YannCebron

Whoops, I made a couple mistakes. Just published a fix, try it now? (You may need to hard refresh the browser.)

didoesdigital avatar Nov 19 '22 09:11 didoesdigital

The checkbox works but has no effect, tried also in private browsing mode.

YannCebron avatar Nov 19 '22 09:11 YannCebron

There it works. It stops working when enabling "Simple typography" ??

YannCebron avatar Nov 19 '22 09:11 YannCebron

Simple typography turns back ticks into plain apostrophes, and so far punctuation descriptions are only shown for back ticks and curly quotation marks, to try it out on the weirdest, hardest-to-spot punctuation.

Do you think it makes sense to A) show the description for both back ticks and apostrophes when punctuation descriptions is on and simple typography is off or B) show the description only for the less common character (back tick) when punctuation descriptions is on and simple typography is off?

didoesdigital avatar Nov 19 '22 09:11 didoesdigital

OK got it, the tooltip even says "hard to distinguish". I'd prefer to show it for any punctuation symbols, even if user is not confused, it still helps learning and memorising the correct terms for every symbol (especially for non-native users).

YannCebron avatar Nov 19 '22 10:11 YannCebron

That makes sense. Hmm, so does that mean for the punctuation lesson, for example, you'd expect C) every punctuation symbol to show a description?

didoesdigital avatar Nov 19 '22 10:11 didoesdigital

yes, every single one :)

YannCebron avatar Nov 19 '22 10:11 YannCebron

I'll make some changes ⏳

didoesdigital avatar Nov 19 '22 10:11 didoesdigital

Ok, descriptions for everyone! image

Here's the full list for now: https://github.com/didoesdigital/typey-type/blob/master/src/utils/describePunctuation.ts

It could do with some more currency symbols but I ran out of energy. If you have more you'd like to add, feel free to paste them here following the format in that file and I'll get them added!

didoesdigital avatar Nov 19 '22 11:11 didoesdigital

Oh and here's a lesson to try them out: https://docs.google.com/spreadsheets/d/1AlO2SSUwuv3yrz7RI9ix_z1Efbiu_j50c_ibGYwdsgc/edit#gid=2028995866

didoesdigital avatar Nov 19 '22 11:11 didoesdigital

That looks quite complete! Thanks :)

YannCebron avatar Nov 19 '22 11:11 YannCebron

Let me know how it goes!

didoesdigital avatar Nov 19 '22 11:11 didoesdigital