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 01-30-2017, 04:00 AM   #46
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,274
Karma: 14242649
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by roger64 View Post
Hi

I tried to use the last version of your nice plugin, but it failed.

Code:
Statut :failed

Traceback (most recent call last):
  File "/usr/share/sigil/plugin_launchers/python/launcher.py", line 134, in launch
    target_script = __import__(script_module)
  File "/home/roger/.local/share/sigil-ebook/sigil/plugins/TagMechanic/plugin.py", line 15, in <module>
    from parsing_engine import MarkupParser
  File "/home/roger/.local/share/sigil-ebook/sigil/plugins/TagMechanic/parsing_engine.py", line 8, in <module>
    import regex as re
ModuleNotFoundError: No module named 'regex'
Error: No module named 'regex'

Using ArchLinux 64 bits. Sigil 0.9.7. Qt 5.8. Python 3.6.
You're missing the Python regex library. Enter the following in a terminal window:

Code:
sudo pip install regex
if that doesn't work try:

Code:
sudo pip3 install regex
Doitsu is offline   Reply With Quote
Old 01-30-2017, 04:23 AM   #47
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,302
Karma: 2385865
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Hi

Indeed. Thank you.

Code:
[roger@anterg ~]$ sudo pip3 install regex
[sudo] Mot de passe de roger*:*
Collecting regex
  Downloading regex-2017.01.17.tar.gz (601kB)
    100% |████████████████████████████████| 604kB 811kB/s 
Installing collected packages: regex
  Running setup.py install for regex ... done
Successfully installed regex-2017.1.17
[roger@anterg ~]$
roger64 is offline   Reply With Quote
Old 01-30-2017, 06:47 AM   #48
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: 18,987
Karma: 97915540
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Just about every other linux distro out there includes Barnett's regex module in their official repositories. Why is it that Arch relegates it to their unofficial user repository?

And when did Arch go to Qt 5.8? I just got a 5.7 update on my Arch machine yesterday.
DiapDealer is online now   Reply With Quote
Old 01-30-2017, 09:09 AM   #49
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,302
Karma: 2385865
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Hi

I use Antergos which is 100% Arch compatible. The difference are it provides an installer, an access to AUR and a icon pack.

I probably could have got pip3 elsewhere, I followed Doitsu's advice. But it was missing on my machine.

A screenshot of the Sigil information panel.
Attached Thumbnails
Click image for larger version

Name:	sigil.png
Views:	89
Size:	35.8 KB
ID:	154639  

Last edited by roger64; 01-30-2017 at 09:16 AM. Reason: pip
roger64 is offline   Reply With Quote
Old 01-30-2017, 09:41 AM   #50
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: 18,987
Karma: 97915540
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by roger64 View Post
Hi

I use Antergos which is 100% Arch compatible. The difference are it provides an installer, an access to AUR and a icon pack.

I probably could have got pip3 elsewhere, I followed Doitsu's advice. But it was missing on my machine.

A screenshot of the Sigil information panel.
If you used this plugin before, you probably already had the regex module installed. If it was installed from the AUR, Arch's move from Python 3.5 to 3.6 made most AUR-installed python modules null and void. I posted an Arch PSA in the stickied thread section about it.

Glad you got it working again, though.
DiapDealer is online now   Reply With Quote
Old 01-30-2017, 11:07 PM   #51
odamizu
maniac
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 736
Karma: 1831280
Join Date: Mar 2015
Device: Kindle Oasis1 & Voyage, iOS
Quote:
Originally Posted by DiapDealer View Post
If someone could please verify that I didn't inadvertently break something else with my changes before I update the first post with the new version, I'd appreciate it.

EDIT: Removed beta attachment and updated the first post with the new version
Sorry for the late response.

In case it makes a difference, +1 for 0.4.4 running fine.

I'm on a Mac

Thank you, DiapDealer!
odamizu is offline   Reply With Quote
Old 08-16-2018, 08:25 PM   #52
odamizu
maniac
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 736
Karma: 1831280
Join Date: Mar 2015
Device: Kindle Oasis1 & Voyage, iOS
convert <h2> to <h1>

I'm guessing I'm missing something obvious, so forgive the stupid question, but is there a way to convert <h2> to <h1>?

When I go to the Tags dropdown menu, there is no <h2> (or <h1>) option. I tried adding it using Customize Plugin, but couldn't find a place to do so.

Thank you!
odamizu is offline   Reply With Quote
Old 08-16-2018, 11:23 PM   #53
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 22,117
Karma: 22087764
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab A
Quote:
Originally Posted by odamizu View Post
I'm guessing I'm missing something obvious, so forgive the stupid question, but is there a way to convert <h2> to <h1>?

When I go to the Tags dropdown menu, there is no <h2> (or <h1>) option. I tried adding it using Customize Plugin, but couldn't find a place to do so.

Thank you!
Check out the default "saved Searches", Early versions of sigil had to groups of searches. Promote Headings and Demote headings. that would do 1 level at a time (without editing the replace term )
theducks is offline   Reply With Quote
Old 08-17-2018, 08:57 AM   #54
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: 18,987
Karma: 97915540
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by odamizu View Post
I'm guessing I'm missing something obvious, so forgive the stupid question, but is there a way to convert <h2> to <h1>?

When I go to the Tags dropdown menu, there is no <h2> (or <h1>) option. I tried adding it using Customize Plugin, but couldn't find a place to do so.

Thank you!
You can't add new tags to be manipulated though the plugin's UI or json prefs file. You can only manipulate the items that existing tags can be changed to via Customize Plugin.

I've already included more tags than I really deem worthwhile to this plugin. The original intent was to be able to change tags/attributes that would be difficult to do with standard Sigil tools or fairly simple S&R (or Sigil clips). Primarily nested tags like spans and divs.

For instance, if I wanted to change all h1 tags to h2 tags I'd use something like:

Code:
<(\/?)h1
And replace it with:
Code:
<\1h2
Having said all that, I did however make it pretty easy to modify the plugin's code to add more tags by default (I'm not a glutton for punishment and people were asking for tags to be added left and right ) You'd have to modify the plugin.py file just a bit (and realize that you'd need to do it again if you ever updated the plugin in the future).

Near the beginning of plugin.py you'd just need to add 'h1' to the 'taglist' list, and then you'd need to add an 'h1_changes' entry to the 'combobox_defaults' dictionary right below that. Something like:

Code:
'h1_changes'           : ['h2'],
should suffice. You could then use the gui to customize it with any other tags you might want to change h1s to.

Hope that helps! I'll consider adding h tags to the plugin in a future release, but it really is pretty trivial to make such changes without the plugin. Better yet, I should find a way to make it possible for users to add their own tags in a way that would survive future plugin updates. No promises, though.

Last edited by DiapDealer; 08-17-2018 at 05:05 PM.
DiapDealer is online now   Reply With Quote
Old 08-17-2018, 04:03 PM   #55
odamizu
maniac
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 736
Karma: 1831280
Join Date: Mar 2015
Device: Kindle Oasis1 & Voyage, iOS
Quote:
Originally Posted by DiapDealer View Post
... modify the plugin.py file just a bit (and realize that you'd need to do it again if you ever updated the plugin in the future).

Near the beginning of plugin.py you'd just need to add 'h1' to the 'taglist' list, and then you'd need to add an 'h1_changes' entry to the 'combobox_defaults' dictionary right below that.
Perfect! This works great and is something within my limited skill set

(I struggle with regex. There's something about it that my poor brain can't grasp.)

Quote:
Originally Posted by theducks View Post
Check out the default "saved Searches", Early versions of sigil had to groups of searches. Promote Headings and Demote headings. that would do 1 level at a time (without editing the replace term )
Thanks, but I'm not following. I have the current version of Sigil (0.9.10). Where do I look for this?
odamizu is offline   Reply With Quote
Old 08-17-2018, 05:11 PM   #56
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: 18,987
Karma: 97915540
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by odamizu View Post
Perfect! This works great and is something within my limited skill set
Great!
I'm hoping you caught/fixed my copy/paste mistake that I just corrected in that 2nd change.

Last edited by DiapDealer; 08-17-2018 at 05:14 PM.
DiapDealer is online now   Reply With Quote
Old 08-17-2018, 09:29 PM   #57
odamizu
maniac
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 736
Karma: 1831280
Join Date: Mar 2015
Device: Kindle Oasis1 & Voyage, iOS
Oh! I didn't notice any mistake. I edited plugin.py manually once your instructions pointed me in the right direction, so I didn't copy/paste.

Thanks again! The more I use Sigil and its plug-ins, the more I love it.
odamizu is offline   Reply With Quote
Old 08-17-2018, 09:46 PM   #58
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: 18,987
Karma: 97915540
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by odamizu View Post
Oh! I didn't notice any mistake. I edited plugin.py manually once your instructions pointed me in the right direction, so I didn't copy/paste.

Thanks again! The more I use Sigil and its plug-ins, the more I love it.
I said "h1_changes" and then pasted "a_changes".
I was hoping it was obvious that the tag name should be the same in both.

p -> p_changes
a -> a_changes
h1 -> h1_changes, etc...
DiapDealer is online now   Reply With Quote
Old 08-17-2018, 11:28 PM   #59
odamizu
maniac
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 736
Karma: 1831280
Join Date: Mar 2015
Device: Kindle Oasis1 & Voyage, iOS
Ah. Once you pointed me to plugin.py, I used what I found there as a guide, and since what you had there was correct, it worked perfectly
odamizu is offline   Reply With Quote
Old 09-27-2018, 09:30 PM   #60
Thasaidon
Hedge Wizard
Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.
 
Thasaidon's Avatar
 
Posts: 369
Karma: 3344932
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
Font Size

Hi DiapDealer

I have started using "Tag Mechanic" a lot more recently and am having problems with the font size used. It is just on the edge of the size where my eyes start to blur the text. (please see attached image)

I have made many adjustments to Windows so I can comfortably use Windows but none seem to affect Tag Mechanic.

Please consider enlarging the font in the plugin, if possible.

And I will even start using your shiny blue spanner icon instead of the one I found, honest.
Attached Thumbnails
Click image for larger version

Name:	Snap 2018-09-28 at 09.14.06.jpg
Views:	22
Size:	60.3 KB
ID:	166526  
Thasaidon is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FileType Plugin] YVES Bible Plugin ClashTheBunny Plugins 24 07-21-2018 10:11 AM
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 412 04-24-2018 06:07 PM
Plugin not customizable: Plugin: HTML Output does not need customization flyingfoxlee Conversion 2 02-24-2012 02:24 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM
New Plugin Type Idea: Library Plugin cgranade Plugins 3 09-15-2010 12:11 PM


All times are GMT -4. The time now is 07:36 PM.


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