Print n-z characters of Unicode table

-2

The challenge is to write a program which outputs all characters of the Unicode table from n to z range.

For code "0000" is the first in order and you must skip all blank Unicode combinations. For example, let n = 134 and z = 300, you must save or print all unicode characters between 0134 and 0300.

The output of the program does not HAVE to output them, for example using std::cout can be used but if you have an array with all the saved characters then that still qualifies.(You don't have to print them out)

The shortest program in bytes wins.

Roberto Duran

Posted 2015-06-30T01:08:28.713

Reputation: 97

Question was closed 2015-06-30T03:24:46.450

1What exactly do you mean by n-z range? – Maltysen – 2015-06-30T01:11:48.343

2I'm a little confused. The program should output all Unicode characters but don't print them? – Alex A. – 2015-06-30T01:15:42.840

@AlexA. maybe he means it can be either function or stdout? – Maltysen – 2015-06-30T01:17:30.817

I mean you have to create some sort of list from "n" - "z" For example given n=134, that would be the 134 character in Unicode or "0134"and z=300 so you would print all unicode characters between "0134" through "0300". You would then have to skip all blank characters and save them in some way. – Roberto Duran – 2015-06-30T01:21:01.003

What is meant by blank characters? Unprintables? – Maltysen – 2015-06-30T01:23:03.853

Any unicode character which you cannot print or don't represent any character or symbol, newline and blank spaces don't qualify, I had to change that rule once I saw a loophole... – Roberto Duran – 2015-06-30T01:24:55.133

You might want to clarify this more, especially the title. At first I thought you were literally asking for echo {n..z}, e.g. "n o p q r s t u v w x y z" – Digital Trauma – 2015-06-30T01:49:16.023

I'm not sure what you mean by 0134. A number with a leading zero generally signals base 8, but U+0134 uses base 16. – Dennis – 2015-06-30T02:02:46.770

1Adding some examples of input and its associated output would be helpful to clarify your intent. – Alex A. – 2015-06-30T02:17:35.120

Answers

8

Pyth - 16 bytes

Maps Char-of over the range, and detects unprintables by if the string "\x" is inside its repr because that is how python represents unprintables like \x00.

f!}"\\x"`TCMrQvw

Try it here online.

Maltysen

Posted 2015-06-30T01:08:28.713

Reputation: 25 023

This is correct and the winner! – Roberto Duran – 2015-07-03T08:03:55.650