Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How do I create register-style bit width tick marks on merged cells, like wavedrom? #162

Open
bai-yi-bai opened this issue Oct 29, 2024 · 0 comments

Comments

@bai-yi-bai
Copy link

bai-yi-bai commented Oct 29, 2024

Hello,

I am attempting to use prawn-table, via a custom AsciiDoctor-PDF extension, to create tick marks on merged cells, for use in displaying CPU registers. These tick marks are used to better indicate to the reader the width of the register. A comparable example is how wavedrom does this:

reg-vl

Link to this example

More examples

I'm attempting to create a similar representation without resorting to SVG, or wavedrom via kroki/other tool, by using prawn-table. The only thing I'm missing is the ability to add the bit width tick marks. One option, I suppose, is to simply move the cursor on the page and draw vertical lines, but I wondered if there was a more elegant solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant