Forum Replies Created
-
AuthorPosts
-
Aaron Troia
ParticipantIn the Find/Change dialog box use the top button “Find Next”. That button will cycle through all the instances that match your search without replacing them.
Aaron Troia
ParticipantIt was brought up on Twitter that since the IDPF merged with the W3C in 2017, it doesn’t really exists anymore and the website will gradually fall into decay for the foreseeable future.
Another web based validator that was recommended that you could check out is https://epubcheck.mebooks.co.nz/
Aaron Troia
ParticipantHey DB,
oh no! Well I just passed on the message on twitter to see if anyone knows why it is down.
oh shoot, up until recently I was running two versions of ePubCheck so I can understand. Hmm, the hard part about that is either finding something else that is old enough that only checks for 3.0 or maybe emailing them and seeing if they could do a 3.0 version. Its at least worth asking, for stores like IngramSpark. Technically if it clears 4.2.2 it should clear 3.0 but it always nice just to know it clears the version asked without wondering.
Aaron Troia
ParticipantHey DB,
Have you sent anyone at the IDPF an email to let them know it is down or ask why it is down?
Check out Pagina, I’m a command line guy and this is one of the few GUI epubcheck applications out there that I would recommend. Super easy to use, no command line what-so-ever, just drag and drop.
https://www.pagina.gmbh/produkte/epub-checker/
Aaron
Aaron Troia
ParticipantI think something like this would work,
Find:
^.+?(?=Doing this Practice well includes being able to:)and just leaving your “Change to:” field blank should remove all the text before “Doing…”
Aaron Troia
ParticipantDid you set up your running headers all within variables? Is there any part (e.g. the colon) which you typed in to the text box on your master page? One reason I can think of why GREP wouldn’t work on a running head variable is because GREP only sees a variable or variables, not the text, which is why probably it is applying your style to the whole line. If you typed in the colon on your master page, I would think it would work, but if you already did that… hmmm, I’m not sure.
Aaron Troia
ParticipantJohn,
Good I’m glad that worked for you! From what you have learned in GREP so far, does the expression make sense?
Aaron Troia
ParticipantDavid is correct. I didnt think of if that way. Also, if you run the first expression as a GREP find and replace the space with non-breaking space character throughout, it would also work.
Aaron Troia
Participantohhhh ok, I see what you are wanting to do. Your expression and my previous expression are ment to *only* find the space between the month and the date but to also ignore the month and the day. That’s what Lookahead, lookbehind, Keep (\K) do, they find what you put in them before and after what you are wanting to change, but at the same time they also exclude them from the search, so they are referred to zero length assertions.
This is an easy fix, all we have to do is remove those zero length assertions. So try this now, which should work for what you want to do, which is applying a character style to the month and day.
(Jan.?(uary)?|Feb.?(ruary)?|Mar.?(ch)?|Apr.?(il)?|May|June|July|Aug.?(ust)?|Sept.?(ember)?|Oct.?(ober)?|Nov.?(ember)?|Dec.?(ember)?) (\d+)Aaron Troia
ParticipantHey John, Try this,
(Jan(uary)?|Feb(ruary)?|Mar(ch)?|Apr(il)?|May|June|July|Aug(ust)?|Sept(ember)?|Oct(ober)?|Nov(ember)?|Dec(ember)?).?\K (?=\d+)Aaron
June 28, 2019 at 8:47 am in reply to: GREP help finding multiple combinations in a paragraph #117367Aaron Troia
ParticipantHey Joseph try this,
(‘)([^”]+)(”)Using
[^”]+will tell the search to find everything up, to but not, closing double quotes and will make make the search less greedy than.+but more greedy than\w+but wont go past the first instance of the double quotes.Aaron
Aaron Troia
ParticipantHey Christopher,
Not sure if you figure this out or not. Epub:type attributes can be tricky and I think it all depends on what attribute you are adding. Some have different roles and are used on different elements.
If its something like the “toc” attribute, you would add it to the <nav> tag around your table of contents and nothing else, but if you were, say, doing popup footnotes, you would add the “noteref” attribute to the inline tags.
check out
https://idpf.github.io/epub-vocabs/structure/
https://idpf.github.io/epub-guides/epub-aria-authoring/Aaron Troia
ParticipantI’m not sure which is necessarily better, it probably depends on how comfortable you are with using a trackpad. I work primarily in InDesign and use both the original apple trackpad and a Wacom tablet (the Wacom is my “mouse” and use the trackpad for scrolling with my left hand, the Wacom I have is kind of a pain for scrolling). The trackpad may have some added benefits of a few gestures that the mouse doesnt have (like pinching to zoom).
Aaron Troia
Participantwell I guess taking the space out of the first set of brackets resolved it not finding anything in your original examples. so it should cover both sets of examples you gave in finding anything after the second comma.
, ?\K[^,]+, [^, ]+(?=$|\r|)Aaron Troia
Participantohhhh the forced line breaks are defiantly making it tricky! I tried your text with some forced line breaks where I felt they probably would go and had pretty good results.
, ?\K[^, ]+, [^, ]+(\r||$)hmm but now it doesnt want to work on the original examples you gave :/
-
AuthorPosts
