![]() |
#1 |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Semantics
Vallorick,
This may violate all of the "holy tenents" of ePub and Sigil. An addition to allow the user to add semantics would simplify the making of MOBI without editing the content.opf file. This by itself would remove a lot of work. Once the MOBI file is built, I reopen the Sigil file and remove the Table of Contents.xhtml and every thing is kosher. This would allow also a connection to kindlegen to produce a full-up MOBI file. This would easily fulfill the intent to eventually get to building MOBI files from Sigil. Kindlegen would be maintained by Amazon removing any future effort on your part. This might even make HarryT happy. ![]() ![]() |
![]() |
![]() |
![]() |
#2 | |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
|
![]() |
![]() |
![]() |
#4 |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
|
![]() |
![]() |
![]() |
#5 | |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Quote:
In addition, the call to kindlegen could be automated in Sigil and for a small effort (tounge in cheek) a full ePub/MOBI tool is available. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
![]() If you're talking about about different OPF <guide> element types like the ones used in mobi (I think this is what you're asking for), then no. The ones that are on offer are the ones that are listed in the epub spec. |
|
![]() |
![]() |
![]() |
#7 |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
|
![]() |
![]() |
![]() |
#8 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Crutledge: There are some things that make me whacky, and some that don't. The idea that I choose to use "text" to mark where the reader starts reading, which works for both major platforms, does NOT bother me. For all intents and purposes, "text" does equal "start reading," in any sense of the usage; what on earth would we mark as "text" that doesn't equate to that? I convert virtually every epub I make to a MOBI, and I'm pretty happy with having one bloody piece of guide that works in both. It's a big enough PITA to have to screw around with removing the cover, blah-blah, to prevent the ubiquitous duplicate cover KindleGen issue. AFAI am concerned, it ain't broke, let's not fix it. JMHO, and worth what you've paid for it. ;-) Hitch |
|
![]() |
![]() |
![]() |
#9 | |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
![]() ![]() Quote:
WOW!!! I had no intention of pulling anyone's chain in this holiday season. I have worked many years with specifications and requirements which by definition are the minimum capabilities to be implemented. The use of any enhancements incorporated is up to the user. That is why I have dropped the Calibre version of Mobi. Finding kindlegen was great. The ability of the user to add additional semantic entries to the GUIDE without having to edit content.opf seems to me to no way violate the ePub spec. Valloric has already stated his intention of implementing MOBI with Sigil eventually. The simplest way to do this is to build an interface to kindlegen. Let Amazon maintain kindlegen and MOBI. It's been 20 years since I have done any programming in C++ and my knowledge of the windows OS is sadly minimal. So i'm not qualified to build this interface. Doing it in ADA, which I have always considered the biggest con ever perpetrated on the US Govt, would be sinful. So, I carry two versions of each file. One containing the inline toc and loi and one straight ePub. The MOBI works for all MOBI RS to include MobiPocketReader for Win Mobile. Strangly, the display of the cover as the First Page doesn't bother me. So, if I caused you any gastric discomfort, I apologize. My first thinking is not always complete. I do wish you, yours, and all of the Sigil community a Merry Christmas and Happy New Year. ![]() ![]() ![]() ![]() ![]() ![]() P.S. The ability of the user to add semantics would be just that. An add selmantic option would appear in the semantics menu and the user would enter the desired string. From that point on the string could be used as any other semantic selection. Not an official semantic in Sigil. Charlie Last edited by crutledge; 12-25-2010 at 08:12 AM. |
|
![]() |
![]() |
![]() |
#10 |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Crutledge:
No gastric distress that I know of, and I wasn't in any way "distressed" by your post or suggestion. I already have to jump through hoops to make my epubs convert to MOBI, e.g., dropping "float" for images and all that good happy....so I guess, to me, the fact that "text" works in lieu of "start reading" seems so nominal that I don't understand why it matters. Yes...that's what I don't understand, I think; if "text" works and you set it for your epub, anyway, why does the difference matter? Maybe that will help me crystallize my own thinking on the topic, if you can clarify why the actual textual difference matters--the the guide says "start reading" instead of "text." ? Best, Hitch |
![]() |
![]() |
![]() |
#11 | |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Quote:
So after all the editing and changing, I want a full-up MOBI. Not close, not almost, but a MOBI that is exactly the same as if I built the HTML strictly for MobiPocketCreator. My major problem with Calibre which is in itself a fine tool. I guess I'm anal, but leaving Text in place of Start Reading seems to make all the other effort moot. We each have our sore spots. I'm just glad that I'm not trying to make a living with eBooks. I wish you the best of luck with the customer who always knew how to do my job better than I. I enjoy my hobby. Charlie |
|
![]() |
![]() |
![]() |
#12 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,546
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
The "easy" solution is not using KindleGen, but something better. It need not be a whole new program, but just a little script that does what you need: 0.5) Copy the input compliant ePUB to a temporary file. 1) Modify the temporary file to change "Text" into "Start Reading". Since an ePUB is just zipped text files, it shouldn't be too complicated. 2) Convert the modified temporary file to Mobi with KindleGen. 2.5) Delete the temporary file. Call the script KindleGenPlus, and use KindleGenPlus from now on ![]() |
|
![]() |
![]() |
![]() |
#13 | |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Quote:
![]() This discussion started when I asked Valloric if he would add the capability for the user to add semantic items as desired to the semantic list. His reply was "NO." Not in the ePub spec. Providing MOBI capability from Sigil seems straight foward by using a call to kindlegen. Except for "Start Reading", all necessary semantics seem to be present. My present procedures are as follows; 1. produce a Sigil file with TOC and LOI. 2. Unzip Sigil file. 3. Edit content.opf to change "Text" to "Start Reading" and save. 4. Call c:\kindlegen content.opf 5. Rename content.mobi and save 6. Restart Sigil and remove TOC and LOI and save. 7. Working folder now contains book.epub (no toc and loi) and book.zip(w/ toc and loi). book.epub passes Flight Crew. I'm sure someone out there in Sigil land can make a tool which can do this simply and quickly. I have neither the tools or knowledge to do it. It would have to work with Win, Linux, and Mac. Thank you for your attention and "FINI." ![]() Charlie |
|
![]() |
![]() |
![]() |
#14 | |||
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,546
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Code:
<reference type="text" title="Start Reading" href="Chapter-1.xhtml"/> or do you need this: Code:
<reference type="start" title="Start Reading" href="Chapter-1.xhtml"/> Quote:
To elaborate on my previous post: If KindleGen needs the second code to create what you want, KindleGen is behaving badly, as it should not require a non-compliant ePUB. Quote:
![]() |
|||
![]() |
![]() |
![]() |
#15 | |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Quote:
<reference type="text" title="Text" href="Text/CHAPTER_I.xhtml"/> to <reference type="text" title="Start Reading" href="Text/CHAPTER_I.xhtml"/> If the reference type="text" is the semantic, then I'm still caught up in the meta language, and no change is needed to the semantics. Only a Title change is needed. Have I been chasing my tail agai?. I still need the ePub for Dummies. I'm going to give <reference type="start" title="Start Reading" href="Chapter-1.xhtml"/> a try and see what happens. I don't see that kindlegen does much to change things whereas Calibre apparently makes major changes. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Epub and Semantics | crutledge | Sigil | 15 | 11-15-2010 07:05 AM |
Wonderful Book Browser-->add semantics menu not sticking | meika | Sigil | 3 | 07-31-2010 08:30 AM |