Underlining just the word(s) in selected text string

How do I get InDesign 2 or 3 to underline just the individual words selected and NOT the spaces?
We work with legal documents and we have to style them exactly the way the judge has indicated (some underline everything, some just the words). This can become a time consuming endeavor when there are multi-worded court cases cited and sometimes over one hundred cites within one document.
This was quick and easy under Quark, either from the control palette (click of a button) or the keyboard shortcut (Apple + shift + W). This shortcut closes the document in InDesign (even though the keyboard shortcut for that is supposed to be just Apple + W, both do the same thing). I could reassign the shortcut if I could find the action to link it too (but can't find the action even mentioned in the Help or the forums).
Have checked under the Underline Options dialog, but there isn't anything there that would solve this problem.
If there isn't a direct way to do it in InDesign, is there some sort of plug-in available that anyone knows about?
Thanks in advance.
LRP2

I don't believe there's a direct way to do it in Indesign. There are some shortcuts that help.
In CS4 you can set up a GREP search to find Words, set Change Format to change "basic character format" to include underline, then do a replace all in selection. You can set up keyboard shortcuts for some of this, but a script would be even more convenient.
Unfortunately, with the normal "Find" function, the "character" wildcard also seems to find spaces, and there isn't a "whole word" wildcard, so this won't work in CS2 or CS3.
The best I can think of at the moment is: Underline the whole text. Set Find What to find spaces (^w), leave Change To blank but in the Change Format box, turn off underline on Basic Character Formatting. Close the dialog box. Then, placing the cursor at the beginning, press shift-F3 (the standard shortcut for "Replace with Change To text and find next") for each space in the sentence. You can zip through the section fairly quickly.
This is really a job for scripting -- the script should change all characters in the selection to underline, then change all white space characters in the selection back to non-underline. Scripts can be assigned a keyboard shortcut for ultimate convenience.
Rodney

Similar Messages

  • TS2755 How do I turn off that lady's voice when I text?  She says the words that I'm texting.

    How do I turn off that lady's voice when I text?  She says the words that I'm texting.

    mininger wrote:
    Do you have iphone 6?  I do not have a auto voice text off.  Just VoiceOver.  I turned that off but it does not solve the problem.
    I highly doubt that ElShegal had an iPhone 6 back in August of 2013.

  • Change the font of a selected text

    First of all sorry for my english because i'm spanish. I'm doing a simple text editor 100% compatible with all the web browsers. The editor must to have the option of change the font of a selected text. I don't know how to do this. Thank you.

    you should look at examples that are provided with swing package, there are some simple texteditors, and then of course you should start thinking in AWT to make your editor compatible with all browsers as you wanted...
    if you want to use TextArea in your editor then you must remember that in one textarea you can use only one Font at the time... as well as you may not use different colors for different parts of text, but with such textarea you may create thing like Notepad in windows.
    L.

  • How can I get the tab key to select text fields only?

    Since upgrading to Firefox 4 on Windows, the tab key functions differently. How do I change it so that it only selects text input fields?

    The answer is:  The bug is in the UI.  Speech recognition was enabled, by default it uses the bare escape key as a "mic on" indicator, and it does not leave any trace in the keybord configuration.  So that is the bug.  It needs to leave a trace there, a la: "X Listen-for-voice-command  ^" under Mission Control.

  • How to find the records using contains with the word like this 'some text-some text'?

    Hi,
    How to find the records using the full text contains keyword and that column contains ‘some text-some text’
    In the above some text can be anything.
    Does anybody know please let me know.
    Thanks,

    Hello,
    You can try to create a Full Text Index on the table and use CONTAINS() to get the record which contains the specify words.
    For example:
    SELECT * FROM TABLE WHERE CONTAINS(column_name, 'some text')
    Reference:
    Full-Text Search (SQL Server)
    Creating Full Text Catalog and Full Text Search
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Parsing the word file using oracle text having tables within it............

    Hi,
    I was going through this document.Actually I am going to implement something like full text search functionality in our system.
    We get the info as .doc file.
    Earlier what we used to do is, we used to parse the file and store it into the database and then searched using PL/SQL.
    But what I understand from this article that this can be done using oracle text also.
    One concern is that whether the oracle text is able to parse the .doc file having tables embedded within it.
    Please let me know about this.(Whether oracle text will be able to parse the files having tables embedded within it).
    I am attaching an example file for this.
    Please let me know about this as early as possible.

    Yes Oracle Text have this capability. Use AUTO_FILTER or USER_FILTER to create index

  • Not able to transport selection texts in the program to QAS!

    Hello All:
           I have a query program that is created from SAP standard program and when I moved the program to QAS the program moved fine but selection texts are not moving! I created a seperate transport for those but still not able to!! Could anyone please give me any information?
    Thanks.
    Mithun

    Hello Mithun,
                            In a seperate transport add only the object type of selection text and add your selection test objects in se03->Object direct entries -> Change object direct entries.
    Thanks,
    Greetson

  • Renaming the Selection Text of LDB PCH

    Hi -
    Can anyone suggest a way to Rename the Standard Selection Screen Variable Name ( Selection Text in a Standard Selection Screen ) of a LDB ( PCH )to a custom one ?
    Eg.  There is a need to change the Object ID ( PCHOBJID - Selection Text ) to " Org. Unit " .
    Thanks,
    Mullai

    Hi,
    You can do that, suppress that field whatever you are getting from the standard LDB and define a selection field in your custom program witht he same name and use your own selection text and check,
    This should work for you.
    Thanks,
    Mahesh.

  • Can you change the wording of a text that someone sent you ?

    my sister sent someone a text , they in turn showed me on their phone with her name/number at the top of the feed  to prove she said something to this person about this certain subject . She is denying everything in this text and said he altered it to show me what he wanted me to see . Can you change the wording on a text sent from someone in their feed with their name/number at the top of the feed? Does this make sense ? What I do know is , you can copy and paste and change the wording when sending that text to someone else , but he showed me his own phone with these incriminating texts.

    No you can't

  • How can i Change the Size of the selected text in JTextPane using ConboBox

    plzz help...
    How can i Change the Size of the selected text in JTextPane using ConboBox ???
    i m using if(cb.getSelectedItem=="small")
    cb.setAction(new StyledEditorKit.FontSizeAction("double click", 12);)
    if(cb.getSelectedItem=="medium")
    cb.setAction(new StyledEditorKit.FontSizeAction("double click", 14);)
    if(cb.getSelectedItem=="large")
    cb.setAction(new StyledEditorKit.FontSizeAction("double click", 16);)
    this code is not working properly according to the action i set on comboBox.
    when i select medium the previously set action on comboBox works like small action work.
    when i select large the medium action starts .
    means its not working in correct time when i select item of combox n action of that item is not working at that time..
    plzz plzz help me:(

    Action action1 = new StyledEditorKit.FontSizeAction(
    "double click", 12);
    Action action2 = new StyledEditorKit.FontSizeAction(
    "double click", 14);
    Action action3 = new StyledEditorKit.FontSizeAction(
    "double click", 18);
    s2 = (String) cb7.getSelectedItem();
    if (s2.equals("Small")) {
    cb7.setAction(action1);
    e1.setSource(cb7);
    } else
    if (s2.equals("Medium")) {
    cb7.setAction(action2);
    e1.setSource(cb7);
    } else if (s2.equals("Large")) {
    cb7.setAction(action3);
    // e1.setSource(cb7);
    when i chooze any combobox item then according to that item i set the Action on ComboBox but that action is not working properly on the selected text in the JTextPane..means selected text in JText Pane is not changes its Size according to the comboBox selected ITEM.
    PLZ plzzzzzzzzzz help me:((.i will be thankfull to u.

  • ComboBox Problem to change the size of selected text in JTextPane.

    hi 2 all!
    I have a problem in combo box actions, when i change the item in the combo its set is not set at that time but that action is performed when next action is taken, i have used combobox.setAction(new StyledEditorKit.FontSizeAction(" click", 12);) command to set the size of the selected text
    Plz suggest the solution also if possible,plz provide some code for this
    Action action1 = new StyledEditorKit.FontSizeAction(
                                                 "double click", 12);
                                       Action action2 = new StyledEditorKit.FontSizeAction(
                                                 "double click", 14);
                                       Action action3 = new StyledEditorKit.FontSizeAction(
                                                 "double click", 18);
    s2 = (String) cb7.getSelectedItem();
                                       if (s2.equals("Small")) {
                                            cb7.setAction(action1);
                                            e1.setSource(cb7);
                                                      } else
                                       if (s2.equals("Medium")) {
                                            cb7.setAction(action2);
                                            e1.setSource(cb7);
                                                                          } else if (s2.equals("Large")) {
                                            cb7.setAction(action3);
                                            // e1.setSource(cb7);
    when i chooze any combobox item then according to that item i set the Action on ComboBox but that action is not working properly on the selected text in the JTextPane..means selected text in JText Pane is not changes its Size according to the comboBox selected ITEM.
    PLZ plzzzzzzzzzz help me:((.i will be thankfull to u.
    thanx in advance..

    this code is not working properly according to the action i set on comboBox.Thats correct, the setAction() method is used to invoke an existing Action on the combo box, not create a new Action.
    What you need to do is have a single action that uses the information from the item that was selected to build a dynamic Action to change the font. Something like:
    public void actionPerformed(ActionEvent e)
         JComboBox comboBox = (JComboBox)e.getSource();
         int fontSize = Integer.parseInt( comboBox.getSelectedItem().toString() );
         Action fontAction = new StyledEditorKit.FontSizeAction("size", fontSize);
         fontAction.actionPerformed(null);
    }

  • Selecting Text

    When selecting text in a PDF to copy, the tool selects way more than what i am trying to select. Anyone know how to fix this? I just want to select the specific text i am targeting it's almost like the tool thinks the font size is massive or something and that's why it is selecting the way it does...

    On the Centro, you can select text one of two ways (that I have figured out...it depends on what application you are in) without the stylus:
    In VersaMail, push the "Function" key (the solid white key to the left of the Z on the keyboard), and while holding it down use the 5-way navigator pad (up-down) to highlight phrases or sentences, or (left-right) to highlight words.  It does not let you select more than just one word or phrase, depending on the sentence structure.  In other words, you can't continually press the nav pad to select an ongoing amount...just one word or sentence/phrase at a time.
    In Documents To Go, instead of the Function key, you press the "Shift" key (the up arrow to the left of the 0 ), and then the nav pad.  But here, it's much more useful, and you can select unlimited text going in any direction (up, down, left or right).
    Hope the Treo 680 works in a similar fashion.
    Post relates to: None
    smkranz
    I am a volunteer, and not an HP employee.
    Palm OS ∙ webOS ∙ Android

  • [JS, CS3] Need help changing tabStop positions of selected text

    Hi all,
    I am writing a script to nudge the tabStop positions of selected text by one point at a time. Sometimes it will be only a tab character selected, and other times it could be several in the paragraph or maybe even the whole story. The problem I am encountering is that when I reference the tabStops as app.selection[0].tabStops it includes ALL the tabStops in the paragraph and NOT just the selected ones. Is there a way to get just the selected tabStops and add a point to their positions? It must be that my referencing is flawed. Thanks for any help.
    Regards,
    Len Swierski

    Hi Len,
    That's not a bad approach, but remember that there may be more tab characters than there are tab stops. I was thinking of getting the location of the selected tab stop relative to the left edge of the text frame (or column, if you're working with multi-column frames) and then comparing it to the location of the tab stop. But I think your approach will work just as well and be quicker.
    Also, remember that when you start moving tab stops around, the index of the tab stop within the tab stops collection can change. If you have tab stop A at 12pt and tab stop B at 16pt, then tab stop A will be item(0) and B will be item (1). But if you move A to 24pt, A will become item(1) and B will be item(0). The index of the tab stop is relative to its location on the tab ruler.
    Thanks,
    Ole

  • Shell cmd to take selected text as stdin

    I'm trying to find a utility that I can use on a shell command line to
    take selected text in any CDE/Solaris as stdin and just copy to stdout. What API can I use if I write this in java?
    Any easier way to pipe selected window text into a program (e.g. lp)?
    There used to be a get_selection command in Sun4, but it doesn't work in Sun5.
    -willy
    get_selection | lp

    Ok, let me try this again.
    I have a CDE windowing system running. On one of the windows, I simply select
    text. It could be a shell window, a textedit window or whatever.
    The old sun4 get_selection solution did not require pasting into the clipboard.
    If I use cat in the way the responder suggests, then I need to copy and paste into the shell window as input to cat filling up the shell window unnecessarily. The window buffer may be limited which could cause overflow of desired lines.
    Simply by selecting the text (which is now highlighted), get_selection would use that text as it's stdin so I can pipe it to any other program such as lp or save it in a file, e.g. get_selection > file.txt or get_selection | lp.
    Having to juggle a temporary file is extra steps.
    This is so basic, I am surprised it is missing from the current Sun offerings.
    Also I tried to find the best Forum for user interface questions and to my surprise, there were none I could find. This forum was my best guess. Any other forum suggestions for this kind of question.
    I didn't have the source for get_selection and it doesn't work in solaris 7.
    I also searched for the API to access the selected text (the same text that 'copy' operates on), but couldn't locate it for use in my own program.
    thanks for the responses so far.

  • How to select text from a webpage

    hi. i have firefox for my n900. i would like to know how to select some text from a webpage so i can copy and paste it. thanks for the help. i couldn't it anywhere.

    First tap where you want the selection to start. (It might help to zoom in as far as possible first. You can do this using the volume buttons in the newly-released Firefox 1.1rc1.) Then hold the Shift key while pressing the arrow keys on the N900 keyboard to select text.
    Note: We are aware that this is not a very user-friendly way to select text, and we hope to include a better design in a future version of mobile Firefox.

Maybe you are looking for