[NTLUG:Discuss] 'Smart quotes' in a konsole window
agoats at compuserve.com
agoats at compuserve.com
Sun May 31 09:52:33 CDT 2009
If you go back to the days of olde, there was an extension to the ASCII
text that added what was known as "escape sequence characters". The ESC
key was interpreted to be be an additional function allowing you to use
the CTRL and ALT keys to add another character set overlay to the
keyboard. That's when you were able to add the smart quote, greek
alphabet, etc.
With the newer version of Linux, UTF-8 is the major international font
standard being used, so here's a couple of links that might help:
This one talks about the font standard
http://www.cl.cam.ac.uk/~mgk25/unicode.html
This one has a table of the fonts and the HTML code to get them.
http://www.tony-franks.co.uk/UTF-8.htm
You should be able to find what font set is bing used by default and get
the font table for it to see what the "escape sequence" needs to be to
get the characters you want.
Alvin
terry wrote:
> On Sun, May 31, 2009 at 12:08 AM, Leroy Tennison
> <leroy_tennison at prodigy.net> wrote:
>
>> Does anyone know how you get these when working in konsole? I was doing
>> the following and wondering why it didn't work (thought I was either
>> going crazy or totally misunderstanding regular expressions):
>>
>> grep “\(first\|third\)” test3
>>
>
> I don't know where you get those fancy quotes.
> My keyboard does not seem to generate them,
> or I don't know how. I can do two apostrophes '' or just a quote "
> and they both look the same and then there is the one that is lower
> case from the tilda ` and I don't even know what to call it (accent
> mark?), but none of them look like the fancy quotes you have. But
> that is all I can get out of my keyboard.
>
>
>> It wasn't until I did:
>>
>> grep "\(first\|third\)" test3
>>
>> and saw it work that I started comparing the two and noticed the
>> difference in the double quote characters. Unfortunately I had no idea
>> how I entered them originally (I wasn't doing anything special that I
>> knew I was doing). I did copy/paste both lines into a file and look at
>> it with hexdump. The first quote is a multibyte sequence (e2 80 9c) and
>> the second is a single byte (22). Another point is that, in konsole,
>> the 'Smart Quotes' don't look at they appear above (in my Thunderbird
>> composition window, I hope emailing this doesn't cause 'conversions' to
>> take place). The first 'Smart Quote' looks like two commas
>> superscripted and turned upside down, the second 'Smart Quote' looks
>> like two commas superscripted but not turned upside down. You get the
>> same look in OpenOffice.org Writer 3.01 when you use double quotes.
>>
>> _______________________________________________
>> http://www.ntlug.org/mailman/listinfo/discuss
>>
>>
>
>
>
>
More information about the Discuss
mailing list