Find words in a selection point

I'm starting to develop a javascript code that will allow me to place the words in the document dictionary and am struggling to understand the relationship between the word InDesign object and method of words and if not, how I could only find the words in a text to the level of the selection object.

Select 'grapes' run

App.Selection.constructor.Name returns "word".

App.Selection.contents returns "grapes."

Select "grapes."

App.Selection.constructor.Name returns "Text".

App.Selection.Words [1] .silence returns 'grape', no grapes.

Any sign of punctuation that is attached to a word in one non-space selection seem to be regarded as part of the word in the collection of words.

Short of resorting to the regular expression, is far only returns the word?

TIA

See http://www.indiscripts.com/post/2011/09/what-exactly-is-a-word

Don't short no (as far as I KNOW).

Trevor

Tags: InDesign

Similar Questions

  • Just updated to Sierra and updated Pages at the same time. Now when I try to select a line of text I find myself with an insertion point where I stopped by selecting

    Today, I updated for Sierra and updated to the latest version of the Pages. Now I find that I am more able to select a line of text. When I try to do, I find myself with an insertion point where I stopped by selecting, but nothing is selected. This is a bug in the new version of pages or get my wrong settings?

    You use a Wacom tablet by chance?

    Solution: Press the shift key, just before stop selection. And Yes, that sounds like trouble in the Sierra.

  • Disappearance of selection points

    In some of my documents, every selection suddenly disappears and I can't get back them. In other words, when you use the direct Selection tool, for example, (open arrow a) there is no indication that a selected path is actually selected. And I do not see where the selection points are, so I can't select them. I looked in all the menus and preferences and can't find anything that makes them reappear.

    All solutions?

    View > show edges solve the problem?

  • The blue selection point is no longer visible in the layer menu... It is more difficult to select the right object in the layer menu!

    The blue selection point is no longer visible. I have attached a screenshot with the place were the point should appear, but it doesn't.

    I don't know if I pressed any shortcut, maybe I did, but I can't find a way to get the blue dot!Bildschirmfoto 2015-11-14 um 15.17.40.png

    See replace your preferences

  • When I open a new finder window there's 3-point mark at the beginning of the page

    When open a new finder window there are three points of mark at the top of the window.  The window seems to work ok but think it must be a kind of first cause and would like some guidance on how the issue barely draw.

    Thank you

    Daniel

    Here is the alias is more recognized.

    You can drag these out of the Finder window using the key command

  • Where can I find the "recent pages" selection that used to be next door buttons 'Back-Forward "?

    Where can I find the "recent pages" selection that used to be next door buttons 'Back-Forward "?

    Make a right click the back / front button.

  • I saw in the previous discussion, that InDesign in CC2015 police problem has been resolved by setting to "search the entire font name" but I can't find any place to select this setting. Pleae advise!

    I saw in the previous discussion, that InDesign in CC2015 police problem has been resolved by setting to "search the entire font name" but I can't find any place to select this setting. Pleae advise!

    Look at the top of this thread:

    Cannot access fonts with InDesign CC 2015

  • After I converted the PDF to Word how to select some pages to save as a new document? Thank you

    After I converted the PDF to Word how to select some pages to save as a new document? Thank you

    You said you have a Word file and use certain pages in the file to create a new document.

    Use Word to create a new Word file that has the pages you want for the original Word file.

    You now have a "new document" desired pages.

    With Acrobat Standard or Pro installed, you can create a 'new document' PDF.

    If you don't have Acrobat Standard or Pro, or a subscription to an Adobe online service that can create PDFS from MS Word, you can use the Microsoft process to create PDF that comes with MS Word.

    Be well...

  • What does it mean when the Selection tool in illustrator has a small white box or black next to the pointer?  I did a clipping of an object mask and now can't move and selection pointer has small box beside him.  Yet to learn...

    What does it mean when the Selection tool in illustrator has a small white box or black next to the pointer?  I did a clipping of an object mask and now can't move and selection pointer has small box beside him.  Yet to learn...

    When it is over an unselected path or shape (as in, something that you can select if you click right here), it shows a black box. When you're not selected anchor, it shows a white box.

  • How to find text with a specific point size objects

    Can I somehow fine-tune the selection point size xx and smaller? I would like to explain these objects later.

    var alltxtObjsBelow10 =  app.activeDocument.stories.everyItem() //...with point size smaller than 10pts
    alltxtObjsBelow10.createOutlines();
    

    Try this.

    var doc = app.activeDocument;

    var texts = doc.stories.everyItem ().textStyleRanges.everyItem () .getElements ();

    for (var i = 0; i)<>

    {

    If (texts [i] .pointSize<>

    {

    texts [i] .createOutlines ();

    }

    }

    Kind regards

    Cognet

  • I have trouble finding the Magic Wand selection tool

    I have the Photoshop creative cloud and I looked everywhere and I can't find the Magic Wand selection tool.

    Some tools are nested in a location unique icon it a small triangles lower-right corner in this case. Make a right-click on the icon will reveal the other icons

  • Spellchecker underlines the words, has a selected dictionary, but offers no correct spelling suggestions.

    Like what is said. Firefox 4 will highlight misspelled words, a dictionary is selected, check the spelling is checked only when a right click on the misspelled word the only options are the same by clicking on the box without the misspelled words:

    Cancel
    Cup
    copy
    dough
    delete
    Select all
    check the spelling (which is checked)
    Translation
    Information page
    (and four elements extension - for noscript, colorzilla, webdeveloper and a downloadhelper)

    He worked before Firefox 4 - she stopped working as soon as the new version has been installed.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the Add-ons is the cause of the problem (switch to the DEFAULT theme: Tools > Modules > appearance/themes).

    • Makes no changes on the start safe mode window.

    See:

    If this does not work in mode without failure, then disable all extensions and then try to find out who is the cause by allowing both the problem reappears.

    • Choose "Disable all add-ons" on issues to troubleshoot Firefox in Safe Mode to set window to disable all extensions.
    • Close and restart Firefox after each change through "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')
  • Text selection pointer is not visible in Windows Vista

    Original title: Mr

    Recently, the "Select text" pointer has become virtually invisible, because it became almost exactly the same color as the background. It becomes visible when it passes over the text on the screen. The problem affects only the pointer "Select text": other pointers such as "select Normal ' are not affected and remain clearly visible. The pointer only "disappears" when you move the cursor on a 'text' of the screen area.

    I have no idea what has caused this and cannot find how to remedy. Can someone tell me how to solve this please?

    Try to change the system pointer in the mouse control panel:
    Go to control panel-> double click on the mouse-> in the mouse properties box, click on on the "Pointers" tab-> sub select "Schéma" a different pattern and check, you can then return to the previous regime if you want.

  • Find Word documents hidden in Windows 7

    My Word documents are appearing in recent Documents, but they are not in the document library. Also, when I try to search all files on computer .docx, nothing comes back. However, if I open Word, I can see the documents in my list of shortcuts. How can I recover my Word documents? Note: I recently had to restore to an earlier point. I read that this would not affect my documents, however.

    Using McAfee? Maybe that's your problem.
     
    There were many posts that seem to say that McAfee or one of its updates caused files become hidden
     
    See this from McAfee
     
    http://service.McAfee.com/faqdocument.aspx?ID=TS101228
     
    Go to the control panel and select Folder Options.
     
    Select show.
     
    Select the files, folders and drives.
     
    Documents should now be visible.
     
    You can permanently display by accessing the properties of each documents

  • Try to find all THE objects that point to a column...

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE Production 11.2.0.3.0
    AMT for Solaris: 11.2.0.3.0 - Production Version
    NLSRTL Version 11.2.0.3.0 - Production



    I have several patterns, all that have tons of objects that point to a column in a table.
    I tried looking at v$ sqltext and v$ sqlarea, but it does not appear as expected.

    There is a view that I can watch that will show me all the objects that relate to a single column?

    my situation. Had to change the structure of data in this one column. Changed the default value of a Y a l I have packages, functions, triggers, etc... dealing with this single column. I make sure I have go through EACH of them and modify them to reflect the change in the column of the table. And still, it extends over several patterns that point to it.

    I can't forget all the objects. Is there any one place to find it?

    Thank you.

    Use the mode - DBA_DEPENDENCIES

    select * from dba_dependencies
    where type= 'TABLE'
    and name = '';
    

    Another gross way...

    select * from all_source
    where lower(text) like lower('%%')
    group by owner,name,type;
    

    But, this will not search in the views & MView queries.

    HTH
    Vanessa B.

    Published by: Vanessa B on October 15, 2012 23:09
    -added

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    

Maybe you are looking for