MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Plugins (https://www.mobileread.com/forums/forumdisplay.php?f=268)
-   -   Plugin to import text files (https://www.mobileread.com/forums/showthread.php?t=285771)

CalibUser 05-07-2017 10:38 AM

I have updated the plugin TextImporter in the first post of this thread to version 0.1.0.5.

The previous version of the plugin would allow only one text file to be imported each time you ran the plugin; this version will allow you to import several text files before the plugin closes. It also has a new facility for checking for updates and this allows you to set the time interval between checks for new versions.

I have also uploaded a user guide for the plugin.

chagushu 06-09-2020 12:21 AM

It's a helpful plugin to me, it would be better If you can create an option that we can import multiple files in 1 time?

CalibUser 06-09-2020 08:29 AM

Quote:

Originally Posted by chagushu (Post 3997961)
It's a helpful plugin to me, it would be better If you can create an option that we can import multiple files in 1 time?

I have made a few changes to the plugin that includes the ability to import multiple text files from a single folder without having to import them individually.

When the file dialog opens, navigate to the folder containing your text files and CTRL-click on each file that you want to import and then click the OK button on the file dialog. All the selected files will be imported into Sigil when you click the plugin's Close button.

Alternatively you can use SHIFT click in the usual manner to select a group of text files for importing into your ePub.

isaacbh 08-28-2021 08:39 AM

Can this plugin work on Linux? I get this error when trying to run it:

NameError: name 'ttk' is not defined

KevinH 08-28-2021 06:00 PM

Your python implementation is missing its Tkinter/ttk support.

Quote:

Originally Posted by isaacbh (Post 4149796)
Can this plugin work on Linux? I get this error when trying to run it:

NameError: name 'ttk' is not defined


isaacbh 08-29-2021 03:55 AM

Quote:

Originally Posted by KevinH (Post 4149868)
Your python implementation is missing its Tkinter/ttk support.

I had to change this line in plugin.py:

Code:

import tkinter.ttk as tkinter_ttk
to

Code:

import tkinter.ttk as ttk
Now it works.


All times are GMT -4. The time now is 08:46 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.