Substitutions Replace All

Since I like to output manuscrupts to ePUB for reading in iBooks, I prefer to have typographical quotation marks—smart quotes—on. Pages 5's parity with Pages for iOS made it more difficult to globally search-and-replace ordinary quotes (inch marks) with smart quotes from the Find & Replace dialog. (The crippling of the Find & Replace even more is a subject for another rant ) But it seemed Pages 5 has the answer in its Show Substitutions submenu.
In the help, it says:
Choose Edit > Substitutions > Show Substitutions (the Edit menu is at the top of your computer screen).
In the Substitutions window, select the Smart Quotes checkbox.
Choose a quotation mark style from each of the pop-up menus.
Click a button to replace all occurrences of quotation marks in the document, or just in the selected text.
Which I thought means if I have straight quotes and double-dashes, hitting "replace all" or "replace in selection" will convert them to curly quotes and em dashes.
But it doesn't.
So far as I can tell, nothing happens.
Knowing that a lot of this is actually shunted into OS X's Text preferences, I tried making sure the Text preferences were set properly, quit all apps, restarted, opened Pages, opened a new document, typed in a test sentence with straight quotes and double-dashes, and then did the above Help procedure.
Nope. Still nothing happens.
I hope this is a bug and not another "refinement". I reported it as a bug.
This wouldn't matter on documents edited on the Mac, since typing smart quotes and em dashes still work. Moving around from Pages on iOS, however—where getting to the correct quotes is a bit of a chore—I liked being able to do a global "smartify my quotes" on Pages on Mac. But like I said, can't seem to do that anymore—and the Help seems to say that I should, using the Substitutions dialog.
Have you gotten this to work? Have I misinterpreted what the Substitutions submenu and dialog is supposed to do?

A workaround, of sorts. After pasting large amounts of text (full of straight quote marks and straight apostrophes) into Pages documents I, too, have tried and tried to convert to smart quotes, only to be frustrated. (I also spent quite a bit of time on the phone in November 2014 with a Pages tech support person, and he could not provide an answer. He promised to pass this on to the Pages team. This is where you start holding your breath...) Here is my workaround until (if) Apple fixes this. You are going to groan when I say this, but if you have Word on your Mac simply copy and paste the text into Word. (Perhaps you may find another word processor that does the same thing.) There the conversion is quick and simple. Then paste it back into Pages. I happen to have an older copy of Word because I was forced to start using Pages when the version of Word would not utilize the Retina display on my new Power Book an everything was fuzzy.

Similar Messages

  • Replace all misspelled words

    On my iMac, I'm using Pages. I want to know how to replace all the misspellings of a particular word with the correct spelling. For example, the word is underlined in red because it is misspelled. When I correct it, I would like to correct all other of the same words that were misspelled in the same way throughout a particular document. I'm using OSX 10.9.3
    I tried to use Edit  and chose Substitutions. I want to "Replace All" but I can't figure out how to tell the program with which word I want to "Replace All."
    I also did two taps on my trackpad to get a suggested spelling. I can't figure out how to choose the correct spelling and tell the program to "learn spelling" at same time. I can only choose one option. If I elect "Learn Spelling" it is going to learn the wrong spelling! How to choose the correct word and then tell the program to learn that spelling and correct all the rest of the words (same word) in my document???

    If you are referring to Pages v5.2, use Edit > Find. In the resultant dialog, click the gear selector and choose Find & Replace. Replace All is one of the button choices.
    Try Edit > Spelling and Grammar > Show Spelling and Grammar (command + : shortcut) to get a dialog that shows suggested spellings, learn, and define buttons.

  • Using applescript for Find and Replace All in Pages 2.0

    i saw that Pages 2.0 is scriptable
    i try to create a script for merge use to find and replace all occurence of a certain string using a script but Pages doesn't seems to respond to "Find" even using "System Events"
    how can i do to use this function with a script
    Thanx for any help
    S.B.
    ibook G3   Mac OS X (10.4.6)  

    OK, here's another example. This one gets the text as a string and uses the offset property to find "[", presuming it to be a merge delimiter. (Pages' text doesn't support "offset of").
    One failing of this scheme is that the offsets are incorrect if you have inline objects (pictures, shapes, tables, etc.). While it is probably possible to compensate for them, that's a trickier proposition.
    <PRE>-- Example merge replacements:
    property mergeText : {"[name]", "John Smith", "[address]", "1234 Anystreet"}
    on lookup(mergeWord)
    set theCount to count of mergeText
    repeat with x from 1 to theCount by 2
    if item x of mergeText = mergeWord then
    return item (x + 1) of mergeText
    end if
    end repeat
    -- If merge field is not found, delete it (replace it with the empty string)
    return ""
    end lookup
    tell application "Pages"
    repeat
    tell body text of document 1
    -- Get text as a string so that "offset of" can be used.
    set allText to it as string
    set startOffset to offset of "[" in allText
    if (startOffset = 0) then
    exit repeat
    end if
    set endOffset to offset of "]" in allText
    select (text from character startOffset to character endOffset)
    end tell
    set mergeWord to contents of selection
    tell me to lookup(mergeWord)
    set replacement to result
    set selection to replacement
    if (replacement is "") then
    -- Get rid of extra whitespace (space or return)
    -- Do it in a "try" block to handle edge cases at start or end of text.
    try
    set theSel to (get selection)
    set ch1 to character before theSel
    set ch2 to character after theSel
    if ((ch1 is " " or ch1 is return) and (ch2 is " " or ch2 is return)) then
    select character after theSel
    delete selection
    end if
    end try
    end if
    end repeat
    end tell</PRE>
    Titanium PowerBook   Mac OS X (10.4.6)  

  • Smartview 11.1.2 & Excel 2003 SP3-Replace All Error

    My client has Smartivew 11.1.2 with Excel 2003 and is doing a private connection to an Essbase cube for ad-hoc analysis. All comes back fine but client does the Excel replace-all functionality and it throws the "Smartview handled an unknown exception thrown by Microsoft Office"....client can hit ok and the replace-all works but not sure why we get the error. This issue is not happening with Excel 2007...anyone see this? Thanks so much!
    Edited by: 895068 on Nov 4, 2011 6:28 AM
    Edited by: 895068 on Nov 4, 2011 6:28 AM

    Hi,
    thanks for your answers. From all I could find out from Oracle support, I'll have to wait until 11.1.2.1 is GA and then try again :-(
    Or will there be a patch for 11.1.2.0 as well?
    Best regards,
    Markus

  • Search and replace all spaces between quotes with uderscore

    Hello,
    I'm new on Powershell and I'm trying to make the script that:
    searches over file and replaces all the spaces which have been found between quotes;
    removes all quotes (except these which has not value eg "").
    For example:
    Source file:
    string3=string4 string="string1 string2 string23" string8="" string5="string7 string8"
    Destination file:
    string3=string4 string=string1_string2_string23 string8="" string5=string7_string8
    I have been created script that searches the data correctly
    $file="c:\scripts\mk.txt"
    $data=Get-Content $file
    $1
    $regex = [regex]@'
    (?x) # ignore pattern whitespace option
    (?<test>(["'])(?:(?=(\\?))\2.)*?\1)
    $data |% {
    if ($_ -match $regex){
    new-object psobject -property @{
    test = $matches['test']
    }#when adding "|select-object test" I'm getting the correct data
    I have stopped here on search / replace operation (from space to underscore, and by removing the quotes leaving the empty quotes non touched). Can you help me to finish the script?
    Thanks!

    Try this.  It uses the [Regex] Replace static method, with a script block delegate:
    $file="c:\scripts\mk.txt"
    $data=Get-Content $file
    $regex = '(\S+=[^"\s]+)|(\S+="[^"]+")'
    $delegate = { $args[0].value.replace(' ','_') -replace '"(.+)"','$1' }
    $data |% { [regex]::Replace($_,$regex,$delegate) }
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • Please help: How to replace all data on mid-2010 MacBook Pro 15 with Timemachine backup from 2009 MBP 13

    OK so I bought a mid-2010 MacBook pro 15 from a friend and he did not erase anything before he gave it to me. I was previously working on a 2009 MacBook pro 13 and have a Timemachine backup from that which I would like to install on the MBP 15 replacing all of the current data.
    I have tried rebooting using the OSX disc that came with the MBP 15 but that won't work - I am assuming that is because the OSX disc is version 10.6.3 while the current OS on the MBP 15 is 10.7.4
    What is the best/easiest way to use the Timemachine backup of my MBP 13" to replace all info on the MBP 15"?
    This seems like something that should be easy but I have been trying to do it since last night and haven't found relevant info in the discussion forums. Any help would be greatly appreciated!!
    Thanks!

    MacBook Pro 15" 2010
    Intel Core i7 2.8GHz M 640 Arrandale Cores 2  (2867)
    8GB max RAM 2 - 204-pin PC3-8500 (1066 MHz) DDR3 SO-DIMM
    NVIDIA GeForce GT 330M 512MB (15.85) (369) and Intel HD Graphics 3000 (10) (309)
    MacBook Pro 13" Mid 2012
    Intel Core i7 3520M Ivy Bridge Cores 2 (4519)*
    16GB RAM max actual (8GB Apple) 2 - 204-pin PC3-12800 (1600 MHz) DDR3 SO-DIMM
    Intel HD Graphics 4000 (unknown) (465)*
    The 13" is a more powerful machine and it has more RAM capacity.

  • How can I replace ALL Contacts on the iPhone with my MobileMe Contacts?

    I have removed all duplicates in AddressBook on my various Macs and have uploaded the master copy to MobileMe. I would now like to replace all Contacts on my iPhone with that MobileMe master.
    I have followed the steps in the KB article for syncing the iPhone but when I get to the step of turning on the iPhone Settings for the Contacts it looks like the sync wants to merge the contacts. Of course, I do not want to "merge" since that will reintroduce all those duplicates.
    I suppose I could manually delete each of the the hundreds of contacts that are on my phone until it is empty ... and then turn on the iPhone setting for Contacts. That way it will have no option other than "add." But surely there is a more efficient way.
    (FWIW, when I turned OFF the setting for the Calendar it did empty the iPhone's calendar, which is what I wanted. But it didn't do that for the Contacts -- I turned that setting off but I was not asked if I wanted to keep or toss the Contacts. They are all still on the phone.)
    This is an OG iPhone, if that matters.

    Matthew Smith wrote:
    ... The only way I can think of doing it otherwise is possibly by syncing via iTunes via another Mac OS X user account where the address book is empty and then deleting them there and resyncing. ...
    Brilliant! That worked like a charm.
    I created a new User Account on one of my Macs and logged into it. I connected my iPhone to its iTunes and checked my iPhone's Sync Contacts option in iTunes. Since that account's address book was basically empty (two dummy contacts, one for Apple and one for this new user), I ended up with only those two Contacts on the phone. Then, going back to my real User account (which does not have syncing turned on in iTunes) the phone synced nicely with the MobileMe account and populated the phone with all the MobileMe contacts and groups.

  • Purchased songs in the past then recently purchasd new songs,  but the new purchases replaced all of my old purchases.  How can I retrieve my old purchases?  Cannot find them in any of my playlists.

    Purchased songs in the past then recently purchasd new songs,  but the new purchases replaced all of my old purchases.  How can I retrieve my old purchases?  Cannot find them in any of my playlists.

    If you purchased all of the songs through itunes store, please follow these steps:
    1. Open up Itunes and Click on Itunes Store
    2. Once you're in the Itunes Store look to right side of the screen and you should see the word "purchased". Click purchased and you'll be sent to a purchase screen.
    3. Click on "All Songs" and then it will show all the songs you've downloaded. From there you just hit the button that looks like a cloud with an arrow on it, and it will download all the songs all over again.

  • I do i find and replace all in numbers

    How do I find and replace all.  It is time-consuming to find and replace one entry at a time.

    Works here. As you can see, all three instances were located, in my test.
    Can you think af anything that could be different in your case than in my example?
    Jerry

  • I duplicated a picture and now iPhoto (11) is cloning that picture replacing all the other photos and only when I click directly on them I can see the real picture! How can I solve the problem without losing any saved picture? Shall I re-install? Thanx

    I duplicated a picture selecting CMD and D but, suddenly, iPhoto (latest version '11) started cloning that picture and replacing all the other photos with it.
    Only when I click directly on one photo I can open it and see the real picture it is.
    But the preview is always the duplicated one...
    I tryed to duplicate another picture just to see if it turned out ok but the only changement was the duplicated picture!
    I started repeating the second duplicated one instead of the previous one but my issue remained the same.
    So, how can you help me to solve this problem without losing any saved picture?
    Shall I re-install iPhoto completely?
    Thank you very very much in advance!!

    As Larry says, restoring the back up is the fastest and best solution. Otherwise:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • How do i get all my data and info from my old iphone onto my new one without access to the original itunes that i set my first iphone up on? my partners itunes keeps telling me that its going to replace all my apps and data with his stuff

    how do i get all my data and info from my old iphone onto my new one without access to the original itunes that i set my first iphone up on? my partners itunes keeps telling me that its going to replace all my apps and data with his stuff

    ok so i have my own i tunes library - how do i get all my old apps onto my new library?

  • Help, lost all the songs on my iPod when checked the box titled "Replace all items when Autofilling" in my Autofill Settings window.

    Help, I lost all the songs on my iPod when I deleted a few songs from my iTunes Library, checked the box titled "Replace all items when Autofilling" in my Autofill Settings window, and then tried to Autofill. Note that I do not purchase songs from iTunes, but rather I rip songs off my own cd's and then transfer the mp3 files to iTunes.  And after I transfer mp3 files from my pc to iTunes and then Autofill, I generally delete those files from my pc.
    I can still see the songs in my iTunes Library, but not on my iPod.  Is there a way that I can salvage them and get them back on my iPod?
    Thanks in advance.

    Well you will have to wait to connect you ipod to the orignal computer and it will put all your songs back on to it.

  • Replacing all occurrences of characters in a string with one new character?

    Hi there,
    I'm looking for a way that I could replace all occurrences of a set of specific characters with just one new character for each occurrence.
    For example if I have a string which is "word1...word2.......word3....word4............word5" how would I be able to replace this with just one character such as ":" for each set of "." so that it would essentially appear like this "word1:word2:word3:word4:word5"
    If I just use replace(".", ":") I am left with "word1:::word2:::::::word4::::word5::::::::::::"
    So therefore I'm guessing this would require the use of replaceAll() maybe? but I'm not really very familiar with how regular expressions work and how this would be accomplished using them.
    Any help would be greatly appreciated :) Thanks.

    Yes, but "." means any character, so ".\+" means "any character repeated more than once". If you just mean a full stop ("period" for you Americans :p) you should use "\.+" as your regular expression, but remember that for Java you need a '\' escape to recognise '\' as '\', so in code you'd actually type your regex as:
    "\\.+"Here's an example of one way to do it:
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    public class Test {
        public static void main(String[] args) {
           String string = "example1.......example2...example3.....example4";
         Pattern pattern = Pattern.compile("\\.+");
         Matcher stringMatcher = pattern.matcher(string);
         string = stringMatcher.replaceAll(":");
         System.out.println(string);
    }Edited by: JohnGraham on Oct 24, 2008 5:19 AM
    Edited by: JohnGraham on Oct 24, 2008 5:22 AM

  • Messages has replaced all my text with a load of letter A's in boxes. What is that all about. When I type a new one it is fine until I hit enter then the same thing applies. Has anyone a fix for this?

    Messages has replaced all my text with a load of letter A's in boxes. What is that all about. When I type a new one it is fine until I hit enter then the same thing applies. Has anyone a fix for this?
    Picture below, many thanks for your help.
    Jason

    Back up all data before proceeding.
    Launch the Font Book application and validate all fonts. You must select the fonts in order to validate them. See the built-in help and this support article for instructions. If Font Book finds any issues, resolve them.
    Start up in safe mode to rebuild the font caches. Restart as usual and test.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t start in safe mode. In that case, ask for instructions.
    If you still have problems, then from the Font Book menu bar, select
              File ▹ Restore Standard Fonts...
    You'll be prompted to confirm, and then to enter your administrator login password.
    Also note that if you deactivate or remove any built-in fonts, for instance by using a third-party font manager, the system may become unstable.

  • Replace all special characters in a String with underscore

    I have a String which contains some special characters even(!,$,@,*....).
    I need to replace all the special characters with _ in my String. I do have an idea of using String.replace() and analogous forms, but I would be thankful if anyone can suggest me of a better and an efficient way.
    regards,
    fun_one

    Kaj,
    Thx for your earnest reply. I did have a peep into the API on this method. But the regular expression that I need to use here was beyond my understanding. It did specify some regex that I put to use (something like myString("\D","_"), assuming that I need to replace all non-digit characters ), but it really did not help me getting the result.
    Would you spare some code for me reg. the usage of regular expressions in such a scenario?
    cheers,
    fun_one

Maybe you are looking for