ASCII Artwork to Unicode box characters
Project description
aa2unicode
Convert ASCII Artwork to unicode box characters
Input:
% cat ip.txt
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Version| IHL |Type of Service| Total Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Identification |Flags| Fragment Offset |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Time to Live | Protocol | Header Checksum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Source Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Destination Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Options | Padding |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Output:
% aa2unicode ip.txt
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
┌───────┬───────┬───────────────┬───────────────────────────────┐
│Version│ IHL │Type of Service│ Total Length │
├───────┴───────┴───────────────┼─────┬─────────────────────────┤
│ Identification │Flags│ Fragment Offset │
├───────────────┬───────────────┼─────┴─────────────────────────┤
│ Time to Live │ Protocol │ Header Checksum │
├───────────────┴───────────────┴───────────────────────────────┤
│ Source Address │
├───────────────────────────────────────────────────────────────┤
│ Destination Address │
├───────────────────────────────────────────────┬───────────────┤
│ Options │ Padding │
└───────────────────────────────────────────────┴───────────────┘
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aa2unicode-0.2.1.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file aa2unicode-0.2.1.tar.gz
.
File metadata
- Download URL: aa2unicode-0.2.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 728e58f70de9e45a18fb36320578a2bdab290d7506c9d3365bf54655f50e5245 |
|
MD5 | acd40261c8a0cb9a12da0fdb6963212b |
|
BLAKE2b-256 | 05a6e0996d0db01c66c4fc5ea2215e6d438b597e9be38ad392179712c07f9adb |
File details
Details for the file aa2unicode-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: aa2unicode-0.2.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9c9c283a2767ba079948d6d9dc3645da819485414d35de44e38d239aedf4f6b |
|
MD5 | dc2d29dfec08486f233de5197426a45e |
|
BLAKE2b-256 | cb6d863869020f41f690d72366df585616d4a5d14b573f6d0cfe91be0e9cbfb1 |