Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 11:05 PM   #1
byword
Enthusiast
byword began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Apr 2022
Device: Onyx Leaf 3
[Plugin] DocxOdtHwpxImporter - Import Docx, Odt, and Hwpx files into the current EPUB

Updated: Sep, 11, 2026
Current Version: 0.1.0
Status: Stable
Plugin type: edit


How it works:

Import Docx, Odt, and Hwpx files into the current EPUB with all styles.

This plugin imports Docx, Odt, and Hwpx(Just ignore about Hwpx—it's a word processor only used in Korea.) files directly into the EPUB file currently being edited. While plugins like DocxImporter and OdtImport already exist, there are several key differences.

DocxImporter and OdtImport import files by creating a new EPUB, which prevents them from being used alongside plugins such as Template2 or Template3. Furthermore, they strip all styling applied in word processors like Microsoft Word. While this has the benefit of keeping the underlying code simple, it also means you have to re-edit everything from scratch.

Because this plugin appends content directly to the currently open EPUB, it can be used with Template2 or Template3, and it allows you to combine two or more Docx or Odt files into a single EPUB.

For this reason, the plugin type is categorized as edit rather than input.

It can preserve all formatting and styles applied in editing software such as MS Word or LibreOffice (importing plain text without styles is also supported). All embedded images within the document are automatically imported into the Images folder.

Preserving all formatting can result in more complex code, but with regex cleanups, you can quickly produce an EPUB while keeping your original layout and styles intact.

How to use:
  1. Launch the plugin. [Edit > DocxOdtHwpxImporter]
  2. [Select File] Choose the file you want to import.
  3. [Import Option] Choose whether to preserve formatting or import plain text only.
  4. [Output xhtml File Name] Specify the output file name. It defaults to the imported file's name, but you can change it.

The plugin:
  • Imports Docx, Odt, and Hwpx files into Sigil using a single plugin.
  • Appends files directly to the EPUB currently open for editing.
  • Supports both preserving original formatting and importing text only.
  • When formatting is preserved, inline styles inside `span` tags (such as font size, text color, and background color) as well as tables, footnotes, and endnotes are fully retained. However, since these do not conform to native EPUB styling conventions, they should be cleaned up using regular expressions in Sigil.
  • Menus are available in both English and Korean.
It works even better when used with the RemoveInLineStyles Plugin.

Installation:
1. Select Manage Plugins from the Plugins menu. In the Manage Plugins dialog box, select Use Bundled Python, if it isn't already selected.
2. Click Add Plugin and select DocxOdtHwpxImporter_vX.X.X.zip and run via Plugins > Edit > DocxOdtHwpxImporter.

Issues:
Tested with several moderately complex Docx, Odt, and Hwpx documents, and all were successfully added to the EPUB without issues.
However, unexpected errors may still occur across different document structures, so please report any problems you encounter.

OS Requirements:
Windows/Linux/OS X.
Tested on Windows only. Please let me know if you run into any issues on Linux or OS X.

Sigil Requirements:

Minimum version of Sigil: 2.6.0 or higher

This plugin was developed with the assistance of AI.
Attached Files
File Type: zip DocxOdtHwpxImporter_v0.1.0.zip (87.4 KB, 4 views)

Last edited by byword; Yesterday at 11:14 PM.
byword is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugin to import text files CalibUser Plugins 24 07-10-2025 04:59 AM
[File Type Plugin] Automatically Add Covers to .djvu Files on Import hazel.noelle Plugins 4 01-07-2023 07:33 AM
Convert form Zip including Docx files to EPUB The_book Conversion 1 03-22-2022 12:45 PM
Image handling from imported DOCX/ODT STrRedWolf Conversion 3 05-09-2021 12:32 AM
Track changes in odt and docx files mcdummy Calibre 1 05-03-2016 07:18 AM


All times are GMT -4. The time now is 01:18 PM.


MobileRead.com is a privately owned, operated and funded community.