Re: word count
On Fri, 3 May 2002, Tuukka Toivonen wrote: On Fri, 3 May 2002, R.G.N. Meegama wrote: How can I count the total number of words (including the words in figure captions) in a lyx document ? The spellchecker tells the word count after it's finished. But I don't know if it includes captions etc., try it. If you are using a *nix, you can strip all the lyx and latex lines from the file and pipe the text only to wc. The idea is not mine and appeared on this list about half a year ago. I have the command in a script that is sometimes useful. grep -v [\] $1|grep -v $L yx 1.1 |grep -v ^$ If you understand this, you should be able to figure out what to do with it. Make sure to do the right thing with the $1 (replace with file name or put it back into a script so the $1 makes sense). If your are using windows, you have my pity. -- Mark Hansel PO Box 41 Minnesota State University Moorhead Moorhead, MN 56563 ph: 218-236-2039 fax: 218-236-2593 [EMAIL PROTECTED] http://wwwcj.mnstate.edu
Re: word count
On 3 May, Mark Hansel wrote: If you are using a *nix, you can strip all the lyx and latex lines from the file and pipe the text only to wc. The idea is not mine and appeared on this list about half a year ago. I have the command in a script that is sometimes useful. grep -v [\] $1|grep -v $L yx 1.1 |grep -v ^$ If you understand this, you should be able to figure out what to do with it. Make sure to do the right thing with the $1 (replace with file name or put it back into a script so the $1 makes sense). If your are using windows, you have my pity. There is a program detex, which does basically the same as above oneliner (only in much more sophisticated manner), so you can do detex docname.tex | wc -w (yes, Virginia, both commands DO exist for both *nix and M$-* systems). Matej
Re: word count
On Friday 03 May 2002 09:46 am, Matej Cepl wrote: On 3 May, Mark Hansel wrote: If you are using a *nix, you can strip all the lyx and latex lines from the file and pipe the text only to wc. The idea is not mine and appeared on this list about half a year ago. I have the command in a script that is sometimes useful. grep -v [\] $1|grep -v $L yx 1.1 |grep -v ^$ If you understand this, you should be able to figure out what to do with it. Make sure to do the right thing with the $1 (replace with file name or put it back into a script so the $1 makes sense). If your are using windows, you have my pity. There is a program detex, which does basically the same as above oneliner (only in much more sophisticated manner), so you can do detex docname.tex | wc -w (yes, Virginia, both commands DO exist for both *nix and M$-* systems). Where would one get detex for Linux? Steve -- _ Steve Litt Author: * Troubleshooting Techniques of the Successful Technologist * Rapid Learning: Secret Weapon of the Successful Technologist http://www.troubleshooters.com/bookstore/ Troubleshooters.Com Webmaster (Legal Disclaimer) Follow these suggestions at your own risk. -
Re: word count
On 3 May, Steve Litt wrote: (yes, Virginia, both commands DO exist for both *nix and M$-* systems). Where would one get detex for Linux? go to http://www.ctan.org and search for detex. You will get a tarball, which you can then compile (it is really very simple). Matej -- Matej Cepl, [EMAIL PROTECTED] 138 Highland Ave. #10 Somerville, Ma 02143 (617) 623-1488
Re: word count
On Fri, 3 May 2002, Steve Litt wrote: On Friday 03 May 2002 09:46 am, Matej Cepl wrote: On 3 May, Mark Hansel wrote: If you are using a *nix, you can strip all the lyx and latex lines from the file and pipe the text only to wc. The idea is not mine and appeared on this list about half a year ago. I have the command in a script that is sometimes useful. grep -v [\] $1|grep -v $L yx 1.1 |grep -v ^$ There is a program detex, which does basically the same as above oneliner (only in much more sophisticated manner), so you can do detex docname.tex | wc -w (yes, Virginia, both commands DO exist for both *nix and M$-* systems). Where would one get detex for Linux? Try a latex repository. Google claims 2700 hits on detex+linux. ftp://sunsite.unc.edu/pub/Linux/apps/tex/ ftp://sunsite.unc.edu/pub/Linux/apps/tex/deTeX-2.6.README (tar.gz here): http://www.funet.fi/pub/Linux/util/TeX/ However, this does not do what you want. (My interest was piqued by Matej Cepel's response.) The program strips latex commands and all the '\' characters, but does not stip meta information, as required for an accurate word count. (Maybe there a command line options that get that job done and maybe it does the right thing with a pure latex file. But it does not do the right thing with a lyx file.) Here is the top of the output from a large document I am working on. Clearly useless for your purpose. #LyX 1.1 created this file. For more info see http://www.lyx.org/ 218 book _preamble authordate1-4 1.0 _preamble english latin1 default default default single Default a4 _geometry 0 _amsmath 0 portrait 2 2 -- Mark Hansel PO Box 41 Minnesota State University Moorhead Moorhead, MN 56563 ph: 218-236-2039 fax: 218-236-2593 [EMAIL PROTECTED] http://wwwcj.mnstate.edu
Re: word count
On Fri, May 03, 2002 at 05:46:38PM -0500, Mark Hansel wrote: ftp://sunsite.unc.edu/pub/Linux/apps/tex/ ftp://sunsite.unc.edu/pub/Linux/apps/tex/deTeX-2.6.README (tar.gz here): http://www.funet.fi/pub/Linux/util/TeX/ However, this does not do what you want. (My interest was piqued by Matej Cepel's response.) The program strips latex commands and all the '\' characters, but does not stip meta information, as required for an accurate word count. (Maybe there a command line options that get that job done and maybe it does the right thing with a pure latex file. But it does not do the right thing with a lyx file.) Of course. It's detex, not deLyX. Proper operation would be to export to LaTeX and then run detex. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | crown of her husband | Robin Gregory (2/28/92) msg19075/pgp0.pgp Description: PGP signature
word count
Hi, How can I count the total number of words (including the words in figure captions) in a lyx document ? Rgds, Gayan
Re: word count
On Fri, 3 May 2002, R.G.N. Meegama wrote: >How can I count the total number of words (including the words in >figure captions) in a lyx document ? The spellchecker tells the word count after it's finished. But I don't know if it includes captions etc., try it.
Re: word count
On Fri, 3 May 2002, Tuukka Toivonen wrote: >On Fri, 3 May 2002, R.G.N. Meegama wrote: > >>How can I count the total number of words (including the words in >>figure captions) in a lyx document ? > >The spellchecker tells the word count after it's finished. But I don't know >if it includes captions etc., try it. > If you are using a *nix, you can strip all the lyx and latex lines from the file and pipe the text only to wc. The idea is not mine and appeared on this list about half a year ago. I have the command in a script that is sometimes useful. grep -v "[\]" $1|grep -v "$L yx 1.1" |grep -v "^$" If you understand this, you should be able to figure out what to do with it. Make sure to do the right thing with the "$1" (replace with file name or put it back into a script so the $1 makes sense). If your are using windows, you have my pity. -- Mark Hansel PO Box 41 Minnesota State University Moorhead Moorhead, MN 56563 ph: 218-236-2039 fax: 218-236-2593 [EMAIL PROTECTED] http://wwwcj.mnstate.edu
Re: word count
On 3 May, Mark Hansel wrote: > If you are using a *nix, you can strip all the lyx and latex > lines from the file and pipe the text only to wc. The idea is > not mine and appeared on this list about half a year ago. I > have the command in a script that is sometimes useful. > > grep -v "[\]" $1|grep -v "$L yx 1.1" |grep -v "^$" > > If you understand this, you should be able to figure out what > to do with it. Make sure to do the right thing with the "$1" > (replace with file name or put it back into a script so the $1 > makes sense). > > If your are using windows, you have my pity. There is a program detex, which does basically the same as above oneliner (only in much more sophisticated manner), so you can do detex docname.tex | wc -w (yes, Virginia, both commands DO exist for both *nix and M$-* systems). Matej
Re: word count
On Friday 03 May 2002 09:46 am, Matej Cepl wrote: > On 3 May, Mark Hansel wrote: > > If you are using a *nix, you can strip all the lyx and latex > > lines from the file and pipe the text only to wc. The idea is > > not mine and appeared on this list about half a year ago. I > > have the command in a script that is sometimes useful. > > > > grep -v "[\]" $1|grep -v "$L yx 1.1" |grep -v "^$" > > > > If you understand this, you should be able to figure out what > > to do with it. Make sure to do the right thing with the "$1" > > (replace with file name or put it back into a script so the $1 > > makes sense). > > > > If your are using windows, you have my pity. > > There is a program detex, which does basically the same as above > oneliner (only in much more sophisticated manner), so you can do > > detex docname.tex | wc -w > > (yes, Virginia, both commands DO exist for both *nix and M$-* > systems). Where would one get detex for Linux? Steve -- _ Steve Litt Author: * Troubleshooting Techniques of the Successful Technologist * Rapid Learning: Secret Weapon of the Successful Technologist http://www.troubleshooters.com/bookstore/ Troubleshooters.Com Webmaster (Legal Disclaimer) Follow these suggestions at your own risk. -
Re: word count
On 3 May, Steve Litt wrote: >> (yes, Virginia, both commands DO exist for both *nix and M$-* >> systems). > > Where would one get detex for Linux? go to http://www.ctan.org and search for detex. You will get a tarball, which you can then compile (it is really very simple). Matej -- Matej Cepl, [EMAIL PROTECTED] 138 Highland Ave. #10 Somerville, Ma 02143 (617) 623-1488
Re: word count
On Fri, 3 May 2002, Steve Litt wrote: >On Friday 03 May 2002 09:46 am, Matej Cepl wrote: >> On 3 May, Mark Hansel wrote: >> > If you are using a *nix, you can strip all the lyx and latex >> > lines from the file and pipe the text only to wc. The idea is >> > not mine and appeared on this list about half a year ago. I >> > have the command in a script that is sometimes useful. >> > >> > grep -v "[\]" $1|grep -v "$L yx 1.1" |grep -v "^$" >> > >> There is a program detex, which does basically the same as above >> oneliner (only in much more sophisticated manner), so you can do >> >> detex docname.tex | wc -w >> >> (yes, Virginia, both commands DO exist for both *nix and M$-* >> systems). > >Where would one get detex for Linux? Try a latex repository. Google claims 2700 hits on detex+linux. ftp://sunsite.unc.edu/pub/Linux/apps/tex/ ftp://sunsite.unc.edu/pub/Linux/apps/tex/deTeX-2.6.README (tar.gz here): http://www.funet.fi/pub/Linux/util/TeX/ However, this does not do what you want. (My interest was piqued by Matej Cepel's response.) The program strips latex commands and all the '\' characters, but does not stip meta information, as required for an accurate word count. (Maybe there a command line options that get that job done and maybe it does the right thing with a pure latex file. But it does not do the right thing with a lyx file.) Here is the top of the output from a large document I am working on. Clearly useless for your purpose. #LyX 1.1 created this file. For more info see http://www.lyx.org/ 218 book _preamble authordate1-4 1.0 _preamble english latin1 default default default single Default a4 _geometry 0 _amsmath 0 portrait 2 2 -- Mark Hansel PO Box 41 Minnesota State University Moorhead Moorhead, MN 56563 ph: 218-236-2039 fax: 218-236-2593 [EMAIL PROTECTED] http://wwwcj.mnstate.edu
Re: word count
On Fri, May 03, 2002 at 05:46:38PM -0500, Mark Hansel wrote: > ftp://sunsite.unc.edu/pub/Linux/apps/tex/ > ftp://sunsite.unc.edu/pub/Linux/apps/tex/deTeX-2.6.README > > (tar.gz here): http://www.funet.fi/pub/Linux/util/TeX/ > > However, this does not do what you want. (My interest was piqued by Matej > Cepel's response.) The program strips latex commands and all the '\' > characters, but does not stip meta information, as required for an > accurate word count. (Maybe there a command line options that get that job > done and maybe it does the right thing with a pure latex file. But it does > not do the right thing with a lyx file.) Of course. It's detex, not deLyX. Proper operation would be to export to LaTeX and then run detex. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg19075/pgp0.pgp Description: PGP signature
Re: word count
Steve Litt hat gesagt: // Steve Litt wrote: The wc command counts spaces, so if you simply remove the -c from the wc command at the bottom of this thread, you'll see three numbers output on one line. The first number is the number of lines, and is probably totally meaningless. The second number is the number of words. The third number is the number of characters, including spaces. Yup, that's right. The small script in my previous mail counts characters, lines and words and it puts a little headline above the outcome, because I alwas forget, which count is which ;) -- ____ Frank Barknecht __ __ trip\ \ / /wire __ / __// __ /__/ __// // __ \ \/ / __ \\ ___\ / / / / / / / // // /\ \\ ___\\ \ /_/ /_/ /_/ /_//_// / \ \\_\\_\ /_/\_\
Re: word count
On Saturday 22 September 2001 06:15, Frank Barknecht wrote: Steve Litt hat gesagt: // Steve Litt wrote: The wc command counts spaces, so if you simply remove the -c from the wc command at the bottom of this thread, you'll see three numbers output on one line. The first number is the number of lines, and is probably totally meaningless. The second number is the number of words. The third number is the number of characters, including spaces. Yup, that's right. The small script in my previous mail counts characters, lines and words and it puts a little headline above the outcome, because I alwas forget, which count is which ;) Yes, but on further thought I think you might need to subtract the number of lines from the number of characters, because presumably the character count shouldn't include newlines. So in Unix/Linux/BSD subtract the number of lines, and in DOS/Windows subtract double the number of lines (crlf). Steve -- Steve Litt Webmaster, Troubleshooters.Com http://www.troubleshooters.com [EMAIL PROTECTED] (Legal Disclaimer) Follow these suggestions at your own risk.
Re: word count
Steve Litt hat gesagt: // Steve Litt wrote: The wc command counts spaces, so if you simply remove the -c from the wc command at the bottom of this thread, you'll see three numbers output on one line. The first number is the number of lines, and is probably totally meaningless. The second number is the number of words. The third number is the number of characters, including spaces. Yup, that's right. The small script in my previous mail counts characters, lines and words and it puts a little headline above the outcome, because I alwas forget, which count is which ;) -- ____ Frank Barknecht __ __ trip\ \ / /wire __ / __// __ /__/ __// // __ \ \/ / __ \\ ___\ / / / / / / / // // /\ \\ ___\\ \ /_/ /_/ /_/ /_//_// / \ \\_\\_\ /_/\_\
Re: word count
On Saturday 22 September 2001 06:15, Frank Barknecht wrote: Steve Litt hat gesagt: // Steve Litt wrote: The wc command counts spaces, so if you simply remove the -c from the wc command at the bottom of this thread, you'll see three numbers output on one line. The first number is the number of lines, and is probably totally meaningless. The second number is the number of words. The third number is the number of characters, including spaces. Yup, that's right. The small script in my previous mail counts characters, lines and words and it puts a little headline above the outcome, because I alwas forget, which count is which ;) Yes, but on further thought I think you might need to subtract the number of lines from the number of characters, because presumably the character count shouldn't include newlines. So in Unix/Linux/BSD subtract the number of lines, and in DOS/Windows subtract double the number of lines (crlf). Steve -- Steve Litt Webmaster, Troubleshooters.Com http://www.troubleshooters.com [EMAIL PROTECTED] (Legal Disclaimer) Follow these suggestions at your own risk.
Re: word count
Steve Litt hat gesagt: // Steve Litt wrote: > The wc command counts spaces, so if you simply remove the -c from the wc > command at the bottom of this thread, you'll see three numbers output on one > line. The first number is the number of lines, and is probably totally > meaningless. The second number is the number of words. The third number is > the number of characters, including spaces. Yup, that's right. The small script in my previous mail counts characters, lines and words and it puts a little headline above the outcome, because I alwas forget, which count is which ;) -- ____ Frank Barknecht __ __ trip\ \ / /wire __ / __// __ /__/ __// // __ \ \/ / __ \\ ___\ / / / / / / / // // /\ \\ ___\\ \ /_/ /_/ /_/ /_//_// / \ \\_\\_\ /_/\_\
Re: word count
On Saturday 22 September 2001 06:15, Frank Barknecht wrote: > Steve Litt hat gesagt: // Steve Litt wrote: > > The wc command counts spaces, so if you simply remove the -c from the wc > > command at the bottom of this thread, you'll see three numbers output on > > one line. The first number is the number of lines, and is probably > > totally meaningless. The second number is the number of words. The third > > number is the number of characters, including spaces. > > Yup, that's right. The small script in my previous mail counts > characters, lines and words and it puts a little headline above > the outcome, because I alwas forget, which count is which ;) Yes, but on further thought I think you might need to subtract the number of lines from the number of characters, because presumably the character count shouldn't include newlines. So in Unix/Linux/BSD subtract the number of lines, and in DOS/Windows subtract double the number of lines (crlf). Steve -- Steve Litt Webmaster, Troubleshooters.Com http://www.troubleshooters.com [EMAIL PROTECTED] (Legal Disclaimer) Follow these suggestions at your own risk.
Re: word count
Praedor Tempus hat gesagt: // Praedor Tempus wrote: On Saturday 15 September 2001 07:43 am, Praedor Tempus wrote: I seem to recall seeing some question about this previously but cannot truly recall. How does one do a word count on a lyx document? Nevermind. Found it - do a spellcheck. If you hace wc installed, the following is faster: Choose File-Export-Custom, File Type ASCII, Command wc -w. You will find the word count in the terminal you started lyx from (or in your ~/.xsession-errors file) Of course, one could wrap this in a little skript called wordcount - #!/bin/sh echo 'Chars | Lines | Words' wc - bye, -- ____ Frank Barknecht __ __ trip\ \ / /wire __ / __// __ /__/ __// // __ \ \/ / __ \\ ___\ / / / / / / / // // /\ \\ ___\\ \ /_/ /_/ /_/ /_//_// / \ \\_\\_\ /_/\_\
Re: word count
Thanks. Now I have a new problem (for me) for which I am almost sure there will be no tool for. First, for one of the journals that my paper could be submitted to, a word count goes a long way but for another (PNAS) it seems that they have a total character limit (words, spaces - including spaces between words and so forth, but also the space taken up by figures and tables). I'll ask anyway...is there a tool/means of counting not only the words, but also the total number of characters in a document? I'll not worry about the space taken by figures and tables since they can be scaled down (to a point) as needed. A word count gives me 5500, so a rough guestimate of characters is at least twice that amount... On Friday 21 September 2001 02:58 am, Frank Barknecht wrote: Praedor Tempus hat gesagt: // Praedor Tempus wrote: On Saturday 15 September 2001 07:43 am, Praedor Tempus wrote: I seem to recall seeing some question about this previously but cannot truly recall. How does one do a word count on a lyx document? Nevermind. Found it - do a spellcheck. If you hace wc installed, the following is faster: Choose File-Export-Custom, File Type ASCII, Command wc -w. [...]
Re: word count
Characters including spaces? Does any WP count spaces as characters? There certainly would be no tool for this, since LyX is very far from treating spaces as characters. If you aren't worried about the spaces between figures and such, then why be worried about the spaces between words and characters, since these are handled similarly to those of spaces between words, letters, and sentences? On Friday 21 September 2001 06:02 pm, you wrote: Thanks. Now I have a new problem (for me) for which I am almost sure there will be no tool for. First, for one of the journals that my paper could be submitted to, a word count goes a long way but for another (PNAS) it seems that they have a total character limit (words, spaces - including spaces between words and so forth, but also the space taken up by figures and tables). I'll ask anyway...is there a tool/means of counting not only the words, but also the total number of characters in a document? I'll not worry about the space taken by figures and tables since they can be scaled down (to a point) as needed. A word count gives me 5500, so a rough guestimate of characters is at least twice that amount... On Friday 21 September 2001 02:58 am, Frank Barknecht wrote: Praedor Tempus hat gesagt: // Praedor Tempus wrote: On Saturday 15 September 2001 07:43 am, Praedor Tempus wrote: I seem to recall seeing some question about this previously but cannot truly recall. How does one do a word count on a lyx document? Nevermind. Found it - do a spellcheck. If you hace wc installed, the following is faster: Choose File-Export-Custom, File Type ASCII, Command wc -w. [...]
Re: word count
Great news for Praedor! The wc command counts spaces, so if you simply remove the -c from the wc command at the bottom of this thread, you'll see three numbers output on one line. The first number is the number of lines, and is probably totally meaningless. The second number is the number of words. The third number is the number of characters, including spaces. Steve -- Steve Litt Webmaster, Troubleshooters.Com http://www.troubleshooters.com [EMAIL PROTECTED] (Legal Disclaimer) Follow these suggestions at your own risk. On Friday 21 September 2001 19:51, Christopher M. Jones wrote: Characters including spaces? Does any WP count spaces as characters? There certainly would be no tool for this, since LyX is very far from treating spaces as characters. If you aren't worried about the spaces between figures and such, then why be worried about the spaces between words and characters, since these are handled similarly to those of spaces between words, letters, and sentences? On Friday 21 September 2001 06:02 pm, you wrote: Thanks. Now I have a new problem (for me) for which I am almost sure there will be no tool for. First, for one of the journals that my paper could be submitted to, a word count goes a long way but for another (PNAS) it seems that they have a total character limit (words, spaces - including spaces between words and so forth, but also the space taken up by figures and tables). I'll ask anyway...is there a tool/means of counting not only the words, but also the total number of characters in a document? I'll not worry about the space taken by figures and tables since they can be scaled down (to a point) as needed. A word count gives me 5500, so a rough guestimate of characters is at least twice that amount... On Friday 21 September 2001 02:58 am, Frank Barknecht wrote: Praedor Tempus hat gesagt: // Praedor Tempus wrote: On Saturday 15 September 2001 07:43 am, Praedor Tempus wrote: I seem to recall seeing some question about this previously but cannot truly recall. How does one do a word count on a lyx document? Nevermind. Found it - do a spellcheck. If you hace wc installed, the following is faster: Choose File-Export-Custom, File Type ASCII, Command wc -w. [...]
Re: word count
Praedor Tempus hat gesagt: // Praedor Tempus wrote: On Saturday 15 September 2001 07:43 am, Praedor Tempus wrote: I seem to recall seeing some question about this previously but cannot truly recall. How does one do a word count on a lyx document? Nevermind. Found it - do a spellcheck. If you hace wc installed, the following is faster: Choose File-Export-Custom, File Type ASCII, Command wc -w. You will find the word count in the terminal you started lyx from (or in your ~/.xsession-errors file) Of course, one could wrap this in a little skript called wordcount - #!/bin/sh echo 'Chars | Lines | Words' wc - bye, -- ____ Frank Barknecht __ __ trip\ \ / /wire __ / __// __ /__/ __// // __ \ \/ / __ \\ ___\ / / / / / / / // // /\ \\ ___\\ \ /_/ /_/ /_/ /_//_// / \ \\_\\_\ /_/\_\
Re: word count
Thanks. Now I have a new problem (for me) for which I am almost sure there will be no tool for. First, for one of the journals that my paper could be submitted to, a word count goes a long way but for another (PNAS) it seems that they have a total character limit (words, spaces - including spaces between words and so forth, but also the space taken up by figures and tables). I'll ask anyway...is there a tool/means of counting not only the words, but also the total number of characters in a document? I'll not worry about the space taken by figures and tables since they can be scaled down (to a point) as needed. A word count gives me 5500, so a rough guestimate of characters is at least twice that amount... On Friday 21 September 2001 02:58 am, Frank Barknecht wrote: Praedor Tempus hat gesagt: // Praedor Tempus wrote: On Saturday 15 September 2001 07:43 am, Praedor Tempus wrote: I seem to recall seeing some question about this previously but cannot truly recall. How does one do a word count on a lyx document? Nevermind. Found it - do a spellcheck. If you hace wc installed, the following is faster: Choose File-Export-Custom, File Type ASCII, Command wc -w. [...]
Re: word count
Characters including spaces? Does any WP count spaces as characters? There certainly would be no tool for this, since LyX is very far from treating spaces as characters. If you aren't worried about the spaces between figures and such, then why be worried about the spaces between words and characters, since these are handled similarly to those of spaces between words, letters, and sentences? On Friday 21 September 2001 06:02 pm, you wrote: Thanks. Now I have a new problem (for me) for which I am almost sure there will be no tool for. First, for one of the journals that my paper could be submitted to, a word count goes a long way but for another (PNAS) it seems that they have a total character limit (words, spaces - including spaces between words and so forth, but also the space taken up by figures and tables). I'll ask anyway...is there a tool/means of counting not only the words, but also the total number of characters in a document? I'll not worry about the space taken by figures and tables since they can be scaled down (to a point) as needed. A word count gives me 5500, so a rough guestimate of characters is at least twice that amount... On Friday 21 September 2001 02:58 am, Frank Barknecht wrote: Praedor Tempus hat gesagt: // Praedor Tempus wrote: On Saturday 15 September 2001 07:43 am, Praedor Tempus wrote: I seem to recall seeing some question about this previously but cannot truly recall. How does one do a word count on a lyx document? Nevermind. Found it - do a spellcheck. If you hace wc installed, the following is faster: Choose File-Export-Custom, File Type ASCII, Command wc -w. [...]
Re: word count
Great news for Praedor! The wc command counts spaces, so if you simply remove the -c from the wc command at the bottom of this thread, you'll see three numbers output on one line. The first number is the number of lines, and is probably totally meaningless. The second number is the number of words. The third number is the number of characters, including spaces. Steve -- Steve Litt Webmaster, Troubleshooters.Com http://www.troubleshooters.com [EMAIL PROTECTED] (Legal Disclaimer) Follow these suggestions at your own risk. On Friday 21 September 2001 19:51, Christopher M. Jones wrote: Characters including spaces? Does any WP count spaces as characters? There certainly would be no tool for this, since LyX is very far from treating spaces as characters. If you aren't worried about the spaces between figures and such, then why be worried about the spaces between words and characters, since these are handled similarly to those of spaces between words, letters, and sentences? On Friday 21 September 2001 06:02 pm, you wrote: Thanks. Now I have a new problem (for me) for which I am almost sure there will be no tool for. First, for one of the journals that my paper could be submitted to, a word count goes a long way but for another (PNAS) it seems that they have a total character limit (words, spaces - including spaces between words and so forth, but also the space taken up by figures and tables). I'll ask anyway...is there a tool/means of counting not only the words, but also the total number of characters in a document? I'll not worry about the space taken by figures and tables since they can be scaled down (to a point) as needed. A word count gives me 5500, so a rough guestimate of characters is at least twice that amount... On Friday 21 September 2001 02:58 am, Frank Barknecht wrote: Praedor Tempus hat gesagt: // Praedor Tempus wrote: On Saturday 15 September 2001 07:43 am, Praedor Tempus wrote: I seem to recall seeing some question about this previously but cannot truly recall. How does one do a word count on a lyx document? Nevermind. Found it - do a spellcheck. If you hace wc installed, the following is faster: Choose File-Export-Custom, File Type ASCII, Command wc -w. [...]
Re: word count
Praedor Tempus hat gesagt: // Praedor Tempus wrote: > On Saturday 15 September 2001 07:43 am, Praedor Tempus wrote: > > I seem to recall seeing some question about this previously but cannot > > truly recall. How does one do a word count on a lyx document? > > Nevermind. Found it - do a spellcheck. If you hace "wc" installed, the following is faster: Choose "File->Export->Custom", File Type ASCII, Command "wc -w". You will find the word count in the terminal you started lyx from (or in your ~/.xsession-errors file) Of course, one could wrap this in a little skript called "wordcount" >-> #!/bin/sh echo 'Chars | Lines | Words' wc >-> bye, -- ____ Frank Barknecht __ __ trip\ \ / /wire __ / __// __ /__/ __// // __ \ \/ / __ \\ ___\ / / / / / / / // // /\ \\ ___\\ \ /_/ /_/ /_/ /_//_// / \ \\_\\_\ /_/\_\
Re: word count
Thanks. Now I have a new problem (for me) for which I am almost sure there will be no tool for. First, for one of the journals that my paper could be submitted to, a word count goes a long way but for another (PNAS) it seems that they have a total character limit (words, spaces - including spaces between words and so forth, but also the space taken up by figures and tables). I'll ask anyway...is there a tool/means of counting not only the words, but also the total number of characters in a document? I'll not worry about the space taken by figures and tables since they can be scaled down (to a point) as needed. A word count gives me 5500, so a rough guestimate of characters is at least twice that amount... On Friday 21 September 2001 02:58 am, Frank Barknecht wrote: > Praedor Tempus hat gesagt: // Praedor Tempus wrote: > > On Saturday 15 September 2001 07:43 am, Praedor Tempus wrote: > > > I seem to recall seeing some question about this previously but cannot > > > truly recall. How does one do a word count on a lyx document? > > > > Nevermind. Found it - do a spellcheck. > > If you hace "wc" installed, the following is faster: > > Choose "File->Export->Custom", File Type ASCII, Command "wc -w". [...]
Re: word count
Characters including spaces? Does any WP count spaces as characters? There certainly would be no tool for this, since LyX is very far from treating spaces as characters. If you aren't worried about the spaces between figures and such, then why be worried about the spaces between words and characters, since these are handled similarly to those of spaces between words, letters, and sentences? On Friday 21 September 2001 06:02 pm, you wrote: > Thanks. Now I have a new problem (for me) for which I am almost sure there > will be no tool for. First, for one of the journals that my paper could be > submitted to, a word count goes a long way but for another (PNAS) it seems > that they have a total character limit (words, spaces - including spaces > between words and so forth, but also the space taken up by figures and > tables). > I'll ask anyway...is there a tool/means of counting not only the words, > but also the total number of characters in a document? I'll not worry > about the space taken by figures and tables since they can be scaled down > (to a point) as needed. A word count gives me 5500, so a rough guestimate > of characters is at least twice that amount... > > On Friday 21 September 2001 02:58 am, Frank Barknecht wrote: > > Praedor Tempus hat gesagt: // Praedor Tempus wrote: > > > On Saturday 15 September 2001 07:43 am, Praedor Tempus wrote: > > > > I seem to recall seeing some question about this previously but > > > > cannot truly recall. How does one do a word count on a lyx document? > > > > > > Nevermind. Found it - do a spellcheck. > > > > If you hace "wc" installed, the following is faster: > > > > Choose "File->Export->Custom", File Type ASCII, Command "wc -w". > > [...]
Re: word count
Great news for Praedor! The wc command counts spaces, so if you simply remove the -c from the wc command at the bottom of this thread, you'll see three numbers output on one line. The first number is the number of lines, and is probably totally meaningless. The second number is the number of words. The third number is the number of characters, including spaces. Steve -- Steve Litt Webmaster, Troubleshooters.Com http://www.troubleshooters.com [EMAIL PROTECTED] (Legal Disclaimer) Follow these suggestions at your own risk. On Friday 21 September 2001 19:51, Christopher M. Jones wrote: > Characters including spaces? Does any WP count spaces as characters? There > certainly would be no tool for this, since LyX is very far from treating > spaces as characters. If you aren't worried about the spaces between > figures and such, then why be worried about the spaces between words and > characters, since these are handled similarly to those of spaces between > words, letters, and sentences? > > On Friday 21 September 2001 06:02 pm, you wrote: > > Thanks. Now I have a new problem (for me) for which I am almost sure > > there will be no tool for. First, for one of the journals that my paper > > could be submitted to, a word count goes a long way but for another > > (PNAS) it seems that they have a total character limit (words, spaces - > > including spaces between words and so forth, but also the space taken up > > by figures and tables). > > I'll ask anyway...is there a tool/means of counting not only the words, > > but also the total number of characters in a document? I'll not worry > > about the space taken by figures and tables since they can be scaled down > > (to a point) as needed. A word count gives me 5500, so a rough > > guestimate of characters is at least twice that amount... > > > > On Friday 21 September 2001 02:58 am, Frank Barknecht wrote: > > > Praedor Tempus hat gesagt: // Praedor Tempus wrote: > > > > On Saturday 15 September 2001 07:43 am, Praedor Tempus wrote: > > > > > I seem to recall seeing some question about this previously but > > > > > cannot truly recall. How does one do a word count on a lyx > > > > > document? > > > > > > > > Nevermind. Found it - do a spellcheck. > > > > > > If you hace "wc" installed, the following is faster: > > > > > > Choose "File->Export->Custom", File Type ASCII, Command "wc -w". > > > > [...]
word count
I seem to recall seeing some question about this previously but cannot truly recall. How does one do a word count on a lyx document?
Re: word count
On Saturday 15 September 2001 07:43 am, Praedor Tempus wrote: I seem to recall seeing some question about this previously but cannot truly recall. How does one do a word count on a lyx document? Nevermind. Found it - do a spellcheck. praedor
Re: word count
On Saturday 15 September 2001 09:43, Praedor Tempus wrote: I seem to recall seeing some question about this previously but cannot truly recall. How does one do a word count on a lyx document? I do about 10 wordcounts a day to track my progress on my book (44081 words at present time). I jam the wordcount into a log, once again to track progress. My script first adds to the log, then prints the log so I can see my progress for the day. Here's the shellscript: LOGFILE=/data/books/newbook/xwc.log TEMP1=`grep -v ^[\] /data/books/newbook/xtp.lyx | grep -v ^#L yX 1.1 | grep -v ^$ | wc` TEMP2=`date +%Y/%m/%d @ %H:%M:%S` echo $TEMP2 : $TEMP1 $LOGFILE cat $LOGFILE -- Steve Litt Webmaster, Troubleshooters.Com http://www.troubleshooters.com [EMAIL PROTECTED] (Legal Disclaimer) Follow these suggestions at your own risk.
word count
I seem to recall seeing some question about this previously but cannot truly recall. How does one do a word count on a lyx document?
Re: word count
On Saturday 15 September 2001 07:43 am, Praedor Tempus wrote: I seem to recall seeing some question about this previously but cannot truly recall. How does one do a word count on a lyx document? Nevermind. Found it - do a spellcheck. praedor
Re: word count
On Saturday 15 September 2001 09:43, Praedor Tempus wrote: I seem to recall seeing some question about this previously but cannot truly recall. How does one do a word count on a lyx document? I do about 10 wordcounts a day to track my progress on my book (44081 words at present time). I jam the wordcount into a log, once again to track progress. My script first adds to the log, then prints the log so I can see my progress for the day. Here's the shellscript: LOGFILE=/data/books/newbook/xwc.log TEMP1=`grep -v ^[\] /data/books/newbook/xtp.lyx | grep -v ^#L yX 1.1 | grep -v ^$ | wc` TEMP2=`date +%Y/%m/%d @ %H:%M:%S` echo $TEMP2 : $TEMP1 $LOGFILE cat $LOGFILE -- Steve Litt Webmaster, Troubleshooters.Com http://www.troubleshooters.com [EMAIL PROTECTED] (Legal Disclaimer) Follow these suggestions at your own risk.
word count
I seem to recall seeing some question about this previously but cannot truly recall. How does one do a word count on a lyx document?
Re: word count
On Saturday 15 September 2001 07:43 am, Praedor Tempus wrote: > I seem to recall seeing some question about this previously but cannot > truly recall. How does one do a word count on a lyx document? Nevermind. Found it - do a spellcheck. praedor
Re: word count
On Saturday 15 September 2001 09:43, Praedor Tempus wrote: > I seem to recall seeing some question about this previously but cannot > truly recall. How does one do a word count on a lyx document? I do about 10 wordcounts a day to track my progress on my book (44081 words at present time). I jam the wordcount into a log, once again to track progress. My script first adds to the log, then prints the log so I can see my progress for the day. Here's the shellscript: LOGFILE="/data/books/newbook/xwc.log" TEMP1=`grep -v "^[\]" /data/books/newbook/xtp.lyx | grep -v "^#L yX 1.1" | grep -v "^$" | wc` TEMP2=`date +"%Y/%m/%d @ %H:%M:%S"` echo "$TEMP2 : $TEMP1" >> $LOGFILE cat $LOGFILE -- Steve Litt Webmaster, Troubleshooters.Com http://www.troubleshooters.com [EMAIL PROTECTED] (Legal Disclaimer) Follow these suggestions at your own risk.
word count
Hello: Forgive this possible faq, but is there a way to do a word count in lyx (I have checked the documentation and found nothing) - or - should I convert to ascii and check it that way? Shawn -- Mitakuye Oyasin
Re: word count
Shawn Koons wrote: Hello: Forgive this possible faq, but is there a way to do a word count in lyx (I have checked the documentation and found nothing) - or - should I convert to ascii and check it that way? Shawn -- Mitakuye Oyasin Well, here's a perl script that should do something close (this defines a "word" as a group of letters and/or apostrophes or dashes). Uncomment the "print" line to see if it leaves the words you want. #!/usr/bin/perl -w # Count words in a lyx file my $total = 0; while () { chomp; next if ($. == 1) || m'^\\' || m'^$'; tr/-a-zA-Z' / /cds; tr/'//; # print "$_\n"; # uncomment to see it operating $total += split; } print "$total\n"; -- Ned Konz currently: Stanwood, WA email: [EMAIL PROTECTED] homepage: http://www.bike-nomad.com
Re: word count
Shawn Koons wrote: Hello: Forgive this possible faq, but is there a way to do a word count in lyx (I have checked the documentation and found nothing) - or - should I convert to ascii and check it that way? Shawn -- Mitakuye Oyasin If you run the spell checker it will tell you how many words were checked. Alternatively export the file to a latex file. There is supposed to be a program to strip out all the latex commands. Then you can use wc. I don't know what the program to strip out latex commands is called but perhaps you can use that. If I find out the name I'll let you know. Hope this helps Ralph boland
word count
Hello: Forgive this possible faq, but is there a way to do a word count in lyx (I have checked the documentation and found nothing) - or - should I convert to ascii and check it that way? Shawn -- Mitakuye Oyasin
Re: word count
Shawn Koons wrote: Hello: Forgive this possible faq, but is there a way to do a word count in lyx (I have checked the documentation and found nothing) - or - should I convert to ascii and check it that way? Shawn -- Mitakuye Oyasin Well, here's a perl script that should do something close (this defines a "word" as a group of letters and/or apostrophes or dashes). Uncomment the "print" line to see if it leaves the words you want. #!/usr/bin/perl -w # Count words in a lyx file my $total = 0; while () { chomp; next if ($. == 1) || m'^\\' || m'^$'; tr/-a-zA-Z' / /cds; tr/'//; # print "$_\n"; # uncomment to see it operating $total += split; } print "$total\n"; -- Ned Konz currently: Stanwood, WA email: [EMAIL PROTECTED] homepage: http://www.bike-nomad.com
Re: word count
Shawn Koons wrote: Hello: Forgive this possible faq, but is there a way to do a word count in lyx (I have checked the documentation and found nothing) - or - should I convert to ascii and check it that way? Shawn -- Mitakuye Oyasin If you run the spell checker it will tell you how many words were checked. Alternatively export the file to a latex file. There is supposed to be a program to strip out all the latex commands. Then you can use wc. I don't know what the program to strip out latex commands is called but perhaps you can use that. If I find out the name I'll let you know. Hope this helps Ralph boland
word count
Hello: Forgive this possible faq, but is there a way to do a word count in lyx (I have checked the documentation and found nothing) - or - should I convert to ascii and check it that way? Shawn -- Mitakuye Oyasin
Re: word count
Shawn Koons wrote: > > Hello: > > Forgive this possible faq, but is there a way to do a word count in lyx > (I have checked the documentation and found nothing) - or - should I > convert to ascii and check it that way? > > Shawn > -- > Mitakuye Oyasin Well, here's a perl script that should do something close (this defines a "word" as a group of letters and/or apostrophes or dashes). Uncomment the "print" line to see if it leaves the words you want. #!/usr/bin/perl -w # Count words in a lyx file my $total = 0; while (<>) { chomp; next if ($. == 1) || m'^\\' || m'^$'; tr/-a-zA-Z' / /cds; tr/'//; # print "$_\n"; # uncomment to see it operating $total += split; } print "$total\n"; -- Ned Konz currently: Stanwood, WA email: [EMAIL PROTECTED] homepage: http://www.bike-nomad.com
Re: word count
Shawn Koons wrote: > > Hello: > > Forgive this possible faq, but is there a way to do a word count in lyx > (I have checked the documentation and found nothing) - or - should I > convert to ascii and check it that way? > > Shawn > -- > Mitakuye Oyasin If you run the spell checker it will tell you how many words were checked. Alternatively export the file to a latex file. There is supposed to be a program to strip out all the latex commands. Then you can use wc. I don't know what the program to strip out latex commands is called but perhaps you can use that. If I find out the name I'll let you know. Hope this helps Ralph boland
Re: word count
Lyx1 wrote: I'd like to add to this: How can I set the spacing to a specific number, say 1cm? \baselineskip1cm in TeX (red), thats all ... ;-) Herbert -- [EMAIL PROTECTED] http://www.perce.de
Re: word count
Lyx1 wrote: I'd like to add to this: How can I set the spacing to a specific number, say 1cm? \baselineskip1cm in TeX (red), thats all ... ;-) Herbert -- [EMAIL PROTECTED] http://www.perce.de
Re: word count
Lyx1 wrote: > > I'd like to add to this: How can I set the spacing to a specific number, say > 1cm? \baselineskip1cm in TeX (red), thats all ... ;-) Herbert -- [EMAIL PROTECTED] http://www.perce.de
Re: word count Spacing
On Tue, 07 Dec 1999, Jonathon McKitrick wrote: Does Lyx have a word count feature? Place the cursor at the beginning of the document and spellcheck it. It tells you after doing the spell check. Also, how can I double space my document? Layout - Document - Spacing. -- Sincerely etc., NAME Christopher Sawtell - Support Engineer - iOpen Technologies Ltd. CELL PHONE 021 257 4451 ICQ UIN45863470 EMAIL chris @ iopen . co . nz, csawtell @ xtra . co . nz CNOTES ftp://ftp.funet.fi/pub/languages/C/tutorials/sawtell_C.tar.gz Please refrain from using HTML attachments in e-mails to me.
Re: word count Spacing
On Tue, 07 Dec 1999, Jonathon McKitrick wrote: Does Lyx have a word count feature? Place the cursor at the beginning of the document and spellcheck it. It tells you after doing the spell check. Also, how can I double space my document? Layout - Document - Spacing. -- Sincerely etc., NAME Christopher Sawtell - Support Engineer - iOpen Technologies Ltd. CELL PHONE 021 257 4451 ICQ UIN45863470 EMAIL chris @ iopen . co . nz, csawtell @ xtra . co . nz CNOTES ftp://ftp.funet.fi/pub/languages/C/tutorials/sawtell_C.tar.gz Please refrain from using HTML attachments in e-mails to me.
Re: word count & Spacing
On Tue, 07 Dec 1999, Jonathon McKitrick wrote: > Does Lyx have a word count feature? Place the cursor at the beginning of the document and spellcheck it. It tells you after doing the spell check. > Also, how can I double space my > document? Layout -> Document -> Spacing. -- Sincerely etc., NAME Christopher Sawtell - Support Engineer - iOpen Technologies Ltd. CELL PHONE 021 257 4451 ICQ UIN45863470 EMAIL chris @ iopen . co . nz, csawtell @ xtra . co . nz CNOTES ftp://ftp.funet.fi/pub/languages/C/tutorials/sawtell_C.tar.gz >>> Please refrain from using HTML attachments in e-mails to me. <<<
Thanks for Help, Word Count?
I would like to thank everyone who helped me get my headers straightened out. Now I can plague George Plimpton at the Paris Review with my short stories. One last question, is there a LaTeX command, or otherwise a way in LyX, for taking the word count of a document? Thanks, Paul Cooley
RE: Thanks for Help, Word Count?
On 16-Aug-99 [EMAIL PROTECTED] wrote: I would like to thank everyone who helped me get my headers straightened out. Now I can plague George Plimpton at the Paris Review with my short stories. One last question, is there a LaTeX command, or otherwise a way in LyX, for taking the word count of a document? Try to ispell the document it should tell you how many words it checked. Greets Jürgen -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ Dr. Jürgen Vigna E-Mail: [EMAIL PROTECTED] Gerbergasse 60Tel:+39-0471-450260 I-39100 Bozen Fax:+39-0471-970042 ITALY Web:http://www.sad.it/~jug It looks like it's up to me to save our skins. Get into that garbage chute, flyboy! -- Princess Leia Organa -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Thanks for Help, Word Count?
I would like to thank everyone who helped me get my headers straightened out. Now I can plague George Plimpton at the Paris Review with my short stories. One last question, is there a LaTeX command, or otherwise a way in LyX, for taking the word count of a document? Thanks, Paul Cooley
RE: Thanks for Help, Word Count?
On 16-Aug-99 [EMAIL PROTECTED] wrote: I would like to thank everyone who helped me get my headers straightened out. Now I can plague George Plimpton at the Paris Review with my short stories. One last question, is there a LaTeX command, or otherwise a way in LyX, for taking the word count of a document? Try to ispell the document it should tell you how many words it checked. Greets Jürgen -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ Dr. Jürgen Vigna E-Mail: [EMAIL PROTECTED] Gerbergasse 60Tel:+39-0471-450260 I-39100 Bozen Fax:+39-0471-970042 ITALY Web:http://www.sad.it/~jug It looks like it's up to me to save our skins. Get into that garbage chute, flyboy! -- Princess Leia Organa -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Thanks for Help, Word Count?
I would like to thank everyone who helped me get my headers straightened out. Now I can plague George Plimpton at the Paris Review with my short stories. One last question, is there a LaTeX command, or otherwise a way in LyX, for taking the word count of a document? Thanks, Paul Cooley
RE: Thanks for Help, Word Count?
On 16-Aug-99 [EMAIL PROTECTED] wrote: > I would like to thank everyone who helped me get my headers straightened out. Now I > can plague George Plimpton at the Paris Review with my short stories. One last > question, is there a LaTeX command, or otherwise a way in LyX, for taking the word > count of a document? > Try to ispell the document it should tell you how many words it checked. Greets Jürgen -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ Dr. Jürgen Vigna E-Mail: [EMAIL PROTECTED] Gerbergasse 60Tel:+39-0471-450260 I-39100 Bozen Fax:+39-0471-970042 ITALY Web:http://www.sad.it/~jug It looks like it's up to me to save our skins. Get into that garbage chute, flyboy! -- Princess Leia Organa -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._