This script parses a transport block size Table 7.1.7.2.1-1 from 3GPP TS 36.213.
Script accepts as input a text copied directly from a PDF version of 3GPP TS 36.213, just from the begging of the Table 7.1.7.2.1-1 to the end of the table. Sample text file is located in samples folder. The script writes output to in JSON format to generated folder.
The script compare.py can be used to check correctness of a table stored in a json format. An example is located in samples.
In order to generate reference JSON file for the TBS table:
python3 generate_ref.py -f samples/ts_136213v121300p.txt
Generated JSON file will be located in generated/
.
In order to compare another file with a reference:
python3 compare.py -f generated/ts_136213v121300p.json -c samples/cpp_tbs.json
This will generated an html report in generated/report.html
showing in which rows which columns are different.
Except for the content of the samples/
folder the code is licensed under the MIT License.