Re: Word count statistics

2019-07-12 Thread Maria Gouskova
On Mon, Jun 17, 2019 at 6:43 AM Pavel Sanda  wrote:
>
> Hi,
>
> LyX has currently an issue that the word count statistics does not include
> citations. I am unfortunately afraid that there might not be agreement whether
> these are proper words or not, depending on the publisher/journal.
>
> In your experience with different publications, how many words constitute 
> these?
> [1] : 0/1*
> (Goldman et al., 1976) : 0/1/4*
>
> I tend to implement the starred version unless it causes controversy...
> Alternatively we could count citation words separately, but I do not like
> this solution.
>
> Pavel

In my experience, the word count limit is just a guide to the
appropriate length of a paper. Ain't nobody got time to check whether
you have 502 words in your abstract or 497. But generally, it will be
apparent when you have 750 words and the limit is 500. So, as long as
you are sticking to the spirit of the word limit, you don't have to
worry about whether your references are counted as 4 words or 5.

I've checked the LyX word counter against MS Word/LibreOffice before,
and there are always slight differences in the counts, even for a text
without references. It all comes down to different views on what a
"word" is. Even when you're talking orthographic words (strings with
spaces around them), people will have different opinions on certain
tricky cases. I really don't think you are ever going to have to duke
it out with your editor, though.

Also, some journals explicitly exclude references from their word
count limit. If they care enough to legislate this, they will usually
be clear about it on their submission pages.


Re: Word Count

2008-02-08 Thread Pavel Sanda
 Is there any way around this? (short of going through the document and
 deleting the notes?

in case of lyx comments export to text file and count the words
by eg wc -w file.txt . this wont help you with greyed out text though.

 In the future perhaps a checkbox in the word-count popup that could
 toggle between counting or not counting the contents of notes would be a
 useful addition.

not requested for the first time. all patches are welcome :)

pavel


Re: Word Count

2008-02-08 Thread Pavel Sanda
 Is there any way around this? (short of going through the document and
 deleting the notes?

in case of lyx comments export to text file and count the words
by eg wc -w file.txt . this wont help you with greyed out text though.

 In the future perhaps a checkbox in the word-count popup that could
 toggle between counting or not counting the contents of notes would be a
 useful addition.

not requested for the first time. all patches are welcome :)

pavel


Re: Word Count

2008-02-08 Thread Pavel Sanda
> Is there any way around this? (short of going through the document and
> deleting the notes?

in case of lyx comments export to text file and count the words
by eg wc -w file.txt . this wont help you with greyed out text though.

> In the future perhaps a checkbox in the word-count popup that could
> toggle between counting or not counting the contents of notes would be a
> useful addition.

not requested for the first time. all patches are welcome :)

pavel


Re: word count

2003-07-08 Thread Alberto Sanchez
Thanks for all your responses, though I still think this functionality is
still very primitive. Sometimes you do not want to spell check the document,
or you just want to count the words in a paragraph/abstract. I would really
like to see this feature in forthcoming versions of lyx if possible.

Anyway, thanks for your prompt responses.

Alberto
---
Alberto Sánchez
Industrial Control Centre
50 George Street - Level 7
Glasgow, G1 1QE
Scotland - UK

Tel: +44 (141) 5484202
Fax: +44 (141) 5484203

- Original Message -
From: Rob Davies [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 07, 2003 7:55 PM
Subject: Re: word count


 On Mon, 2003-07-07 at 19:46, Alberto Sanchez wrote:
  Hi!
 
  Does anybody knows how to count words in Lyx 1.3.2? I have not found
this option, though it might be a good add-on, and probably not very
difficult to implement...I hope.

 Spellcheck the article and it will reveal a good guess at the conclusion
 of said process.
 --
 Rob Davies
 [EMAIL PROTECTED]

 'To converse is one strategy that separates us, from the Apes.'




Re: word count

2003-07-08 Thread Andre Poenitz
On Tue, Jul 08, 2003 at 10:16:47AM +0100, Alberto Sanchez wrote:
 Thanks for all your responses, though I still think this functionality is
 still very primitive.

So how many words are in

 If you think the $n^\mathrm{th}$ derivative of $e^x$ is $exp x + sin x$
 you're wrong.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Re: word count

2003-07-08 Thread Raphael Clifford
Andre Poenitz wrote:

On Tue, Jul 08, 2003 at 10:16:47AM +0100, Alberto Sanchez wrote:
 

Thanks for all your responses, though I still think this functionality is
still very primitive.
   

So how many words are in

If you think the $n^\mathrm{th}$ derivative of $e^x$ is $exp x + sin x$
you're wrong.
Andre'

 

I don't think he meant primitive as in easy to perform. If I 
understood correctly, he meant primitive as in a core operation that 
many people will want to perform on their document. That is as opposed 
to replacing the word 'picnic' with the german for 'sandwich' and 
highlighting it in blue, for example. That might well be described as 
non-primitive :)

Cheers,
Raphael



Re: word count

2003-07-08 Thread Alberto Sanchez
Yep...that is exactly what I meant. As Andre pointed out, the operation of
couting words, from a latex point of view, is not easy, but I think this
feature is something many people have to do when writting articles, theses
or other documents.


Alberto
---
Alberto Sánchez
Industrial Control Centre
50 George Street - Level 7
Glasgow, G1 1QE
Scotland - UK

Tel: +44 (141) 5484202
Fax: +44 (141) 5484203

- Original Message -
From: Raphael Clifford [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 10:39 AM
Subject: Re: word count


 Andre Poenitz wrote:

 On Tue, Jul 08, 2003 at 10:16:47AM +0100, Alberto Sanchez wrote:
 
 
 Thanks for all your responses, though I still think this functionality
is
 still very primitive.
 
 
 
 So how many words are in
 
  If you think the $n^\mathrm{th}$ derivative of $e^x$ is $exp x + sin x$
  you're wrong.
 
 Andre'
 
 
 
 I don't think he meant primitive as in easy to perform. If I
 understood correctly, he meant primitive as in a core operation that
 many people will want to perform on their document. That is as opposed
 to replacing the word 'picnic' with the german for 'sandwich' and
 highlighting it in blue, for example. That might well be described as
 non-primitive :)

 Cheers,
 Raphael





Re: word count

2003-07-08 Thread Robin Turner
Alberto Sanchez wrote:
Yep...that is exactly what I meant. As Andre pointed out, the operation of
couting words, from a latex point of view, is not easy, but I think this
feature is something many people have to do when writting articles, theses
or other documents.
If someone were to write a word count feature, something that would make 
it really nice would be the ability to count words in only one part of a 
document. Very useful for those which section to I need to cut in order 
to fit in the maximum wordcount? moments!

Robin

--
A strategy is still being formulated.
Robin Turner
IDMYO
Bilkent Univeritesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin




Re: word count

2003-07-08 Thread Alberto Sanchez
Thanks for all your responses, though I still think this functionality is
still very primitive. Sometimes you do not want to spell check the document,
or you just want to count the words in a paragraph/abstract. I would really
like to see this feature in forthcoming versions of lyx if possible.

Anyway, thanks for your prompt responses.

Alberto
---
Alberto Sánchez
Industrial Control Centre
50 George Street - Level 7
Glasgow, G1 1QE
Scotland - UK

Tel: +44 (141) 5484202
Fax: +44 (141) 5484203

- Original Message -
From: Rob Davies [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 07, 2003 7:55 PM
Subject: Re: word count


 On Mon, 2003-07-07 at 19:46, Alberto Sanchez wrote:
  Hi!
 
  Does anybody knows how to count words in Lyx 1.3.2? I have not found
this option, though it might be a good add-on, and probably not very
difficult to implement...I hope.

 Spellcheck the article and it will reveal a good guess at the conclusion
 of said process.
 --
 Rob Davies
 [EMAIL PROTECTED]

 'To converse is one strategy that separates us, from the Apes.'




Re: word count

2003-07-08 Thread Andre Poenitz
On Tue, Jul 08, 2003 at 10:16:47AM +0100, Alberto Sanchez wrote:
 Thanks for all your responses, though I still think this functionality is
 still very primitive.

So how many words are in

 If you think the $n^\mathrm{th}$ derivative of $e^x$ is $exp x + sin x$
 you're wrong.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Re: word count

2003-07-08 Thread Raphael Clifford
Andre Poenitz wrote:

On Tue, Jul 08, 2003 at 10:16:47AM +0100, Alberto Sanchez wrote:
 

Thanks for all your responses, though I still think this functionality is
still very primitive.
   

So how many words are in

If you think the $n^\mathrm{th}$ derivative of $e^x$ is $exp x + sin x$
you're wrong.
Andre'

 

I don't think he meant primitive as in easy to perform. If I 
understood correctly, he meant primitive as in a core operation that 
many people will want to perform on their document. That is as opposed 
to replacing the word 'picnic' with the german for 'sandwich' and 
highlighting it in blue, for example. That might well be described as 
non-primitive :)

Cheers,
Raphael



Re: word count

2003-07-08 Thread Alberto Sanchez
Yep...that is exactly what I meant. As Andre pointed out, the operation of
couting words, from a latex point of view, is not easy, but I think this
feature is something many people have to do when writting articles, theses
or other documents.


Alberto
---
Alberto Sánchez
Industrial Control Centre
50 George Street - Level 7
Glasgow, G1 1QE
Scotland - UK

Tel: +44 (141) 5484202
Fax: +44 (141) 5484203

- Original Message -
From: Raphael Clifford [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 10:39 AM
Subject: Re: word count


 Andre Poenitz wrote:

 On Tue, Jul 08, 2003 at 10:16:47AM +0100, Alberto Sanchez wrote:
 
 
 Thanks for all your responses, though I still think this functionality
is
 still very primitive.
 
 
 
 So how many words are in
 
  If you think the $n^\mathrm{th}$ derivative of $e^x$ is $exp x + sin x$
  you're wrong.
 
 Andre'
 
 
 
 I don't think he meant primitive as in easy to perform. If I
 understood correctly, he meant primitive as in a core operation that
 many people will want to perform on their document. That is as opposed
 to replacing the word 'picnic' with the german for 'sandwich' and
 highlighting it in blue, for example. That might well be described as
 non-primitive :)

 Cheers,
 Raphael





Re: word count

2003-07-08 Thread Robin Turner
Alberto Sanchez wrote:
Yep...that is exactly what I meant. As Andre pointed out, the operation of
couting words, from a latex point of view, is not easy, but I think this
feature is something many people have to do when writting articles, theses
or other documents.
If someone were to write a word count feature, something that would make 
it really nice would be the ability to count words in only one part of a 
document. Very useful for those which section to I need to cut in order 
to fit in the maximum wordcount? moments!

Robin

--
A strategy is still being formulated.
Robin Turner
IDMYO
Bilkent Univeritesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin




Re: word count

2003-07-08 Thread Alberto Sanchez
Thanks for all your responses, though I still think this functionality is
still very primitive. Sometimes you do not want to spell check the document,
or you just want to count the words in a paragraph/abstract. I would really
like to see this feature in forthcoming versions of lyx if possible.

Anyway, thanks for your prompt responses.

Alberto
---
Alberto Sánchez
Industrial Control Centre
50 George Street - Level 7
Glasgow, G1 1QE
Scotland - UK

Tel: +44 (141) 5484202
Fax: +44 (141) 5484203

- Original Message -
From: "Rob Davies" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 07, 2003 7:55 PM
Subject: Re: word count


> On Mon, 2003-07-07 at 19:46, Alberto Sanchez wrote:
> > Hi!
> >
> > Does anybody knows how to count words in Lyx 1.3.2? I have not found
this option, though it might be a good add-on, and probably not very
difficult to implement...I hope.
>
> Spellcheck the article and it will reveal a good guess at the conclusion
> of said process.
> --
> Rob Davies
> [EMAIL PROTECTED]
>
> 'To converse is one strategy that separates us, from the Apes.'
>



Re: word count

2003-07-08 Thread Andre Poenitz
On Tue, Jul 08, 2003 at 10:16:47AM +0100, Alberto Sanchez wrote:
> Thanks for all your responses, though I still think this functionality is
> still very primitive.

So how many words are in

 "If you think the $n^\mathrm{th}$ derivative of $e^x$ is $exp x + sin x$
 you're wrong."

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Re: word count

2003-07-08 Thread Raphael Clifford
Andre Poenitz wrote:

On Tue, Jul 08, 2003 at 10:16:47AM +0100, Alberto Sanchez wrote:
 

Thanks for all your responses, though I still think this functionality is
still very primitive.
   

So how many words are in

"If you think the $n^\mathrm{th}$ derivative of $e^x$ is $exp x + sin x$
you're wrong."
Andre'

 

I don't think he meant "primitive" as in "easy to perform". If I 
understood correctly, he meant "primitive" as in "a core operation that 
many people will want to perform on their document". That is as opposed 
to "replacing the word 'picnic' with the german for 'sandwich' and 
highlighting it in blue", for example. That might well be described as 
"non-primitive" :)

Cheers,
Raphael



Re: word count

2003-07-08 Thread Alberto Sanchez
Yep...that is exactly what I meant. As Andre pointed out, the operation of
couting words, from a latex point of view, is not easy, but I think this
feature is something many people have to do when writting articles, theses
or other documents.


Alberto
---
Alberto Sánchez
Industrial Control Centre
50 George Street - Level 7
Glasgow, G1 1QE
Scotland - UK

Tel: +44 (141) 5484202
Fax: +44 (141) 5484203

- Original Message -
From: "Raphael Clifford" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 08, 2003 10:39 AM
Subject: Re: word count


> Andre Poenitz wrote:
>
> >On Tue, Jul 08, 2003 at 10:16:47AM +0100, Alberto Sanchez wrote:
> >
> >
> >>Thanks for all your responses, though I still think this functionality
is
> >>still very primitive.
> >>
> >>
> >
> >So how many words are in
> >
> > "If you think the $n^\mathrm{th}$ derivative of $e^x$ is $exp x + sin x$
> > you're wrong."
> >
> >Andre'
> >
> >
> >
> I don't think he meant "primitive" as in "easy to perform". If I
> understood correctly, he meant "primitive" as in "a core operation that
> many people will want to perform on their document". That is as opposed
> to "replacing the word 'picnic' with the german for 'sandwich' and
> highlighting it in blue", for example. That might well be described as
> "non-primitive" :)
>
> Cheers,
> Raphael
>
>



Re: word count

2003-07-08 Thread Robin Turner
Alberto Sanchez wrote:
Yep...that is exactly what I meant. As Andre pointed out, the operation of
couting words, from a latex point of view, is not easy, but I think this
feature is something many people have to do when writting articles, theses
or other documents.
If someone were to write a word count feature, something that would make 
it really nice would be the ability to count words in only one part of a 
document. Very useful for those "which section to I need to cut in order 
to fit in the maximum wordcount?" moments!

Robin

--
"A strategy is still being formulated."
Robin Turner
IDMYO
Bilkent Univeritesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin




Re: word count

2003-07-07 Thread Christian Ridderström
On Mon, 7 Jul 2003, Alberto Sanchez wrote:

 Hi!
 
 Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, 
 though it might be a good add-on, and probably not very difficult to implement...I 
 hope.

See FAQ, here's an online 
version:
http://ev-en.org/wikis/moin.cgi/LyxFAQ6#line51

/Christian

-- 
Christian Ridderström   http://www.md.kth.se/~chr




Re: word count

2003-07-07 Thread Christian Ridderström
On Mon, 7 Jul 2003, Christian Ridderström wrote:

 On Mon, 7 Jul 2003, Alberto Sanchez wrote:
 
  Hi!
  
  Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, 
  though it might be a good add-on, and probably not very difficult to implement...I 
  hope.
 
 See FAQ, here's an online 
 version:

Typo (I'm on Windows/Pine here, can't paste properly). The correct URI 
should be:

http://ev-en.org/wiki/moin.cgi/LyxFAQ6#line51

sigh.

/Christian

PS. Thanks Raphael for pointing this out. DS
-- 
Christian Ridderström   http://www.md.kth.se/~chr




Re: word count

2003-07-07 Thread Rob Davies
On Mon, 2003-07-07 at 19:46, Alberto Sanchez wrote:
 Hi!
 
 Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, 
 though it might be a good add-on, and probably not very difficult to implement...I 
 hope.

Spellcheck the article and it will reveal a good guess at the conclusion
of said process.
-- 
Rob Davies
[EMAIL PROTECTED]

'To converse is one strategy that separates us, from the Apes.'



Re: word count

2003-07-07 Thread Christian Ridderström
On Mon, 7 Jul 2003, Alberto Sanchez wrote:

 Hi!
 
 Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, 
 though it might be a good add-on, and probably not very difficult to implement...I 
 hope.

See FAQ, here's an online 
version:
http://ev-en.org/wikis/moin.cgi/LyxFAQ6#line51

/Christian

-- 
Christian Ridderström   http://www.md.kth.se/~chr




Re: word count

2003-07-07 Thread Christian Ridderström
On Mon, 7 Jul 2003, Christian Ridderström wrote:

 On Mon, 7 Jul 2003, Alberto Sanchez wrote:
 
  Hi!
  
  Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, 
  though it might be a good add-on, and probably not very difficult to implement...I 
  hope.
 
 See FAQ, here's an online 
 version:

Typo (I'm on Windows/Pine here, can't paste properly). The correct URI 
should be:

http://ev-en.org/wiki/moin.cgi/LyxFAQ6#line51

sigh.

/Christian

PS. Thanks Raphael for pointing this out. DS
-- 
Christian Ridderström   http://www.md.kth.se/~chr




Re: word count

2003-07-07 Thread Rob Davies
On Mon, 2003-07-07 at 19:46, Alberto Sanchez wrote:
 Hi!
 
 Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, 
 though it might be a good add-on, and probably not very difficult to implement...I 
 hope.

Spellcheck the article and it will reveal a good guess at the conclusion
of said process.
-- 
Rob Davies
[EMAIL PROTECTED]

'To converse is one strategy that separates us, from the Apes.'



Re: word count

2003-07-07 Thread Christian Ridderström
On Mon, 7 Jul 2003, Alberto Sanchez wrote:

> Hi!
> 
> Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, 
> though it might be a good add-on, and probably not very difficult to implement...I 
> hope.

See FAQ, here's an online 
version:
http://ev-en.org/wikis/moin.cgi/LyxFAQ6#line51

/Christian

-- 
Christian Ridderström   http://www.md.kth.se/~chr




Re: word count

2003-07-07 Thread Christian Ridderström
On Mon, 7 Jul 2003, Christian Ridderström wrote:

> On Mon, 7 Jul 2003, Alberto Sanchez wrote:
> 
> > Hi!
> > 
> > Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, 
> > though it might be a good add-on, and probably not very difficult to implement...I 
> > hope.
> 
> See FAQ, here's an online 
> version:

Typo (I'm on Windows/Pine here, can't paste properly). The correct URI 
should be:

http://ev-en.org/wiki/moin.cgi/LyxFAQ6#line51

sigh.

/Christian

PS. Thanks Raphael for pointing this out. DS
-- 
Christian Ridderström   http://www.md.kth.se/~chr




Re: word count

2003-07-07 Thread Rob Davies
On Mon, 2003-07-07 at 19:46, Alberto Sanchez wrote:
> Hi!
> 
> Does anybody knows how to count words in Lyx 1.3.2? I have not found this option, 
> though it might be a good add-on, and probably not very difficult to implement...I 
> hope.

Spellcheck the article and it will reveal a good guess at the conclusion
of said process.
-- 
Rob Davies
[EMAIL PROTECTED]

'To converse is one strategy that separates us, from the Apes.'



Re: Word count

2003-03-10 Thread Christian Ridderström
On Mon, 10 Mar 2003, Jose wrote:

 Hi, all is there a way to count words on lyx?
 
 thanks
 
 Jose
See the FAQ, 
http://ev-en.org/wiki/moin.cgi/LyxFAQ?action=show#line51

/Christian

-- 
Christian Ridderström   http://www.md.kth.se/~chr




Re: Word count

2003-03-10 Thread Jean-Marc Lasgouttes
 Christian == Christian Ridderström [EMAIL PROTECTED] writes:

Christian On Mon, 10 Mar 2003, Jose wrote:
 Hi, all is there a way to count words on lyx?
 
 thanks
 
 Jose
Christian See the FAQ,
Christian http://ev-en.org/wiki/moin.cgi/LyxFAQ?action=show#line51

I do not know how relevant and/or useful it is, but the following
package appeared recently on CTAN.

JMarc

---
From: Jim Hefferon [EMAIL PROTECTED]
Subject: New CTAN material: latexcount
To: [EMAIL PROTECTED]
X-Sent: 2 days, 2 hours, 22 minutes, 9 seconds ago

A new package has been installed at the tug.ctan.org node of 
CTAN and should make its way to your favorite mirror soon. 

Thanks for the upload,
Jim Hefferon
[EMAIL PROTECTED]

==

The following information was provided by our fellow contributor.

Name of contribution: latexcount
Author's name: P.D. Magnus
Location on CTAN: support/misc
Summary description: Perl script generates word count of LaTeX documents
License type: lppl

Announcement text given by the contribution's author:
- - --
The latexcount script gives a reasonably accurate count of the number of 
words in the main text of an article, the number of words in footnotes, and 
the number of words total. The list of tags that don't get counted can be 
added to as needed.
- - --



Re: Word count

2003-03-10 Thread Jose
Hi Christian, thank you very much.

Jose

Christian Ridderström wrote:

On Mon, 10 Mar 2003, Jose wrote:

 

Hi, all is there a way to count words on lyx?

thanks

Jose
   

See the FAQ, 
http://ev-en.org/wiki/moin.cgi/LyxFAQ?action=show#line51

/Christian

 






Re: Word count

2003-03-10 Thread Kenward Vaughan
On Mon, Mar 10, 2003 at 08:14:57AM -0600, Jose wrote:
 Hi, all is there a way to count words on lyx?

Spellcheck. Or Ascii output followed by wc on the file (if it's large)?

Kenward
-- 
In a completely rational society, the best of us would aspire to be 
_teachers_ and the rest of us would have to settle for something less, 
because passing civilization along from one generation to the next 
ought to be the highest honor and the highest responsibility anyone 
could have. - Lee Iacocca



Re: Word count

2003-03-10 Thread Ronald Florence
Kenward Vaughan [EMAIL PROTECTED] writes:

 On Mon, Mar 10, 2003 at 08:14:57AM -0600, Jose wrote:
  Hi, all is there a way to count words on lyx?

Click File - Export - Custom - Ascii, then supply the command name
`wc | xmessage -file -' and you'll get a popup with the line, word,
and character counts.
-- 

Ronald Florence www.18james.com



Re: Word count

2003-03-10 Thread Christian Ridderström
On Mon, 10 Mar 2003, Jose wrote:

 Hi, all is there a way to count words on lyx?
 
 thanks
 
 Jose
See the FAQ, 
http://ev-en.org/wiki/moin.cgi/LyxFAQ?action=show#line51

/Christian

-- 
Christian Ridderström   http://www.md.kth.se/~chr




Re: Word count

2003-03-10 Thread Jean-Marc Lasgouttes
 Christian == Christian Ridderström [EMAIL PROTECTED] writes:

Christian On Mon, 10 Mar 2003, Jose wrote:
 Hi, all is there a way to count words on lyx?
 
 thanks
 
 Jose
Christian See the FAQ,
Christian http://ev-en.org/wiki/moin.cgi/LyxFAQ?action=show#line51

I do not know how relevant and/or useful it is, but the following
package appeared recently on CTAN.

JMarc

---
From: Jim Hefferon [EMAIL PROTECTED]
Subject: New CTAN material: latexcount
To: [EMAIL PROTECTED]
X-Sent: 2 days, 2 hours, 22 minutes, 9 seconds ago

A new package has been installed at the tug.ctan.org node of 
CTAN and should make its way to your favorite mirror soon. 

Thanks for the upload,
Jim Hefferon
[EMAIL PROTECTED]

==

The following information was provided by our fellow contributor.

Name of contribution: latexcount
Author's name: P.D. Magnus
Location on CTAN: support/misc
Summary description: Perl script generates word count of LaTeX documents
License type: lppl

Announcement text given by the contribution's author:
- - --
The latexcount script gives a reasonably accurate count of the number of 
words in the main text of an article, the number of words in footnotes, and 
the number of words total. The list of tags that don't get counted can be 
added to as needed.
- - --



Re: Word count

2003-03-10 Thread Jose
Hi Christian, thank you very much.

Jose

Christian Ridderström wrote:

On Mon, 10 Mar 2003, Jose wrote:

 

Hi, all is there a way to count words on lyx?

thanks

Jose
   

See the FAQ, 
http://ev-en.org/wiki/moin.cgi/LyxFAQ?action=show#line51

/Christian

 






Re: Word count

2003-03-10 Thread Kenward Vaughan
On Mon, Mar 10, 2003 at 08:14:57AM -0600, Jose wrote:
 Hi, all is there a way to count words on lyx?

Spellcheck. Or Ascii output followed by wc on the file (if it's large)?

Kenward
-- 
In a completely rational society, the best of us would aspire to be 
_teachers_ and the rest of us would have to settle for something less, 
because passing civilization along from one generation to the next 
ought to be the highest honor and the highest responsibility anyone 
could have. - Lee Iacocca



Re: Word count

2003-03-10 Thread Ronald Florence
Kenward Vaughan [EMAIL PROTECTED] writes:

 On Mon, Mar 10, 2003 at 08:14:57AM -0600, Jose wrote:
  Hi, all is there a way to count words on lyx?

Click File - Export - Custom - Ascii, then supply the command name
`wc | xmessage -file -' and you'll get a popup with the line, word,
and character counts.
-- 

Ronald Florence www.18james.com



Re: Word count

2003-03-10 Thread Christian Ridderström
On Mon, 10 Mar 2003, Jose wrote:

> Hi, all is there a way to count words on lyx?
> 
> thanks
> 
> Jose
See the FAQ, 
http://ev-en.org/wiki/moin.cgi/LyxFAQ?action=show#line51

/Christian

-- 
Christian Ridderström   http://www.md.kth.se/~chr




Re: Word count

2003-03-10 Thread Jean-Marc Lasgouttes
> "Christian" == Christian Ridderström <[EMAIL PROTECTED]> writes:

Christian> On Mon, 10 Mar 2003, Jose wrote:
>> Hi, all is there a way to count words on lyx?
>> 
>> thanks
>> 
>> Jose
Christian> See the FAQ,
Christian> http://ev-en.org/wiki/moin.cgi/LyxFAQ?action=show#line51

I do not know how relevant and/or useful it is, but the following
package appeared recently on CTAN.

JMarc

---
From: Jim Hefferon <[EMAIL PROTECTED]>
Subject: New CTAN material: latexcount
To: [EMAIL PROTECTED]
X-Sent: 2 days, 2 hours, 22 minutes, 9 seconds ago

A new package has been installed at the tug.ctan.org node of 
CTAN and should make its way to your favorite mirror soon. 

Thanks for the upload,
Jim Hefferon
[EMAIL PROTECTED]

==

The following information was provided by our fellow contributor.

Name of contribution: latexcount
Author's name: P.D. Magnus
Location on CTAN: support/misc
Summary description: Perl script generates word count of LaTeX documents
License type: lppl

Announcement text given by the contribution's author:
- - --
The latexcount script gives a reasonably accurate count of the number of 
words in the main text of an article, the number of words in footnotes, and 
the number of words total. The list of tags that don't get counted can be 
added to as needed.
- - --



Re: Word count

2003-03-10 Thread Jose
Hi Christian, thank you very much.

Jose

Christian Ridderström wrote:

On Mon, 10 Mar 2003, Jose wrote:

 

Hi, all is there a way to count words on lyx?

thanks

Jose
   

See the FAQ, 
http://ev-en.org/wiki/moin.cgi/LyxFAQ?action=show#line51

/Christian

 






Re: Word count

2003-03-10 Thread Kenward Vaughan
On Mon, Mar 10, 2003 at 08:14:57AM -0600, Jose wrote:
> Hi, all is there a way to count words on lyx?

Spellcheck. Or Ascii output followed by wc on the file (if it's large)?

Kenward
-- 
In a completely rational society, the best of us would aspire to be 
_teachers_ and the rest of us would have to settle for something less, 
because passing civilization along from one generation to the next 
ought to be the highest honor and the highest responsibility anyone 
could have. - Lee Iacocca



Re: Word count

2003-03-10 Thread Ronald Florence
Kenward Vaughan <[EMAIL PROTECTED]> writes:

> On Mon, Mar 10, 2003 at 08:14:57AM -0600, Jose wrote:
> > Hi, all is there a way to count words on lyx?

Click File -> Export -> Custom -> Ascii, then supply the command name
`wc | xmessage -file -' and you'll get a popup with the line, word,
and character counts.
-- 

Ronald Florence www.18james.com



Re: Word count ;-)

2002-05-14 Thread Robin Turner

On Tuesday 14 May 2002 09:52, Martin Vermeer wrote:
 Read the comments here about word count in OpenOffice::

   http://linuxtoday.com/news_story.php3?ltsn=2002-05-13-014-26-RV-DT
-SWtbovrmode=1#talkback_area

 We have a word count function too, somewhat hidden:
 custom export to ASCII defining the command as wc -w.

The spellcheck also works as a word count.

 Should this be provided more explicitly? 

Yes, if only to save time and prove to the skeptics that LyX can 
count!

Robin

-- 
Bravo Epictetus! - Epictetus

Robin Turner
IDMYO, Bilkent Universitesi
Ankara 06533
Turkey

http://www.bilkent.edu.tr/~robin



Re: Word count ;-)

2002-05-14 Thread Robin Turner

On Tuesday 14 May 2002 09:52, Martin Vermeer wrote:
 Read the comments here about word count in OpenOffice::

   http://linuxtoday.com/news_story.php3?ltsn=2002-05-13-014-26-RV-DT
-SWtbovrmode=1#talkback_area

 We have a word count function too, somewhat hidden:
 custom export to ASCII defining the command as wc -w.

The spellcheck also works as a word count.

 Should this be provided more explicitly? 

Yes, if only to save time and prove to the skeptics that LyX can 
count!

Robin

-- 
Bravo Epictetus! - Epictetus

Robin Turner
IDMYO, Bilkent Universitesi
Ankara 06533
Turkey

http://www.bilkent.edu.tr/~robin



Re: Word count ;-)

2002-05-14 Thread Robin Turner

On Tuesday 14 May 2002 09:52, Martin Vermeer wrote:
> Read the comments here about word count in OpenOffice::
>
>   http://linuxtoday.com/news_story.php3?ltsn=2002-05-13-014-26-RV-DT
>-SW=1#talkback_area
>
> We have a word count function too, somewhat hidden:
> custom export to ASCII defining the command as wc -w.

The spellcheck also works as a word count.

> Should this be provided more explicitly? 

Yes, if only to save time and prove to the skeptics that LyX can 
count!

Robin

-- 
"Bravo Epictetus!" - Epictetus

Robin Turner
IDMYO, Bilkent Universitesi
Ankara 06533
Turkey

http://www.bilkent.edu.tr/~robin



RE: word count

2002-05-06 Thread Reuter, Joseph


Kayvan A Sylvan wrote:
 
 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.
 

Lyx 1.1.6 has the operation File-export-ASCII. Why not do that and then
use wc on the resulting file?

Joe



RE: word count

2002-05-06 Thread Mark Hansel

On Mon, 6 May 2002, Reuter, Joseph wrote:
Kayvan A Sylvan wrote:
 
 Of course. It's detex, not deLyX.

Lyx 1.1.6 has the operation File-export-ASCII. Why not do that and then
use wc on the resulting file?

OK: This would be perfect if you could pipe the output from lyx to wc. I
prefer pipes to files for operations like this and I don't find a flag to
force output to standard output. So, you have to do something like the
following.

path, if necessarylyx --export text file.lyx
wc flags file.txt
rm file.txt 

If, like me, you have aliased lyx for geometry and to force share a shared
color map, you must provide the entire path.  The grep approach (which
requires some knowledge of the lyx file format) is much faster. However,
both are fast and probably fast enough. (The difference is between
fractions of a second a couple of seconds on an alpha LX164. YMMV)

-- 
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

2002-05-06 Thread Reuter, Joseph


Kayvan A Sylvan wrote:
 
 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.
 

Lyx 1.1.6 has the operation File-export-ASCII. Why not do that and then
use wc on the resulting file?

Joe



RE: word count

2002-05-06 Thread Mark Hansel

On Mon, 6 May 2002, Reuter, Joseph wrote:
Kayvan A Sylvan wrote:
 
 Of course. It's detex, not deLyX.

Lyx 1.1.6 has the operation File-export-ASCII. Why not do that and then
use wc on the resulting file?

OK: This would be perfect if you could pipe the output from lyx to wc. I
prefer pipes to files for operations like this and I don't find a flag to
force output to standard output. So, you have to do something like the
following.

path, if necessarylyx --export text file.lyx
wc flags file.txt
rm file.txt 

If, like me, you have aliased lyx for geometry and to force share a shared
color map, you must provide the entire path.  The grep approach (which
requires some knowledge of the lyx file format) is much faster. However,
both are fast and probably fast enough. (The difference is between
fractions of a second a couple of seconds on an alpha LX164. YMMV)

-- 
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

2002-05-06 Thread Reuter, Joseph


Kayvan A Sylvan wrote:
> 
> 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.
> 

Lyx 1.1.6 has the operation File->export->ASCII. Why not do that and then
use wc on the resulting file?

Joe



RE: word count

2002-05-06 Thread Mark Hansel

On Mon, 6 May 2002, Reuter, Joseph wrote:
>Kayvan A Sylvan wrote:
>> 
>> Of course. It's detex, not deLyX.

>Lyx 1.1.6 has the operation File->export->ASCII. Why not do that and then
>use wc on the resulting file?

OK: This would be perfect if you could pipe the output from lyx to wc. I
prefer pipes to files for operations like this and I don't find a flag to
force output to standard output. So, you have to do something like the
following.

lyx --export text file.lyx
wc  file.txt
rm file.txt 

If, like me, you have aliased lyx for geometry and to force share a shared
color map, you must provide the entire path.  The grep approach (which
requires some knowledge of the lyx file format) is much faster. However,
both are fast and probably fast enough. (The difference is between
fractions of a second a couple of seconds on an alpha LX164. YMMV)

-- 
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

2002-05-03 Thread Tuukka Toivonen

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

2002-05-03 Thread Mark Hansel

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

2002-05-03 Thread Matej Cepl

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

2002-05-03 Thread Steve Litt

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

2002-05-03 Thread Matej Cepl

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

2002-05-03 Thread Mark Hansel

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

2002-05-03 Thread Kayvan A. Sylvan

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

2002-05-03 Thread Tuukka Toivonen

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

2002-05-03 Thread Mark Hansel

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

2002-05-03 Thread Matej Cepl

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

2002-05-03 Thread Steve Litt

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

2002-05-03 Thread Matej Cepl

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

2002-05-03 Thread Mark Hansel

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

2002-05-03 Thread Kayvan A. Sylvan

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

2002-05-03 Thread Tuukka Toivonen

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

2002-05-03 Thread Mark Hansel

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

2002-05-03 Thread Matej Cepl

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

2002-05-03 Thread Steve Litt

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

2002-05-03 Thread Matej Cepl

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

2002-05-03 Thread Mark Hansel

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

2002-05-03 Thread Kayvan A. Sylvan

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

2001-09-22 Thread Frank Barknecht

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

2001-09-22 Thread Steve Litt

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

2001-09-22 Thread Frank Barknecht

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

2001-09-22 Thread Steve Litt

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

2001-09-22 Thread Frank Barknecht

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

2001-09-22 Thread Steve Litt

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

2001-09-21 Thread Frank Barknecht

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

2001-09-21 Thread Praedor

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

2001-09-21 Thread Christopher M. Jones

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

2001-09-21 Thread Steve Litt

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

2001-09-21 Thread Frank Barknecht

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

2001-09-21 Thread Praedor

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

2001-09-21 Thread Christopher M. Jones

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

2001-09-21 Thread Steve Litt

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

2001-09-21 Thread Frank Barknecht

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

2001-09-21 Thread Praedor

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

2001-09-21 Thread Christopher M. Jones

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

2001-09-21 Thread Steve Litt

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

2001-09-17 Thread Praedor Tempus

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

2001-09-17 Thread Steve Litt

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.







Re: word count

2001-09-17 Thread Praedor Tempus

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

2001-09-17 Thread Steve Litt

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.







Re: word count

2001-09-17 Thread Praedor Tempus

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

2001-09-17 Thread Steve Litt

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.







Re: word count

2000-05-08 Thread Ned Konz

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

2000-05-08 Thread Ralph Boland

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

2000-05-08 Thread Ned Konz

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



  1   2   >