08-22-2023, 11:41 PM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Apr 2022
Device: Onyx Poke Pro
|
[Plugin] SelfCSS for Sigil WYSIWYG CSS editor
Requirements
Plugin Type: Edit Minimum Sigil requirement: v1.6.x or higher Python Requirements: Python 3.4+ (Bundled or External) OS Requirements: Windows, OSX or Linux *** Tested on Windows 10 & 11 *** Current Version: "0.2.2" Installation * Select Manage Plugins from the Plugins menu. * Click Add Plugin and select selfCSSforSigilen_v*.*.*.zip. This will load and install the plugin into Sigil, which you can then select and run using Plugins > Edit > selfCSSforSigilen - selfCSSforSigil_v0.2.2.zip : Korean version - selfCSSforSigilen_v0.2.2.zip : English version Description This is a plugin modified to allow the use of selfCSS in Sigil. It enables the editing of styles for several elements required in book editing, including titles, body text, subscript, underline, images, and text boxe. selfCSS('http://selfcss.org/') is a WYSIWYG CSS editor. It assists who may not be proficient in handling CSS to easily edit simple styles. I am not a developer. I created this plugin by making simple improvements to the existing source. The editor utilizes the selfCSS source, and for the execution of the plugin, the ReadiumReader Official plugin source was used. I made minimal modifications only to ensure that the functionality could run. For more information, please visit EPUBGUIDE.NET The website is available only in Korean but you can utilize Google's automatic translation feature for assistance. NOTE : I lack the skills to make improvements such as adding the class name and applying the styles when the "Apply" button is pressed, resulting in the styles being added to the stylesheet. However, if anyone is capable of making improvements, feel free to modify it accordingly. Changes: Spoiler:
Features - Same as 'http://selfcss.org/' - For the purpose of book editing, I have added examples and made some modifications to style attributes. ** To apply the completed styles, you must copy the CSS code and paste it into the stylesheet.** Last edited by DiapDealer; 08-30-2023 at 10:43 AM. |
08-24-2023, 10:10 AM | #2 |
Grand Sorcerer
Posts: 28,038
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
This looks good. Thanks for the contribution! I only have two suggestions:
1) there's a newer version of plugin_utils.py that fixes a few things. I suggest grabbing it and dropping it your plugin (https://github.com/dougmassay/sigil-plugin-utils). 2) your gui will better match Sigil's darkmode theme if you add/change to the following (around line 180 in plugin.py: Code:
icon = os.path.join(bk._w.plugin_dir, bk._w.plugin_name, 'plugin.svg') # creating a python qt application mdp = True if iswindows else False app = PluginApplication(sys.argv, bk, app_icon=icon, match_dark_palette=mdp) |
08-24-2023, 11:02 PM | #3 | |
Junior Member
Posts: 5
Karma: 10
Join Date: Apr 2022
Device: Onyx Poke Pro
|
Thank you for the reply!
I've corrected the part you mentioned. Now you just need to update it. How do I modify the first thread? This is almost the first thread. I looked for the modify button, but I can't see it. Quote:
Last edited by DiapDealer; 08-25-2023 at 02:55 PM. |
|
08-25-2023, 02:48 PM | #4 |
Grand Sorcerer
Posts: 28,038
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
You're new enough to the forum that your posts go into auto-moderation (it's an anti-spam measure). You should be close to having enough posts to be able to have full rights to edit your posts. I'll move your 0.2.1 versions to the first post for now.
|
08-25-2023, 03:02 PM | #5 |
Grand Sorcerer
Posts: 28,038
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Updated and added to the plugin index. Thanks!
|
08-30-2023, 10:44 AM | #6 |
Grand Sorcerer
Posts: 28,038
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
First post updated with latest content
|
Tags |
css editor, selfcss |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Editor Plugin] - Enabling 'Customize plugin' dialog directly from the Editor | thiago.eec | Development | 7 | 01-09-2019 09:05 PM |
BlueGriffon WYSIWYG EPUB Editor | Togijak | Software | 0 | 07-29-2018 05:55 PM |
Seriously thoughtful Wysiwyg editor for someone used to FrontPage? | Ea | Lounge | 4 | 11-11-2010 03:51 PM |