From: jeremy jozwik on
im trying to type [copy from character map] power of 2. i can read
power of 2 on webpages but if i were to cope > paste from that page,
the power displays as a normal character 2. is this a
dpkg-reconfigure locales issue?

how can i gain the ability to type a power of 2?


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/y2yf8d5d4f31004111943je990e9a0h6ca9fedd1ffb1fa9(a)mail.gmail.com
From: Cameron Hutchison on
jeremy jozwik <jerjoz.forums(a)gmail.com> writes:

>im trying to type [copy from character map] power of 2. i can read
>power of 2 on webpages but if i were to cope > paste from that page,
>the power displays as a normal character 2. is this a
>dpkg-reconfigure locales issue?

>how can i gain the ability to type a power of 2?

I can tell you how I do it - there may be other ways.

I set up a "compose" key through the GNOME settings:
System -> Preferences -> Keyboard -> Layout Tab -> Layout Options button

>From there you can set up a key to be the "compose" key in the "Compose
Key position" section. I use "Caps Lock" since I do not use that key
otherwise, but you can choose any of the keys available.

Once you have a compose key defined you can enter the power of two
character by typing: <compose> ^ 2

This is three separate key presses. You do not hold down the compose
key.


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/15ed.4bc2be5a.3bab1(a)getafix.xdna.net
From: Ionel Mugurel Ciobîcă on
jeremy jozwik wrote:
> im trying to type [copy from character map] power of 2. i can read
> power of 2 on webpages but if i were to cope > paste from that page,
> the power displays as a normal character 2. is this a
> dpkg-reconfigure locales issue?
>
> how can i gain the ability to type a power of 2?
>
>

Assuming you talk about this character: ², which is Unicode U+00b2, or
SUPERSCRIPT TWO, just map your keyboard to do that for you. For example
for assigning the combination AltGr-2 (AltGr is the right-Alt, if not
marked as such):

xmodmap -e "keycode 0x0B = 2 at 0x010000b2"

To automate this add that line in your .xsession or .xinitrc.
For many changes to the keyboard make your own .xmodmap file
and add xmodmap .xmodmap in your .xsession or .xinitrc file.

Best regards,
Ionel



--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/4BC2C307.8020600(a)tue.nl
From: Florian Kulzer on
On Sun, Apr 11, 2010 at 19:43:30 -0700, jeremy jozwik wrote:
> im trying to type [copy from character map] power of 2. i can read
> power of 2 on webpages but if i were to cope > paste from that page,
> the power displays as a normal character 2. is this a
> dpkg-reconfigure locales issue?

It could also be due to the browser not copying certain characters
correctly to the clipboard.

Let's start at the beginning, which output do you get from this command:

locale

If you use an utf8-based locale, e.g. "en_US.UTF-8", then the following
command should print the numbers 1-5 in superscript:

echo -e "\xc2\xb9\xc2\xb2\xc2\xb3\xe2\x81\xb4\xe2\x81\xb5"

What do you get?

> how can i gain the ability to type a power of 2?

If the locale is set up correctly and your terminal supports the
characters, then the easiest method is to define a compose key and use
<compose key> + "^" + "2". (The "+" means pressing the keys in sequence,
releasing each key before pressing the next one.)

--
Regards, |
Florian |


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/20100412064155.GA10495(a)bavaria.univ-lyon1.fr
From: Ron Johnson on
On 2010-04-12 01:41, Florian Kulzer wrote:
> On Sun, Apr 11, 2010 at 19:43:30 -0700, jeremy jozwik wrote:
>> im trying to type [copy from character map] power of 2. i can read
>> power of 2 on webpages but if i were to cope > paste from that page,
>> the power displays as a normal character 2. is this a
>> dpkg-reconfigure locales issue?
>
> It could also be due to the browser not copying certain characters
> correctly to the clipboard.
>
> Let's start at the beginning, which output do you get from this command:
>
> locale
>
> If you use an utf8-based locale, e.g. "en_US.UTF-8", then the following
> command should print the numbers 1-5 in superscript:
>
> echo -e "\xc2\xb9\xc2\xb2\xc2\xb3\xe2\x81\xb4\xe2\x81\xb5"
>
> What do you get?


In xfce terminal, it works perfectly. In urxvt (with font
fixed-medium), the ^4 is weird looking, but pasting it into
Iceweasel makes it look correct.

~$ echo -e "\xc2\xb9\xc2\xb2\xc2\xb3\xe2\x81\xb4\xe2\x81\xb5"
¹²³⁴⁵

$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

--
Dissent is patriotic, remember?


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/4BC313DD.9000606(a)cox.net