My name is Henrik Lau Eriksson and I live in Stockholm, Sweden.
I work with:
I write code for the Web ๐
- Usually backend ๐ด
- Sometimes frontend ๐ฆ
Let's get in touch:
:octocat: GitHub Emoji for C#, ASP.NET Core and Blazor, dotnet tool for the terminal and PowerToys Run plugin
Home Page: https://hlaueriksson.github.io/GEmojiSharp/
License: MIT License
My name is Henrik Lau Eriksson and I live in Stockholm, Sweden.
I work with:
I write code for the Web ๐
Let's get in touch:
Hi,
I like the ability to go from text to an emoji, but can you also do the reverse? (I have a few 3rd party integrations that blow up when they encounter an emoji, but I'd like to keep the meaning around.
I didn't see anything in the documentation about something to register the dll in program.cs so that these files can be recognized
GET https://localhost:5001/_content/GEmojiSharp.Blazor/style.css net::ERR_ABORTED 404
GET https://localhost:5001/_content/GEmojiSharp.Blazor/script.js net::ERR_ABORTED 404
Hi
I made it json and insert all to sql table.
Demojify method is in 2.0 on Nuget but not in 3.0 on Nuget. I see it in your code here. Did something go wrong when it was sent to Nuget?
Is there a way to make emoji bigger ?
Hello, I met an issue recently. When I use Alt + Space to open the Run window, type something like emoji laugh
, select one of emojis and press Enter or Ctrl + C, an error will be thrown like below.
The version of GEmojiSharp is 3.1.0, latest in release. The version of PowerToys is 0.74.0, also the latest.
Version: 0.74.0.0
OS Version: Microsoft Windows NT 10.0.22631.0
IntPtr Length: 8
x64: True
Date: 2023/10/03 11:01:59
Exception:
System.Runtime.InteropServices.COMException (0x800401D0): OpenClipboard ๅคฑ่ดฅ (0x800401D0 (CLIPBRD_E_CANT_OPEN))
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo)
at System.Windows.Clipboard.Flush()
at GEmojiSharp.PowerToysRun.Main.CopyToClipboard(String value)
at GEmojiSharp.PowerToysRun.Main.<>c__DisplayClass16_3.<Query>b__6(ActionContext _)
at PowerLauncher.ViewModel.MainViewModel.<>c__DisplayClass30_0.<OpenResultsEvent>b__0()
at System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)
at System.Windows.Threading.Dispatcher.Invoke(Action callback)
at PowerLauncher.ViewModel.MainViewModel.OpenResultsEvent(Object index, Boolean isMouseClick)
at PowerLauncher.ViewModel.MainViewModel.<InitializeKeyCommands>b__31_10(Object index)
at PowerLauncher.ViewModel.RelayCommand.Execute(Object parameter)
at System.Windows.Input.CommandManager.TranslateInput(IInputElement targetElement, InputEventArgs inputEventArgs)
at System.Windows.UIElement.OnKeyDownThunk(Object sender, KeyEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Since other Run plugin works normal, I'm wondering that if I've done something wrong on this plugin or I've missed something. I couldn't find similar cases and solution in internet so I open an issue for help.
If I've done something wrong, please inform me! Thanks for your wonderful plugin!
It looks like the Emoji.Emojify method doesn't support skin tones.
Passing "smiley" wrapped in colons to this method returns the unicode character for a smiley as expected.
However, passing the string "smiley" wrapped in quotes with ":skin-tone-6:" appended to it returns ๐:skin-tone-6: (i.e. Smiley unicode character + ":skin-tone-6")
Am I doing something wrong or are skin tones not supported in the current version?
N.B. Please forgive the weird syntax in this issue. When I try to write the strings as they are used, github is converting the colon syntax to emojis which makes it difficult to describe the issue. Hopefully, the above is clear.
The :beetle:
is not rendering correctly
Hello:
I am using the repo to replace all the Emoji I don't want. The current version I am using is: Version 2.0.0
There are something missing.
I have the following:
I'm maybe mistaking or this list (https://github.com/hlaueriksson/github-emoji) is outdated but I was not able to find the following emojis that are in the list in version 1.4.0
:magic_wand:
:rock:
:roller_skate:
here is s small repro
var wand = Emoji.Raw(":magic_wand:"); // ๐ช
WriteLine($"wand: {wand}");
var roller = Emoji.Find(":roller_skate:").FirstOrDefault(); // ๐ผ
WriteLine($"roller: {roller?.Raw}");
var rock = Emoji.Find("rock").FirstOrDefault(); // ๐ชจ
WriteLine($"rock: {rock?.Raw}");
var thisIsDefined = Emoji.Find("horse").FirstOrDefault();
WriteLine($"horse: {thisIsDefined?.Raw}");
Cheers
I'd like the ability to Auto-Send the emoji when selecting the one you want. It would save me having to do a paste action. Maybe not everyone will want to have this on, so a toggle would be best. Flow Launcher's 'Emoji+' plugin has a similar feature (although it doesn't work any more, atm).
How can I use Emojis inside a Text Box or Input Box
Example:
<textarea> ๐ </textarea>This is not working since the emoji will be replaced by the "g-emoji class="g-emoji" alias="earth_africa" fallback-src="https://github.githubassets.com/images/icons/emoji/ : ...":
GEmojiSharp.Blazor
does not work with Blazor Web App projects.
Framework:
Interactive render mode:
Repro:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.