Dear LibreOffice Development Team,
I would like to propose improving native support for Korean HWP (.hwp) and HWPX 
(.hwpx) document formats in LibreOffice Writer.
These formats are widely used in South Korea, including by government agencies, 
educational institutions, businesses, and individual users. Better 
compatibility would significantly improve document interoperability and help 
more users adopt LibreOffice without relying on proprietary office software.
I understand that LibreOffice already includes some HWP-related functionality. 
My proposal is to improve the existing implementation and investigate full 
native HWPX import and export capabilities.
1. Requested Development
I would appreciate it if the LibreOffice development team could consider the 
following improvements:

Native HWP 5.x document import with improved layout and formatting preservation.
Native HWPX import and export based on the publicly available OWPML 
specifications.
Direct opening, editing, and saving through LibreOffice Writer without 
installing additional extensions.
Better preservation of Korean typography, tables, images, equations, paragraph 
styles, page layouts, headers, footers, and embedded objects.
Reliable HWPX-to-ODT and ODT-to-HWPX round-trip conversion.
Evaluation of native HWP export support where technically feasible.
Cross-platform compatibility on Windows, Linux, and macOS.

The preferred implementation would be integrated into LibreOffice itself rather 
than distributed as a separate extension.
2. Official Hancom File Format Specifications and Usage Terms
Hancom officially publishes documentation for its HWP file formats and OWPML.
Official documentation and usage terms:
https://license.hancom.com/support/downloadCenter/hwpOwpml
According to Hancom's published HWP documentation terms, third-party developers 
may create implementations using the publicly available specifications, subject 
to the applicable copyright and attribution requirements.
The terms also require a specific Korean attribution statement when developing 
products based on the published HWP specifications:
"본 제품은 한컴의 HWP 문서 파일(.hwp) 공개 문서를 참고하여 개발하였습니다."
The official terms should be reviewed directly, particularly regarding 
attribution, redistribution of specification documents, and intellectual 
property restrictions.
For this proposal, I recommend using only the published file format 
documentation and independently developed open-source implementations.
No reverse engineering, proprietary Hancom libraries, or Hancom-authored source 
code would be required or proposed.
3. Existing Open-Source Implementations
Several independent GitHub projects could provide useful technical references 
or potential implementation components.
OpenHWP — Rust / MIT License
https://github.com/openhwp/openhwp
Provides HWP 5.x parsing, HWPX reading and writing, and intermediate document 
representations. Its native implementation approach may be worth evaluating for 
integration with LibreOffice.
HanDoc — TypeScript / MIT License
https://github.com/muin-company/handoc
Provides HWP parsing, HWPX reading and writing, document structures, and 
conversion functionality. Its document model and serialization implementation 
may be useful references.
hwplib — Java / Apache License 2.0
https://github.com/neolord0/hwplib
Provides HWP document parsing, writing, and manipulation functionality.
hwpxlib — Java / Apache License 2.0
https://github.com/neolord0/hwpxlib
Provides HWPX document reading and writing.
hwp2hwpx — Java / Apache License 2.0
https://github.com/neolord0/hwp2hwpx
Provides HWP-to-HWPX conversion using independently maintained open-source 
libraries.
hwpConverter — Java / Apache License 2.0
https://github.com/vsdn/hwpConverter
The project describes HWP, HWPX, and ODT conversion capabilities, including HWP 
writing. Its implementation and compatibility claims would need independent 
evaluation.
jhwpx-converter — TypeScript / MIT declared in package.json
https://github.com/damulhan/jhwpx-converter
The project describes bidirectional ODT/HWPX conversion. The availability of 
appropriate licensing documentation, implementation maturity, and actual 
conversion quality should be reviewed before reuse.
syhwp — Python / MIT License
https://github.com/sysphere/syhwp
Provides HWP and HWPX parsing and structured content extraction. It may be 
useful as an additional independent implementation reference.
These projects are potential starting points rather than verified drop-in 
replacements for LibreOffice's existing document filters.
4. LibreOffice Licensing and Copyright Compliance
I understand that LibreOffice requests new code contributions under both MPL 
2.0 and LGPL 3.0-or-later licenses.
Official licensing information:
https://www.libreoffice.org/licenses/
I therefore recommend that the development team evaluate:

Compatibility of third-party dependencies with LibreOffice's licensing and 
redistribution requirements.
Preservation of existing copyright notices and attribution requirements.
Whether additional permissions or relicensing would be necessary for direct 
incorporation.
The feasibility of independent implementation based on the published 
specifications where direct code integration would be unsuitable.

An MIT or Apache 2.0 license should not automatically be treated as 
authorization to relicense third-party code under LibreOffice's preferred 
dual-license terms.
5. Suggested Implementation Approach
A practical development roadmap could involve:

Reviewing the existing LibreOffice HWP import implementation.
Evaluating OpenHWP and other independently maintained libraries as 
implementation references.
Prioritizing native HWPX import and export.
Implementing the necessary mappings between the LibreOffice document model and 
HWPX document structures.
Testing round-trip fidelity using legally shareable sample documents.
Adding regression and security tests for malformed or potentially hostile files.
Expanding HWP import compatibility and evaluating HWP export separately.

A native solution would be preferable to one requiring external converters, web 
services, or manually installed extensions.
6. Request for Development Consideration
Could the LibreOffice development team please consider evaluating this proposal 
as a future enhancement to Writer?
I would particularly appreciate clarification on:

Whether comprehensive native HWPX import/export support is already planned.
Whether an enhancement request should be opened or linked in LibreOffice 
Bugzilla.
Whether any of the referenced independent open-source projects could be 
considered for integration.
Which technical or licensing obstacles would need to be resolved before 
development could begin.

I recognize that implementing full document-format interoperability requires 
substantial engineering and testing. Nevertheless, improved native support for 
HWP and HWPX could provide meaningful benefits to LibreOffice users in South 
Korea and internationally.
Thank you for your time and for your continued work on LibreOffice.
Best regards,
A LibreOffice User

Reply via email to