Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Mar 2011 15:57:31 -0600
From:      Antonio Olivares <olivares14031@gmail.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Character shortcuts
Message-ID:  <AANLkTi=MB9Qb12mSseUADMz4eMObFqBFJGPvo9NVwjxi@mail.gmail.com>
In-Reply-To: <20110312224336.ade79718.freebsd@edvax.de>
References:  <AANLkTimEHuVq_menbHAQkw09%2Bf7bAHMR=Xn-Y6gnzuFi@mail.gmail.com> <20110312224336.ade79718.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 12, 2011 at 3:43 PM, Polytropon <freebsd@edvax.de> wrote:
> On Sat, 12 Mar 2011 14:07:59 -0600, Antonio Olivares <olivares14031@gmail=
.com> wrote:
>> Dear FreeBSD experts,
>>
>> There has been something that I find hard to do, I would like to find
>> a CTRL + KEY combination, or ALT + KEY combination to input special
>> characters like (=C3=B1) =C2=A0[ALT + 164 or ALT + 0241 in Mr. Gates OS]=
.
>>
>> http://www.forlang.wsu.edu/help/keyboards.asp
>>
>> accents other symbols like copyright, euro, etc. =C2=A0I would like to d=
o
>> the same(have a special key combination) to get the characters in
>> FreeBSD too, but googling have not found something that works. =C2=A0I e=
ven
>> tried to run a litte program in the shell to generate the characters
>> to use for cutting + pasting to no avial.
>
> Depending on your keyboard and language settings, many
> characters can be generated by Alt+Letter. There is also
> a COMPOSE key on some keyboards - and those that don't
> have it can be told to do so by xmodmap. Using the
> COMPOSE approach, you combine a letter with an accent
> or any other symbol, and if there is a matching result
> in your character set (or font), it will be displayed.
>
> Here are some examples:
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0Compose a a -> =C3=A5 (svedish a-circle)
> =C2=A0 =C2=A0 =C2=A0 =C2=A0Compose s s -> =C3=9F (german Eszett ligature)
> =C2=A0 =C2=A0 =C2=A0 =C2=A0Compose U " -> =C3=9C (german U Umlaut, capita=
l)
> =C2=A0 =C2=A0 =C2=A0 =C2=A0Compose L / -> =C5=81 (polish L-stroke, capita=
l)
> =C2=A0 =C2=A0 =C2=A0 =C2=A0Compose a , -> =C4=85 (polish a-comma)
> =C2=A0 =C2=A0 =C2=A0 =C2=A0Compose o / -> =C3=B8 (danish o-stroke)
> =C2=A0 =C2=A0 =C2=A0 =C2=A0Compose k k -> =C4=B8 (greek kappa)
> =C2=A0 =C2=A0 =C2=A0 =C2=A0Compose n ' -> =C5=84 (n with accent grave)
>
> And of course: Compose n ~ -> =C3=B1.
>
> Depending on how characters like `, =C2=B4, ^ or ~ are handled
> (single character immediately output, or combination
> character that waits for the next letter to automatically
> construct a new one), Compose may be needed or not. On the
> default german keyboard setting, 'e gives =C3=A9, ~n gives =C3=B1
> and ^a gives =C3=A2 immediately without using Compose.
>
> My ~/.xmodmaprc contains (along with other lines):
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0add mod4 =3D Multi_key
> =C2=A0 =C2=A0 =C2=A0 =C2=A0keycode 117 =3D Multi_key
>
> You can find out the keycodes using the "xev" program.
>
> Your keyboard settings maybe sets other characters than
> can be created with Alt+letter or AltGr+letter (the
> german keyboard's right Alt key is labeled AltGr, or
> Alt Graph on my Sun keyboard), e. g. =C2=AC=C2=B9=C2=B2=C2=B3=C2=BC=C2=BD=
=C2=AC{[]}\
> @=C5=82=E2=82=AC=C2=B6=C5=A7=E2=86=90=E2=86=93=E2=86=92=C3=B8=C3=BE=C3=BE=
=C2=A8 =C3=A6=C3=9F=C3=B0=C4=91=C5=8B=C4=A7j=C4=B8=C5=82=CB=9D^ =C2=AB=C2=
=BB=C2=A2=E2=80=9C=E2=80=9Dn=C2=B5=C2=B7, and with Shift
> =C2=AC=C2=A1=E2=85=9B=C2=A3=C2=A4=E2=85=9C=E2=85=9D=E2=85=9E=E2=84=A2=C2=
=B1=C2=B0=C2=BF=C2=BF=CB=9B =CE=A9=C5=81=E2=82=AC=C2=AE=C5=A6=C2=A5=E2=86=
=91=C4=B1=C3=98=C3=9E=CB=9A =C3=86=C2=A7=C3=90=C2=AA=C5=8A=C4=A6J&=C5=81=CB=
=9D=CB=87 =C2=A6<>=C2=A9=E2=80=98=E2=80=99N=C2=BA=C3=97=C3=B7.
>
> So instead of memorizing arbitrary numbers as in MICROS~1
> land, you can see a relation between the letter and the
> key you need to press in order to generate it. You can
> also rearrange them if you feel a need for that. :-)
>
>
>
> --
> Polytropon
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...

Thanks Frank & Polytropon for your input.  I have students that bug me
with how to put the characters on their responses to their instructors
on the web pages via email.  I tell them to open OpenOffice and insert
Special Character and then select the n with the tilde for the Spanish
work.  But they wanted an easier way sort of the way BILL GATES OS has
it.  And I told them I would ask so they could do it also in FreeBSD
and Linux land.  One student told me that it mattered which ISO Header
were used?  ISO 8*?  but I told him you gotta be kidding me.  There
has to be an easier way.  The keyboards are standard US all using
English keyboards.

I know how to do it in \LaTeX{} or \TeX{},
\~n, \'


but it does not matter for me, it is for them.  They have to write to
their spanish instructors in dual enrollment credit.  I tell them then
to open another page with the special letter and highlight them and
copy+paste them and they boo my answer :(


Regards,


Antonio



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=MB9Qb12mSseUADMz4eMObFqBFJGPvo9NVwjxi>