joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.76k stars 381 forks source link

将来会支援倚天中文的列印控制码吗? #4553

Open dog099 opened 11 months ago

dog099 commented 11 months ago

Is your feature request related to a problem? Please describe.

No response

What you want

DOSBox-X目前无法辨识倚天中文的列印控制码(如: "~W2Z2;"), 就算先载入倚天中文的印表机驱动也不行. 感谢大家对DOS付出的心力, 希望DOSBox-X能正常列印中文.

Describe alternatives you've considered

No response

Additional information

No response

Have you checked that no similar feature request(s) exist?

Code of Conduct & Contributing Guidelines

Arthur3032 commented 11 months ago

可以配合 漠書模擬系統之集中列印程式使用. (大方廣)

dog099 commented 11 months ago

可以配合 漠書模擬系統之集中列印程式使用. (大方廣)

謝謝建議。我用vmware player 配合實體Parallel Port,多年來倒也沒什麼問題。最近試用dosbox-x感覺得棒,只可惜無法正確列印中文。

maron2000 commented 11 months ago

If you want to print to a real printer connected to your PC, have you tried the reallpt option? https://github.com/joncampbell123/dosbox-x/wiki/Guide:Setting-up-printing-in-DOSBox%E2%80%90X#parallel-section-options

dog099 commented 11 months ago

If you want to print to a real printer connected to your PC, have you tried the reallpt option?

I have tried it, but it cannot print normally. Preloading ETEN Chinese does not work either. (Sorry, my English is very poor)

rderooy commented 11 months ago

Please have a look at the examples on that same wiki page. https://github.com/joncampbell123/dosbox-x/wiki/Guide:Setting-up-printing-in-DOSBox%E2%80%90X#example-printing-to-a-real-printer

dog099 commented 11 months ago

Please have a look at the examples on that same wiki page.

Thank you. I just tried Printfil and the situation was similar. The printer would only print out a string like "~W2;". If it is correct, this string should not be printed, but the subsequent printing width will become 2 times. ETEN Chinese system can no longer process its own print control code in DOSBox-X.

Arthur3032 commented 11 months ago

DosBox-X 與 漢書集中列印, 可以完美配合, (向大方廣公司購買漢書集中列印,在DosBox-X執行應用程式,產生文字檔,交由漢書集中列印,預覽列印或直接列印) ET

dosprn commented 11 months ago

You can try to use DOSPRN. If the same issue occurs contact DOSPRN support and ask them to look around the problem.

Arthur3032 commented 11 months ago

You can try to use DOSPRN. If the same issue occurs contact DOSPRN support and ask them to look around the problem.

DOSPRN is very good, but Can't process ETen Control code, ex: ~W2; ~W1;....

image

dosprn commented 11 months ago

DOSPRN is very good, but Can't process ETen Control code, ex: ~W2; ~W1;....

We can add emulation of control commands from different printers to DOSPRN. But we need to find the specification of the ETEN Chinese commands, i.e. how these ~W2; and ~W1; should affect printing. Unfortunately, I haven't found this specification yet.

Both http://www.etencorp.com/ and http://www.eten.com.tw/ websites mentioned in Wikipedia don't work.

Arthur3032 commented 11 months ago

DOSPRN is very good, but Can't process ETen Control code, ex: ~W2; ~W1;....

We can add emulation of control commands from different printers to DOSPRN. But we need to find the specification of the ETEN Chinese commands, i.e. how these ~W2; and ~W1; should affect printing. Unfortunately, I haven't found this specification yet.

Both http://www.etencorp.com/ and http://www.eten.com.tw/ websites mentioned in Wikipedia don't work.

~ starts with control code ; End of coding ~Wn; font horizontally enlarged n times (normal value 1) ~Zn; font vertically enlarged n times (normal value 1) ~TXnn; font horizontal nn points (normal value 24) ~TYnn; font vertical nn points (normal value 24) ~i; all return to normal values ~Xnn; The number of points between characters ~Lnn; distance between rows in points If the above can be handled, I can provide more control codes.

dosprn commented 11 months ago

If the above can be handled, I can provide more control codes.

I think it is quite possible to emulate such codes in a week.

Since ETen Controls actions differ from the ESC/P and HP PCL standards, minor modifications to the DOSPRN code will be required.

I will need an example of a raw report with control codes to make sure that they work correctly. In particular, I need to check whether the ESC characters (ASCII 27) are used before escape commands.

Let's move on to discussing the details via email if you don't mind. I will write you a message today.

dosprn commented 11 months ago

If the above can be handled, I can provide more control codes.

Unfortunately, your email is not visible on Github. Please write a message to support@dosprn.com for further ETEN Chinese emulator development

dosprn commented 11 months ago

DOSPRN is very good, but Can't process ETen Control code, ex: ~W2; ~W1;....

Unfortunately we have not received a message from you.

If you are still interested in developing ETEN Chinese support for DOSPRN please contact us at support@dosprn.com

dog099 commented 10 months ago

@Arthur3032 ^^

dosprn commented 10 months ago

@Arthur3032 ^^

With some ETEN Chinese documentation we started development.

I would like to note that the commands used by ETEN are inherently quite different from the widely used EPSON ESC/P and HP PCL standards.

Support for some functions, such as changing font sizes (~W1; ~W2; and the like) and setting margins will be done within a few days.

Other functions will be available later as they are unique and will require serious improvements to DOSPRN.

There are also functions that I don’t yet see the opportunity to support (for example, specifying an input tray or formatting page headers). This functionality is not included in the basic DOSPRN kit and cannot be added yet. Let me know if you need any such features to raise their development priority.

dosprn commented 10 months ago

@Arthur3032 ^^

With some ETEN Chinese documentation we started development.

I would like to note that the commands used by ETEN are inherently quite different from the widely used EPSON ESC/P and HP PCL standards.

Support for some functions, such as changing font sizes (~W1; ~W2; and the like) and setting margins will be done within a few days.

Other functions will be available later as they are unique and will require serious improvements to DOSPRN.

There are also functions that I don’t yet see the opportunity to support (for example, specifying an input tray or formatting page headers). This functionality is not included in the basic DOSPRN kit and cannot be added yet. Let me know if you need any such features to raise their development priority.

Build DOSPRN 2.0 (DOSprn200.exe) with partial support for ETEN Chinese published here https://www.dosprn.com/download.htm

If interested users find any problems or need more ETEN Chinese commands emulation, please contact support@dosprn.com

dog099 commented 10 months ago

Only a single item such as "~W2;" can be controlled. If there is more than one, it will be invalid, such as "~W2Z2;".

dosprn commented 10 months ago

In the ETen documentation you sent me, there was no mention of how composite control commands are formed.

The screenshot you took shows the compound command ~ix8S2;

From which I assumed that compound commands should be built according to the same principle as in the PCL standard, where lowercase letters can be at the beginning and middle of compound commands, and commands should end with capital letters.

Perhaps I was wrong in my assumption. This is why I have repeatedly asked for the actual raw data of the document containing the ETen commands to be sent to me.

dog099 commented 10 months ago

They start with "~" and end with ";". Commands are not case sensitive.

dosprn commented 10 months ago

New DOSPRN 2.0 (DOSprn200.exe) build with ETEN fixes is published here https://www.dosprn.com/download.htm Please uninstall previous DOSPRN build before installation.