Forum Replies Created
-
AuthorPosts
-
February 15, 2017 at 1:30 pm in reply to: Edit FindChangeList to fix double hyphens & add fixed spaces? #92249
Aaron Troia
ParticipantEt al fixed width space
grep {findWhat:"(et) (al)"} {changeTo:"$1~s$2"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false}February 15, 2017 at 10:36 am in reply to: Edit FindChangeList to fix double hyphens & add fixed spaces? #92222Aaron Troia
ParticipantThe FindChangeList script takes some getting used to, I personally prefer Multi-Find/Change 2.0 and would post a link if it didn’t appear that their site was down. But FindChangeList uses a little different GREP than InDesign’s Find/Change dialog. First you have to remember to double escape everything (ie periods, you have to do . not just \.), I played with them and at least got one working (it’s a little modified from what you had (using Keep (\K) as a positive look-behind which is zero-length so you dont have to worry about using a capture group number or $0 in the changeTo field.), still working/playing on the others.
grep {findWhat:"wK-"} {changeTo:"~-"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false}Aaron
Aaron Troia
ParticipantChris,
Yes you can code those post-export, and its really not too hard. You will have to do a parallel set of images like you said, and then you will wrap your
tags with an anchor and that points to the second, parallel image like so:
Original:
<img src="<!--your original image file path-->" alt="This is the image displaying on your page" />Modified:
<a href="<!--your caption image file path-->"><img src="<!--your original image file path-->" alt="This is the image displaying on your page" /></a>Play with that, its been awhile since I’ve done it so hopefully it works for you.
Aaron
Aaron Troia
ParticipantHey Chris,
I’m a little confused, are you using the Split Document option for the Chapter title or whatever starts each chapter and you’re getting this issue? or are you applying the Split Document option for the endnotes? or for a paragraph style after a footnote? I only ask because your post sounds like you are applying it to footnotes. And are you using the Split Document option on styles within your chapter/section? I would advise against that as InDesign will view that as the end of the chapter/section and all the footnotes/endnotes will be placed at the end of each (you are basically telling InDesign to create a new HTML page every time you use Split Document and theoretically each chapter should be in one HTML page not multiple, if you’re doing coding after export, you can get around this but its a lot easier just to do it in InDesign) and really unless you have an image you want to force to another page, I would advise against using the Split Document option on any style other than the first style at the start of each chapter (usually the chapter number or title).
You don’t need to abandon your endnotes, that’s actually rather normal, unless you are taking advantage of the popup notes in iBooks, endnotes are really the only way to do footnotes.
Hopefully that made sense, let me know if you have more questions,
Aaron
Aaron Troia
ParticipantHey David! Yes you’re right, I should’ve taken that into account, I have modified the version using Keep (\K) to account for more instance, and you could add more punctuation into the noncapture group at the beginning (
(?:^|\.|\!|\?)) to account for more. There might be a better way, I know this isnt perfect, but it should catch most instances.(?:^|\.|\!|\?) ?\K.+?\?Aaron Troia
ParticipantDavid is on the right track, I would do it a little differently with a positive lookbehind or a Keep (\K) to look for (but not capture) the punctuation and space before, such as:
(?<=\. ).+?\?
or
\. \K.+?\?they both do the same thing, just in a different way. They both look for a period space (both zero width so as not to be included or affected in your replace) on one end and a question mark on the other end, and, of course, everything in between.
you can either then group the
.+?like(.+?)as a capture group or if you can just use it as is and in your replace field use$0which basically matches everything that was found.Let me know if you have any questions.
Aaron
Aaron Troia
Participanthey Ashiq,
Is this just for personal reading? or are you looking to sell the book?
If its for personal reading, try Calibre, Sigil, or Jutoh. I’m not sure they are up to the standards of the online retailers, but if its for personal reading they will get you where you need to go. If you are planning on selling the book, look at CreateSpace (Amazon only) or BookBaby, or you could look into someone convert it for you and you can be in total control of selling it in whatever stores you want.
Regarding converting to PDF, I could be wrong, but you should be able to either Save As or Export from Word to PDF. Or are you wanting a formatted PDF that you can have printed? If so, I would again look at CreateSpace or BookBaby.
Hope that helps,
AaronAaron Troia
ParticipantFrank,
The issues you have brought up have to do with the different specs for different eReaders. They all kinda have their own way of doing things and you kinda have to find a happy medium. I would say try stripping your CSS down and try to be as minimal as possible. (https://ebookarchitects.com/blog/why-ebook-conversion-is-complicated/)
For tables for example are you setting the border to “collapse”?
As far as hyperlinks, are you referring to the TOC? or is this all the URL hyperlinks as well? I havent personally run across this, but I have had times when I’ve exported and all the TOC links are the same link.
Aaron
Aaron Troia
ParticipantHey Gregory,
First error: I haven’t had any issues with this erring out in ePubCheck nor have I received any complaints about my ePubs throwing errors in iTunes, it might just be an overly cautious part of the FlightDeck script that is catching this, I think you should be fine. I would email FlightDeck directly and bring this up.
Second error: just remove the “color:#000000” line throughout your CSS. InDesign is probably setting the text to black even though you have the text set to registration.
Aaron
Aaron Troia
ParticipantBlusse, I have put together a sample TOC with a few levels of nesting with some light commenting to try and explain it. Its pretty much a complete toc.xhtml, I have included a Page List nav section which you can delete, its just an example of how a Page List would look in the toc.xhtml.
Aaron Troia
Participantoh ok, glad I asked, I dont work with book files much. I found this Adobe support page, you’ve probably seen it but I thought I would pass it along, it does a much better job of walking through and explaining how to creating TOCs that I could ever do. Not sure if it will help or not, but I hope its in the right direction.
https://helpx.adobe.com/indesign/using/creating-table-contents.html
Aaron Troia
ParticipantHey Robert,
Is the this one INDD file that includes everytying or did you make multiple (one file per chapter/frontmatter/glossary item) and combine them into an InDesign book file (INDB )?
Aaron
Aaron Troia
ParticipantYeah if you’re exporting to EPUB3, the default TOC is the toc.xhtml file, and the toc.ncx will probably be depreciating (going away) soon. Most ePub readers still recognise the NCX so that’s why you probably havent had any issues, but the Kindle format is probably depending on the toc.xhtml solely for the TOC.
I have attached the a link to drop box with a screen shot nesting up to 3 levels (its the same concept for more levels) if you want to dive into the HTML.
https://www.dropbox.com/s/bpuehjkmk21480v/Screen%20Shot%202016-10-03%20at%2012.27.40%20PM.png?dl=0Aaron Troia
ParticipantHey Gregory,
From the errors you listed it seems like the issue is with the automatically created TOC anchors, I think these are added when you create the TOC, and I believe have to do with the “Create PDF Bookmark” or “Make text anchor in source paragraph” checkboxes, not sure which one exactily. I might delete the TOC, in the Hyperlinks window in the dropdown menu select “Delete unused hyperlinks” and then regenerate your TOC. I think what happened is a few of them got deleted and epubcheck is freaking out because you have a link to anchors in the TOC that are missing in the text so they are basically pointing to no where.
Maybe make a copy of the file and try it, just to be sure. I’ve done this a few times, for different reasons (mainly to get rid of the links because I do a lot of back end HTML work after export) but I think getting rid of all the links and then regenerating the TOC so that it readds them should take care of your linking errors.
Aaron
Aaron Troia
ParticipantIn InDesign or in HTML?
If in the code its nested HTML ordered lists, the NCX follows the same basic principle. I tried adding the HTML to this comment and I couldnt get the tags to show up, oh well, its probably easier to Google how to nest ordered lists anyway, if that’s what was your question.
I havent sat down and really focused on nesting the TOC within InDesign so I’m not sure exactily besides giving each a different level number in the TOC style window, I tend to unzip the file after export and nest the TOC by hand.
Aaron
-
AuthorPosts
