Forum Replies Created
-
AuthorPosts
-
Justin Sligh
MemberMark,
It might be possible that your Hyperlinks Character Style has been applied to more than just the desired links.
Consider trying the following:
1. Backup your existing document
2. Select all of the links within your Hyperlinks Pallet and click the delete icon.
3. With no text selected, go to your Character Style pallet and select the Hyperlinks character style. Click the delete icon. Uncheck the preserve format option and select “None” for the replacement style.
4. Ensure no text is currently selected and recreate your Hyperlinks Character Style. To begin with, I would set the color to something that stands our (e.g., magenta) Do not select “No Break” yet.
5. Select Convert URLs to Hyperlinks in the upper right hand corner. Ensure that you select the scope of the search set to Document. In addition, check the Apply Character Style box and select your newly created Hyperlinks Character Style.
6. Select Change All
7. Scan the document to see if your links have been identified and if they have the bright color you selected in step 4.
8. Ensure no text is selected, open the Hyperlinks Character Style and add the “No Break”.
This should do the trick. It will strip out all instances of your hyperlinks character style where it may have been inadvertently applied and then use the hyperlinks pallet to automate the process of styling all of the links.
Justin Sligh
MemberMark,
If you apply “No Break” to a paragraph and have more than one line of text, it will have nowhere to go. You want to apply “No Break” only to a URL.
How are you handling hyperlinks? Are you using the Hyperlinks pallet to great hyperlinks in the exported PDF?
If you have not used the Hyperlinks pallet (Window>Interactive>Hyperlinks), you have two options to add your links.
1. Manually – Select and copy the URL, select Create New Hyperlink from the icon in the lower right of the pallet.
2. Automatically – Select Convert URLs to Hyperlinks in the upper right hand corner. Ensure that you select the scope of the search (e.g., Document, Story).
Either way, you have the ability to assign a Character Style to these links. This style will contain the “No Break”. This is also where you could provide a short version of the link for text and the clickable link takes you to the full URL.
Justin Sligh
MemberCaitlin,
We might need some more information with regard to your project. Are you asking about a way to have different people (without InDesign) provide content for these pop ups during the production of the document? As in, you want a bio or description for each cubical/person and you would like them to contribute their own content?
Or are you talking about after your PDF have been produced?
Justin Sligh
MemberSalieri,
Were you able to determine the reader and version that was used?
Justin Sligh
MemberJohn,
Interesting that the aforementioned Grep Style did not work for you.
Grep Style
(?<!)^
With an associated character style set to “All Caps”This will look for a lower case letter that occurs at the beginning of a paragraph but not immediately after a forced line break.
It gave it a try and it works on my end. If you would like to provide a link to a sample indesign file, I can try to determine the problem.
In regard to your second question, I believe you need to use a second grep style.
Grep Style
(www|http)
With an associated character style with “Normal” set in regard to case.This Grep style should be after the previous one we discussed.
Using these type Grep Styles we are capitalizing the first letter in each bullet and then the second style applies normal case to www and http.
Justin Sligh
MemberMark,
Applying “no break” should do the trick.
If any of your links are longer than a line, it will break the remainder of your content. Assuming 100 percent of your links are short, applying no break is a good solution. You could also consider applying a condensed version of the font or adjust tracking.
For long links, you can shorten the written URL while ensuring the full length version is correct within the hyperlinks pallet.
August 5, 2013 at 11:16 am in reply to: Modified Link error with InDesign files stored in Perforce #64686Justin Sligh
MemberTeri,
Glad to help!
Justin Sligh
MemberChristophe,
Do you have a mix of different types of whitespace between the original text?
You can use:
(US|CA|EU)(\$|€)(\d+)
$3$2~<$1
This will find the country code than any whitespace character followed by the currency symbol and then digit(s).
The replace string adds a thin space regardless of the type of whitespace within the find.
Justin Sligh
MemberChristophe,
Assuming a few things:
1. Currencies are whole numbers.
2. There are no spaces after the “?” in your international version (In your example, US?$65 CA?$80 have no space but EU €70 does. Was this intentional or did the forum adjust your post automatically.)Grep Find:
(US\?|CA\?|EU )(\$|€)(\d+)Change to:
$3$2 $1We are asking InDesign to:
1. Find “US?”, “CA?”, or “EU ” and set as variable “$1”; find a “$” or “€” and set as variable “$2”; and find one or more consecutive digits and set as variable “$3”
2. Paste variable “$3” followed by “$2″ followed by a space and then” $1″() Items within parentheses are sub-expressions and can be used as variables within the Change to. If you find (Red)(Blue)(Green) $1 is “Red” $2 is “Blue” and $3 is “Green”.
? and $ are functions used by grep so to look for actual characters, you need to escape them using a backslash “\”
\d indicates a digit
+ indicates one or more of the previous.Justin Sligh
MemberMasood,
I am not sure if you can create a single Grep Style this. You could do it with two Grep Styles:
Grep Style 1 – Use the following expression:
\w
The associated Character Style will control all words.Grep Style 2 – Use the following expression:
(the|or|and)
The associated Character Style can reset those letters to whatever you want.Not sure how to handle this with regard to Find/Replace.
I would like to know if you find a way to handle it within one Grep Style.
Justin Sligh
Membertbone,
Depending on how these documents are reduced in size, you may notice issues with vector artwork that contains thin lines. Sometimes these lines are dropped and some times they are converted to the smallest printable width.
Pay close attention to the digital proof.
In addition to Kelly’s comment in regard to embedding PDFs, you could also embed the actual InDesign file. That way, if you made a change to the original InDesign file, you could easily update it within the links panel without exporting to PDF.
Justin Sligh
MemberMasood,
In situations where the paragraph does not end with a punctuation. Such the last line in the following:
65 879 758
86 785 789
58787878Any person who has wrapped their had around Grep Styles is no beginner in my book!
Justin Sligh
MemberMasood,
Good catch. I forgot to mention that the Grep Find/Replace cannot complete the process in one instance. You need to keep pressing Replace All until no matches are found.
Your suggestion for Grep Find/Replace with the style works. However, it will not pick up numbers at the end of a paragraph. I would have assumed that using a $ in lieu of \D would do the trick but it does not work. Im not sure how to handle that situation.
Thanks for the response in regard to the adding space in the opposite direction.
Justin Sligh
MemberMark,
I answered a question similar to this a while back and it turned out that the publisher was looking for a banner ad versus a PDF for download.
If they are looking for a PDF and specifically state 72dpi, it is likely that they just want to ensure a small file size. David’s response of using Smallest File Size while upping the compression quality usually does the trick.
PDFs can be made up of vector artwork and also raster artwork of various resolutions. The export will rescale color, grayscale, and monochrome images based upon the settings. For example:
All of the presets with the exception of Smallest File Size use the following settings:
Color Images: Scale any image over 450ppi to 300ppi
Grayscale Images: Scale any image over 450ppi to 300ppi
Monochrome Images: Scale any image over 1800ppi to 1200ppiSmallest File Size uses the following.
Color Images: Scale any image over 225ppi to 150ppi
Grayscale Images: Scale any image over 225ppi to 150ppi
Monochrome Images: Scale any image over 450ppi to 300ppi
In addition, it also converts the document to sRGBYou could create your own custom export that would resize any image over 72ppi to 72ppi. However, you will start to see noticeable degradation in the quality. Smallest File Size with slightly better compression is the safe bet.
If the publisher is looking for a web banner, you may want to check to see what the desired raster image format will be (e.g., jpg, png)
Justin Sligh
MemberHans,
If your numbers included a decimal place or more specifically a period, you could use a Grep Style to take care of the issue. The expression would be:
\d(?=(\d\d\d)+\D)
The associated character style controls the space between through “tracking”. Setting it to 150 or 200 should suffice.
This expression is saying, Look for a single digit that has one or more three digits groups followed by anything but a digit (e.g, a period). Using \D would allow it to pick up on line breaks and allow you to style whole numbers outside of tables when these numbers are immediately followed by a line break.Else, you will need to use a Grep Find/Replace. The following expression will find the numbers:
Grep Find:
(?<=\d)\d\d\d(?!\d)Grep Replace:
$0 There is a space before the $One of these came from jongware. I don’t remember which.
-
AuthorPosts
