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 12-12-2023, 11:27 AM   #1
Chiavse
Junior Member
Chiavse began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2023
Device: Kobo Aura
docxTranslat: plugin to import WinWord files into Sigil chapter by chapter

This plugin requires Windows Office as it uses Windows API to analyze the
WinWord files. I tested it on:
  • Windows 10- Windows 11
  • Windows Office 2010- Windows Office 2013
  • Sigil 1.9.30- 2.0.2
  • Python 3.6.5- Python 3.10.2+ PyQt5, QScintilla, pywin32
  • Kobo Aura

This plugin requires an external version of Python and some additional packages (PyQt5, qscintilla and pywin32) to work properly.
You can activate the required Python version in Sigil using the following procedure:
  • from Sigil menu bar select: Plugins → Manage Plugins
  • Uncheck ‘Use Bundled Python’ if checked
  • Using the ‘Set’ button choose Python interpreter path (e.g.C:\Users\your_user\AppData\Local\Programs\Pyt hon\Python310)

You can read some more info in the attached userManual.epub (chapter 0-Quick start and chapter 4-Installing and starting).

Plugin features
In addition to importing WinWord files into Sigil, it allows you to:
  • load images (jpg, png, gif) into Sigil.
  • create in Sigil a text file starting from an imported image.
  • view Sigil Spine files, modify their order and delete unwanted files.
  • view Sigil Manifest files.
  • create specific XHTML pages for epub (Title, Half Title, Copyright, Dedication, Epigraph and Table Of Content or TOC).
  • write, execute and save Python scripts in order to interact with the Sigil BookContainer class (bk)

Attached files
  • userManual.zip: contains the files userManual.epub and docxTranslat.docx (text and images of the user manual. I recommend to use this file as plugin test file).
    I made userManual.epub starting from docxTranslat.docx and using the plugin, without any manual intervention on XHTML code.
    In chapter '0 - Quick start' of the user manual, you will find the procedure for a first, quick plugin run.
    The EPUB 2 userManual.epub looks pretty good in Sigil and Calibre. On Kobo Aura there are some display imperfections.
  • docxTranslat.zip: the plugin file to import into Sigil.
  • images.zip: contains some images used in userManual.epub but non contained in docxTranslat.docx.


for reading.
Attached Files
File Type: zip userManual.zip (3.04 MB, 756 views)
File Type: zip docxTranslat.zip (94.9 KB, 821 views)
File Type: zip images.zip (59.3 KB, 654 views)

Last edited by DiapDealer; 12-13-2023 at 04:06 PM.
Chiavse is offline   Reply With Quote
Old 12-12-2023, 01:14 PM   #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: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
You should probably indicate that this plugin will require an external version of Python to be installed/configured. The bundled Python that ships with Sigil will not meet the plugin's requirements.
DiapDealer is online now   Reply With Quote
Advert
Old 12-13-2023, 11:38 AM   #3
Chiavse
Junior Member
Chiavse began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2023
Device: Kobo Aura
As suggested in the previous post (many thanks to DiapDealer for the tip), this plugin requires
an external version of Python and some additional packages (PyQt5, qscintilla and pywin32) to work properly.

You can activate the required Python version in Sigil using the following procedure:
  • from Sigil menu bar select: Plugins → Manage Plugins
  • Uncheck ‘Use Bundled Python’ if checked
  • Using the ‘Set’ button choose Python interpreter path (e.g.C:\Users\your_user\AppData\Local\Programs\Pyt hon\Python310)

You can read some more info in the attached userManual.epub (chapter 0-Quick start and chapter 4-Installing and starting).

Thank you for reading.
Chiavse is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter & Text file counts and Chapter splits BetterRed Library Management 0 04-06-2021 07:25 PM
Does “7 min left in chapter” learn how fast you read? Or based on the chapter itself? kindledude20 Amazon Kindle 4 08-02-2020 09:12 PM
Help with Chapter seperators (lines underneath chapter headings) indieauthor83 Sigil 9 06-23-2017 07:01 AM
xpath to insert chapter breaks - but chapter name cut off ? Rob557 Conversion 2 03-06-2014 07:59 AM
Chapter import in the multi-flow redesign ghostyjack Sigil 1 10-23-2009 11:30 AM


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


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