fabrizioschiavi / pragmatapro

PragmataPro font is designed to help pros to work better
https://www.fsd.it/shop/fonts/pragmatapro/
1.43k stars 40 forks source link

Checkbox ligatures vor Markdown checklists #89

Closed Tekl closed 6 years ago

Tekl commented 6 years ago

Hi,

The Github flavored markdown has a cool checklist feature: https://github.com/blog/1825-task-lists-in-all-markdown-documents

What about a ligature for - [ ] and - [x] with a stylish box and checkmark?

fabrizioschiavi commented 6 years ago

I love your suggestion! I'll add them with pleasure

bogwonch commented 6 years ago

Can I suggest if you're doing those you also add the checkboxes for Org mode, since they're similar!

- [X] for done - [-] for partially done - [ ] for not done

jordwalke commented 6 years ago

Could this interact with code content?

xguerin commented 6 years ago

Yes. This is particular: [ ], as it is often used to define empty arrays/lists in many programming languages.

On Jan 19, 2018, at 2:36 PM, Jordan W notifications@github.com wrote:

Could this interact with code content?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fabrizioschiavi/pragmatapro/issues/89#issuecomment-359067633, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEevA0g5QHEW0CLzhPEUwZvCrKyWjTJks5tMO7GgaJpZM4RX4e2.

jordwalke commented 6 years ago

That was my concern. And the subtraction sign could represent list difference ( - [x] )

fabrizioschiavi commented 6 years ago

Isn't better this combination to avoid interactions with the code [x] [-] [v] [ ] ? Always two spaces before the combinations

bogwonch commented 6 years ago

For org-mode at least it has to be: - [ ]. You could do - [ ] but as soon as you toggle it resets it to the single spaced variant, and we're back to square one.

I guess the proper solution (for me in Emacs at least) is to add the unicode ballot boxes at U+2610–U+2612 to the prettify-symbols list, but it seems a shame they couldn't work as proper ligatures everywhere tho...

Not sure empty checkbox [ ] with a space in the middle is an issue so much (do people add the redundant space for arrays?), the [x] is more troublesome…

fabrizioschiavi commented 6 years ago

Since version 0.827 Markdown Checklist is included in OpenType feature Stylistic Set 12 markdown_checklist

Tekl commented 4 years ago

@fabrizioschiavi

Is there a trick to select a system wide default Feature Set for Pragmata Pro on macOS? In some Editors like TextEdit or CotEditor I can select the stylistic stylesets in the Typography panel of the Font selection (via cog menu). But the setting is not saved and programs like Terminal, TextMate or Ulysses even don't respect the stylistic settings. So I can't use it anymore with v0.827. Maybe there is a tool to modify font files to activate a default set.

If there's no way to achieve this I will request two versions of PragmataPro one for Coding (PragmataPro Code Liga) and one for Writing (PragmataPro Liga).

Tekl commented 4 years ago

Btw. using SS12 seems to have bug. When I type Check the Ch will be transformed into C with a ♥ below.

lcpichette commented 1 month ago

Since version 0.827 Markdown Checklist is included in OpenType feature Stylistic Set 12 markdown_checklist

EDIT: Anyone curious on why it might not be working for you:

Make sure you're using the .otf version of Liga or Liga Mono w/ calt enabled. https://fsd.it/pragmatapro/Handbook.png

For wezterm enjoyers here's a guide on enabling calt and liga: https://wezfurlong.org/wezterm/config/font-shaping.html#advanced-font-shaping-options