Help about count character number in a text frame

Hi, all
i have a question about how to get the number of character in a text frame. In fact the problem is if there is a table or an image in the text frame, the number of character includes the text in the table.
Can somebody tell me how to count just the number of character of the text .
Thanks in advance!!

Hi! All
On the top of the Toolbox of INDesign CS3, there are two arrows <>, when one clicks it, it will either
1. rearrange all buttons in to one column or from one column to two columns
2. It will change it to horizontal if it is in vertical status.
What are that two arrows called? I mean what name they are. Thanks
Regards,
Z

Similar Messages

  • [JS][CC] How can I get the last visible character in an overflowed Text Frame?

    Hello
    I'm new in InDesign scripting in javascript. I would like to know if there is a way to get the position of the last character in a Text Frame that is overflowed? I need this because I want to calculate how many characters are hidden (overflowing text) via script.
    I've searched in the forums about this but what I find is always a script for alerting if there's overset text or not.
    I'd really appreciate any help!

    Well, let's say that myFrame is an overflowing text frame.
    So, the last character in that frame would be
    myFrame.characters[-1];
    To calculate the number of overflowing characters, select the
    overflowing text frame, and run this script:
    myFrame = app.selection[0];
    myParentStory = myFrame.parentStory;
    alert("Number of overflowing characters is
    "+myParentStory.characters.itemByRange(myFrame.characters[-1],
    myParentStory.characters[-1]).length-1);
    Ariel

  • Help on counter (Sequence number generation)

    Hi all,
    Need to ask smething about the counter to generate the sequence numbers and pass it to the target field.
    If we use the Global containers, then say if the app server goes down, the current count will also vanish. Am I correct?
    So thats the case, then we should use the DB lookup for the same?
    Also, the INDEX function in the Statistics part in the GUI of Message Mapping, how much that is helpful?
    Respond back at the earliest possible.
    Thanks in advance.
    Neetesh

    Hi,
    just one point about your sentence: <i>If we use the Global containers, then say if the app server goes down, the current count will also vanish. Am I correct?</i>
    For me you are wrong, if your application server shut down during your mapping execution, then you will <b>NOT</b> have an inbound message for your target system, because your system is stopped. And you will have a red flag inside SXI_MONITOR.
    Mickael
    one question: what is the direction/sense of your flow? "XI -> ZZ" or "ZZ -> XI" ?
    Message was edited by: Mickael Huchet

  • Pls Help about counting the lines of the file in java

    private int GrepPBArequestLog(String STRexpression) throws IOException
    int totalnum = 0;
    try {
    String[] cmd = {"grep", "-ic", STRexpression, src};
    System.out.println("grep, cmd " STRexpression" "+src);
    Process grepProc = Runtime.getRuntime().exec(cmd);
    String line = "";
    BufferedReader br = new BufferedReader(new InputStreamReader(grepProc.getInputStream()));
    line = br.readLine();
    System.out.println("read: "+line);
    while (line != null)
    System.out.println("Line: "+line);
    line = line.substring(line.indexOf(":") + 1, line.length());
    System.out.println("Substring: "+line);
    try
    int temp = Integer.parseInt(line);
    totalnum = totalnum + temp;
    catch(NumberFormatException e)
    System.out.println("String: "+line);
    System.out.println("NumberFormatException Occured"+e.getMessage());
    }//end while
    the output is:
    service No: 209
    Wapdate: 07/Jul/2003
    Went inside: GrepPBArequestLog
    grep cmd .*07/Jul/2003.*GET.*209.* /var/log/httpd/access_log*
    Line:
    read: null
    totalnum: 0
    wap 07/Jul/2003:
    wap 209:
    total hits 209: 0
    +++++++++++++++++++++++++++++++++
    the read: should not be null because there is a number of lines and
    totalnum shouldn't be 0.

    You don't want to simply:
    import java.io.*;
    public class CountEm {
      private static BufferedReader br;
      private static int count;
      private static String fileName, record;
      public static void main(String[] argv) {
        switch(argv.length) {
          case 1:  { fileName = argv[0]; break; }
          default: { System.out.println("Usage: java CountEm [filename]"); System.exit(-1); }
        try { countEm(); }
        catch(IOException ioe) { System.out.println("ERROR doing countEm()\n"+ioe); }
        finally { System.out.println("Count: "+count); }
      public static void countEm()  throws IOException {
        br = new BufferedReader(new FileReader(fileName));
        while ( ( record = br.readLine() ) != null ) { count++; }
    }~Bill

  • How to make a text variable (running header - character) resize a text frame?

    I have successfully been able to get a metadata text variable to auto-resize a text frame, but when I change the text variable to a running header-character/paragraph variable, the text frame does not resize - in fact it gets smaller and squashes the text.
    Surely if Indesign can handle one kind of variable it should handle another??
    Please help!

    Thanks all.
    Will- I tried adding another character to the text box but this made no difference.
    Eugene- I'm trying to avoid the purchase of any 3rd party plugins due to budget constraints.
    I realised that all I needed to do was use a wide paragraph rule to emulate a box behind the text, and make the text box long enough to hold all possible variables.
    One other issue has now cropped up, the running header (character) only grabs the text up to the first return, but I need it to grab all text formatted with the Character Style (2-3 lines max).
    I require a forced line break in the title (where the header is being pulled from) as it has a paragraph rule style attached, requiring a full return for each line of the title.
    Any ideas?

  • Divide chracters in text frame

    Dear All,
    Hoping my message find you well,
    I'm sending this messgae regarding this link : http://forums.adobe.com/message/4001567
    Just need a favor with all my respect to you and i think you will not let me down
    asking u for 2 script to divide characters in the textbox like the following:
    1st : (TEXT FRAME) : Each letter alone and delete the space character .. with out moving any character from it's position
    2nd : (TEXT FRAME) : Each word alone and keep the space character
    "both in multiple text frame"
    and I would be really appreciate you

    Hi bro just remind you

  • Help to count number of words and time it

    Hi,
    I need help in inputting a text file using a file browser into a JTextArea and then count the number of occurance of each words in the file and display the time it takes in a JTextField.
    Right now I am able to come up with the idea of creating an Array to list all the words but I am still unable to count them. And by extending an abstract class to create the array class. Below is attached my abstract class.
    import java.io.*;
    import java.util.Observable;
    import java.util.StringTokenizer;
    public abstract class AbstractWordCounter extends Observable
         /** Amount of time required to count words in the most recently read file. */
         protected long readTime;
         /** DELIMETERS used in this WordCounter */
         protected String DELIMETERS;
         /** By default, any AbstractWordCounter will have is delimeters set to any non-letter ASCII character */
         public AbstractWordCounter()
              this.readTime = -1;
              DELIMETERS = "";
              // Add any non-letter ASCII character to the list of tokens.
              for(int i = 0; i < 256; i++)
                   if( !Character.isLetter( (char)i  ) )
                        DELIMETERS += Character.toString( (char)i);
         /** Get the delimeters used in this WordCounter */
         public String getDelimeters()
              return DELIMETERS;
         /** Change the delimeters used in this WordCounter
          * @param newDelimeters the new delimeters to be used
         public void setDelimeters(String newDelimeters)
              DELIMETERS = newDelimeters;
          *@return    The number of unique words in this WordCountItem object
         public abstract int getSize();
         /** @return  The total number of words counted by this WordCounter */
         public abstract int getTotalNumWords();
         /** Add a String to this WordCounter
          * @param s the String s is converted to lower-case.  If the lower-case String is already in the list, it's count is
          *        incremented.  Otherwise it is added to the list and its count is set to 1.
         public abstract void add(String s);
          * Get the ith WordCountItem
          *@param  i  must be between 0 and size - 1 (inclusive)
          *@return    The WordCountItem stored at the ith location
         public abstract WordCountItem getWordCountItem(int i);
          *  Clear this WordCounter.  After this method runs, this.size == 0.
         public abstract void clearCount();
         /** @return The amount of time (in milliseconds) that was required to read the most recent file */
         public long getReadTime()
              return this.readTime;
          *  Reads the file.  Converts each word in the file to lower case and adds it to this
          *  AbstractWordCounter.  The AbstractWordCounter is cleared before reading the new file.
          *  The time required to read the file and count the words is recorded.
          *@param  fileName  file to be opened.
          *@throws FileNotFoundException
         public final void readFile(String fileName) throws FileNotFoundException
              // Clear this AbstractWordCounter.  Open the file and count the words in the file.
    }Then the time I have come up so far is in the class that extends the abstract class above and the code is as:
    public long getReadTime()
              return this.readTime;
         }and I have a hard time to actually display this in a JTextField as it says non-static cannot be applied to a static content and if I change the method into static, another error of overiding the abstract occurs...
    I am totally lost for these errors. And I am still unable to create a file browser to find a file. For now I just write a complete path to open the file.
    would someone could point me the right direction for this problem... Thanks in advance

    Crosspost: http://forum.java.sun.com/thread.jsp?forum=31&thread=521763&tstart=0&trange=15

  • How to count the number of occurences of a character

    hi
    wat command is used to count the number of occurences of a charcter in a line?
    i have to count the number of '.' in a line

    FIND
    Searches for patterns.
    Syntax
    FIND <p> IN [SECTION OFFSET <off> LENGTH <len> OF] <text>
                [IGNORING CASE|RESPECTING CASE]
                [IN BYTE MODE|IN CHARACTER MODE]
                [MATCH OFFSET <o>] [MATCH LENGTH <l>].
    The system searches the field <text> for the pattern <p>. The SECTION OFFSET <off> LENGTH <len> OF addition tells the system to search only from the <off> position in the length <len>. IGNORING CASE or RESPECTING CASE (default) specifies whether the search is to be case-sensitive. In Unicode programs, you must specify whether the statement is a character or byte operation, using the IN BYTE MODE or IN CHARACTER MODE (default) additions. The MATCH OFFSET and MATCH LENGTH additions set the offset of the first occurrence and length of the search string in the fields <p> and <l>.

  • Unable count number of sent  text sms

    Hi. i am using imeesage in IPHONE 4s . But I am unable count number of sent  text sms . Is there any way to count this.I hav tried to download sms coutner also but no use of this application .
    Thanks

    Yes, there is another way you can calculate it using textHeight. Here is an example:
    var myFormat:TextFormat = new TextFormat();
    myFormat.size = 16;
    var myText:TextField = new TextField();
    myText.multiline = true;
    myText.wordWrap = true;
    myText.defaultTextFormat = myFormat;
    myText.text = "This is my text. This is my text. This is my text. This is my text. This is my text.";
    addChild(myText);
    // This formula gives you your answer.
    trace(myText.textHeight/Number(myFormat.size));
    You will divide myText.textHeight which is the height of your text in the box, by the size of the font.
    In this case there are 5 lines, so myText.textHeight returns 80, and myFormat.size is 16. So 80/16
    is 5. Remember to convert myFormat.size to a Number, otherwise it won't work.
    Hope this helps.

  • URGENT HELP NEEDED: counting number of particles from image

    this image on the left is showing particles
    hello i want to create a small VI that can count number of particles from a image that i load up. please see the attached image of particles and the VI printshot.
    I have used the tutorial "counting number of particles" but still the above VI does not work. it shows the number of particles = 1.. I do not know why it is doing so??
    I am not an expert in Labview so please can someone tell me where the problem is. sorry i could not attach the VI file itself but i have given an image of it..
    after anyone has solved this problem, i have to create a live system that will get live images from the camera - four frames every sec and the above VI has to count the
    number of particles for each frame and output to the user?? is this possible can anyone do it for me???
    p.s. in the above VI i read the image from file and count the number of particles. i do not do it to the binary image becuase the binary image is only a black screen
    when i run it
    thankyou

    Hi Farhan,
    Vision Assistant would be the best option to create some steps which you can then export to LabVIEW. You should try using the IMAQ Find Circles.vi. The attached image helps you find the number of circles of an image acquired from a camera. I have used the IMAQdx VIs in this example.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies
    Attachments:
    vision.vi ‏59 KB

  • How do I count the number of cells with a particular text in it?

    I have a column with peoples name in each cell. I want to count the numbe rof times a persons name appears in the column. How do I do this? any help would be great ! thanks in advance.

    Hi Evilhomer,
    The function COUNTIF will do this. Here are two Tables on one sheet. Table 1 contains names in Column B.
    Table 2 contains the names once only (in any order) in Column A, with a COUNTIF formula in Column B to count how many times a name occurs in Table 1.
    The formula in Sheet 2, Cell B2 is:
    =COUNTIF(Table 1 :: B2:B5,A2)
    Enter the formula in B2 then copy down.
    It is easier to create the two tables on one sheet. If you then want to move a table to another sheet, Numbers will convert the formulas to keep the references valid.
    There are other ways to do what you want. Please reply if this is not what you want.
    Regards,
    Ian.

  • Which file in Omni.ja contains the version number in HELP | ABOUT

    We are using Firefox in a corporate locked down environment.
    we have made a number of changes to files in the OMNI.JA file to configure Firefox accordingly.
    We now have a newer version of firefox to install/package however, when we replace the default omni.ja file in FF 10.0.10 and go into HELP | ABOUT it shows the version number of FF that the omni.ja file came from, ie 10.0.4.
    Which file(s) need to be replaced in omni.ja so that when we select HELP | ABOUT it shows the correct version of 10.0.10 ?
    regards
    Bill

    hello biffal, which changes to the omnia.ja file have you done originally? maybe there's a better way to do it, because this file will be overwritten by each & every firefox update...

  • Count the number of times a character is in a string using pl/sql

    I need to count the number of times ":" appers in the string ":XXX:CCC:BBB:".
    I have sound some solution using SQL but I do not want the context switch.
    Also I am on 10g so I can not use REGEXP_COUNT.
    Any help would be great.

    Hi,
    length(REGEXP_REPLACE(':XXX:CCC:BBB:','[[:alnum:]]'))counts all kinds of punctuation, spaces, etc., not just colons. Change any (or all) of the colons to periods and it will still return 4. Use '[^:]' instead of '[[:alnum:]]' if you really want to count just colons.
    Also, "SELECT ... FROM dual" is usually needed only in SQL*Plus or similar front end tools. In PL/SQL, you can call functions without a query, like this:
    x := NVL (LENGTH (REGEXP_REPLACE (txt, '[^:]')), 0);

  • In fact it's about mac:excel, how convert in a cell a number written in text format into a value?

    in fact it's about mac:excel8 or 11 in OSX10.7.4,
    how convert in a cell a number written in text format into its value?
    cheers francois

    Hi francois,
    If I copyone of them and do a past special/value, it does not work.
    Try just Paste instead of Paste Special > Value
    I know your question is about Excel, but this works in Numbers:
    Copy 1 234 567 (with spaces) and Paste (not Paste Special) into a Cell in a Numbers Table. The result is 1234567 and it behaves as a number. A formula will consider it to be a number:
    You asked Wayne: what do you mean by "to reference a cell" ??
    The reference is from Cell A2 to Cell A1 through a formula, such as: =A1+1
    Regards,
    Ian.

  • Hello i need a help about script to export translatable text strings from ai files and import them back

    Hello i need a help about script to export translatable text strings from ai files and import them back after editing, thanks in advance

    Lanny -
    Thank you for taking the time to help with this problem. Can I just say however that as someone who has posted a first comment here and quite clearly never used a forum like this before, your comment unfortunately comes across as very excluding. It makes me feel there are a set of unwritten rules that I should know, and that I don't know them shows that the forum is not for me. In short, it's exactly the kind of response that stops people like me using forums like this.
    I'm sure it's not intended to be received like this and I am sure that the way you have responded is quite normal in the rules of a forum like this. However, it is not normal for those of us who aren't familiar with forums and who only encounter them when they have a genuine problem. This is why I hope it is helpful to respond in full.
    The reason I posted here is as follows. I was directed here by the apple support website. The original comment seemed to be the only one I could find which referred to my issue. As there is no obvious guidance on how to post on a forum like this it seemed perfectly reasonable to try and join in a conversation which might solve more than one problem at once.
    Bee's reply however is both helpful and warm. This could in fact be a template for how new members should be welcomed and inducted into the rules of the forum in a friendly and inclusive way. Thank you very much indeed Bee!

Maybe you are looking for

  • Value mapping in ABAP Versus ID

    Hi Gurus,   As Value mapping can be done using ABAP mapping and Also in Integration Directory... Can Any one tell me what is the exact difference Between these..... Regards, Sainath chutke

  • G5 - Airport Extreme - another wire - Connect to AEg only two ft not 15 ft

    I have a new Airport Extreme b/g with usb and antenna port. I have my Mac Mini hooked up to the AE via ethernet and to the DSL online. I have a Mac G5 Tower with a new AE card and the antenna hooked up properly as well as the external antenna in the

  • Configuring Doc Path (and Source Path) for default JDeveloper library

    hi Sometimes a default JDeveloper library as no Doc Path (or Source Path) configured. Adding a project library with only a Doc Path (or/and Source Path) configured (so no Class Path) can make the relevant API documentation more easily available in JD

  • Frequent 'Filesystem Corrupt', Invalid File count

    I have been getting this message every a couple of days in my MBP or iMac running 10.6.2. It happens/visible only when I runs Disk Utility and Verify Disk. Of course, this brings unsettling point to me when it comes now and then. Not to mention I hav

  • A Smartform Issue

    Hi All, Is it possible to display Text in smartforms in different angles. Like Vertical... Thanks Kishan