Skip to content

Add a character generation phase to the xkcd-script process - and generate many new characters 🎉 - #54

Merged
rgbkrk merged 5 commits into
ipython:masterfrom
pelson:feature/additional-character-generation
Apr 16, 2026
Merged

Add a character generation phase to the xkcd-script process - and generate many new characters 🎉#54
rgbkrk merged 5 commits into
ipython:masterfrom
pelson:feature/additional-character-generation

Conversation

@pelson

@pelson pelson commented Apr 16, 2026

Copy link
Copy Markdown
Member

Closes #38 and #29.

A comment from @dummy-index in #11 (comment) also highlights some of the characters that were missing. I am not certain if I have got all of them covered in this PR, but I will follow-up with a check.

@pelson
pelson force-pushed the feature/additional-character-generation branch from a05a082 to a247043 Compare April 16, 2026 07:04
@pelson pelson changed the title Add a character generation phase to the xkcd-script process Add a character generation phase to the xkcd-script process - and generate some new characters 🎉 Apr 16, 2026
@pelson pelson changed the title Add a character generation phase to the xkcd-script process - and generate some new characters 🎉 Add a character generation phase to the xkcd-script process - and generate many new characters 🎉 Apr 16, 2026
@pelson
pelson force-pushed the feature/additional-character-generation branch from a247043 to 68d992c Compare April 16, 2026 08:12
@pelson
pelson force-pushed the feature/additional-character-generation branch 2 times, most recently from 45c3157 to 89bbd3f Compare April 16, 2026 08:19
pelson added 5 commits April 16, 2026 10:20
…ghtly larger than the sample, and therefore often end up getting thinner strokes when they get scaled down
…s covering most European languages.

All marks are sourced from existing hand-drawn glyphs to preserve consistent pen weight:

- Acute (Á É Í Ó Ú Ý…) and grave (À È Ì Ò Ù…) — strokes extracted from hand-drawn Ő
- Diaeresis (Ä Ë Ï Ö Ü…) and dot above (Ċ Ė Ġ Ż…) — dots extracted from hand-drawn Ü
- Macron (Ā Ē Ī Ō Ū…) — stroke extracted from hand-drawn Ē
- Caron (Č Ě Ň Ř Š Ž Ď Ť…) — from asciicircum, flipped
- Circumflex (Â Ê Î Ô Û…) — from asciicircum
- Tilde (Ã Ñ Õ…) — from asciitilde
- Ring above (Ů ů) — extracted from hand-drawn Å
- Double acute (Ő Ű…) — two acute strokes composed
- Cedilla (Ç Ş Ţ…) — from comma placed below
- Backtick and quote aliases (` ´ ‛ ‟ ′ ″ ‵) mapped as references to existing glyphs
…om the existing glyphs (pt4), then we add derived characters (pt5), tweak the properties (pt6), then generate all of the formats (pt7)
@pelson
pelson force-pushed the feature/additional-character-generation branch from 89bbd3f to b0cbe5e Compare April 16, 2026 08:20

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much nicer weights here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

x is a better size. q is better weight.

the qu could always be improved....

@pelson
pelson requested a review from rgbkrk April 16, 2026 08:23
@rgbkrk
rgbkrk merged commit f962f6a into ipython:master Apr 16, 2026
1 check passed
@pelson
pelson deleted the feature/additional-character-generation branch April 16, 2026 11:44
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.

Backticks aren't XKCD style

2 participants