Python Forum
Thread Rating:
  • 2 Vote(s) - 1.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unicode
#4
i did try writing some code to try to output a unicode table, or at least a short form of it for codes up to U+07FF.  the result was a mess on the screen, among quite many codes that printed something legible.  i did this with a loop for code in range(0x0800): and encoded the result from chr(code) to UTF-8 and wrote each character, one at a time, directly to the terminal, with output around it to try to make a table structure.  it was not pretty.  so i am trying to see what more i can do.  i don't know how complete the terminal program or the fonts it uses are but have gotten double-wide CJK characters many times.  i will have to figure how how best to display many things in a dump output.  the python unicode database that stranac referred me too looks like it would be useful.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
unicode - by Skaperen - Nov-15-2017, 01:52 AM
RE: unicode - by stranac - Nov-15-2017, 08:49 AM
RE: unicode - by sparkz_alot - Nov-15-2017, 03:04 PM
RE: unicode - by Skaperen - Nov-16-2017, 03:00 AM
RE: unicode - by sparkz_alot - Nov-16-2017, 02:43 PM
RE: unicode - by Skaperen - Nov-17-2017, 02:50 AM
RE: unicode - by sparkz_alot - Nov-17-2017, 02:05 PM
RE: unicode - by Skaperen - Nov-18-2017, 08:10 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020