Re: [NTG-context] counting the words in a TeX document

2006-08-08 Thread Hans Hagen
Mojca Miklavec wrote: > On 8/7/06, Hans Hagen wrote: > >>> (I'll spare you the fun with sections for some other time,) but since >>> you reminded me that I might have some questions left, here you have >>> another one: how do I replace hyphens, en-dashes and em-dashes with >>> "spaces/line break

Re: [NTG-context] counting the words in a TeX document

2006-08-07 Thread Aditya Mahajan
On Mon, 7 Aug 2006, Mojca Miklavec wrote: > On 8/7/06, Hans Hagen wrote: >> >>> (I'll spare you the fun with sections for some other time,) but since >>> you reminded me that I might have some questions left, here you have >>> another one: how do I replace hyphens, en-dashes and em-dashes with >>>

Re: [NTG-context] counting the words in a TeX document

2006-08-07 Thread Mojca Miklavec
On 8/7/06, Hans Hagen wrote: > > > (I'll spare you the fun with sections for some other time,) but since > > you reminded me that I might have some questions left, here you have > > another one: how do I replace hyphens, en-dashes and em-dashes with > > "spaces/line breaks"? > >\catcode`~=1

Re: [NTG-context] counting the words in a TeX document

2006-08-07 Thread Hans Hagen
Mojca Miklavec wrote: > On 8/7/06, Hans Hagen wrote: > >> Mojca Miklavec wrote: >> ftp://tug.ctan.org/pub/tex-archive/macros/plain/contrib/misc/xii.tex >> yeah, a famous tex master piece! >> But of course, you will not write anything like this in an ab

Re: [NTG-context] counting the words in a TeX document

2006-08-07 Thread Mojca Miklavec
On 8/7/06, Hans Hagen wrote: > Mojca Miklavec wrote: > >> ftp://tug.ctan.org/pub/tex-archive/macros/plain/contrib/misc/xii.tex > >> > >> > yeah, a famous tex master piece! > >> But of course, you will not write anything like this in an abstract > >> :-) > >> > hm, let me provide a word counter for

Re: [NTG-context] counting the words in a TeX document

2006-08-07 Thread Hans Hagen
Mojca Miklavec wrote: >> ftp://tug.ctan.org/pub/tex-archive/macros/plain/contrib/misc/xii.tex >> >> yeah, a famous tex master piece! >> But of course, you will not write anything like this in an abstract >> :-) >> hm, let me provide a word counter for that one before you get the idea to a

Re: [NTG-context] counting the words in a TeX document

2006-08-07 Thread Mojca Miklavec
On 8/6/06, Aditya Mahajan wrote: > On Sun, 6 Aug 2006, Mojca Miklavec wrote: > > Base on those three answers I got a more clear idea of two (different, > > but complementary) methods that might be sensible: > > > > a) ctxtools --wordcount filename[tex|pdf] > > to do the wordcount for the whole docu

Re: [NTG-context] counting the words in a TeX document

2006-08-06 Thread Aditya Mahajan
On Sun, 6 Aug 2006, Mojca Miklavec wrote: > Base on those three answers I got a more clear idea of two (different, > but complementary) methods that might be sensible: > > a) ctxtools --wordcount filename[tex|pdf] > to do the wordcount for the whole document using pdftotext + ruby regexp > > b) > \

Re: [NTG-context] counting the words in a TeX document

2006-08-06 Thread Hans Hagen
Mojca Miklavec wrote: > t complementary) methods that might be sensible: > > a) ctxtools --wordcount filename[tex|pdf] > to do the wordcount for the whole document using pdftotext + ruby regexp > counting words in tex docs is not that hard: it needs in addition: delete all the words starting w

Re: [NTG-context] counting the words in a TeX document

2006-08-05 Thread Mojca Miklavec
On 8/5/06, Hans Hagen wrote: > Mojca Miklavec wrote: > > Hello, > > > > I would like to ask how difficult it would be to count the number of > > words in a TeX/ConTeXt document. If it's too complex, please ignore > > the rest of the message. > the way i do such things (and worse trickery) is using

Re: [NTG-context] counting the words in a TeX document

2006-08-05 Thread gnwiii
On 8/5/06, Mojca Miklavec <[EMAIL PROTECTED]> wrote: > Hello, > > I would like to ask how difficult it would be to count the number of > words in a TeX/ConTeXt document. If it's too complex, please ignore > the rest of the message. It wasn't too complex for Michael Downes using LaTeX: \ProvidesFi

Re: [NTG-context] counting the words in a TeX document

2006-08-05 Thread Hans Hagen
Mojca Miklavec wrote: > Hello, > > I would like to ask how difficult it would be to count the number of > words in a TeX/ConTeXt document. If it's too complex, please ignore > the rest of the message. > the way i do such things (and worse trickery) is using pdftotext you can of course use tex,

Re: [NTG-context] counting the words in a TeX document

2006-08-05 Thread Aditya Mahajan
On Sat, 5 Aug 2006, Mojca Miklavec wrote: > I would like to ask how difficult it would be to count the number of > words in a TeX/ConTeXt document. If it's too complex, please ignore > the rest of the message. > > > Most recipes for LaTeX say that it's best to do something like > "pdftotext" and th

[NTG-context] counting the words in a TeX document

2006-08-05 Thread Mojca Miklavec
Hello, I would like to ask how difficult it would be to count the number of words in a TeX/ConTeXt document. If it's too complex, please ignore the rest of the message. Most recipes for LaTeX say that it's best to do something like "pdftotext" and then issue "wc" to count the words in the result