phun-ky / speccer

SPECCER was originally created to simplify documenting components in a design system, but it can be used to annotate or highlight any HTML element on a webpage. If you need to draw attention to elements, SPECCER is your tool!
https://phun-ky.net/projects/speccer/
MIT License
14 stars 1 forks source link

Add option to use numbers or given literals for dissection #215

Closed phun-ky closed 1 month ago

phun-ky commented 1 month ago

For example, if I wanted to use numbers:

speccer({numbers: true});

This should be behind an option tbh.

Or given literals, like japanese:

window.SPECCER_LITERALS = [あ,い,う,え,お,か,き,く,け,こ,さ,し,す,せ,そ,た,ち,つ,て,と,な,に,ぬ,ね,の,は,ひ,ふ,へ,ほ,ま,み,む,め,も,や,ゆ,よ,ら,り,る,れ,ろ,わ,を];
speccer();
phun-ky commented 1 month ago

First release of this feature should be by custom literals only, so if someone wants numbers, use the literals array.