From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from resqmta-ch2-02v.sys.comcast.net (resqmta-ch2-02v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:34]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 5899477C8D for ; Wed, 27 Jan 2016 22:26:58 -0800 (PST) Received: from resomta-ch2-15v.sys.comcast.net ([69.252.207.111]) by resqmta-ch2-02v.sys.comcast.net with comcast id BJSv1s0032Qkjl901JSyHU; Thu, 28 Jan 2016 06:26:58 +0000 Received: from eklhad ([IPv6:2601:405:4001:e487:21e:4fff:fec2:a0f1]) by resomta-ch2-15v.sys.comcast.net with comcast id BJSy1s0062MDcd701JSypU; Thu, 28 Jan 2016 06:26:58 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke Reply-to: Karl Dahlke User-Agent: edbrowse/3.6.1+ Date: Thu, 28 Jan 2016 01:26:58 -0500 Message-ID: <20160028012658.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1453962418; bh=k8woCu6e7NhuVTV8vZgFlgFEf5UtygOfSoBHHkiJT/o=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=T9nSJSMm+afIQvQTfkb9bwdXOaxrAx55cAzOS35szcLEB6wJT4qOYkMWVEU6wyMqA BQBmZZC8y0+qNIWcLYvdJwH8sTw0cmcIvy7FjwuTi8imnpEmLBVfYzNikPCMG5jPTi tnMdv5DFmVA9fJ2vLo45HOo3+4W+mq1IN6Mu15M1MfEfmA4hxe7Xh4JnYyEAOFHQWu GUL1m3eRkiKyYtAAemx/9ERWMyltBuX+gJAgSEdmulLoaR9CZ40t3d6ekX4kofLzqS NNFzv1FovSqZJ5GNbxgVszqUFCVKh9vjqmtfgeb677jqTj5fTbZYgOyYLaQD7WqrB9 piDjLZmiZfsoQ== Subject: [Edbrowse-dev] emojis and other chars X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jan 2016 06:26:58 -0000 Sometimes I want to paste an emoji into my text. Or maybe even a greek letter or anything somewhat off the board. If I'm writing html it's easy, I can put in γ or look up the unicode for the emoji and write &#x....; Sure no problem but I'm not always writing html. While testing facebook I wanted to send some hearts to my wife in a message, four hearts of different colors, and I literally had to type in the &#x codes for all 4 of them, as I am not an expert at converting unicode to utf8 on the fly. Then I put at the top, then browse, then et to strip out all those internal codes, (don't forget the et command if you do this!), then join the lines together, and then I had my text message with the hearts in place. It works but wow. Would it be worth writing a feature for input processing to do this? Remember that ~xx inserts a byte with that hex code. That's part of input processing every time you type. Even when setting the filename etc. f a~c2~bdb So perhaps ~[green heart] would look through a section of the config file and find the unicode for the green heart and turn it into utf8 and paste it in. Of course I would need to prime the config file with all the emojis and other characters that I care about but I already have such a file for my adapter. The adapter uses it the other way around of course, saying "green heart" when it runs into unicode 1f49a. In a real dream world both edbrowse and the adapter could use the same file. My adapter has the ability to include one file in another in its configuration, so emojis could be their own file, but edbrowse does not have an include directive. And even if all that was done it would benefit me and no one else, since only my adapter, and presumably edbrowse, would share the common format x1f49a green heart Other adapters would use some other syntax whence the file could not be shared. I'm not going to set up these includes just to benefit me. Well I can just maintain the unicode equivalents twice, or write a perl script to keep things in sync or whatever. Or maybe a combination of an edbrowse macro and a shell script could take the line green heart and send it to a script that turns it back into the utf8 and paste that in instead, but edbrowse doesn't have the ability to replace text generated by a shell command. So I'm just bouncing ideas around for now. by the way, my hearts went on Wendy's wall just fine, but I don't see them. facebook does not show them to me on redisplay but others see them. IDK Twitter does everything right in this regard. Karl Dahlke