Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-10-2026, 11:05 PM   #1
byword
Enthusiast
byword began at the beginning.
 
Posts: 37
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.

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.

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, 10 views)

Last edited by byword; 09-13-2026 at 08:17 PM.
byword is offline   Reply With Quote
Old 09-12-2026, 10:33 AM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,745
Karma: 212474403
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by byword View Post
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.
This isn't really an accurate statement. At least where DOCXImport is concerned. If one uses Word styles properly, and maintains a working style-map (with a matching css template), all Word formating will be maintained in the epub (AND the epub code will be simple). One only needs to "re-edit everything from scratch" if one chooses to create Word documents without proper styles in the first place.

I welcome your edit plugin version, but there's no need to spread disinformation about other plugins in the description of yours.
DiapDealer is online now   Reply With Quote
Advert
Old 09-13-2026, 08:13 PM   #3
byword
Enthusiast
byword began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Apr 2022
Device: Onyx Leaf 3
Quote:
Originally Posted by DiapDealer View Post
I welcome your edit plugin version, but there's no need to spread disinformation about other plugins in the description of yours.
I had no intention of posting false information about another plugin. It seems I was using DOCXImport without fully understanding its correct usage. I have immediately deleted the incorrect information you pointed out.

I created this plugin not so much to focus on preserving formatting, but rather for its distinct ability to add DOCX and ODT files into an existing EPUB, as well as to import HWPX files, which are widely used in Korea.

I apologize for posting incorrect information without properly verifying how DOCXImport works.
byword is offline   Reply With Quote
Old 09-13-2026, 08:31 PM   #4
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,745
Karma: 212474403
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
No problem. Thanks for removing the part I replied to.
DiapDealer is online now   Reply With Quote
Old 09-13-2026, 08:53 PM   #5
byword
Enthusiast
byword began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Apr 2022
Device: Onyx Leaf 3

Last edited by byword; 09-13-2026 at 08:59 PM.
byword is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:59 PM.


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