Allow both linestyle definition "accents" and dash-patterns as linestyle

This is a first PR in an attempt to split #3265 in smaller pieces.
This part should cover the original intent to fix #2136.

The reverse mapper is necessary here to convert full line style names in short ones for lines.py.
Can you use the same `ls_mapper_r.get(ls, ls)` pattern used above?