You're being vague. In your previous post, you talked about windows 98 or DOS, and now its DOS only.
I wonder, do you really mean DOS, or do you mean the DOS-box window you can get after you've started windows 98?
You still haven't said which compiler you're using.
Everything in DOS is a hack to get around some aspect of its deficiencies.
- like 640K of memory, so you use EMS or XMS or protected mode if you want more.
- the 16 bit segmented architecture limits the size of any single object to 64K
- like only 8 bits characters, so you have to fiddle with code pages to extend the range
- like no multitasking, so you're stuck to running one program at once. TSR's are one way of hacking multi-tasking
- no standardised GUI, so you have to roll your own
- little or no inherent networking capability
- no standardised access to things like printers and other common devices.
My guess would be you need to store each character as two bytes
- one byte to store the character itself
- one byte to store an identifier for the DOS code page which can represent that character.
I've no idea how you go about printing characters from multiple code pages, since I know nothing about code pages or code page flipping.
I am really a newbie and trying to make a dictionary. I would be using a borland turbo c++ v3.0.
I really need help on using Unicode because of the following reasons...
1) I would have to create my own stroked font of my language which is Indian(Hindi, devanagari: to be precise).
2) My language has many characters unlike english which as 26. The real problem is that my language, unlike english, doesn't have a single letter for a character, there are some characters which have two letters.. so creating a font and implementing becomes a tedious task.
3) Most important one:
I am trying to convert the things written in english to my own language.example: "food" in my language means "khaana" and "khana" is made up of two characters "khaa" and "na"
to be clear like food is made of "f"+"o"+'o"+"d" ,
"khaana" is made of just two "khaa"+"na"....now the characters "khaa" and "na" are different obviously so I need to disply "khaana" in my own language font..so without the job at hand is getting difficult without any aid..
I have heard that Unicode has a unique code for each character and it would make it simpler to implement it in C.. I would be glad to only get the first few basic knowledge about unicode and implementing it with C and compliling it with borland turbo c++ v3.0 to make a dos based program that would run in windows with dos environment.
Note that Windows Unicode is 16 bits per character. On some Unix systems (eg SunOS), it is 32 bits per character so if you intend to write portable code, don't assume that it is just a bunch of unsigned shorts.
that tell you how TTF is constructed. Maybe you could borrow the fonts from Windows and reconstruct them in DOS in graphical mode. I don't know of any bitmapped fonts in Unicode.
I have been looking for ways to load True Type fonts in DOS through C but I have not found yet... It would be great if someone could help me find documents on loading TTF font in ms dos
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.