Forum Replies Created
-
AuthorPosts
-
February 13, 2020 at 3:42 pm in reply to: GREP needed: Finding duplicate last names in a list #14323079
Aaron Troia
ParticipantHey John,
Here was something I came up with, I’m not sure if will work for all of them, but it might be a step in the right direction.
(\w+), (\w+)( \w\.)?$1, $2Aaron
January 27, 2020 at 10:56 am in reply to: Table Formatting Issue not sure what to Use or how to start #14323193Aaron Troia
ParticipantYou might also be able to use GREP to remove that information before you import. The Excel file would probably need to be converted to a CSV or TSV first, and then open it in a text editor like Sublime Text to do it.
Aaron Troia
ParticipantElizabeth,
While it might show up that way for you, depending the settings of the person reading and what reader they are reading on, it will look different. This is kind of the nature of ebooks, since they are reflowable and not fixed to a specific font, font size, margins size, leading, etc., things like this happen and you sometimes you can’t really control it.
That said, one work around would obviously be to make the image smaller. And speaking of smaller, you could make the image in the text smaller and when the reader clicks on it, you have it linked in the HTML and open to the full size image.
Aaron
Aaron Troia
ParticipantHello Stevica,
I don’t know of a way to repeat the header row in ebooks. The only work around I can think of would be to wrap the table in a <div> and style it with “page-break-inside:avoid;” to force the whole table down and keep it from splitting frames. That might also work on the <table> tag, I’m not sure, I haven’t tried this with tables, but I used to do this with images and captions.
Aaron
Aaron Troia
ParticipantHey Kelly,
For finding asterisks and changing them to bullets (I’m assuming you are using the bullets feature within Paragraph styles), in GREP Find/Change,
Find:
\*
Change: [leave blank]If you are wanting to replace the asterisk with a literal bullet (and tab
),Find:
\*
change:~8Aaron
Aaron Troia
ParticipantHey Brian,
No problem. For the first space in the line I would do like what you did:
Find:
(\d\d/\d\d)
Replace:$1The last space GREP should work, (make sure you’re in GREP not Text, I just got the “Cannot Find Match” error pop up on me because I accidentally had it in Text) but I can give an alternate,
the original, which is finding anything between the end of the line and the last space in the line:
Find: `([^ ])$
Replace:$1an alternate, being explicit about the digits and period:
Find :(\d+\.\d+)$
Replace:$1Let me know if that works for you or if it’s still giving you issues.
December 3, 2019 at 4:05 pm in reply to: GREP search for changing space after endnote number #14323632Aaron Troia
ParticipantNo problem Chris, and sorry I couldn’t fully answer your question.
To get the gray rectangles, I believe you can either wrap your text in
<code>your text here</code>tags or wrapped in`(the key shared with ~)December 3, 2019 at 2:28 pm in reply to: GREP search for changing space after endnote number #14323637Aaron Troia
Participantoh ok, sorry Chris, I must not have realized you had one with and one without curly brackets. that makes more sense.
I just did a search with some Lorum Ipsum and both ways allowed me to find and replace all the spaces and replace them with En Spaces. I’m guessing they’re the GREP search is seeing them as the same (at least on my end) and the GREP search isnt being very strict on format. Again, that’s just a guess.
I have a few GREP searches for blocks of Unicode characters (Greek
[\x{0370}-\x{03FF}]and Hebrew[\x{0590}-\x{05FF}]) and I have them set up with the curly brackets. I havent tried them without the curly brackets, but now I’m curious to see if it would work without them. Though I feel I might have tried without (I put them together awhile ago) and couldnt get it to work with finding a range of Unicode.December 3, 2019 at 12:20 pm in reply to: GREP search for changing space after endnote number #14323640Aaron Troia
ParticipantHey Chris,
What is happening when you search for
\x20is that you are are telling your GREP to be greedy look for a specific space, in this case it is the one assigned tox20in Unicode. When you useyou are telling GREP to be nongreedy and find any space.Aaron
Aaron Troia
ParticipantHey John,
Oh you’re right, I think I should have wrapped the letters after the price in parenthesis
\$\d+?\.\d+?\K(o|t|f)that at least fixes it on my end.Aaron Troia
ParticipantI would do
\$\d+?\.\d+?\Ko|t|fwhich should ignore the dollar sign, the decimal, any digits before and after the decimal, and the space after and only apply the character style too|t|falso sorry for the wrong syntax for Keep, I meant to write \K in my previous post
Aaron Troia
ParticipantJohn,
You could try positive lookbehinds but I think the best way would to use Keep (/K) which acts like a positive lookbehind but is nongreedy.
Aaron
Aaron Troia
ParticipantHello John,
Did the instructions you were using include using section markers? Considering a section marker is basically a variable, the instances that you used them might need to be converted to text (if there is an option to do so, cant remember if section markers do) or typed out by hand (in other words, delete the section marker and key in or paste in the text).
Aaron
Aaron Troia
ParticipantHey Simon,
You should be able to run something like
Find:
\r([a-z])
Replace:$1but you might want to run this first to make sure you have a space before those line breaks. Nothing like having to reread the whole thing because words are running together (among other things), and it’s easier to clean up double spaces throughout than break words apart.
Find:
(?<!)\r
Replace:$0Aaron
Aaron Troia
ParticipantHey DB,
I personally would, and my reasoning is that InDesign generates the toc.html and your toc.ncx files. I’ve done them by hand, but prefer for InDesign to set up all that linking, or at least most of it.
I also have an InDesign template that already has all my Paragraph and Character styles mapped to a custom CSS stylesheet so I can flow everything in, set the styles and export without much set up.
Are these personal documents? if so, it might not hurt to try Calibre and at least get a feel for how it works. I’m not sure I would use Calibre for anything besides personal documents though.
-
AuthorPosts
