Tool for hexadecimal text data mapping.
GitHub: https://github.com/YujiSODE/txtMap
Wiki: https://github.com/YujiSODE/txtMap/wiki
Copyright (c) 2018 Yuji SODE \yuji.sode@gmail.com\
This software is released under the MIT License.
See LICENSE or http://opensource.org/licenses/mit-license.php
1. Synopsis
Output
::txtMap::outputMap hexTxt W fileName;
it outputs mapping result.::txtMap::outputHexMap cMap fileName;
it outputs hexadecimal map converted from unicode character map.
Parameters
$hexTxt
: utf-8 encoded string that is composed of hexadecimal characters (0-1
and a-f
)U+00000A
)$cMap
: unicode character map output by ::txtMap::outputMap
or ::txtMap::hexToMap
$W
: the maximum integer length for output string$fileName
: name of output file::txtMap::outputHTML hexTxt W title ?comment?;
Parameters
$hexTxt
: utf-8 encoded string that is composed of hexadecimal characters (0-1 and a-f) and newline character (Unicode U+00000A)$W
: the maximum integer length for output string$title
: title of output HTML file$comment
: an optional commentscale ?L1 ?R1 ?L2 ?R2????;
Parameters
$L1
and $L2
: optional left characters$R1
and $R2
: optional right characters::txtMap::to4bitHex list ?Min ?Max??;
to4bitHex
is modified version of to4bit.tcl
(Yuji SODE,2018).Parameters
$list
: a numerical list$Min
and $Max
: minimum and maximum integers::txtMap::hexToMap hexTxt W;
::txtMap::mapToHex cMap;
::txtMap::hexToMap
.Parameters
$hexTxt
: utf-8 encoded string that is composed of hexadecimal characters (0-1 and a-f) and newline character (Unicode U+00000A)$cMap
: unicode character map output by ::txtMap::hexToMap
$W
: the maximum integer length for output string::txtMap::rule ?v1 v2?;
Parameters
$v1
and $v2
: optional valuesIt requires Tcl/Tk 8.6+.
txtMap.tcl