Would actually help if you posted the actual thing you're working with.
How many digits? How many lines in the ribbon?
I don't think it would work as you think, that would require 8 lines from each digit. It's definitely not how that display in the picture you showed works, but that's not what you're working with.