<commit_before>98imgtools
==========

Simple scripts for reading/writing PC-9801 emulator image headers.
There's an additional `pbr_dump` script which can be used to dump FAT
partition boot sectors, if needed.

Example usage
-------------

Mount a HDI image:

    mount -ooffset=$(./pbr_dump.py image.hdi | awk '$1=="offset:"{print $2}') image.hdi /mount/point

Supported formats
-----------------

 * HDD (Virtual98)
 * HDI (Anex86)
 * NHD (T98-Next)
 * SLH (SL9821)

See [`formats`](formats/) for the various format structures.

Tools
-----

### `hdddump.py`
Display header information from an HDD hard drive image file.

Verifies magic values in header.

### `hddgen.py`
Creates a new blank HDD image header to the user's specifications. Blank space is not allocated.

### `hdidump.py`
Display header information from an HDI hard drive image file.

### `nhddump.py`
Display header information from an NHD hard drive image file.

Verifies magic values in header.

### `nhdgen.py`
Creates a new blank NHD image header to the user's specifications. Blank space is not allocated.

### `pbr_dump.py`
Dumps the boot sector of the first partition found in the provided disk image.

### `slhdump.py`
Display header information from an SLH hard drive image file.

Verifies magic values in header.

### `slhgen.py`
Creates a new blank SLH image header to the user's specifications. Blank space is not allocated.<commit_msg>Clarify which kinds of partitions are handled by pbr_dump<commit_after>98imgtools
==========

Simple scripts for reading/writing PC-9801 emulator image headers.
There's an additional `pbr_dump` script which can be used to dump FAT
partition boot sectors, if needed.

Example usage
-------------

Mount a HDI image:

    mount -ooffset=$(./pbr_dump.py image.hdi | awk '$1=="offset:"{print $2}') image.hdi /mount/point

Supported formats
-----------------

 * HDD (Virtual98)
 * HDI (Anex86)
 * NHD (T98-Next)
 * SLH (SL9821)

See [`formats`](formats/) for the various format structures.

Tools
-----

### `hdddump.py`
Display header information from an HDD hard drive image file.

Verifies magic values in header.

### `hddgen.py`
Creates a new blank HDD image header to the user's specifications. Blank space is not allocated.

### `hdidump.py`
Display header information from an HDI hard drive image file.

### `nhddump.py`
Display header information from an NHD hard drive image file.

Verifies magic values in header.

### `nhdgen.py`
Creates a new blank NHD image header to the user's specifications. Blank space is not allocated.

### `pbr_dump.py`
Dumps the boot sector of the first FAT partition found in the provided disk image.

### `slhdump.py`
Display header information from an SLH hard drive image file.

Verifies magic values in header.

### `slhgen.py`
Creates a new blank SLH image header to the user's specifications. Blank space is not allocated.
{'fraction_non_alphanumeric': 0.11597222222222223, 'fraction_numerical': 0.0125, 'mean_word_length': 3.754125412541254, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1103942', 'n_tokens_mistral': 892, 'n_tokens_neox': 849, 'n_words': 374}