-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Add UTF16 to cheat sheet #1059
Comments
WAT?! I can hardly believe that "JSON and other text files" can not use the 5 digit hex values. Sure enough I can still enter it directly on any text prompt (via Are you sure that JSON can just UTF-16? Is there any spec page? In text files I usually either have the concrete glyph typed in or use the Edit: Don't get me wrong, I'm not angry with you, but with JSON ;-) [later] Ok, some online JSON editor at least just parses the first 4 digits 😒 So a change for the cheat sheet is indeed useful. This is how it looks right now That would mean we need an additional field for UTF16 encoded or something. I do hate web page programming 😬 In principle we could rename |
Moved the discussion here to separate the issues. |
@Finii we went through the same experience 😂. For reference, this is where you can find that information in the spec, specifically in the last paragraph.
|
@JanDeDobbeleer Is it really possible to use two Instead I need to use Edit: What I want to say: Maybe it makes more sense to provide UTF8 codes instead of UTF16? |
@Finii yes, from JSON in my tests that works without issues. |
But what about UTF8, as that solves more usecases, is that good for you too? |
@Finii just tried UTF-8 encoding and that doesn't output anything coming from JSON. And unlike the |
Just finished the code to copy the utf16 stuff instead of hex. Let me push it. Need to make a 'copy hex' thing for the hex display in the bottom right. |
You can try it, do not forget to update your page-cache by shift-reload or something. |
@Finii the codes are correct however it doesn't seem to copy |
Aeh, pfff, well I though people would add that themselves? |
[why] Makes it even more easy to use, as the '\u' prefix seems to be quite standard, e.g. for 'echo', 'printf', and even RFC4627. Reference: #1059 Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
Strange code, why is Who wrote that code ;-D Edit: Fixed now in eda8f0b |
[why] Makes it even more easy to use, as the '\u' prefix seems to be quite standard, e.g. for 'echo', 'printf', and even RFC4627. Reference: #1059 Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
@Finii amazing work, I'm impressed 🚀 |
Just saw you 'are' oh-my-posh, I think many people raising issues here use that. https://github.com/ryanoasis/nerd-fonts/blob/master/changelog.md#next-release-outlook |
@Finii I am, that's how I came to report this. What I'm still looking for is a way to migrate. I don't suppose you have a list of old vs new code points? |
Quickly, with some (unchecked) Edit: Add one final sort open to see the list "old to new codepoint of material design icons":
|
cat temp/2017-01-04-icon-cheat-sheet.md| grep "class-name\">nf-mdi-" | sed -E 's/.*ss-name">nf-mdi-//;s/<\/div>.*"codepoint">/ /;s/<\/div>$//' | sed -E 's/([^ ]*) (.*)/\2 \1/' > MDI
cat temp/2017-01-04-icon-cheat-sheet.md| grep "class-name\">nf-md-" | sed -E 's/.*ss-name">nf-md-//;s/<\/div>.*"codepoint">/ /;s/<\/div>$//' | sed -E 's/([^ ]*) (.*)/\2 \1/' > MD
wc MD*
cat MDI MD | sort -k 2 -r | uniq -f 1 -D | sed -E 'N;s/\n^(f....) .*/ \1/' | sort -k 2 | sed -E 's/([^ ]*) ([^ ]*) (.*)/\1 \3 \2/' | sort | xclip To create the
|
@Finii I'm going to try to add a migration in oh-my-posh so people can easily convert their configs to the new code points. |
Maybe noteworthy is also #1061, where I have no solution but I bet ppl will complain 😬 |
@Finii I noticed that as well and yes, this is an issue storm waiting to happen everywhere. |
@Finii I'm done with the migration code but I noticed something. In your list it shows |
See the following links for more information: - ryanoasis/nerd-fonts#365 - ryanoasis/nerd-fonts#1059 (comment)
See the following links for more information: - ryanoasis/nerd-fonts#365 - ryanoasis/nerd-fonts#1059 (comment)
See the following links for more information: - ryanoasis/nerd-fonts#365 - ryanoasis/nerd-fonts#1059 (comment)
See the following links for more information: - ryanoasis/nerd-fonts#365 - ryanoasis/nerd-fonts#1059 (comment)
See the following links for more information: - ryanoasis/nerd-fonts#365 - ryanoasis/nerd-fonts#1059 (comment)
See the following links for more information: - ryanoasis/nerd-fonts#365 - ryanoasis/nerd-fonts#1059 (comment)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ryanoasis/nerd-fonts](https://togithub.com/ryanoasis/nerd-fonts) | major | `v2.3.3` -> `v3.0.0` | --- ### Release Notes <details> <summary>ryanoasis/nerd-fonts</summary> ### [`v3.0.0`](https://togithub.com/ryanoasis/nerd-fonts/releases/tag/v3.0.0) [Compare Source](https://togithub.com/ryanoasis/nerd-fonts/compare/v2.3.3...v3.0.0) ***Update: Preparation already for a bugfix release, see known bugs [here](https://togithub.com/ryanoasis/nerd-fonts/milestone/26)*** This major release introduces some breaking changes: ##### Breaking 1: Naming This release fixes some long standing issues that are due to the naming of the fonts: There is a completely new naming scheme. This might be inconvientient for existing setups, sorry. - Some fonts will have `Nerd Font` in the name while other have it abbreviated as `NF`. This is needed because some names just were too long. (Same for `Nerd Font Mono` and `NFM`.) - There are no `Windows Compatible` fonts anymore. All fonts work on all platforms. - The `Complete` from the font names (and the repo directories) has been dropped (Complete is the new normal). - The name parts will be ordered as expected with style and weight last (`Somefont Bold Nerd Font` -> `Somefont Nerd Font Bold`). - The filename will have no blanks anymore. ##### Breaking 2: Material Design Icons Codepoints The old Material Design Icon codepoints are finally dropped. Due to an historic mistace we placed them in between some asiatic glyphs, breaking that script. Since v2.3.0 the (updated and expanded) Material Design Icons have new codepoints in the 5 digit region. - Dropped codepoints `F500`... and class names `nf-mdi-*` - New codepoints `F0001`... and class names `nf-md-*` (already since `v2.3.0`) - The whole discussions are here: [https://github.com/ryanoasis/nerd-fonts/issues/365](https://togithub.com/ryanoasis/nerd-fonts/issues/365) - A translation table is available here: [https://github.com/ryanoasis/nerd-fonts/issues/1059#issuecomment-1404891287](https://togithub.com/ryanoasis/nerd-fonts/issues/1059#issuecomment-1404891287) - There are tools out there that probably can update your configuration. - Relevant thread: [#​1190](https://togithub.com/ryanoasis/nerd-fonts/issues/1190) Otherwise this is a 'Update release', so now the good stuff: ##### Updates - Update `Agave` to v37 - Update `Arimo` to 1.33 - Update `DaddyTimeMono` to 1.2.3 - Update `Fira Mono` to 3.206 - Update `Go Mono` to 2.010 - Update `Hermit` to 2.0 - Update `IBM Plex` to 2.3 - Update `Iosevka` to 22.1.0 - Update `Literation` to 2.1.5 - Update `Lilex` to 2.000 - Update `mononoki` to 1.6 - Update `MPlus` to ... current - Update `Overpass` to 3.0.5 - Update `Roboto Mono` to 3.0 - Update `Source Code Pro` to 2.038 - Update `Terminus` to 4.49.2 - Update `Victor Mono` to 1.5.4 - Update the Octicons set to 18.3.0 ##### Features - New font `ComicShannsMono` - New variant in release `Nerd Font Propo` for GUI usecases - Patch in heavy angle brackets - Patch in boxdrawing glyphs (if the font has no complete set) - Repair Panose info if source font has broken data - Reform PowerlineExtra sizing - Autocreate a `FontPatcher.zip` from `HEAD` - Create a json database with css names - Disentangle `Iosevka` into two packets (one for `Iosevka Term`) - Add option to manipulate `xAvgCharWidth` (needed rarely by self-patchers) - Add option to allow italic-less fonts with oblique - Add `--debug` and `--dry` to `font-patcher` - Add logging into file to `font-patcher` - Add `NERDFONTS` environment variable to transport options through `gotta-patch-em` ##### Improvements - Fix `Caskaydia Code` height different to `Cascadia Code` (hinting problem) (font is now `ttf` instead of `otf`!) ##### Fixes - Fix baseline to basline distance (line gap) for some fonts - Fix weather icons cloud scaling - Fix UniqueID of the fonts - Fix `Bitstream Vera` name: Is now `Bitstrom Wera` due to licensing issue - No fix, but: Drop support for Python 2 #### New Contributors - [@​Goooler](https://togithub.com/Goooler) made their first contribution in [https://github.com/ryanoasis/nerd-fonts/pull/1079](https://togithub.com/ryanoasis/nerd-fonts/pull/1079) - [@​MicaelJarniac](https://togithub.com/MicaelJarniac) made their first contribution in [https://github.com/ryanoasis/nerd-fonts/pull/1100](https://togithub.com/ryanoasis/nerd-fonts/pull/1100) - [@​teatimeguest](https://togithub.com/teatimeguest) made their first contribution in [https://github.com/ryanoasis/nerd-fonts/pull/1119](https://togithub.com/ryanoasis/nerd-fonts/pull/1119) - [@​b-](https://togithub.com/b-) made their first contribution in [https://github.com/ryanoasis/nerd-fonts/pull/1044](https://togithub.com/ryanoasis/nerd-fonts/pull/1044) - [@​Weltolk](https://togithub.com/Weltolk) made their first contribution in [https://github.com/ryanoasis/nerd-fonts/pull/1163](https://togithub.com/ryanoasis/nerd-fonts/pull/1163) - [@​sullrich84](https://togithub.com/sullrich84) made their first contribution in [https://github.com/ryanoasis/nerd-fonts/pull/1166](https://togithub.com/ryanoasis/nerd-fonts/pull/1166) **Full Changelog**: ryanoasis/nerd-fonts@v2.3.3...v3.0.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/scottames/dots). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS43MS4wIiwidXBkYXRlZEluVmVyIjoiMzUuNzEuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
The icons used to conceal done and pendings were [moved to new code paths](https://github.com/ryanoasis/nerd-fonts/blob/master/changelog.md#breaking-2-material-design-icons-codepoints). This commit fixes them according to [this translation table](ryanoasis/nerd-fonts#1059 (comment)).
The icons used to conceal 'done' and 'pending' tasks were [moved to new code paths](https://github.com/ryanoasis/nerd-fonts/blob/master/changelog.md#breaking-2-material-design-icons-codepoints). This commit fixes them according to [this translation table](ryanoasis/nerd-fonts#1059 (comment)).
The icons used to conceal 'done' and 'pending' tasks were [moved to new code paths](https://github.com/ryanoasis/nerd-fonts/blob/master/changelog.md#breaking-2-material-design-icons-codepoints). This commit fixes them according to [this translation table](ryanoasis/nerd-fonts#1059 (comment)).
The icons used to conceal 'done' and 'pending' tasks were [moved to new code points](https://github.com/ryanoasis/nerd-fonts/blob/master/changelog.md#breaking-2-material-design-icons-codepoints). This commit fixes them according to [this translation table](ryanoasis/nerd-fonts#1059 (comment)).
The icons used to conceal 'done' and 'pending' tasks were [moved to new code points](https://github.com/ryanoasis/nerd-fonts/blob/master/changelog.md#breaking-2-material-design-icons-codepoints). This commit fixes them according to [this translation table](ryanoasis/nerd-fonts#1059 (comment)).
The icons used to conceal 'done' and 'pending' tasks were [moved to new code points](https://github.com/ryanoasis/nerd-fonts/blob/master/changelog.md#breaking-2-material-design-icons-codepoints). This commit fixes them according to [this translation table](ryanoasis/nerd-fonts#1059 (comment)).
The icons used to conceal 'done' and 'pending' tasks were [moved to new code points](https://github.com/ryanoasis/nerd-fonts/blob/master/changelog.md#breaking-2-material-design-icons-codepoints). This commit fixes them according to [this translation table](ryanoasis/nerd-fonts#1059 (comment)).
See the following links for more information: - ryanoasis/nerd-fonts#365 - ryanoasis/nerd-fonts#1059 (comment)
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a new issue, complete the issue template with all the details necessary to reproduce, and mention this issue as reference. |
Originally posted by @JanDeDobbeleer in #365 (comment)
The text was updated successfully, but these errors were encountered: