11-16-2019, 03:56 PM | #166 | |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
I just made a commit to master to hopefully fix this.
Quote:
|
|
11-16-2019, 04:12 PM | #167 | |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Yes, this is the invalid mediatype your epub opf used for its page-template file.
Code:
else if (m_MediaType == "application/oebps-page-map+xml") { routine = "performPageMapUpdates"; Since, the extension is "xml", Sigil can not use the extension to lookup a mediatype. So if you do a rename or move, Sigil is warning you it has no understanding of what this mediatype is and therefore can not look inside the file to update any links after a rename or move. You should fix your OPF to use the correct mediatypes especially for .xml files that you can not derive a mediatype. KevinH Quote:
|
|
Advert | |
|
11-16-2019, 04:16 PM | #168 | |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
11-16-2019, 04:59 PM | #169 |
Wannabe Connoisseur
Posts: 425
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
To be clear, there's no crash. So all good there.
Should the pop up say something like "Adjust the OPF entry for this file" or similar? At the moment, the popup doesn't say which file is at fault. I guess the counterintuitive part of this (to me at least!) is that Sigil doesn't indicate that there's a problem with the offending file until you get a message about it if you rename an unrelated file. |
11-16-2019, 05:11 PM | #170 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Yes, Sigil is not a validator. Run epubcheck if you want that. Sigil doesn't need to use that mediatype until it has to update links because of a rename or a move. If you do not do either, the broken media type is just that. However once you rename or move, Sigil will be unable to update links in that file because it does not know what type of xml file it is.
Again, there is the only one place mediatypes are set, and that is in the OPF manifest. So if you see an unrecognized mediatype error message you should know to fix your OPF. I am sure someone could easily create a plugin to validate all of the mediatypes in the opf against the file extensions and warn you about it. With .xml files that gets a bit hard but doable. That said, only someone who knows what the contents of the xml is for, would know the correct way to fix it. I will think about a mediatype checker plugin after Sigil 1.0 goes final. KevinH |
Advert | |
|
11-16-2019, 05:47 PM | #171 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Actually, in ImportEPUB while parsing the OPF, I could maybe check each manifest item mediatype one by one and create a load warning when either unrecognized or mismatch between the extension and mediatype exist.
I will look into that. |
11-16-2019, 05:56 PM | #172 |
Member
Posts: 15
Karma: 10
Join Date: Dec 2012
Device: NST
|
From my point of view, these changes are not very applicable. Sorry.
I would be much more happy with: 1. Adding a dialog to the menu or something similar to Clips with the currently edited Stylesheet. 2. In Preview, the name of the previewed file could be useful. When I have many files open at the same time (e.g. during search and replace), sometimes I don't know what I'm looking at. 3. set Case tool and set Header level - The old solution was more ergonomic. |
11-16-2019, 06:17 PM | #173 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
If you are talking about BookView going away, this is not a thread about that decision, as that is cast in stone and happened about 5 releases or so ago.
This thread is about changing Sigil to not force epubs into Sigil's preferred form that we are currently in an alpha release. Please stay on topic for this thread. To make things clear - No changes to the header tool, or case tool will be made, no file name is needed on Preview as it always shows the last html tab resource (so just look at your tab name in CodeView), etc. |
11-16-2019, 07:57 PM | #174 | |||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Like Intros/Appendices/Indexes: - <h2>Introduction - <h1>Part 1 --- <h2>Chapter 1 - <h1>Part 2 --- <h2>Chapter 2 - <h2>Index If based purely on headings, Index automatically gets put under Part 2. It's also good for adding extra non-heading things like Dedication, Copyright Page, Backmatter... (Not that I would want that cluttering up the TOC... but some publishers want that nonsense! :P) And I've recently ran across a Kindle issue with 3-level deep TOCs... so yeah, it's helpful to adjust levels in the TOC without actually having to change underlying code in Code View. Quote:
Current: Preview (800x1000) Potential: Preview (800x1000) - Chapter01.xhtml Preview is usually on the complete other side of the screen (or secondary monitor). Would be nice to have filename located there too. Quote:
Rarely used, but was easy in one mouse-press. I'm mostly indifferent to the headings change, because I've been using keyboard shortcuts for years (Ctrl+1-6 for headings, Ctrl+7 for <p>). The Title Casings though... it's an extra button click. :P What's next, 4 Alignment buttons going to be put in its own dropdowns too? oteksamptis Note: If you use it often, Title Casing can get their own shortcuts assigned. Here's the defaults:
Last edited by Tex2002ans; 11-16-2019 at 08:13 PM. |
|||
11-16-2019, 08:44 PM | #175 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Again, please stick to the thread topic. We are not debating changes made up to 5 releases ago in this thread.
|
11-17-2019, 01:54 AM | #176 |
Evangelist
Posts: 425
Karma: 77256
Join Date: Sep 2011
Device: none
|
I haven't yet used the beta though I am wondering about something. Due to the changes, has another related change been made to links to files in the same folder? e.g., before all links were "../Text/…"; that can add a fair amount to the size of a file and I always before changed that after each edit. With this release if it hasn't been done already, maybe it is a good idea to use such a path only when needed.
|
11-17-2019, 07:49 AM | #177 | |
Wannabe Connoisseur
Posts: 425
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Quote:
Code:
Unsupported XML media-type: application/vnd.adobe-page-map+xml Your proposal of checking each file on load/import and popping up a warning on load sounds like the best fix. If that proves to be not too easy, can you please reference the offending file's name in the popup so the user at least knows which file that they need to adjust? |
|
11-17-2019, 08:58 AM | #178 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Yes renaming or moving any file means checking and updating any links to it in *all* files. It will not matter what you tried to rename or move.
Why can't the user just look in their OPF manifest for that mediatype. How is one character string to look up in the OPF (filename) any more useful than another character string to lookup (mediatype)? |
11-17-2019, 09:01 AM | #179 | |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Yes, those types of links will no longer be generated by Sigil in Sigil 1.0. That said, if a link like that already exists, Sigil will not touch them as they are valid links.
Quote:
|
|
11-17-2019, 09:15 AM | #180 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Or just run EpubCheck. That will give them more precise info about where the problem lies. It will take them to the exact line in the opf.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
5.8.11 Pre=release | knc1 | Kindle Developer's Corner | 21 | 04-17-2018 08:42 PM |
Overdrive - Search for Pre-Release | nynaevelan | General Discussions | 11 | 11-24-2013 02:27 PM |
Where are the pre-release purchase buttons? | Sydney's Mom | General Discussions | 8 | 09-06-2012 10:57 PM |
KF Android 4.0 Pre-Release Version | robertc88 | Kindle Fire | 22 | 01-22-2012 07:24 PM |
PDF Viewer 0.3.0 pre-release | pruss | Android Devices | 62 | 11-22-2011 11:18 AM |