Jump to content

Count number of words in a text?


Recommended Posts

Well, maybe you should read before you reply. Since everyone with common sense could understand what i meant with words and text after reading what i wrote. Especially the example in #13 and even more so after i wrote that Melbas example worked.

Please recognize that it's also save to assume that i would have said it if i wanted to count words in traditional Chinese, Egyptian hieroglyphs or Martian.

Watch the attitude man, these people are going out of their way to provide you with free support on their own time.

Link to comment
Share on other sites

Not really, you're arrogant, defensive, and belligerent.

Clarification for what you wanted was needed, assuming anything might lead to pointless work to give you something that won't fit your criteria, especially when the goalposts keep moving or, in your case, weren't placed on the field at all.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

My last try:

What I (and some others) tried to tell you is: You have to carefully select the word separator. The space character won't give you the correct result. Add @CRLF and @LF if you process a file.

How about the hypen? Is this example ("well-formed") one or two words?

Your "problem" looks simple at first glance, but gets complex the longer you think about it..

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Personally I'm amazed at how helpful you have all been to someone who didn't even provide any of his own code.

Surely this has to be the friendliest place in the Universe, to someone who just doesn't know how to appreciate what a bunch of volunteers so selflessly give.

I am so humbled and even ashamed that I was thinking of offering up harsh words to someone who is obviously bewildered by your brilliance.

o:)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Link to comment
Share on other sites

Not really, you're arrogant, defensive, and belligerent.

Sorry, but no. I just reply as i get replied to. In this case jchd, whom you just described.

If you look at my profile you will find that i posted three topics since i have registered. And in every single one i have been nice and thanked everyone that helped or tried to help me. I even wrote that "i really appreciate the help" in one thread.... which i really do. That's my attitude and there is nothing wrong with it.

What I (and some others) tried to tell you is: You have to carefully select the word separator. The space character won't give you the correct result. Add @CRLF and @LF if you process a file.

How about the hypen? Is this example ("well-formed") one or two words?

Your "problem" looks simple at first glance, but gets complex the longer you think about it..

That is great info and thinking but i have taken care of all the problems i think. I tried out several different texts (self written, c&p from websites, etc.) and counted them "by hand" to compare them to the result i get with autoit and so far i didn't find an error.

TheSait..... ah... nevermind... i'm not even commenting such an uninformed opinion.

Edited by bleh
Link to comment
Share on other sites

As you wish bleh. ;)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Link to comment
Share on other sites

LOL :)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

And you thought it meant bleh. :blink:

P.S. Seems like you have a problem with just one word now. :wacko:

Edited by TheSaint

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Link to comment
Share on other sites

Funny that you know what i thought and what i have problems with. But that is probably because you are so "brilliant". Clearly... citing a crappy comic show and urban dictionary is a true display of brilliance.

It's also interesting that you go to a thread and post nothing but insults and crap, even though you think that  "this has to be the friendliest place in the Universe" (as you said earlier).

Edited by bleh
Link to comment
Share on other sites

Or perhaps bleh?

keep-calm-and-watch-out-for-the-bleh-ble

or take your pick.

Edited by TheSaint

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Link to comment
Share on other sites

Lightened up yet have we?

Maybe you can even find an appropriate avatar from that lot?

I aim to please!

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Link to comment
Share on other sites

Ah, so you do have a sense of humor then. :muttley:

Hope you don't mind if I send some of the ungodly your way, that I'm too busy to deal with every now and then? o:)

Now all you need is a good image. ;)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Link to comment
Share on other sites

  • Developers

I hope my PM was clear enough.

*click*

Edit: I have made the change as promised in the PM and will only let this go one time.

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...