View Single Post
Old 08-22-2023, 10:41 PM   #1
byword
Junior Member
byword began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Apr 2022
Device: Onyx Leaf 3
[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:
v0.2.2-- Add underline example
v0.2.1-- Update newer version of plugin_utils.py.
v0.2.0-- Initial release.


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.**

Click image for larger version

Name:	화면 캡처 2023-08-23 112336.png
Views:	662
Size:	61.6 KB
ID:	203331Click image for larger version

Name:	화면 캡처 2023-08-23 112639.png
Views:	613
Size:	59.9 KB
ID:	203332Click image for larger version

Name:	화면 캡처 2023-08-23 112656.png
Views:	594
Size:	63.3 KB
ID:	203333
Attached Files
File Type: zip selfCSSforSigil_v0.2.2.zip (15.40 MB, 711 views)
File Type: zip selfCSSforSigilen_v0.2.2.zip (15.40 MB, 829 views)

Last edited by DiapDealer; 08-30-2023 at 09:43 AM.
byword is offline   Reply With Quote