Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Rust based hwp parser and tools

License

NotificationsYou must be signed in to change notification settings

hahnlee/hwp-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

본 제품은 한글과컴퓨터의 한/글 문서 파일(.hwp) 공개 문서를 참고하여 개발하였습니다.

Rust로 작성된 hwp파서와 각종 도구들

hwp-rs와 libhwp를 공개합니다

  • hwp-rs Rust로 작성된 로우레벨 hwp 파서
  • libhwp Rust로 작성된 Python hwp 리더 라이브러리
fromlibhwpimportHWPReaderhwp=HWPReader('<파일 경로>')# 모든 문단 출력 (표, 캡션 포함)forparagraphinhwp.find_all('paragraph'):print(paragraph)# 테이블 내용 출력fortableinhwp.find_all('table'):forcellintable.cells:forparagraphincell.paragraphs:print(paragraph)# 문서에 사용된 파일 저장forfileinhwp.bin_data:withopen(file.name,'wb')asf:f.write(file.data)

개발가이드

가이드 문서를 참고해주세요

다른언어 바인딩은 지원 계획이 있나요?

없습니다.

하지만wasm-bindgen을 이용한 웹 어셈블리 바인딩은 준비중이며,napi-rs를 사용한 node 바인딩은 고려하고 있습니다.

필요시 hwp-rs를 직접 바인딩하여 사용해주세요. 만약 장기적인 관리를 해주실 수 있다면discussions에 알려주세요.

License

Copyright Han Lee <hanlee.dev@gmail.com> and other contributorsLicensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at    http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.

About

Rust based hwp parser and tools

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp