Open Eirmas opened 3 months ago
What do you mean by “value name”?
There is the internal glyph name, which cannot have spaces, and for whatever reasons is not capitalized. For display purposes that is sometimes shown with underscores converted to spaces, and capitalizing the first letter of each word. I might call that a “display name.” Is that what you mean?
There is also the Unicode codepoint, which is a hexadecimal value, but not a name.
Things are complicated in that one icon can support multiple names (via ligature code, although generally only one is the “true” name) and multiple codepoints (by having more than one, directly).
What do you mean by “value name”?
There is the internal glyph name, which cannot have spaces, and for whatever reasons is not capitalized. For display purposes that is sometimes shown with underscores converted to spaces, and capitalizing the first letter of each word. I might call that a “display name.” Is that what you mean?
There is also the Unicode codepoint, which is a hexadecimal value, but not a name.
Things are complicated in that one icon can support multiple names (via ligature code, although generally only one is the “true” name) and multiple codepoints (by having more than one, directly).
Sorry for the confusion. The list of names I'm looking for are the glyph names such as "expand_more" or "arrow_right_alt".
Gotcha.
I would add that the other key piece of data is the Unicode codepoint, e.g. U+E8FF for ”zoom_in“
I found a list of the material symbols. It could be out of date but I'll attach it here if anyone else is looking for it material-symbols.json
Where is that file in the directory structure here? Like in what Github folder?
It looks to have about 2/3 of the icons, so I guess it must be from 2022 or thereabouts.
I found the list by searching through sources the material symbol website It was in one of the files from https://gstatic.com/
I removed icons ending with "_sharp", "_rounded" and "_outlined" as they are not relevant for my usecase. Thats why it might appear like some of the icons are missing.
@Eirmas you can have a look at my comment here where I wrote a script to generate the icons names.
Does there exist a list of all available material symbols in JSON format or similar? Would be nice if it included both the human readable name and the value name