Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c    |    Meh, in C you gotta define EVERYTHING    |    243,242 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 242,334 of 243,242    |
|    Michael Sanders to James Kuyper    |
|    Re: Unicode...    |
|    03 Dec 25 23:23:30    |
      From: porkchop@invalid.foo              On Wed, 3 Dec 2025 14:01:38 -0500, James Kuyper wrote:              > I find it confusing that this is supposed to "work perfectly" "across       > diverse OSs". The amount of space that a character takes up varies       > depending upon the installed fonts, especially on whether the font is       > monospaced or proportional. Those fonts can be different for display on       > screen or on a printer. I don't see any query to determine even what the       > current font is, much less what it's characteristics are. I don't know       > of any OS-independent way of collecting such information. Does this       > solution "work perfectly" only for your own particular favorite font?              Just for use in the terminal & yes it works as advertised.              In my case I simply need to match the character the user passed       to the program when searching for a record. I dont want or need       to know what font is used. If the terminal can display it, then       I want to use it.              Example, user invokes: tinybase -s=漢字 data/*.tbf              Output is...              FILE: data/history.tbf       LINE: 170       BLOCK: 4       CRC-8: 0x30       QUERY: 漢字       MATCH: 漢字              TAGS: China, History, <漢字>, [wrap:66]              Ancient China...              1. Geography and Early Beginnings: Ancient China, a cradle of       civilization, evolved along the Yellow River's fertile plains.       Protected by the Himalayas to the south, the Gobi Desert to the       north, and vast seas to the east, this geographic isolation       allowed for a unique and continuous cultural development spanning       millennia.              ...              James, earnestly intending no offense - add something to the       conversion rather than complaining - I want to learn & solve       problems that's where I'm seeking help. Just modify the code,       make it get closer to your ideal. We'll all benefit.              --       :wq       Mike Sanders              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca