Closed kassane closed 2 years ago
On page 529, the section headers TVD_TOP
and TVD0
are not bold or in any way otherwise marked. Therefore, they are not recognized as section headers (those would be with an element #
in front in phase2_result.py). But they don't have an offset either, so they are not registers. So what are they?
Anyway, worked around that in main branch, commit 96b2685102267f58390916e64f921b9cce8cd203 (to make them be classified as section headers).
Please test.
Furthermore, made Makefile detect a cpu named just "RISC" as "riscv" in main branch, commit 1bbca1b0abff5d998f829ca452f3c6823242a4c9.
Well done.
cc: @daym
Manual v1.2
pdftohtml -nodrm -xml D1-H_1-2.pdf partsvol1/a >/dev/null
Document has copy-protection bit set.
# Invalid multibyte character
sed -i -e 's;\xcb\xce\xcc\xe5;;' -e 's;\xce\xa2\xc8\xed\xd1\xc5\xba\xda;;' partsvol1/a.xml
./extract.py partsvol1/a.xml D1-H_1-2.pdf > "phase2_result.py".new && mv "phase2_result.py".new "phase2_result.py"
WARNING:root:ignored h4 of 'TVE_TOP ' in table 'Module List' since it's most likely a typo
WARNING:root:ignored h4 of 'TVD_TOP ' in table 'Module List' since it's most likely a typo
Traceback (most recent call last):
File "/home/kassane/allwinner-register-interface-extractor/./extract.py", line 457, in <module>
traverse(state, root)
File "/home/kassane/allwinner-register-interface-extractor/./extract.py", line 450, in traverse
traverse(state, node, indent + 1, fontspecs)
File "/home/kassane/allwinner-register-interface-extractor/./extract.py", line 446, in traverse
state.process_text(text, attrib, xx)
File "/home/kassane/allwinner-register-interface-extractor/./extract.py", line 178, in process_text
assert (attrib["meaning"] == "h4" and xx == {"b"}) or attrib["meaning"] == "table-cell" or attrib["meaning"] == "h3", (self.page_number, attrib, xx)
AssertionError: ('559', {'left': '481', 'font': "(('color', '#000000'), ('family', 'ABCDEE+Calibri'), ('size', '16'))", 'meaning': ''}, set())
make: *** [Makefile:13: phase2_result.py] Error 1
I tried both the files from v1.2.tar.gz and they work for me with current master.
Hi @daym
Manual D1s
Trying to extract D1s occurs this error: