Skip to main content

No project description provided

Project description

Numbering


목표: python-docx랑 호환가능한 para_idx별 번호매기기를 모듈화

HowTo:

  1. docx파일에서 table을 제거
  2. Libreoffice를 이용해 txt로 변경
  3. 각 줄 별로 매치해 비교한다.
  4. 비교한 값이 다르다 특히 왼쪽에 있는 값이 추가되어 있다 하면 그걸 번호매기기로 인식.
  5. 번호매기기 타입이 어떤지 분석하고 결과물을 리턴
  6. 가능하다면 library로 만들어서 install 해서 사용할 수 있게 만든다

[결과]

output= { 0:{ "numbering_txt" : '1.', //실제 번호매기기 txt "num" : 1, //번호매기기의 숫자 integer (is_numberic 이 False면 None이되야 함) "is_num" : True, //번호매기기가 이있는지 여부 "is_numeric":True, //번호매기기 타입이 연속성이 있는지 여부 "type": "digit", //digit, ganada, }, 1:{ "numbering" : '2.', "is_num" : True, "is_numeric":True, "type": "digit", } }

인풋값은 Document 오브젝트일수도 있고

[api1]

json으로 넘버링 데이터를 리턴한다

[api2]

텍스트를 바로 numbering 추가된 텍스트로 만들어준다.

[dependancies] libreoffice 엔진 필요

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

numbering-0.1.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

numbering-0.1.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file numbering-0.1.1.tar.gz.

File metadata

  • Download URL: numbering-0.1.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for numbering-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c85a98c9c7f980dca9dfe3aca841142309ff568b55abd3f8a9ae6201388cf33c
MD5 2dd41b9436e09d5ba306d053c7c44dff
BLAKE2b-256 d2c6ff59824445eafd6c3fbecaeaef99bfe605a6de7d2d75cfd95a170035aeff

See more details on using hashes here.

File details

Details for the file numbering-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: numbering-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for numbering-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b5f94f17f8677d594a7cd76a0688c15801646e114ec85381a93db4cbed2e6023
MD5 ce26bbb29800d0c96e62c1bcaba3b274
BLAKE2b-256 6ff50ca9617a32ce623dcc79e966e5bf36bd36f79091dd7fc1e3d320fcab129a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page