Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 02-17-2025, 06:36 PM   #31
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,764
Karma: 6000000
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by BeckyEbook View Post
I like this idea because I like consistency.
But will the user have a choice?
E.g., whether the mime type “image/jpeg” will change the extension to “.jpg” or “.jpeg”?
Users have their preferences.
I always choose “.jpg”, but someone else may prefer “.jpeg”.
No choice, unfortunately. Back in time when we were limited to 8.3 filenames on early DOS and Windows, the 3 letter extension became the norm. So using .jpg instead of .jpeg, and .tif instead of .tiff, etc for older file types that existed back then makes them much more widely accepted by other software today. For example both Adobe Photoshop and Gimp save JPEGs by default to the . jpg extension on Windows and MACs (or at least they used to).

So the plan is to use 3 letter extensions when they exist and only use 4 letter extensions for much more recent filetype extensions that never had a 3 letter variant (ie. xpgt, webm, webp, etc.)


That said, since you build your own you could easily change the table in Misc/MediaTypes.cpp to be what you want.

Last edited by KevinH; 02-17-2025 at 07:04 PM.
KevinH is offline   Reply With Quote
Old 02-18-2025, 12:30 AM   #32
mrprobert
Connoisseur
mrprobert began at the beginning.
 
Posts: 71
Karma: 46
Join Date: Mar 2017
Device: None
Quote:
Originally Posted by KevinH View Post
Do we need a new Tool menu item to "Use Standard File Extensions"?
I for one would love to have this implemented, it's a nice complement to Restucture Epub to Sigil Norm.
mrprobert is offline   Reply With Quote
Old 02-18-2025, 05:42 PM   #33
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,764
Karma: 6000000
Join Date: Nov 2009
Device: many
Does Sigil need to recognize any Additional Media Types?

Sigil currently recognizes the following media types (each one followed by a list of preferred file extensions - with multiple entries if needed).

When there are multiple media-types for the exact same file type, the entries preceded by an "*" are the most recommended by both the epub 3.3 spec and/or the very latest iana (2025) list (https://www.iana.org/assignments/med...ia-types.xhtml).


Spoiler:

Code:
ePub Specific
-------------
application/epub+zip           | epub
application/oebps-package+xml  | opf
application/x-dtbncx+xml       | ncx
application/pls+xml            | pls
application/smil+xml           | smil

Adobe Epub Extensions (epub2 only)
-----------------------------------------
application/adobe-page-template+xml          | xpgt
* application/vnd.adobe-page-template+xml    | xpgt
application/oebps-page-map+xml               | xml
* application/vnd.adobe-page-map+xml         | xml

Apple Epub Extensions (META-INF/com.apple.ibooks.display-options.xml)
---------------------------------------------------------------------
application/vnd.apple.ibooks+xml              | xml

PDF
---
application/pdf      | pdf

CSS
---
text/css             | css

Image
-----
image/bmp             | bmp
image/gif             | gif
image/jpeg            | jpg jpeg
image/png             | png
image/svg+xml         | svg
image/tiff            | tif tiff
image/webp            | webp

Fonts - OpenType
----------------
application/x-font-opentype     | otf
application/x-font-otf          | otf
application/x-opentype-font     | otf
application/font-otf            | otf
application/vnd.ms-opentype     | otf
*font/otf                       | otf

Fonts - TrueType
----------------
application/x-font-truetype     | ttf
application/x-font-ttf          | ttf
application/x-truetype-font     | ttf
application/font-ttf            | ttf
*font/ttf                       | ttf

Font Collection TrueType
------------------------
application/x-font-truetype-collection  | ttc
* font/collection                       | ttc

Font - Woff Woff2
-----------------
application/font-woff     | woff
* font/woff               | woff
application/font-woff2    | woff2
* font/woff2              | woff2

Font Scalable
-------------
application/font-sfnt     | sfnt
* font/sfnt               | snft ttf otf

Javascript
----------
application/x-javascript    | js
text/javascript             | js
application/ecmascript      | js
* application/javascript    | js

Xhtml
-----
text/html                | xhtml
* application/xhtml+xml  | xhtml

Text (Plain)
------------
text/plain      | txt

Xml (general)
-------------
text/xml            | xml
* application/xml   | xml

Audio
------
audio/mp3       | mp3
audio/mp4       | m4a
audio/mpeg      | mp3
audio/ogg       | ogg
audio/opus      | opus

Video
-----
video/mp4       | mp4 m4v
video/ogg       | ogg ogv
video/webm      | webm

Video Captioning
----------------
text/vtt               | vtt
application/ttml+xml   | ttml


Please give this list a once over and let me know if you have run into epubs that make use of additional media-types that you think Sigil should recognize.

Also if you have run into older mime/media types not in this list that you think should also be recognized please let me know.

Thanks

Last edited by KevinH; 02-18-2025 at 05:49 PM.
KevinH is offline   Reply With Quote
Old 02-18-2025, 09:24 PM   #34
Vanguard3000
Groupie
Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.
 
Posts: 168
Karma: 474196
Join Date: Jan 2011
Location: Canada
Device: Kobo Libra 2
It'd be nice to see a sort of rename/refactor feature for css classes, maybe in the reports window by right-clicking a class.
Vanguard3000 is offline   Reply With Quote
Old 02-18-2025, 09:32 PM   #35
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,764
Karma: 6000000
Join Date: Nov 2009
Device: many
You can already rename classes using Sigil.

When editing a css file in CV, highlight a class name (including the starting ".") and use the right mouse button to open a context menu and choose "Rename Selected Class".

See attached image.

As for "refactoring", you would have to be specific of what and how you want to change given css order is important.
Attached Thumbnails
Click image for larger version

Name:	rename_class.png
Views:	98
Size:	170.2 KB
ID:	213755  

Last edited by KevinH; 02-19-2025 at 10:00 AM.
KevinH is offline   Reply With Quote
Old 02-19-2025, 01:59 AM   #36
mrprobert
Connoisseur
mrprobert began at the beginning.
 
Posts: 71
Karma: 46
Join Date: Mar 2017
Device: None
I would like to view file sizes in the Book Browser by combining shift with the tooltip. Is that something that is technically possible?
mrprobert is offline   Reply With Quote
Old 02-19-2025, 02:19 AM   #37
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 839
Karma: 2657572
Join Date: Jan 2017
Location: Poland
Device: Various
Quote:
Originally Posted by mrprobert View Post
I would like to view file sizes in the Book Browser by combining shift with the tooltip. Is that something that is technically possible?
I know this is not exactly what you expect, but....

Workaround:
Assign a simple keyboard shortcut to Get Info, such as the letter "i" (like info).
Then select any file in Bool Browser and press "i" on the keyboard, and a "Information" window will appear, where you can quickly find the file size. Then Esc (you close the window).
Attached Thumbnails
Click image for larger version

Name:	getinfo1.png
Views:	132
Size:	17.3 KB
ID:	213750   Click image for larger version

Name:	getinfo2.png
Views:	119
Size:	15.7 KB
ID:	213751  
BeckyEbook is online now   Reply With Quote
Old 02-19-2025, 04:42 AM   #38
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
File sizes are also shown in Tools->Reports
BetterRed is online now   Reply With Quote
Old 02-19-2025, 09:20 AM   #39
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,353
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
RE: Function Replace plugin

In my testing so far I haven’t found any issues with the actual function replace… the default functions seem to work as expected. One detractor I found using a plugin was that I can’t interact with the rest of Sigil’s functionality the way you can if it is a built-in feature. eg. Using a clip to fill in the Find field, or copying the highlighted portion into the Find field like you can by selecting the magnifying glass in the ribbon.

This is certainly usable, just not as nice/consistent as having it built-in to the find/replace window.

I will keep working with it and see how it does when making my own functions.
Turtle91 is offline   Reply With Quote
Old 02-19-2025, 09:46 AM   #40
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,764
Karma: 6000000
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by BeckyEbook View Post
I know this is not exactly what you expect, but....

Workaround:
Assign a simple keyboard shortcut to Get Info, such as the letter "i" (like info).
Then select any file in Bool Browser and press "i" on the keyboard, and a "Information" window will appear, where you can quickly find the file size. Then Esc (you close the window).
I like that idea! Are you hard coding the assignments inside BookBrowser.cpp or are you just using Sigil's ShortCut Manager Preferences to set it?

If I do the latter on a Mac, the assigned short cut code does not show up in BookBrowser's context menu? How did you make it appear in the menu?
KevinH is offline   Reply With Quote
Old 02-19-2025, 11:16 AM   #41
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 839
Karma: 2657572
Join Date: Jan 2017
Location: Poland
Device: Various
Quote:
Originally Posted by KevinH View Post
I like that idea! Are you hard coding the assignments inside BookBrowser.cpp or are you just using Sigil's ShortCut Manager Preferences to set it?

If I do the latter on a Mac, the assigned short cut code does not show up in BookBrowser's context menu? How did you make it appear in the menu?
I used the standard option for keyboard shortcuts.

The shortcuts in BookBrowser's context menu automatically show up in Windows, I didn't change anything here.
Attached Thumbnails
Click image for larger version

Name:	sigil-keyboard-shortcuts-letter-for-get-info.png
Views:	88
Size:	49.8 KB
ID:	213757  
BeckyEbook is online now   Reply With Quote
Old 02-19-2025, 11:50 AM   #42
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,570
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
She's not making anything appear in the context menu (at least I don't think). She's selecting a file in Book Browser and then launching the GetInfo widget via the assigned shortcut.

Works for me on Linux.
DiapDealer is online now   Reply With Quote
Old 02-19-2025, 12:06 PM   #43
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,764
Karma: 6000000
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by Turtle91 View Post
RE: Function Replace plugin

In my testing so far I haven’t found any issues with the actual function replace… the default functions seem to work as expected. One detractor I found using a plugin was that I can’t interact with the rest of Sigil’s functionality the way you can if it is a built-in feature. eg. Using a clip to fill in the Find field, or copying the highlighted portion into the Find field like you can by selecting the magnifying glass in the ribbon.

This is certainly usable, just not as nice/consistent as having it built-in to the find/replace window.

I will keep working with it and see how it does when making my own functions.

Nice to hear. I am still exploring ways to interface it into Sigil itself but only for ReplaceAll operations where state can be controlled. The problem is guaranteeing spine file order if using the number argument, how to keep state, etc...

Last edited by KevinH; 02-19-2025 at 03:09 PM.
KevinH is offline   Reply With Quote
Old 02-20-2025, 02:19 AM   #44
mrprobert
Connoisseur
mrprobert began at the beginning.
 
Posts: 71
Karma: 46
Join Date: Mar 2017
Device: None
Quote:
Originally Posted by BeckyEbook View Post
I know this is not exactly what you expect, but....

Workaround:
Assign a simple keyboard shortcut to Get Info, such as the letter "i" (like info).
Then select any file in Bool Browser and press "i" on the keyboard, and a "Information" window will appear, where you can quickly find the file size. Then Esc (you close the window).
Thanks, Becky. I think I can get the same result with right-click -> Get Info.

What would be really useful for me is to see image and font filesizes without generating a report.
mrprobert is offline   Reply With Quote
Old 02-20-2025, 05:14 PM   #45
Vanguard3000
Groupie
Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.
 
Posts: 168
Karma: 474196
Join Date: Jan 2011
Location: Canada
Device: Kobo Libra 2
Quote:
Originally Posted by KevinH View Post
You can already rename classes using Sigil. [...]
That's exactly what I'm looking for! I had tried right clicking the class in the CSS file, but didn't realize I needed to select it. Thanks!
Vanguard3000 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Improvements/bugs/features dontcrash KOReader 10 10-23-2019 10:05 AM
Touch HD, Future features or dead features? ElWorm PocketBook 4 02-07-2018 11:36 AM
[FREE]Innovative Ideas to Ignite Your Mind: Business Ideas to Start Entrepreneurship amazon author Self-Promotions by Authors and Publishers 0 04-01-2015 04:09 AM
How many 'improvements' do we really need? Fozzybear General Discussions 61 04-15-2012 12:38 PM
ideas for calibre features smarties86 Recipes 3 07-01-2011 10:23 AM


All times are GMT -4. The time now is 05:59 AM.


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