edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Adam Thompson <arthompson1990@gmail.com>
To: Karl Dahlke <eklhad@comcast.net>
Cc: acsint@lists.the-brannons.com, Edbrowse-dev@lists.the-brannons.com
Subject: Re: [Edbrowse-dev] html unicode translations in edbrowse
Date: Wed, 18 Dec 2013 17:06:05 +0000	[thread overview]
Message-ID: <20131218170605.GD5812@toaster.adamthompson.me.uk> (raw)
In-Reply-To: <20131118105931.eklhad@comcast.net>

On Wed, Dec 18, 2013 at 10:59:31AM -0500, Karl Dahlke wrote:
> My jupiter adapter will pronounce unicodes in utf8 in the tty buffer
> according to pronunciations that you can set in the config file.
> Here is an example, the start of Greek.
> 
> u945	alpha
> u946	beta
> u947	gamma
> 
> So when this code appears as 2 bytes in utf8 it is read alpha,
> no matter how it got there.

That sounds like a good idea.

> How did I use to do it?
> The html browser would turn the html code
> &#945; into the word alpha when rendering html.
> See format.c line 1330
> That works fine as long as I am browsing files from the web,
> or html files that I wrote myself,
> but if alpha beta gamma are in a document or from pdf or some other
> source well I am just out of luck.
> You can see at a glance that such things are better handled in the adapter.
> It's a more general and flexible approach.

Again agreed.

> 
> Once the latest version of Jupiter is pushed,
> I may request of Chris that most or all
> of those hard-coded translations in format.c go away,
> and instead you just crank out the unicode that is implied by the html tag.
> It's up to the adapter then to read it properly.

This makes sense as long as the user's adapter does handle utf8.
I use speakup with espeak which seems to handle most things,
but probably not everything, and I've got no idea what those characters would
do to my braille display.

I'm not against the idea, but it may be worth remembering that edbrowse has a
wider user community than those using jupiter,
particularly as there's a debian package for edbrowse and not for jupiter (at
least not in the main repos).

Also, are you planning to ship an example list of these characters or do users
have to go through the utf8 charset to work out what's what?

Cheers,
Adam.

  reply	other threads:[~2013-12-18 17:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-18 15:59 Karl Dahlke
2013-12-18 17:06 ` Adam Thompson [this message]
2013-12-18 18:45 Karl Dahlke
2013-12-19 12:20 ` Adam Thompson

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=20131218170605.GD5812@toaster.adamthompson.me.uk \
    --to=arthompson1990@gmail.com \
    --cc=Edbrowse-dev@lists.the-brannons.com \
    --cc=acsint@lists.the-brannons.com \
    --cc=eklhad@comcast.net \
    /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).