Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Convert Pages 3 full underlines to per-word underlines Apps
I write books about Photoshop and web stuff. Since 2004, I've been using Pages to do all the work, and I never regretted leaving Word behind forever. After recently updating to Pages 3 (in iWork '08), and revising a book for its third edition, I noticed that all titles I have created in Pages 1 and 2 using per-word underlines were converted to full underlined paragraphs. As an example, here's a before-and-after view of a sample title:

This is a title ... This is a title

So, I was forced to build the following AppleScript code to solve this mess: This code will remove all underlines from spaces or tab characters that may be present on any paragraph whose style's name is "Heading 2" -- change this to your own paragraph style name. Of course, you can use this code to do other stuff, as a selective find and replace that will work inside just one or selected paragraph styles. To search inside multiple paragraph styles, just add more options to the fourth line of code, transforming it into something like this:

if paragraph style of one_paragraph is paragraph style "Style 1" or paragraph style of one_paragraph is paragraph style "Style 2" or paragraph style of one_paragraph is paragraph style "Style 3" then

[robg adds: This script worked as described when I tested it. To make it easier to use, you can save it as a script in your user's Library » Scripts » Applications » Pages folder (create the folders as necessary). You can then run it from the Scripts menu in the menu bar when in Pages.]
    •    
  • Currently 1.33 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[6,780 views]  

Convert Pages 3 full underlines to per-word underlines | 3 comments | Create New Account
Click here to return to the 'Convert Pages 3 full underlines to per-word underlines' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Convert Pages 3 full underlines to per-word underlines
Authored by: kevans on Feb 07, '08 09:51:04AM

If this meets your need, bravo! However, the question arises as to why you would want to have per-word underlines in the first place. Titles are underlined (rather than made bold, italic, samll caps or otherwise) as another way of emphasizing them. It is the title as a syntagm and not the individual words that are emphasized. From the software point of view, per-word underlines should NOT, of course, be arbitraily changed to something else.



[ Reply to This | # ]
Convert Pages 3 full underlines to per-word underlines
Authored by: HairyPotter on Feb 07, '08 11:28:55AM

The problem is that Page 3 changed a lot of stuff on the texts I had created using previous versions. For example: several text cells containing numbers in tables were converted to numbers - example: 1e-2 was converted to 0.01, changing the meaning of what I have written (in this example I was not talking about "e" raised to -2). Instead of keeping the text as it was, Pages decided to change stuff, changing what I had written. So, the book had to be twice revised.

---
AddFone.com
--------------------------
the largest database of iPhone related apps.



[ Reply to This | # ]
Convert Pages 3 full underlines to per-word underlines
Authored by: rumirocks on Feb 07, '08 12:08:32PM

HarryPotter,

While this is OT your topic, I am curious if you use Page 3 with InDesign, or do you simply use Page 3 to create manuscript for publisher and let them do what they do. Thanks for your reply.



[ Reply to This | # ]