Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9110633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T03:18:59+00:00 2026-06-17T03:18:59+00:00

Is there a version of charnames::viacode() which will return the short name of code-point,

  • 0

Is there a version of charnames::viacode() which will return the short name of code-point, i.e. the name that can be used when use charnames ':short' is in effect?

use charnames ':short';

my $x = ord("\N{Cyrillic::es}");

say "long name:  ", charnames::viacode($x); # prints "CYRILLIC SMALL LETTER ES"
say "short name: ", ???($x);                # want: Cyrillic:es
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T03:19:00+00:00Added an answer on June 17, 2026 at 3:19 am

    charnames documents that

    SCRIPTNAME:CHARNAME
    

    searches for

    • SCRIPTNAME CAPITAL LETTER CHARNAME (if CHARNAME isn’t all lowercase)
    • SCRIPTNAME SMALL LETTER CHARNAME (if CHARNAME is all lowercase)
    • SCRIPTNAME LETTER CHARNAME

    so you could use

    sub short_name {
       my ($long_name) = @_;
       return "$1:\U$2" if $long_name =~ /^(\S+) CAPITAL LETTER (\S+)\z/;
       return "$1:\L$2" if $long_name =~ /^(\S+) SMALL LETTER (\S+)\z/;
       return "$1:$2"   if $long_name =~ /^(\S+) LETTER (\S+)\z/;
       return $long_name;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

HI All Is there a version of Reshaper that can be used to run
Is there any version of jquery's .mouseover() that can be used to check if
is there a version of css3 code below that will work in all browers?
Short Version: Is there a/what is the suggested way to return error details to
Is there a log4net version built against Silverlight somewhere? Failing that, can someone suggest
Is there a version of wrapAll that will only wrap consecutive elements? So this:
Is there a version of Virtual PC 6 that i can run on XP?
Is there a version of Bouncy Castle that be used in the development of
Is there a version of Microsoft Visual J#® 2.0 Redistributable Package which will support
Is there a version of memset() which sets a value that is larger than

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.