CS3 / JS:how can compare us the elements of punctuation to the content?

Dear all,

How can we compare the elements of punctuation with the content (especially in the case of loop). I tried with the command to check the first character of each line for any punctuation (as in find Grep option) below, but no could not get the result. If any solution to compare with all elements of puntuation content in the world, it will be really helpful for us.

If (line [i].contents.substring (0.1) == "[[: punct:]]" ' ")

Kindly help.

concerning

Lionel Messi

The general format of indexOf is the following:

myString.indexOf (mySubstring)

which returns the position of the substring in the string or - 1 if the substring is not present in the string. Examples:

"abcdefg".indexOf ("bc") returns 1
"abcdefg".indexOf ('a') returns 0
"abcdefg".indexOf ("x") returns-1

> so that I have to specify all elements of punctuation to compare

It's true. A more readable version of that line I gave is the following:

punct var = "-" "([{)"
If (punct.indexOf (line [i].contents.substring (0,1)) == 0)

If you list all the punctuation marks that you can expect at the beginning of the line.

Peter

Tags: InDesign

Similar Questions

  • I need to create a table of contents in iPages but I want only one word for the title, not the line of holes. Or, how can I change the contents of the table? Thank you!

    I need to create a table of contents in iPages but I want only one word for the title, not the line of holes. Or, how can I change the contents of the table? Thank you!

    Yes, you can have a one word title, by assigning a paragraph style title to this one word. No, you cannot change the text in a Table of contents, but you can change paragraph style font attributes (line) and add for example, a head of points between the types of OCD paragraph and page numbers. No part of the table of contents will not provide hyperlinks in exported PDF documents.

    When you look up in the menu bar, you can see the word iPages, or simply Pages. There is no product of iPages.

  • How can I view the content on the screen of my iMac on a TV 50 '' screen?

    How can I see the contents of the screen of my iMac on a 50 "(non-"Smart") screen Samsung TV that I want to use as a monitor?"

    Depending on what link interfaces your TV, you would use

    some type of adapter MiniDisplay Port.

  • How can I view the contents of the .iso files?

    How can I view the contents of the .iso files?

    How can I view the contents of the .iso files?

    http://www.ehow.com/how_7307521_iso-file.html

  • How can I update the content of my application

    Hello everyone I am new to phone gap and I'm creating an app from Gallery News and events for iPhone and android using the gap app builder phone. After I design the app in adobe Dreamweaver and publish the application how can I modify the content of news and Live Gallery to the user who already download my application... Please help thanks

    You should have a backend (your own server or some 3rd party) where you can manage the new data.

    The backend should provide Web services with the data (JSON or XML).

    And then, in your application, you must use calls XHR (AJAX) for Web services to get the data, analyze, and display in your application.

  • How can you see the contents of the USB on iMac

    How can I get files on USB?

    Same way as on a PC really.

    Plug the USB and find it in the Finder under devices.

  • How can I change the content of the drop-down list window which shows after JUST click the button START

    The window appears after using the right click on the mouse. Before I had a Tech. remove a Trojan visuses the window showed just find, Explorer, Delete, now it showes such articles that take control, Google, download of virus total.etc.  So, how can I get rid of items that I don't want?

    The menu that appears when you right-click is called the "context menu", and various third-party applications can install entries here.  You have several choices regarding the removal of these entries:

    1. If you can determine what application is involved, you can see if the application has a configuration or menu options enabling to customize what appears in the context menu.

    2. If you can determine what application is involved and that you no longer want or need this app, you can uninstall it.  Praseetha K is close, but no cigar gets.  Virus Total is an online service that checks uploaded for viruses, files.  Virus Total also offers a "upload" allowing you to download suspicious files by right-clicking (see http://www.virustotal.com/advanced.html).  You can decide if you want. If this is not the case, simply uninstall it.

    3. If you are unable to determine what application is involved, or you want to keep the application but it does not offer a configuration without the context menu item, download ShellExView and you will probably be able to go to the bottom of things pretty quickly.

  • How can I access the contents of a bin full of restore something?

    I've exported several photo folders to a memory stick tonight and then removed from my laptop.  But now I must retrieve 2 files which, for some reason, are now absent from the memory stick - they came originally I checked every folder, as I moved it and I have no idea why they disappeared thereafter.  It is always 75% of the available capacity on the memory stick is not that.

    But the Recycle Bin on my desktop has only 2 deleted items in it and, using the Office to customize, I can see a full basket more but can't get that one and its content.  I guess it was full a new opened automatically.

    So, how can I get these 2 files of the full tray and then how do I make sure that the full recycle bin empty to free up space on my C drive?

    I hope you can help me get back my once in a photos of New York City to life.

    Hello

    These should help:

    Recover files from the Recycle Bin - Vista
    http://Windows.Microsoft.com/en-us/Windows-Vista/recover-files-from-the-Recycle-Bin

    Recover files from the Recycle Bin - Windows 7
    http://Windows.Microsoft.com/en-us/Windows7/recover-files-from-the-Recycle-Bin

    How to restore previous Versions of a file and the folder of Vista (Ultimate, Business and Enterprise)
    http://www.Vistax64.com/tutorials/122127-previous-versions-shadow-copy.html

    How to restore files and folders in Windows 7 with previous Versions
    http://www.SevenForums.com/tutorials/85679-previous-versions-restore-files-folders.html

    ----------------------------------------------------------------------------------------------------------------------------

    This could help you recover a file, or a previous version (all versions of Vista and Windows 7).
    http://www.ShadowExplorer.com/

    ShadowExplorer - recover lost files and folders (Vista and Windows 7)
    http://www.SevenForums.com/tutorials/132087-ShadowExplorer-recover-lost-files-folders.html

    ----------------------------------------------------------------------------------------------------------------------------

    Recuva - free - recovers files deleted from your Windows computer, Recycle Bin,
    map of the camera digital or MP3 player. And it's free!
    http://www.Piriform.com/Recuva

    Recuva - Forums - help here
    http://Forum.Piriform.com/

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • How can I get the content of a node TreeField?

    I need to keep the contents of a TreeField.

    I believe that the only way to do that is to keep the content of the tree instead of the tree itself.

    However, I can't drive how to get the content of a node.

    I found the method to get the node ID, but nothing to get the string value that contains the node.

    Any suggestions?

    Thank you.

    the objects contained in a treefield are known cookies.
    You can use http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/ui/component/TreeField.html#ge...
    to retrieve one for the node id.

  • In the Flash IDE, how can I scale the contents of a symbol without their appearance throughout the FLA?

    In the Flash IDE, I would like to scale the content of a symbol and then conversely fits a all instances of the chronology of this symbol.

    We have animations that were created to double the size of the size of the intended end-use. Of course, we can reduce bodies to 50%, but this isn't what we want to do. And here's why.

    Our use case for these animations means assign some of the contents of the symbols for performance reasons bitmap data. If we simply reduce the instances, the bitmap content is always twice as large as necessary.

    Yes, just make the symbols that only contain a bitmap image.

    Another tip, your bitmap image is either going to be recorded in the middle or top left. If it's in the Middle, you can select, Panel convert 50%, convert to bitmap, transform Panel 200%. If it is registered in the upper left corner (not sure how this would happen!), it is best to use the properties panel to the half of the width/height, convert to bitmap, set a height double width.

    Either way, in the case where you didn't know that, in one of these fields of property you can do math. Do not sit there work on which half of something is mentally, or in what position of x, it would be if it was 1234 pixels to the right. You can go on the ground and add: "/ 2" for example and all width was, it's now half that. Similarly, for the x position, you can add "1234" after the existing x value, to move that many on the right.

  • How can you access the content behind an Animate .oam file in Muse?

    I have an animation to open the doors at the bottom of a scroll of Parallax, but once the doors open, I can't click on one of the buttons in my 'room' which have been implemented in Muse. Anyone have any ideas on how to solve this problem? I use CC for both programs.

    par· Al· Lax: the effect by which the position or the direction of an object seems to be different when we look at the different positions, for example, through the viewfinder and the lens of a camera

    Hello

    Where .oam file is placed above the content, then I'm afraid user would not be able to click on the content that lies behind the animation.

    There are two solutions of workaround that you have. Either have content (buttons behind the open door) placed inside the Animation itself, so that users can click on it.

    Or you can have transparent Rectangles (boxes) placed in front of the animation and apply links. It should appear as behind the animation buttons are clickable, however, these transparent boxes that would be clickable and are placed above the buttons and animation (on the top layer).

    I hope this helps.

    Kind regards
    Sachin

  • When I use hotmail to respond to an email, the content of the mail I answer not included. How can I keep the content of the email when I forward or reply to mail?

    How to keep the content of the email (hotmail) in firefox when in front or answer email. This is not the case when I use Internet Explorer.

    See this:
    https://support.Mozilla.com/en-us/KB/blank+messages+in+Hotmail

  • How can I change the contents of a text field in a PDF form with a defined variable?

    Hi all!

    First time poster and getting quite frustrated trying to understand this issue. Here's the scenario: I use Acrobat Pro 10 to create what is essentially a form of giant order. I have designed the document in InDesign, defined the various buttons and other whatnot and then it exported to Acrobat to continue the construction of the form.

    I have a radio button group called 'conference_opportunities' that contains different options at different prices, so they are all the same, but have different values (so that they belong to the same group and only one can be selected at a time).

    What I've done is created a 'MouseDown' event on the button that sets a variable called 'ConferenceOpportunity', which is equivalent to the title of the option they pick. Then, I want to take this variable and display in a text box called "Conference_Option". I use a variable because my radio buttons values are actual prices of the option they pick, so I can't set the value as the title of the option.

    If its an array of boxes and option at the bottom of the page, there is the Option that they selected, the quantity (which can change) and value (in dollars)

    I also then want to display this variable at the end of the document as a kind of summary of what they have chosen to buy as well, but I guess it's the same code.

    I'm not an expert at all Javascript, so code snippets would help greatly. I looked on the Document from Adobe on the SDK and API and have not been able to find a solution. I also turned to the Almighty google and still no luck.

    Any help would be greatly appreciated!

    Thank you all

    Right now, you have to do is use this variable to the value property of your text field... Then add this at the end of your code:

    this.getField("Conference_Option").value = ConferenceOpportunity;

    Also, I would use not MouseDown, MouseUp.

  • How can I change the content in the source code

    Hello

    I did an emailer in eloqua with his choice in the generation, but its layout does not look good and now I want to modify its source code, but I'm not able to see its source anywhere. Can someone tell me how I can do this.

    Thanks and greetings

    Angela

    Hello, you just click right in the text box, and you will see the option to edit the source code

    Terry

  • How can I change the contents of the 'most visited' in the Menu bar

    Once Firefox stores 10 entries in "Most visited", there seems to be no way to change these entries (e.g. the installation program "Most visited" while it contains links to Web sites that I want under "Most visited").

    When you search Firefox HELP 'most visited' you don't even no matter what success there.

    You don't control that made the request, you can change the query, you can prefer 20 hits instead. The search for the address bar with the "AwesomeBar" feature might be more to your liking. In any case do not remove the entries in "Most visited" as you would remove real history

    Most visited - bookmark smart folders - recently visited (history)

    https://support.Mozilla.com/questions/831554
    https://support.Mozilla.com/questions/858163#answer-225990
    After the creation of the bookmark to a "smart folder", you must, restart Firefox, after which the bookmark looks like a folder and will work properly.
    related: https://support.mozilla.com/kb/Smart%20Bookmarks%20folders (marked old)
    related: http://kb.mozillazine.org/Viewing_the_browsing_history_-_Firefox

    AwesomeBar feature allows you to search your history and bookmarks in the location bar to (forward) press "Enter". See the address bar search (internal - full Auto)

    See picture of some: I use the AwsomeBar internal search function-related configuration parameters.

Maybe you are looking for