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

Fix ill-formatted ASCII header in vim help file #499

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tuurep
Copy link

@tuurep tuurep commented Jan 31, 2025

Two problems:

  1. Spacing seems to be all over the place
  2. Some characters get hidden due to ` being a conceal character in vim help files

Confusion:
I suspected the art is generated by figlet/toilet, but couldn't find the exact font you're using.

$ figlet -f slant Comment.nvim
   ______                                     __               _
  / ____/___  ____ ___  ____ ___  ___  ____  / /_  ____ _   __(_)___ ___
 / /   / __ \/ __ `__ \/ __ `__ \/ _ \/ __ \/ __/ / __ \ | / / / __ `__ \
/ /___/ /_/ / / / / / / / / / / /  __/ / / / /__ / / / / |/ / / / / / / /
\____/\____/_/ /_/ /_/_/ /_/ /_/\___/_/ /_/\__(_)_/ /_/|___/_/_/ /_/ /_/
$ figlet -f big Comment.nvim

  _____                                     _                _
 / ____|                                   | |              (_)
| |     ___  _ __ ___  _ __ ___   ___ _ __ | |_   _ ____   ___ _ __ ___
| |    / _ \| '_ ` _ \| '_ ` _ \ / _ \ '_ \| __| | '_ \ \ / / | '_ ` _ \
| |___| (_) | | | | | | | | | | |  __/ | | | |_ _| | | \ V /| | | | | | |
 \_____\___/|_| |_| |_|_| |_| |_|\___|_| |_|\__(_)_| |_|\_/ |_|_| |_| |_|

It looks like a mix between these two, but there are also some confusing differences I could not figure out. I edited some parts by hand.

To avoid the conceal character problem, I put the header in a quote block (>)

This makes it appear as a different color, which may be a downside.

  • Any other ideas to escape conceal characters?
  • How did you generate that ASCII font?

Before:

image

After:

image

Problems:
  1. wrong spacing in places
  2. some characters getting hidden due to backticks being
     conceal characters in vim help files and such
@tuurep
Copy link
Author

tuurep commented Feb 9, 2025

Actually I notice that most likely it's like figlet -f big, but all | characters have been replaced by /.

Start:

     _____                                     _                _
    / ____/                                   / /              (_)
   / /     ___  _ __ ___  _ __ ___   ___ _ __ / /_   _ ____   ___ _ __ ___
   / /    / _ \/ '_ ` _ \/ '_ ` _ \ / _ \ '_ \/ __/ / '_ \ \ / / / '_ ` _ \
   / /___/ (_) / / / / / / / / / / /  __/ / / / /_ _/ / / \ V // / / / / / /
    \_____\___//_/ /_/ /_/_/ /_/ /_/\___/_/ /_/\__(_)_/ /_/\_/ /_/_/ /_/ /_/

:%s/\//|/g:

     _____                                     _                _
    | ____|                                   | |              (_)
   | |     ___  _ __ ___  _ __ ___   ___ _ __ | |_   _ ____   ___ _ __ ___
   | |    | _ \| '_ ` _ \| '_ ` _ \ | _ \ '_ \| __| | '_ \ \ | | | '_ ` _ \
   | |___| (_) | | | | | | | | | | |  __| | | | |_ _| | | \ V || | | | | | |
    \_____\___||_| |_| |_|_| |_| |_|\___|_| |_|\__(_)_| |_|\_| |_|_| |_| |_|

This overcorrects a little bit, change some |s back:

     _____                                     _                _
    / ____|                                   | |              (_)
   | |     ___  _ __ ___  _ __ ___   ___ _ __ | |_   _ ____   ___ _ __ ___
   | |    / _ \| '_ ` _ \| '_ ` _ \ / _ \ '_ \| __| | '_ \ \ | | | '_ ` _ \
   | |___| (_) | | | | | | | | | | |  __| | | | |_ _| | | \ V /| | | | | | |
    \_____\___/|_| |_| |_|_| |_| |_|\___|_| |_|\__(_)_| |_|\_/ |_|_| |_| |_|

It threw me off because the first instinct is to try to align the C like this:

simplescreenrecorder-2025-02-09_22.43.13.mp4

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

Successfully merging this pull request may close these issues.

1 participant