Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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,
rir

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,
    rir

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2014-08-02 07:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (55 votes), past polls