I think what you want may already exist in Inkscape: a custom dash pattern so you can convert dashes to segments.
Does this solve your issue?