![]() |
#16 |
Witchman
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
@Toxaris...Yes indeed I have known about this problem for ages. Just to also add that I knew about this fault years ago -- even before I knew about the existence of MobileRead forum. Why should I be able to report bugs when there is no link or clear reference for reporting bugs in the Sigil app? I'm talking about a newbie using Sigil here, not about developers.
The mistake you made was to rashly assume that everyone knows how to report Sigil bugs on MobileRead forum or Git. Really? How is it possible for any newbie(who is not a developer) using Sigil to report a bug when there is no clear and obvious path within the Sigil app for doing so? Another tentative Sigil change request for KevinH. Could a direct link be put into Sigil's Help menu -- perhaps called 'Report Bugs' -- so that people can easily report Sigil bugs and problems? Hopefully this will satisfy Toxaris's unreasonable impatience concerning people's lateness in reporting bugs. Last edited by slowsmile; 10-25-2016 at 09:34 PM. |
![]() |
![]() |
![]() |
#17 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
I am not impatient (nor unreasonable). I frankly don't care when you report your bugs. What I do care about is claiming a bug is 'infamous' when you are the only one that knew about it. A strong and harsh word that is not correct. If a bug is really bugging you that much, you would have found out how to report it. That is all I am saying. Last edited by Toxaris; 10-26-2016 at 12:59 PM. |
|
![]() |
![]() |
![]() |
#18 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,542
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Unless a non-standard uuid would break something somewhere else in Sigil, I'm thinking that changing Utility::CreateUUID() to the following would suffice: Code:
QString Utility::CreateUUID() { return "s" + QUuid::createUuid().toString().remove("{").remove("}"); } Code:
QString OPFResource::GetUniqueID(const QString &preferred_id, const OPFParser& p) const { if (p.m_idpos.contains(preferred_id)) { return "s" + Utility::CreateUUID(); } return preferred_id; } Last edited by DiapDealer; 10-26-2016 at 09:19 AM. |
|
![]() |
![]() |
![]() |
#19 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,725
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Code:
<dc:identifier opf:scheme="UUID" id="BookId">urn:uuid:8dd87b4e-79e5-4713-87e0-ae7525ab2887</dc:identifier> Might I suggest that you simply replace the first character of the generated UUID with an a, b, c, d, e or f? |
|
![]() |
![]() |
![]() |
#20 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,542
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
My second suggestion may still work--depending on how/where the BookID is generated. Otherwise, it may come down to checking the first character and regenerating a uuid until one that starts with a valid character is generated. I'm not crazy about that idea. |
|
![]() |
![]() |
![]() |
#21 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,725
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
1. If the user presses CTRL+ENTER a random uiid is used as the id for the second file. 2. If the user inserts a split marker with CTRL+SHIFT+ENTER and selects Split At Markers, the id of the next file will be Section0001_0001.xhtml, Section0001_0002.xhtml etc. Would it be possible to re-use the id generation code from the Split At Markers code for Split At Cursor or would that cause all kinds of other problems? |
|
![]() |
![]() |
![]() |
#22 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,732
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Hi All,
FYI, using a uuid to create a manifest id is just a quick and dirty way of generating a probabilistically unique id for a single epub (it need not be unique outside of this epub). If need be we simply prepend any non-numeric character and we are okay. I will prepend with an 'x'. If we replace first character with a hex char in the a-f range you are reducing the probabilistic space by a factor of 5 / 16 (there are only 5 possible values for the first char, instead of the 16 expected. For inside the epub use (ie manifest ids) we simply prepend an a character if need be. As Doitsu pointed out, there are other places where generating a probabilistically unique id in an exact uuid format is needed and I do not want to confuse the two nor limit its space of possible values as any change will increase the likelihood of an external collision (no matter how small). I will fix this tonight when I get out of work and get a free minute. Thanks, KevinH |
![]() |
![]() |
![]() |
#23 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
The Sigil developers are good, but they can't fix bugs whose existence is unknown to them. |
|
![]() |
![]() |
![]() |
#24 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,732
Karma: 5703586
Join Date: Nov 2009
Device: many
|
FYI,
Pushed a fix for this that prepends an "x" since these are only for "unique" manifest ids used only for this case. The change all fits on the same line and so will not mess up any translation information hopefully currently being updated by translators on transifex. It also will not reduce or restrict the space of probabilistic uniqueness provided by any uuid. KevinH |
![]() |
![]() |
![]() |
#25 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,542
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Thanks, Kevin!
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
this file converts with no error but the resulting file is "invalid" | mlevin77 | Conversion | 3 | 01-11-2014 08:34 AM |
Sigil "Split " issues | Russellsstudent | Sigil | 4 | 03-12-2013 10:07 AM |
ES file explorer: getting error "network path not found or timed out" | JoeyBlaze | Kindle Fire | 29 | 03-05-2012 03:07 PM |
"PK": Only text when I open in Sigil an ePub file generated with Calibre | Terisa de morgan | Sigil | 3 | 12-14-2009 11:24 AM |
The "Infamous Kindle Letter" | Dr. Drib | Amazon Kindle | 24 | 11-10-2009 06:56 PM |