diff --git a/README.md b/README.md index cf944c6..995e958 100644 --- a/README.md +++ b/README.md @@ -8,3 +8,35 @@ move/sort files in current dir to subfolder named after mime-type ##toggle_touchpad toggle touchpad on notebook on and off via xinput + Decimal Hex Char Category Name + 9675 0x0025cb ○ Symbol, Other WHITE CIRCLE + 9684 0x0025d4 ◔ Symbol, Other CIRCLE WITH UPPER RIGHT QUADRANT BLACK + 9719 0x0025f7 ◷ Symbol, Other WHITE CIRCLE WITH UPPER RIGHT QUADRANT + 9681 0x0025d1 ◑ Symbol, Other CIRCLE WITH RIGHT HALF BLACK + 9685 0x0025d5 ◕ Symbol, Other CIRCLE WITH ALL BUT UPPER LEFT QUADRANT BLACK + 9679 0x0025cf ● Symbol, Other BLACK CIRCLE + 9673 0x0025c9 ◉ Symbol, Other FISHEYE + 9676 0x0025cc ◌ Symbol, Other DOTTED CIRCLE + 9677 0x0025cd ◍ Symbol, Other CIRCLE WITH VERTICAL FILL + 9678 0x0025ce ◎ Symbol, Other BULLSEYE + 9711 0x0025ef ◯ Symbol, Other LARGE CIRCLE + 67 0x000043 C Letter, Uppercase LATIN CAPITAL LETTER C + 69 0x000045 E Letter, Uppercase LATIN CAPITAL LETTER E + 82 0x000052 R Letter, Uppercase LATIN CAPITAL LETTER R + 84 0x000054 T Letter, Uppercase LATIN CAPITAL LETTER T + 6834 0x001ab2 ᪲ Mark, Nonspacing COMBINING INFINITY + 84 0x000054 T Letter, Uppercase LATIN CAPITAL LETTER T + 97 0x000061 a Letter, Lowercase LATIN SMALL LETTER A + 98 0x000062 b Letter, Lowercase LATIN SMALL LETTER B + 108 0x00006c l Letter, Lowercase LATIN SMALL LETTER L + 101 0x000065 e Letter, Lowercase LATIN SMALL LETTER E + 859 0x00035b ͛ Mark, Nonspacing COMBINING ZIGZAG ABOVE + 100 0x000064 d Letter, Lowercase LATIN SMALL LETTER D + 101 0x000065 e Letter, Lowercase LATIN SMALL LETTER E + 66397 0x01035d 𐍝 Letter, Other OLD PERMIC LETTER NENOE + 105 0x000069 i Letter, Lowercase LATIN SMALL LETTER I + 108 0x00006c l Letter, Lowercase LATIN SMALL LETTER L + Decimal Hex Char Category Name + 8352 0x0020a0 ₠ Symbol, Currency EURO-CURRENCY SIGN + 8477 0x00211d ℝ Letter, Uppercase DOUBLE-STRUCK CAPITAL R + 8376 0x0020b8 ₸ Symbol, Currency TENGE SIGN diff --git a/unum.py b/unum.py old mode 100644 new mode 100755 index ac5b55b..b620282 --- a/unum.py +++ b/unum.py @@ -40,10 +40,25 @@ def long_cat(category): else: return category +def print_info(char): + spacing = " " if unicodedata.category(char) in ['Mn'] else '' + try: + unicodename = unicodedata.name(char) + except ValueError as e: + unicodename = "UNKNOWN" + if ord(char) == 10: + unicodename = "UNKNOWN" + print(f"{ord(char):>8} 0x{ord(char):>06x} {spacing}{' ':^5} {long_cat(unicodedata.category(char)):<26} {unicodename:<30}") + else: + print(f"{ord(char):>8} 0x{ord(char):>06x} {spacing}{char:^5} {long_cat(unicodedata.category(char)):<26} {unicodename:<30}") + print(f" Decimal Hex Char {'Category':^26} Name") -for argument in sys.argv[1:]: - for char in argument: - # if character has now own width add a space ..... u know .... for spacing - spacing = " " if unicodedata.category(char) in ['Mn'] else '' - print(f"{ord(char):>8} 0x{ord(char):>06x} {spacing}{char:^5} {long_cat(unicodedata.category(char)):<26} {unicodedata.name(char):<30}") +if len(sys.argv) == 1: + for char in sys.stdin.read(): + print_info(char) +else: + for argument in sys.argv[1:]: + for char in argument: + print_info(char) + \ No newline at end of file diff --git a/utfinfo.pl b/utfinfo.pl deleted file mode 100755 index 246f7a3..0000000 --- a/utfinfo.pl +++ /dev/null @@ -1,1371 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SdaauBckp / Code - / [r431] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - -
-
- - - - - - - -
- -
- - -
- -
- - - -
-
- - - - - - - - - - - - - -
-

-Tree [r431] - - - - / - - - - - - - - - -
- - - - - -
- - - History - - - -
- -

- -
- - - - - - -
- - - - HTTPS access -
- -
-
- -
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileDateAuthorCommit
- - - -  alsa-bencol-src - - - 2010-07-21 - - - - - - - sdaau - - - - [r44] - added minivosc and bencol alsa drivers - -
- - - -  alsa-minivosc-src - - - 2012-05-06 - - - - - - - sdaau - - - - [r301] - mod loopsndbuf.ck; some leftover minivosc (line... - -
- - - -  alsa-scdcomp - - - 2014-07-15 - - - - - - - sdaau - - - - [r393] - added scdcomp - initial checkin/release - -
- - - -  attenload - - - 2013-02-15 - - - - - - - sdaau - - - - [r366] - attenload: added facility to upload device sett... - -
- - - -  audard - - - 2013-03-19 - - - - - - - sdaau - - - - [r368] - audard: forgotten duplexAudard_loopback.pde - -
- - - -  audfpga-bb - - - 2011-11-18 - - - - - - - sdaau - - - - [r272] - XS3A-FT245-duplex-B: syncing edits... - -
- - - -  avr-cycles - - - 2010-12-01 - - - - - - - sdaau - - - - [r129] - added avr-cycles, so it builds for Ubuntu Lucid - -
- - - -  ccal-0.6.1 - - - 2014-07-15 - - - - - - - sdaau - - - - [r391] - ccal-0.6.1: added the dirs that are not availab... - -
- - - -  extensions - - - 2015-06-08 - - - - - - - sdaau - - - - [r425] - python-markdown: some comments - -
- - - -  mvs-client.perl - - - 2015-07-08 - - - - - - - sdaau - - - - [r430] - mvs-client.perl: some more changes, Client.pm - -
- - - -  nautilus-save-tabs - - - 2010-03-07 - - - - - - - sdaau - - - - [r29] - savetabs more readme.. - -
- - - -  numStepCsvLogVis - - - 2013-06-14 - - - - - - - sdaau - - - - [r388] - numStepCsvLogVis: fix neg numbers in tools/numL... - -
- - - -  offext-call-scripts - - - 2012-07-03 - - - - - - - sdaau - - - - [r322] - mod podofo.sh - -
- - - -  patches - - - 2011-10-23 - - - - - - - sdaau - - - - [r244] - patches: some textmarker-jar fixes (exceptions ... - -
- - - -  sd-phdemo - - - 2015-08-08 - - - - - - - sdaau - - - - [r431] - sd-phdemo: initial checkin - -
- - - -  sdfrethsh - - - 2010-05-16 - - - - - - - sdaau - - - - [r41] - adding ArduinoWaker illustrations - png - -
- - - -  settings - - - 2015-01-31 - - - - - - - sdaau - - - - [r423] - some modifications - -
- - - -  single-scripts - - - 2015-07-05 - - - - - - - sdaau - - - - [r429] - single-scripts: fix of visRegexTester.py shift-... - -
- - - -  source-build-scripts - - - 2013-04-18 - - - - - - - sdaau - - - - [r382] - source-build-scripts: add get-remake-deb.sh, ge... - -
- - - -  spmdwe - - - 2012-11-04 - - - - - - - sdaau - - - - [r325] - spmdwe: modded readme.txt - -
- - - -  wiki2html - - - 2010-04-28 - - - - - - - sdaau - - - - [r33] - wiki2html - changed so local anchor links to no... - -
- - - -  xp-take-screenshot - - - 2010-04-29 - - - - - - - sdaau - - - - [r34] - added xp-take-screenshot - -
- - - -  xtra - - - 2015-07-05 - - - - - - - sdaau - - - - [r428] - test-css-files: leftover css changes - -
- - - -  get-wiki2html.sh - - - 2010-04-28 - - - - - - - sdaau - - - - [r30] - added a wiki2html build - -
- - - -
- - -
- -
-
- - - - - - - - - -
-

Get latest updates about Open Source Projects, Conferences and News.

-

Sign up for the SourceForge newsletter:

- -
-
- - -
-
- -

- - -

- - - - - - - - - - - - - - -

-
-

-

-
-

-
- - No, thanks -
- - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file