edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Karl Dahlke <eklhad@comcast.net>
To: Edbrowse-dev@lists.the-brannons.com
Subject: [Edbrowse-dev] emojis and other chars
Date: Thu, 28 Jan 2016 01:26:58 -0500	[thread overview]
Message-ID: <20160028012658.eklhad@comcast.net> (raw)

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 &gamma; 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 <html> 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

             reply	other threads:[~2016-01-28  6:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-28  6:26 Karl Dahlke [this message]
2016-01-28  8:49 ` Chris Brannon
2016-01-28 11:18   ` Karl Dahlke
2016-01-28 11:58     ` Chris Brannon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160028012658.eklhad@comcast.net \
    --to=eklhad@comcast.net \
    --cc=Edbrowse-dev@lists.the-brannons.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).