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 to draw such a beautiful ASCII chart? #29

Closed
tan-wei opened this issue Feb 9, 2021 · 4 comments
Closed

[Question] How to draw such a beautiful ASCII chart? #29

tan-wei opened this issue Feb 9, 2021 · 4 comments

Comments

@tan-wei
Copy link

tan-wei commented Feb 9, 2021

Thanks for the update for tlborm. I have a question which is not related to the content of the book.

We can see such a beautiful ASCII chart in the book, such as:

┌─────────┐   ┌─────────┐
│ BinOp   │ ┌╴│ LitInt  │
│ op: Add │ │ │ val: 1  │
│ lhs: ◌  │╶┘ └─────────┘
│ rhs: ◌  │╶┐ ┌─────────┐
└─────────┘ └╴│ LitInt  │
              │ val: 2  │
              └─────────┘

So is there any tool to draw this? Or just manually input by ourselves? Thanks very much!

@tan-wei tan-wei changed the title [Question] How to draw such beautiful ASCII chart? [Question] How to draw such a beautiful ASCII chart? Feb 9, 2021
@Veykril
Copy link
Owner

Veykril commented Feb 9, 2021

Those were taken over from the original, so I don't know if a tool was used for them unfortunately but I would believe so.

@tan-wei
Copy link
Author

tan-wei commented Feb 9, 2021

OK, thank you all the same.
@DanielKeep is inactive in Github for quite a long time, the best way is to ask him directly. However, I think he will not response. So I raise an issue here.

@DanielKeep
Copy link

No tool, just a text editor and several custom compose sequences. I recall trying a few "ascii drawing" tools, but found all of them to be more time consuming to use than just doing it by hand.

This was a while ago, so I could be wrong, but I believe I used Sublime Text. Oh, and if your editor supports it, use overwrite mode to keep things from moving around. For compose key sequences, I use WinCompose. Unfortunately, I built a new machine a while ago, and I lost my compose key file in the process. I believe it was mostly sequences like <Multi_key> <b> <d> <u> <r> for "box draw up right" to produce .

And time. Quite a bit of time. Good luck!

@tan-wei
Copy link
Author

tan-wei commented Feb 9, 2021

@DanielKeep Wow, thanks for your reply. I thought you would not reply here.

I've tried some ASCII drawing tools, they're not that handy and the results are not beautiful. So I feel intersting about the ASCII chart. Beautiful things always need much more time. Thanks for your advice.

The issue should be closed now.

@tan-wei tan-wei closed this as completed Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants