joncampbell123 / doslib

Hackipedia DOSLIB, a general collection of useful libraries for writing MS-DOS software
GNU Lesser General Public License v2.1
204 stars 17 forks source link

PC-98 testing and development #14

Open joncampbell123 opened 8 years ago

joncampbell123 commented 8 years ago

I have some base code in place to detect PC-98 and makefile targets for PC-98. All I have so far are "is this PC-98" detection routines and support for PC speaker and 8254 timer on PC-98. All I have for reference are emulators. If anyone out there who has actual PC-98 hardware can help me with testing and development, that would be cool.

joncampbell123 commented 8 years ago

I have also updated Hackipedia.org with what PC-98 I've found so far:

http://hackipedia.org/Platform/x86/NEC%20PC-98/

joncampbell123 commented 7 years ago

Good news!

I finally got around to obtaining a NEC PC-9821 laptop to develop this part of DOSLIB on. It's a 486DX 50MHz with 10MB of RAM. Despite the seller shipping with no OS, I was able to reinstall MS-DOS 6.2 NEC-98 version. Many PC-98 games, including Touhou Project 1-5, run perfectly fine on it without any sound.

I will be able to begin developing more code in the hw/necpc98 part of the project.

The RS-232 port on the laptop appears to be something proprietary rather than the familiar RS232C 9-pin port. Do any adapters exist to bring it out to RS-232C? I would love to port the remote control program to work on PC-98 to aid development, if I can figure out programming the serial port.

joncampbell123 commented 6 years ago

Next task for PC-98 development: Some quick one-off programs to play with keyboard input via INT 18h. Then, begin the 8251 library to demonstrate talking directly to the 8251 chips in the PC-98 platform that drive a) the keyboard and b) the RS-232C port.

I may have to finangle as bit as the available documentation is in Japanese and not in an OCR'd format I can just copy-paste into Google Translate.

I'm reading from what docs I have that later PC-9821 systems have a proper 16550 UART but emulate the 8251 for backwards compatibility. Is that right?

gingerbeardman commented 6 years ago

If you need any Japanese documents running through OCR, let me know! I have software set up to do just that

joncampbell123 commented 6 years ago

@gingerbeardman That would be helpful, yes!

I've managed to gather a few PDF scans already that could use OCR. Some I found on the Internet Archive.

http://hackipedia.org/browse/Computer/Platform/PC,%20NEC%20PC-98/Collections

joncampbell123 commented 6 years ago

I'm also interested in any documentation concerning NEC's ANSI driver. It seems to have a direct interface via INT DCh but I can only find some documentation on the "extensions" to the interface. Many games and utilities seem to call on it. Once call I traced into appears to set/retrieve the function key row text.

gingerbeardman commented 6 years ago

I'll OCR them soon.

Also, have you contacted the author of np2kai? I'm sure he'd share documentation

gingerbeardman commented 6 years ago

OK, here we go! This was some heavy work for my little old MBP.

Pre-process

Post-process

Anyway, here are the OCR'd files. I'd keep them alongside the originals.

I also tried unsuccessfully with:

Also, I'd like to point you to the Neo Kobe collection and also the Tokugawa Corporate Forums.

Translation Aggregator is a great little app to get multiple translations of whatever you copy into the clipboard. Windows only, so I run it using Wine.

Let me know how you get on with these. Happy to redo/tweak.

joncampbell123 commented 6 years ago

I will place these OCRd PDFs on the private copy of my hackipedia site to work from. I assume you'd rather I not publish them on the site publicly.

I checked over the PDFs and I can confirm the text is selectable, and copying the text to Notepad (Windows) or Leafpad (Linux) shows text that resembles what is on the page. Considering that some of the kanji are fairly blurry, I'm impressed.

gingerbeardman commented 6 years ago

I don't mind what you do with them. Feel free to share them publicly. I claim no ownership.

The new files may contain slightly lower quality image data due to the way the OCR apps modify them, so it's still worth keeping the originals around. If I redo them I always work from the originals.

There's some very impressive OCR software available these days. Though not every OCR app supports Japanese, and each has their own strengths and weaknesses.

As you work with them I'd appreciate feedback on which set give more consistent accuracy. Then in future I'll just use that one OCR app to save time!

gingerbeardman commented 6 years ago

Updated Translation Aggregator download link

gingerbeardman commented 6 years ago

I reinstalled PDFpenPro and managed to get some mediocre results:

http://www.mediafire.com/file/z30acwfyrc5y55a/PC98-OCR-PDFpenPro.7z

My thoughts on comparative quality, first is best:

  1. ScanSnap
  2. Acrobat
  3. PDFpenPro

Interestingly that is also the order of ease of processing, so I'll stick with ScanSnap for now.

joncampbell123 commented 6 years ago

So far so good. The only OCR errors I see are cases where it can't tell between 1 and I (capital i) and l (lowercase L).

gingerbeardman commented 6 years ago

Great. I'll see if it's possible to tweak or spell check the text. Maybe use a custom dictionary. We'll see.