Hyphens, phone numbers and discretionary line breaks

We have hit a problem with InDesign/InCopy. When we enter a phone number with dashes, InDesign will not create a line break on any of the hyphens. We want it to break on hyphens in phone numbers (that is our style). Is there any way to change ID/IC behavior?

Apparently, InDesign CS3 treats the phone number as one object, regardless of the hyphens.
I assume you are on CS3, since the problem does not arise in CS2. In my quick tests, if I put a discretionary hyphen following the regular hyphen, ID allowed the phone number to break but did not double-up on the hyphens.
Option 1]
You can use GREP to search for the phone number and put a discretionary hyphen after each phone number hyphen. (I would tag the phone numbers with a character style while I was at it.)
Option 2]
If you don't like GREP, create a character style called "Phone Number"; search for the phone numbers (^9^9^9-^9^9^9-^9^9^9^9) and apply the style. Then search for a hyphen set to the style and change it to a hyphen and a discretionary hyphen.

Similar Messages

  • Grep - Discretionary hyphen and discretionary line break

    Hi,
    Trying to inset the discretionary hyphen in before the "m-dash word" and discretionary line break after the m-dash. If applied type styles with-in this text (bold & italic), before the first character of m-dash is changed in roman. Can you please look into the below screen-shots and guide to me, how to avoid this.
    Before:
    After:
    code:
    app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
    app.findChangeGrepOptions.includeFootnotes = true;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = false;
    app.findChangeGrepOptions.includeMasterPages = false;               
    app.findGrepPreferences.findWhat = "([\\l\\u]+)~_";
    app.changeGrepPreferences.changeTo = "~-$0~k~-";
    app.documents.item(0).changeGrep();

    Try this,
    app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.findWhat = "([\\l\\u]+)(?=—)";
    app.changeGrepPreferences.changeTo = "~-$0";
    app.documents.item(0).changeGrep();
    app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.findWhat = "([\\l\\u]+)~_";
    app.changeGrepPreferences.changeTo = "$0~k~-";
    app.documents.item(0).changeGrep();
    app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
    Vandy

  • Pauses in phone numbers and signature lines?

    Two basic questions:
    How do I insert a "Pause" or "Wait" character in my phone numbers. The P and W from my standard phone is no longer recognized by my Razor M.
    I use Gmail and sometimes reply via my phone - do I use a special signature account in Gmail that says "sent from my phone" or is there a more automatic method that recognizes I'm sending from phone (or tablet...).
    Thanks in advance!

        Hey there, chief.arktk!
    I'm glad you were able to get the resolution you were looking for.
    I wanted to provide the steps for anyone that may come across this instance
    http://vz.to/16bCtkL. Happy pausing!
    Tamara H.
    Follow us on Twitter @VZWSupport

  • My wife and i share the same computer to sync our phone with. All of a sudden i lost all my phone numbers and got hers. How do i get mine back. Help Please

    My wife and i share the same computer to sync our phones with. The last time i sync i lost all my phone numbers and got hers. Is there a way to get mine back. Please Help. Thanks

    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here... http://support.apple.com/kb/HT1495
    Create a New User Account for each User.
    Then Each user will have their own iTunes library..
    More Info Here >  cnettv.cnet.com/use-two-iphones-one-computerl

  • HT4623 Why on earth don't you tell people to back up contacts and photos before they update software? There was no mention of the need to back up until it was too late. I have lost hundreds of valuable phone numbers and photographs.

    Why on earth don't you tell people to back up contacts and photos before they update software? There was no mention of the need to back up until it was too late. I have lost hundreds of valuable phone numbers and photographs.

    The update process DOES back up contacts and photos, unless you interrupted the backup. The manual tells you to sync contacts to an app on your computer, and to import photos regularly to your computer. So Apple DID tell you to back up, you just didn't bother to read it.
    If you didn't sync yet (and even if you did) connect the phone to your computer, right click on its name, and choose "Restore from Backup". If there's more than one backup choose the one with a timestamp before you updated.

  • TS3048 When I press 1 I get a q and a 1.  When I press q I get a q and a 1.  This carries on all along the numbers and first line of letters. Help!!! Wireless keyboard.

    When I press 1 I get a q and a 1.  When I press q I get a q and a 1.  This carries on all along the numbers and first line of letters. Help!!! Wireless keyboard.

    https://support.mozilla.org/en-US/kb/Hyperlinks-in-Messages-Not-Working

  • I need to block some phone numbers and text messages from my iphone

    I need to block some phone numbers and text messages from my iphone

    Contact your provider and see if they have a means to do this. It can be done for a cost with AT&T.

  • I can't move my contacts ( phone numbers and email addresses) from outlook express to my 8900 phone

    i can't move my contacts ( phone numbers and email addresses) from outlook express to my 8900 new phone through the usb cable.
    i have the same contacts in both outlook and outlook express, can this help.
    can anybody help

    highland_ddmac wrote:
    I have the 8900 and when I try and synch I get the error "unable to read application data". Very, very annoying.
    Wondering why I switched from Nokia!
    Can anyone help please??
    Hi and Welcome to the Forums!
    A lot more detail is needed to understand your issue...for instance:
    Your specific BB Model
    Your specific BB OS (all 4 octets)
    Your DTM version (again, 4 octets)
    Your PC PIM version
    Your PC OS version
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • My personal ringtones are on my iPhone 5, they are attached to the correct phone numbers and play correctly when I test them on each contact.  But when I receive a call instead of the proper ringtone, it plays the generic.  What Am I not doing right?

    My personal ringtones are on my iPhone 5, they are attached to the correct phone numbers and play correctly when I test them on each contact.  But when I receive a call instead of the proper ringtone, it plays the generic.  What Am I not doing right?

    You may have to try deleting all the music from your phone (by going to Settings>General>Usage>Music, swipping All Music and tapping Delete), then sync it all back on with iTunes in order to fix this.

  • How to get i cloud to show phone numbers and not emails

    how to get i cloud to show phone numbers and not emails

    In the contacts app the information is as you have entered it.  You can include the added information you want for the contacts.  Open a contact and tap edit and add the information you want there and then tap done.  It soulds to me like Facebook friends who have email addresses only have been merged into your contacts

  • Skype phone numbers and how they work?

    ok so here is what I know. With skype you can choose the country of the phone number you want your phone number to originate from. So if I choose my number to be an Australian number any person calling me from Australia will be charged at a local rate if from the same state.
    This is my question.
    If I set up my phone number to be an Australian number, then I travel overseas to Canada and someone calls my number, what will the rate of charge be for the caller? will it still be a local call since the number is an Australian number or will it not work at all????
    And will I in return be able to call back to Australia at a local rate since my number is australian??
    Also, Im assuming I need to be connected through wi-fi for someone to call my skype account from a land line phone?

    Kristle wrote:
    On my bill there are several int/md messages with no phone numbers
    That is your phone accessing the internet, or media data.  Generally this was how older phones that accessed WAP sited reported their usage, instead of the way newer phones using the WWW report usage.

  • My wife and I want to swap her 4s for my 4 while a take a short trip out of the country.  We use the same email address for itunes but different for email.  Can we just change our phone numbers and email addresses so we get our own messages?

    My wife and I want to swap her iphone 4s for my iphone 4 while I take a short trip out of the country.  We use the same itunes account but have different email accounts.  Can we just change our phone numbers with our carrier and change email addresses on our phones so we get correct messages, with out disturbing our other apps?

    The email is simple. Just delete her email acoount on her iPhone and configure your account into the phone and then do the same for her on your phone.
    The harder issue is that to switch the cellular phone service you will need to switch the SIM cards and the two phones do not use the same size SIM card.

  • Convert rows to columns and put line break in between using t-sql

    Hi,
    I have a table with 5 columns..and my source data looks like this..
    RecordID  ID    Display          AddressType   EmailAddress
        1           1      GeneratedBy       From           
    [email protected]
        1           1      ReceivedBy         To               
    [email protected]
        1           1      ReceivedBy         To              
    [email protected]
        2           1
        3           1      GeneratedBy       From         
    [email protected]
        3           1      GeneratedBy       From          [email protected]
        3           1      ReceivedBy         To             
    [email protected]
    I need  t-sql to show output as..
    RecordID   ID    FullDisplay
       1       1     GeneratedBy  From -
    [email protected]  < CHAR(13) - Need Line Break here so that it goes to 2nd line>
                       ReceivedBy   To   - 
    [email protected] ; To -
    [email protected]
       2       1      Null
       3       1      GeneratedBy From -
    [email protected] ; From -
    [email protected]  < CHAR(13) - Need Line Break here so that it goes to 2nd line>
                      ReceivedBy  To   -
    [email protected]
    Display field will have 3 values - "GeneratedBy" , "ReceivedBy"  or Null
    AddresType field will have  3 values - "From" , "To" and Null.
    In the above example, Those 7 records belongs to ID=1.
    Whenever RecordID is same I want to show everything in one line with line breaks in between.
    In the above example RecordID=1 has 3 rows, display it as 1 row. But Whenever 'ReceivedBy' is there for same recordID put a line break before "ReceivedBy"
    create Statement:
    Create Table SampleTest
    (RecordID int null, ID int null , Dispplay varchar(20) null, AddressType varchar(6) null , EmailAddress Varchar(25) null)
    Insert Statement:
    Insert into SampleTest (RecordID ,ID,Display,AddressType,EmailAddress) values (1,1,'GeneratedBy','From','[email protected]')
    Insert into SampleTest (RecordID ,ID,Display,AddressType,EmailAddress) values (1,1,'ReceivedBy','To','[email protected]')
    Insert into SampleTest (RecordID ,ID,Display,AddressType,EmailAddress) values (1,1,'ReceivedBy','To','[email protected]')
    Insert into SampleTest (RecordID ,ID,Display,AddressType,EmailAddress) values (2,1,  Null,Null,Null)
    Insert into SampleTest (RecordID ,ID,Display,AddressType,EmailAddress) values (3,1,'GeneratedBy','From','[email protected]')
    Insert into SampleTest (RecordID ,ID,Display,AddressType,EmailAddress) values (3,1,'GeneratedBy','From','[email protected]')
    Insert into SampleTest (RecordID ,ID,Display,AddressType,EmailAddress) values (3,1,'ReceivedBy','To','[email protected]')
     Thanks!
    sql

    Try below
    drop table SampleTest
    GO
    Create Table SampleTest
    (RecordID int null, ID int null , Display varchar(20) null, AddressType varchar(6) null , EmailAddress Varchar(25) null)
    --Insert Statement:
    Insert into SampleTest (RecordID ,ID,Display,AddressType,EmailAddress) values (1,1,'GeneratedBy','From','[email protected]')
    Insert into SampleTest (RecordID ,ID,Display,AddressType,EmailAddress) values (1,1,'ReceivedBy','To','[email protected]')
    Insert into SampleTest (RecordID ,ID,Display,AddressType,EmailAddress) values (1,1,'ReceivedBy','To','[email protected]')
    Insert into SampleTest (RecordID ,ID,Display,AddressType,EmailAddress) values (2,1, Null,Null,Null)
    Insert into SampleTest (RecordID ,ID,Display,AddressType,EmailAddress) values (3,1,'GeneratedBy','From','[email protected]')
    Insert into SampleTest (RecordID ,ID,Display,AddressType,EmailAddress) values (3,1,'GeneratedBy','From','[email protected]')
    Insert into SampleTest (RecordID ,ID,Display,AddressType,EmailAddress) values (3,1,'ReceivedBy','To','[email protected]')
    with CTE1 as
    select ROW_NUMBER() over(PARTITION by RecordID ,ID,Display order by EmailAddress)rno,* From SampleTest
    ), CTE2 as (
    select RecordID ,ID,'GeneratedBy '+ STUFF(( SELECT '; From - ' + EmailAddress AS [text()]
    FROM CTE1 b
    WHERE
    a.RecordID=b.RecordID and a.ID=b.ID and b.Display = 'GeneratedBy'
    FOR XML PATH('')
    ), 1, 2, '' ) GeneratedBy,
    'ReceivedBy '+ STUFF(( SELECT '; To - ' + EmailAddress AS [text()]
    FROM CTE1 b
    WHERE
    a.RecordID=b.RecordID and a.ID=b.ID and b.Display = 'ReceivedBy'
    FOR XML PATH('')
    ), 1, 2, '' ) ReceivedBy
    From CTE1 a
    group by RecordID ,ID
    select RecordID ,ID,GeneratedBy +CHAR(13)+ ReceivedBy as FullDisplay from CTE2
    Thanks
    Saravana Kumar C

  • Why I get double phone numbers and addresses but not notes within a contact when I sync iphone 4S with Outlook 2007?

    I get double phone numbers, double addresses, but not double notes, when I sync iPhne 4S with Outlook 2007. How can I prevent it from happening?

    Yes, I removed iCloud add-on from Outlook; and uninstalled iCloud.  I then re-installed, and sync would not work (no tab for sync in Outlook either). There was no improvement.
    However, since reading your post, I have just tried signing out of icloud control panel and signing in again....and now all si working as it should.  Weird!!
    Thanks for your assistance.

  • Mixed phone numbers and names after sinc N9 and ov...

    I have problem with my contact list. After i synchonised my previous N79 with N9, everything was fine. AFter adding new contacts to the new phone i wanted to synchronise it with ovi, i did so but it made completely mess with all my contacts. I cant say if i miss any numbers but it was way worse, it has mixed up names and numbers without any sence so I realised that under name A i had a phonecontact of B and C. At some names were suddenly no phone numbers. And some of them were even doubled - like there was the same number saved under both A and B but it belonged to C. I hate it, had to rewrite all the ontact list manually along the old phone. That took me hours if anyone can imagine. Now Im not brave enough to try the sync again eventhough i need to do that... Anyone having the same problem or even better - solution?

    Try plugging your iPad into your computer and opening iTunes. Select your iPad underdevices on the left side of the screen and right click. You should be given an option torestore from a backup.
    If this option is not available to you, you can go through the Summary tab of your iPad on the right side of the screen and if you scroll down under iCloud you should get an option to restore from a previous backup, where you select the most recent backup to put on your iPad.
    Hope that helps.

Maybe you are looking for