How to ignore the notes when calling GetWordCountInfo?

I use ITextUtils::GetWordCountInfo, works very well except when there are notes. What should I do to ignore counting notes?

Thank you!

How about this:

  1. Get the thread from the first main story.
  2. Determine its limits: ITextStoryThread::GetTextStart() must return 0 and ITextStoryThread::GetTextEnd() must return the index of the end of the main thread.
  3. Call ITextUtils::GetWordCountInfo() with parameters startIndex and lengthToCount to match main thread of the history section.

This should count the number of words in the main thread. It should not count words in headers, footers, and notes, because they are stored breast separarate son. Table cell text is also stored in separate threads, so you should probably iterate on those threads too and count their words.

Tags: InDesign

Similar Questions

  • How to ignore the prompt when calling storeUserConfig()?

    Hello

    WLST, is it possible to bypass/ignore the prompt that you get when you call storeUserConfig()? You must answer y or n to allow/disallow the creation of the user configuration and key files.

    --
    Thomas Isaksen

    Thomas, I have not tried myself, but an announcement on this forum for a few years there was an answer for WLS 9.1:

    Re: How to specify response with storeUserConfig in WLST?

    -Dweblogic.management.confirmKeyfileCreation=true
    

    -steve-

  • How to ignore the SOAP server called HTTP response message.

    How to terminate or skip SOAP called HTTP server response message.

    Hi - We have a problem with the OSB project and try to correct this.

    Scenario: -.
    System1 sends SOAP message to the 2 system using our service of OSB. Since we have a problem between OSB and System2 (we get the response HTTP system 500 2 code), which is causing problem with system 1.
    1-> OSB - 2 system system

    For some reason, System1 search failure between OSB and System2 as HTTP 500 error message and start a new attempt to traffic, which we do not really want.
    I don't want to send a message HTTP 500-System1 (as interface between the system 1 and OSB works, we issue to the next step).

    We tried to set the error handler to the level of the road/pipeline/service but no luck. at the level of the road, we did trigger the error response with option down too.

    Could someone pls try to help on this.

    I also have a question...
    Do we not have an option like 'Terminate' instance osb.. ? I know that this case is done with BPEL but don't see any option with OSB. Please advice.

    Here is my understanding of what you're trying to achieve:
    1 system called OSB Proxy calling 2 system via the OSb business.
    System1--> Proxy--> Business--> System2

    Is that what you want, if system 2 returns an error that you want to remove this error and return a success at system1?

    If that's what you are trying to reach then in service proxy call business service in the node of the road (or you can choose to use a legend of service in a separate step). Create a track node error handler (or a handler error step if you chose to use the legend). In this error handler any registration if you wish, and at the end of the Manager error there should be a response successfully. In this way the service will run normally when there is no error. If there is a mistake in calling system2, the stream enters the error handler where you can build any desired response (by replacing the contents of the $body) and a response successfully will forward this response as a success to vitesse1.

    However, if my understanding of your requirement is incorrect then let me know what exactly you're trying to implement.

  • How to set the title when using InvokeManager (MediaPlayer)

    Hi Im using InvokeManager to play the video file (Media Player)

    How to change the title when media player to play the video (above)-> it by default uses the name of the file being played

    but I want to change this

    How to do this?

    Thank you

    Try this

    InvokeManager * invokeManager = new InvokeManager();
    InvokeRequest cardRequest;
    cardRequest.setTarget ("sys.mediaplayer.previewer");
    cardRequest.setAction ("bb.action.OPEN");
    cardRequest.setUri ("* video url *");
                QVariantMap map;
    Map.Insert ("contentTitle", "My title");
    QByteArray requestData = bb:psObject::encode (map, NULL);
    cardRequest.setData (requestData);
    Response InvokeTargetReply * = invokeManager-> invoke (cardRequest);

    Note: Mark your post as solved, if this solves your problem

  • does anyone know how to number the photos when they are exported so someone can choose the peak of number

    Anyone know how to number the photos when they are exported from LR, so someone can choose the photo they like with a number

    Sorry took with the last answer.

    More simple form used something like-Sequence_Filename number suffix

    If an image as _ABC0987.nef will become 0001_0987.nef and 0002_0988.nef, etc.

    Ask your customer to give you the full file name. The suffix indicates the original file.

    (I hope that you only need to search in a folder and do not have a bunch of images named the same that would cause problems!)

  • My Dungeon AT100 flashing (gel) / how to enlarge the fonts when browsing

    I tried to disable my Tablet (AT100), but he keep re-reading as 'opening line of light sparkles' and then a 'flash '. He continues by doing this.

    I tried to turn if off, but I can't.

    I tried to recharge the battery, but there is nothing to change.

    I had to wait for these to be repeated until all batteries are brains.

    Why would this happen? What's wrong?

    What can I do, when this happen? Reboot? but I can't find those restart button (as these mini button that allows you to push a pencil point)

    ~*~*~*~*~*~*~*~*~*~*~*~
    How to enlarge the fonts when I'm surfing the internet?

    Thank you.

    Post edited by: ec

    Hello

    I think the sparks of light line is a background image possibly the Android system crashed I think you should start in safe mode.
    How?

    1. press the power button and quickly press and hold the Volume button down.
    2. continue to press the Volume button down until you enter secure Mode

    Now you can perform factory reset data as below:
    Tap applications > settings > privacy > data reset > Reset tablet > clear all.
    Factory data collection will be

  • How to ignore the words using keyboard shortcuts

    Using Ctrl + Rt arrow usually ignores the words when you type in a free text box but FF uses this keyboard command to scroll the tabs open. Is - this customizable?

    This has happened

    Each time Firefox opened

    is by typing in a text field

    Hi Toy4Rick,
    The keyboard to switch to the next tab shortcut is Ctrl + Tab and Ctrl + PG. FF.
    See this article for more information: hotkeys - quickly perform common Firefox tasks.

    You have all the related tabs that may cause the keyboard shortcuts change? Do you have any application for the global hotkeys etc.?

    Tell us what you find.

  • How to use the node to call a library function to convert C++ source codes

    Hi all

    There are two dll name 'QMSL_WLAN_Transport.dll' and 'QCAMSL_MSVC10R.dll' and some codes c ++ to connect to the DUT. The two DLLs work together for communicaite with the DUT.

    I am confused as how to use the node to call a library function to load the 'QCAMSL_MSVC10R.dll' function as

    g_hResourceContext = QLIB_ConnectServer_UserDefinedTransport((HANDLE) USER_HANDLE,
    UserDefinedSend,
    UserDefinedReceive,
    UserDefinedFlushTxRx,
    true,
    true);
    

    It seems that 'UserDefinedReceive, UserDefinedSend, UserDefinedFlushTxRx' Processaddress?  And "UserDefinedReceive, UserDefinedSend, UserDefinedFlushTxRx"'s functions in 'QMSL_WLAN_Transport.dll '.

    UserDefinedReceive = (_UserDefinedReceive)GetProcAddress(hUDT,"UserDefinedReceive");
    UserDefinedSend = (_UserDefinedSend)GetProcAddress(hUDT,"UserDefinedSend");
    UserDefinedFlushTxRx = (_UserDefinedFlushTxRx)GetProcAddress(hUDT,"UserDefinedFlushTxRx");
    

    Attached DLLs and C++ code snippets.

    Need help.

    Thank you.

    These parameters are reminders - pointers to functions that are called by the DLL - and there is no way to duplicate this purely in LabVIEW. Search this forum for the word "recall" and you will find similar questions (for other DLLs). You will need to write your own DLL (in C, C++, etc.) that implements these functions and provides a way to transfer data to LabVIEW.

  • My Acer desktop computer (approx. 1 year) ignores the key when entering. It got so bad that I am ready to t

    My Acer desktop computer (about 1 year) X1420G-U5832 ignores the letters when typing. He got one so bad that I'm ready to throw on this computer and try again. I replaced the acer with a logitech keyboard and it does the same thing. Is there a cure for this. Help, please!

    Have you tried to plug it into another USB port?

    May be a corrupted driver. Can be a good download and reinstall.

    Edit: Pilot would be looking for drivers on whatever OS you have installed the site.

  • How to display the ToolTip when the input text is disable

    How to display the ToolTip when the input text is disable?

    Just checked in FF and IE11, works fine for me (jdev 12.1.3)

    
          
    
    

    Dario

  • How to generate the alert when pageitem move on the page? and what class boss be use to move pageitem

    How to generate the alert when pageitem move on the page? and what class boss be use to move pageitem

    Hi Philippe,.

    You can see the kDocBoss for the ClassID with the PMIID IID_ITRANSFORM_DOCUMENT kLocationChangedMessage.

    Markus

  • Anyone know how to solve the problem, when he says scratch disk is full?

    Anyone know how to solve the problem, when he says scratch disk is full? don't do anything :/

    Go to Edition > purge > all

    This will clear all of your history and Clipboard, thus freeing the scratch disk space.

  • How to use DO NOT when searching the 8 Windows App Store?

    I have no problem with the charm of the App Store search, but I don't want to see the games, and it seems that the store is infested with them.  The problem is, I can't find any way to get the search charm accept Boolean values in any form.  (It seems that Windows 8 is dumbing down of the interface, remove features and back to BACK, get people to remember text commands.)

    How not to use with the charm of research?

    Before that, how to search for nothing _except_ games?

    -Ken

    The display is a bit better, if you select downloads, but then 'NO' gets ignored and all it lists is games, exactly the opposite of what I wanted.

    You can't go there.   This means the site: downloads. Microsoft.com which exclude of course website: apps.microsoft.com you need to search for what you want.

    So unless you're facetious "Gets a little better" I don't know why you find it "barely usable".  You fail to capitalize the NON?

    http://onlinehelp.Microsoft.com/en-us/Bing/ff808438(d=robot).aspx

    You must capitalize the NOT and OR operators. Otherwise, Bing will ignore them as stop words, which are producing generally words and numbers that are omitted to speed up full-text search.

    http://search.Microsoft.com/en-us/results.aspx?setlang=en-us&q=not+games+site%3Aapps.Microsoft.com

    50 results per page.   No games.

    Ditto when I click in the entry box and choose to search the web instead.

    http://www.bing.com/search?q=not%20Games%20Site%3Aapps.Microsoft.com&form=BMME

    50 results per page.   No games (with the exception of a few ad above links)

    So that's another advantage of Microsoft Search: no advertising.   ; }

    ---

  • How can we ignore the video when importing? I am aware that it took 4 years ago, but I don't know that there must be a better way today?

    I am currently evaluating lightroom to replace Apple's Aperture as is the end of LIFE. I am a professional filmmaker who made a few pictures on the side. Lightroom 6 emphasize the import of videos, unless I have clear them manually during import. I ABSOLUTELY NEED to divide probably photos and videos on various imports and paths to backup IMMEDIATELY when I put the card into the computer on the tray. This way of manual de-selection is stressful, slow and prone to error. It hates me lightroom - I love otherwise - on each import of the card.

    Is it really now way to tell lightroom to ignore the .mov files and stick to the photos? It is very difficult to believe for a professional software and unfortunately would be a dealbreaker for me.

    Would like to find a way to do it, then I would be able to commit to the ambient light for my photo needs.

    Best

    Gerrit Haaland

    YACHTFILM.tv

    Hi GerritH,

    If you use Lightroom 6/CC, there is no way to deselect the videos, but what you can do is to change the sort order to media type and unselect all the videos at the time of importation.

    • Press "check all".
    • Sort by "media type".
    • Select all video files (select a first + press shift + select last)
    • remove the flag on a single video file (this uncheck all selected video files)
    • Press on import.

    If you use Lightroom 5 or earlier, there is a hidden option: hold down the Alt/Option key and "check all" and "Uncheck all" buttons turns in "check videos ' and 'Videos to uncheck', respectively." From there you can asily choose to imp [tro photos or video only.]

    Concerning

    Sarika

  • How to ignore the validation in the call to "Run in the dialogue" task stream

    Hello everyone.

    I have a form in a view simple jsf with several required attributes. This field has an associated button that displays an inline popup (in this window, you can select a specific value after a simple search).

    When this button is pressed the popup is displayed only if all other required attributes have filled. I need to pass validation in this case.

    The popup is called in the workflow as "Run in the dialogue" true and 'View Type' inline-popup.

    I use JDev v. 11.1.1.2.3.

    Thanks in advance.

    Manual

    The immediate property of the button to true.

    For more details, see this link - ADF practice: understand the immediate attribute JSF

Maybe you are looking for

  • What is a different between Satellite and Equium A100-306

    This is a general question really but the end result can be the A100-306 I placed it here. Anyone could explain why two laptops that look the same and have similar features are called both by Satellite, or satellite. I now have an A100-583 and thinki

  • problems of scanning offficejet 8600

    I have a jet of 8600 desktop that I use to be able to scan directly to my computer.  I use to go to the icon of the printer in my computer double click on it and could scan, and then he asked me where I wanted to save the document.  now, for some rea

  • Can I delete program files Win XP Autocomplete Pro dangerous?

    Seizure semi-automatic Pro is extremely dangerous, store personal information forms, which can be hacked, I don't just want to turn it off, I want to remove the program file. Deletion will cause problems with Win XP or IE8?

  • How to get back the system restore which led the coup?

    Error codeoX800070005

  • Remote access VPN Client to PIX, DNS issue

    Hi all.  I searched on this, but I can't find my answer. I set up a VPN connection to a PIX Firewall (running the version 8.0 (4)) for my business.  The VPN connection works correctly, in that I can connect to it using my software (v 5.0.02.0090) Cis