Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #48533

Re: Do 4thers also replace 7bitQuoteChar by 24bits?

From anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups comp.lang.forth
Subject Re: Do 4thers also replace 7bitQuoteChar by 24bits?
Date 2016-06-26 09:05 +0000
Organization Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID <2016Jun26.110515@mips.complang.tuwien.ac.at> (permalink)
References <pan.2016.06.26.17.19.41@gmail.com>

Show all headers | View raw


Unknown <dog@gmail.com> writes:
>Yes, it may be nice to be able to write in Chinese and Arabic
>instead of just ASCII. But did we cancel "walking" when we got
>the jet-plane.
>
>What was insufficient about the single & double quote chars,
>that needed them to be replaced by 3 bytes?
>
>Investigating what was sent to show the 3 chars: "e"
...
>   shows
>e2 80 9e = "
>65 = e
>22 = "
>
>So it's not even consistent. 
>Or double-quote maps to multiple possibilities.

That's a question about UTF-8, not about Forth.  But fortunately, I
can use Forth to answer it:

First, let's look what this character looks like:

s\" \xe2\x80\x9e" type

and as output I see a lower double-quote (like ",,", but as one glyph;
maybe I should have written "double-comma" instead of "lower
double-quote"), which is used in German for starting quotes.  For
ending quotes, German uses an (upper) double-quote, not the same
character.  My guess is that whoever wrote the text you looked at
normally writes in German or in another language that uses the same
convention.

Next let's look at what more we can find out about this character.  To
look it up, we need the Unicode code point number:

s\" \xe2\x80\x9e" drop xc@ hex.

(Hurray, sometimes the Xchar words are useful after all:-).

The output is 201e, and googling for it leads me to

http://unicode.scarfboy.com/?s=U%2B201E

which tells me that the character name is "DOUBLE LOW-9 QUOTATION
MARK", contains additional info and points to other pages about this
character.

If you look at
http://www.utf8-chartable.de/unicode-utf8-table.pl?start=8192, you
also find opening and closing upper double-quotes (U+201C, U+201D),
and I often see these (I think; anyway, non-ASCII) quotes used in the
web instead of the universal ASCII double-quote.  I guess we are
seeing progress at work.

- anton
-- 
M. Anton Ertl  http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
     New standard: http://www.forth200x.org/forth200x.html
   EuroForth 2016: http://www.euroforth.org/ef16/

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Do 4thers also replace 7bitQuoteChar by 24bits? Unknown <dog@gmail.com> - 2016-06-26 07:17 +0000
  Re: Do 4thers also replace 7bitQuoteChar by 24bits? lawrencedo99@gmail.com - 2016-06-26 02:21 -0700
  Re: Do 4thers also replace 7bitQuoteChar by 24bits? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-06-26 09:05 +0000
    Re: Do 4thers also replace 7bitQuoteChar by 24bits? David Thompson <dave.thompson2@verizon.net> - 2016-07-19 02:25 -0400

csiph-web