Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Environment for Perl6 Unicode

by rir (Vicar)
on Feb 07, 2013 at 15:06 UTC ( #1017673=perlquestion: print w/ replies, xml ) Need Help??
rir has asked for the wisdom of the Perl Monks concerning the following question:

After a long forced break, I'm starting back up with Perl6 Rakudo.

I have stumbled into very minor character/grapheme issues as ASCII has fallen from its high station, but as a user not as a programmer. The occasional domino or html code has usually been understandable in context.

So I'm ill prepared to set up my Perl6 predominantly on Xterms and Gnome Terms 2.30.2 on i386 Debian 6 (squeeze), sometimes on virtual terminals, usually in Vim.

How do I set up my system so I can type&view those characters, like the one piece "<<"? For more context, my computer use follows a monolingual American pattern.

Be well,

Perl6--less like line noise, but with extra crunchy characters.

Comment on Environment for Perl6 Unicode
Re: Environment for Perl6 Unicode
by Anonymous Monk on Feb 07, 2013 at 15:18 UTC
Re: Environment for Perl6 Unicode
by daxim (Chaplain) on Feb 07, 2013 at 15:55 UTC
    How do I set up my system so I can type&view those characters
    Congratulations, you are lucky, this is 2013, and it already is set up. However, if find that you have against expectations trouble with something, describe the problem in detail so that the trouble can be shot.

    Update: Select from the keyboard applet "English (US, international with dead keys)". Type AltGr + [ for , type AltGr + ] for .

Re: Environment for Perl6 Unicode
by tobyink (Abbot) on Feb 07, 2013 at 16:08 UTC

    Gnome Terminal is certainly Unicode-aware. What you probably want to do to make it easier to type characters not on your keyboard is to set up a compose key. That is, you sacrifice one of your keys to be used to compose interesting characters. (Personally I use Caps Lock for this purpose, as I find I never use Caps Lock for typing capitals.)

    Once you have a compose key set up, you just hit Compose, then "<", then "<", and you get "". Or hit Compose, then "a", then "^", and you get "". There are all kinds of useful characters you can type with a compose key.

    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
Re: Environment for Perl6 Unicode
by rir (Vicar) on Feb 08, 2013 at 17:12 UTC
    For keyboarding and in vim, I've added four maps:
    imap <expr> << "\uAB" imap <expr> >> "\uBB" imap <expr> <F5> "\uAB" imap <expr> <F6> "\uBB"
    I suspect I'll like the first pair of maps more. F-keys are just so far away.

    For the rest, hopefully, daxim is right and malformed text is coming to me from the web.

    Be well,

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1017673]
Approved by marto
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2014-10-24 23:36 GMT
Find Nodes?
    Voting Booth?

    For retirement, I am banking on:

    Results (138 votes), past polls