如何在DOS模式下使用Malayalam字体打印? [英] How to use Malayalam fonts in DOS mode print ?

查看:45
本文介绍了如何在DOS模式下使用Malayalam字体打印?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在DOS模式下打印带有马拉雅拉姆语内容的文件时,马拉雅拉姆语字符被打印为无法识别的符号。



我想知道DOS模式打印是否支持马拉雅拉姆语或Unicode语言

While i am printing a file with Malayalam Content in DOS mode, Malayalam characters are printed as unrecognized symbols.

I want to know whether DOS mode printing supports Malayalam or Unicode languages

推荐答案

DOS不支持Unicode。因此,您应该使用甚至使用代码点创建8位编码> 127为你的信件。我会说,这不值得做。 (阅读非标准的扩展ASCII 方法: http://en.wikipedia.org/wiki/Extended_ASCII [ ^ ]。)



然后你必须创建一个像素大小的位图字体,用于视频卡的一种或另一种文本模式,并将字体加载到该卡的指定存储区域。您必须找到卡的适当物理地址(段:偏移)和格式。格式非常简单,二进制,并且地址对于不同的文本模式是不同的,但对于相同类别(EGA,VGA,Super-VGA等)的不同型号的卡是相同的。你必须找到它。装载速度非常快。你只能加载堡垒范围的一部分,相应的BIOS功能(实际上是编程中断调用)都有这样的参数。



替代解决方案是使用图形模式并开发整个文本输出系统。然后甚至可以实现Unicode的支持,但是你将无法用字符文字编写DOS程序,必须在运行时将它全部转换为Unicode。



-SA
DOS does not support Unicode. So, you should use or even create a 8-bit encoding using code points > 127 for your letters. I would say, it's not worth doing. (Read about non-standard extended ASCII approach: http://en.wikipedia.org/wiki/Extended_ASCII[^].)

Then you have to create a bitmap font of the pixel size used by one or another text mode of your video card and load the font in the designated area of memory of this card. You will have to find out appropriate physical address (segment:offset) for the card and the format. The format is very simple, binary, and the addresses are different for the different text modes, but are the same for different model of card of the same classes (EGA, VGA, Super-VGA, etc.). You will have to find it all. The loading is extremely fast. You can load only the part of the fort range, the appropriate BIOS functions (which are actually programming interrupt calls) have such parameter.

Alternative solution is to use graphic mode and develop the whole system of text output. Then even the support of Unicode could be implemented, but you won't be able to write DOS programs with character literals, will have to convert it all to Unicode during runtime.

—SA


这篇关于如何在DOS模式下使用Malayalam字体打印?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆