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

ŇḞÇ ňöŗṁàḷīʑéɖ ƫë×Ɨ ʍʴɑᴾƿïŋğ #109

Merged
merged 1 commit into from
Jan 13, 2019

Conversation

ryanavella
Copy link
Collaborator

NFC normalized text wrapping, for drink names that are too long. This should close #106 when merged.

Currently it can support name lengths of up to 60 characters, regardless of character set or diacritics, macrons, etc. It seems to work with most of the major language blocks, but it doesn't work with glitch text. I think this may be due to poor unicode support in either Windows command prompt or the font I've chosen, and not necessarily a bug on our side of things.

In the future we should think of a more robust solution that allows for arbitrary lengths of text, but for now we are limited to 60 characters which seems sufficient.

@ryanavella ryanavella requested a review from bhutch29 January 12, 2019 19:51
@ryanavella
Copy link
Collaborator Author

Picture of the wrapping in action...

image

@bhutch29 bhutch29 merged commit a52867e into develop Jan 13, 2019
@bhutch29 bhutch29 deleted the feature/nfc-normalized-text-wrapping branch January 13, 2019 02:16
ryanavella added a commit that referenced this pull request Jan 13, 2019
…g padding, looks like it got accidentally committed in commit a52867e which was intended to fix issue #109 (NFC normalized string truncating and wrapping for drink names). Removing the statement fixes the bug with raw mode displaying funky.
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.

Truncate beer/brand names based on number of glyphs
2 participants