Groups
Sign in
Groups
hwp-foss
Conversations
About
Send feedback
Help
HWPTAG_NUMBERING 레코드 구조
262 views
Skip to first unread message
Changwoo Ryu
unread,
Jan 19, 2014, 1:57:43 PM
1/19/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to hwp-...@googlegroups.com
HWPTAG_NUMBERING 레코드가 ID mappings table 중에서 가장 괴상한 구조네요. 스펙 문서야 당연히
틀렸고, 아마도 버전업하면서 추가하면서 이렇게 뒤에 붙은 것 같은데..
pyhwp에도 없지만 또다른 분이 만드신 파서에 힌트가 있군요.
https://github.com/chminseo/Soopia/blob/master/src/soopia/hwp/codec/NumberingRecordDecoder.java#L31
7개 단계별로 (12 + 2 + 2*len) 바이트 데이터가 7개 나오고 2바이트를 읽은 다음 다시 4바이트 숫자 7개를
읽네요. HWPX 태그로 중간 2바이트가 <numbering>의 "start" 속성에 대응되고, 뒤의 7개 숫자가 하위
<paraHead> 태그의 "start" 속성에 대응됩니다.
Reply all
Reply to author
Forward
0 new messages