Caster icon indicating copy to clipboard operation
Caster copied to clipboard

Add boilerplate to make changing specs easier

Open seekM opened this issue 6 years ago • 1 comments

You can change specs with words.txt or rule filters. In my opinion one of them should be populated with all existing specs and an identity mapping.

E.g. for words.txt:

#Alphabet                                (castervoice/lib/ccr/core/alphabet.py)
#==============================================================================
<<<EXTRA>>>
arch -> arch
brov -> brov
...

That makes it easier to change a spec, because all rules are already there and you just have to change the right side; also you don't have to search for where a spec is to then add it to words.txt.

Note that words.txt has some disadvantages, e.g. you can't replace some symbols, e.g. <, so just copying all specs over wouldn't work. I think this has to be solved or rules filters have to be used.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

seekM avatar Jun 23 '19 08:06 seekM

I like that idea very much. I'm not sure how we would go about populating it versus manually.

I've always thought of words.txt as a way to edit parts of specs. Whereas filter rules is meant to replace the whole spec. I think this might be easier to implement in filter rules but I'm open to suggestions.

LexiconCode avatar Jun 23 '19 13:06 LexiconCode