* Word count
@ 2010-10-20 13:26 Matija Šuklje
2010-10-20 15:54 ` Wolfgang Schuster
0 siblings, 1 reply; 11+ messages in thread
From: Matija Šuklje @ 2010-10-20 13:26 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 702 bytes --]
Hullo,
since many texts (academic and otherwise) have to comply with a certain word
or character limitation and just using 'wc' on the whole source file(s) would
not be relevant, is there a way to do this in ConTeXt?
Also it would be very useful, if it was possible to get some more detailed
statistics. E.g.:
* introduction word & character count
* main text word & character count
* footnotes, marginalia etc. word & character count
* captions word & character count
* indices and bibliography word & character count
* […]
* total word & character count
Cheers,
Matija
--
gsm: +386 41 849 552
www: http://matija.suklje.name
xmpp: matija.suklje@gabbler.org
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Word count
2010-10-20 13:26 Word count Matija Šuklje
@ 2010-10-20 15:54 ` Wolfgang Schuster
2010-10-20 17:08 ` Matija Šuklje
0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2010-10-20 15:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 360 bytes --]
Am 20.10.2010 um 15:26 schrieb Matija Šuklje:
> Hullo,
>
> since many texts (academic and otherwise) have to comply with a certain word
> or character limitation and just using 'wc' on the whole source file(s) would
> not be relevant, is there a way to do this in ConTeXt?
http://www.ntg.nl/pipermail/ntg-context/2006/020549.html
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 719 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Word count
2010-10-20 15:54 ` Wolfgang Schuster
@ 2010-10-20 17:08 ` Matija Šuklje
2010-10-20 19:43 ` Hans Hagen
0 siblings, 1 reply; 11+ messages in thread
From: Matija Šuklje @ 2010-10-20 17:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: Text/Plain, Size: 701 bytes --]
Dne sreda 20. oktobra 2010 ob 17:54:27 je Wolfgang Schuster napisal(a):
> Am 20.10.2010 um 15:26 schrieb Matija Šuklje:
> > Hullo,
> >
> > since many texts (academic and otherwise) have to comply with a certain
> > word or character limitation and just using 'wc' on the whole source
> > file(s) would not be relevant, is there a way to do this in ConTeXt?
>
> http://www.ntg.nl/pipermail/ntg-context/2006/020549.html
Nice. I had a hunch, I wouldn't be the first to ask :)
Has that been already implemented into ConTeXt itself or do I have to figure
out how to run it?
Cheers,
Matija
--
gsm: +386 41 849 552
www: http://matija.suklje.name
xmpp: matija.suklje@gabbler.org
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Word count
2010-10-20 17:08 ` Matija Šuklje
@ 2010-10-20 19:43 ` Hans Hagen
2010-10-20 20:14 ` Matija Šuklje
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Hans Hagen @ 2010-10-20 19:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 20-10-2010 7:08, Matija Šuklje wrote:
> Dne sreda 20. oktobra 2010 ob 17:54:27 je Wolfgang Schuster napisal(a):
>> Am 20.10.2010 um 15:26 schrieb Matija Šuklje:
>>> Hullo,
>>>
>>> since many texts (academic and otherwise) have to comply with a certain
>>> word or character limitation and just using 'wc' on the whole source
>>> file(s) would not be relevant, is there a way to do this in ConTeXt?
>>
>> http://www.ntg.nl/pipermail/ntg-context/2006/020549.html
>
> Nice. I had a hunch, I wouldn't be the first to ask :)
>
> Has that been already implemented into ConTeXt itself or do I have to figure
> out how to run it?
I did implement it for Mojca indeed. A made it a bit more clever so that
you can play with it.
\starttext
% beware, no grouping (maybe some day, but maybe not)
\setupspellchecking[state=start,method=2]
\setupspellchecking[list=tufte] \input tufte \blank
\setupspellchecking[list=knuth] \input knuth \blank
\setupspellchecking[list=ward] \input ward \blank
\typefile{words-003.words}
\stoptext
I uploaded a beta zip that has it so it will end up in the minimals.
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Word count
2010-10-20 19:43 ` Hans Hagen
@ 2010-10-20 20:14 ` Matija Šuklje
2010-10-21 4:31 ` Wolfgang Schuster
2010-10-21 17:39 ` Otared Kavian
2010-10-25 9:01 ` Matija Šuklje
2 siblings, 1 reply; 11+ messages in thread
From: Matija Šuklje @ 2010-10-20 20:14 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: Text/Plain, Size: 385 bytes --]
Dne sreda 20. oktobra 2010 ob 21:43:38 je Hans Hagen napisal(a):
> On 20-10-2010 7:08, Matija Šuklje wrote:
> I did implement it for Mojca indeed. A made it a bit more clever so that
> you can play with it.
Cool, thanks :)
Will check it out some day soon-ish.
Cheers,
Matija
--
gsm: +386 41 849 552
www: http://matija.suklje.name
xmpp: matija.suklje@gabbler.org
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Word count
2010-10-20 19:43 ` Hans Hagen
2010-10-20 20:14 ` Matija Šuklje
@ 2010-10-21 17:39 ` Otared Kavian
2010-10-21 17:50 ` Hans Hagen
2010-10-25 9:01 ` Matija Šuklje
2 siblings, 1 reply; 11+ messages in thread
From: Otared Kavian @ 2010-10-21 17:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 873 bytes --]
On 20 oct. 2010, at 21:43, Hans Hagen wrote:
> On 20-10-2010 7:08, Matija Šuklje wrote:
>> […]
>
> I did implement it for Mojca indeed. A made it a bit more clever so that you can play with it.
Thanks a lot Hans!
That's fantastic…
However the file created by ConTeXt is \jobname.words: so
> \typefile{words-003.words}
should be
\typefile{\jobname.words}
as indicated in lang-wrd.mkiv.
Best regards: OK
>
> \starttext
>
> % beware, no grouping (maybe some day, but maybe not)
>
> \setupspellchecking[state=start,method=2]
>
> \setupspellchecking[list=tufte] \input tufte \blank
> \setupspellchecking[list=knuth] \input knuth \blank
> \setupspellchecking[list=ward] \input ward \blank
>
> \typefile{words-003.words}
>
> \stoptext
>
> I uploaded a beta zip that has it so it will end up in the minimals.
>
> Hans
>
[-- Attachment #1.2: Type: text/html, Size: 1527 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Word count
2010-10-21 17:39 ` Otared Kavian
@ 2010-10-21 17:50 ` Hans Hagen
2010-10-25 7:21 ` Florian Wobbe
0 siblings, 1 reply; 11+ messages in thread
From: Hans Hagen @ 2010-10-21 17:50 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Otared Kavian
On 21-10-2010 7:39, Otared Kavian wrote:
>
> On 20 oct. 2010, at 21:43, Hans Hagen wrote:
>
>> On 20-10-2010 7:08, Matija Šuklje wrote:
>>> […]
>>
>> I did implement it for Mojca indeed. A made it a bit more clever so that you can play with it.
>
>
> Thanks a lot Hans!
> That's fantastic…
> However the file created by ConTeXt is \jobname.words: so
>> \typefile{words-003.words}
>
> should be
> \typefile{\jobname.words}
> as indicated in lang-wrd.mkiv.
sure, although it can be another name as well .. btw, I added a shower
as well
\usemodule[s-lan-03]
\starttext
\setupspellchecking[state=start,method=2]
\setupspellchecking[list=tufte] \bold{tufte:} \input tufte \blank
\setupspellchecking[list=knuth] \bold{knuth:} \input knuth \blank
\setupspellchecking[list=ward] \bold{ward:} \input ward \blank
\setupspellchecking[state=stop]
\ctxlua{languages.words.tracers.showwords()} % no run check yet
\stoptext
and method=3 will color languages
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Word count
2010-10-21 17:50 ` Hans Hagen
@ 2010-10-25 7:21 ` Florian Wobbe
2010-10-25 8:45 ` Hans Hagen
0 siblings, 1 reply; 11+ messages in thread
From: Florian Wobbe @ 2010-10-25 7:21 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Oct 21, 2010, at 19:50 , Hans Hagen wrote:
> On 21-10-2010 7:39, Otared Kavian wrote:
>>
>> On 20 oct. 2010, at 21:43, Hans Hagen wrote:
>>
>>> On 20-10-2010 7:08, Matija Šuklje wrote:
>>>> […]
>>>
>>> I did implement it for Mojca indeed. A made it a bit more clever so that you can play with it.
>>
>>
>> Thanks a lot Hans!
>> That's fantastic…
>> However the file created by ConTeXt is \jobname.words: so
>>> \typefile{words-003.words}
>>
>> should be
>> \typefile{\jobname.words}
>> as indicated in lang-wrd.mkiv.
>
> sure, although it can be another name as well .. btw, I added a shower as well
>
> [...]
Thanks, this is a great feature! BTW, I just tried it with the example text from http://wiki.contextgarden.net/Spellchecker and noticed that it misses all words containing the german letter ß like: deßgleichen, deßhalb, Fleiß, weiß, ...
Florian
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Word count
2010-10-20 19:43 ` Hans Hagen
2010-10-20 20:14 ` Matija Šuklje
2010-10-21 17:39 ` Otared Kavian
@ 2010-10-25 9:01 ` Matija Šuklje
2 siblings, 0 replies; 11+ messages in thread
From: Matija Šuklje @ 2010-10-25 9:01 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: Text/Plain, Size: 1001 bytes --]
Dne sreda 20. oktobra 2010 ob 21:43:38 je Hans Hagen napisal(a):
> On 20-10-2010 7:08, Matija Šuklje wrote:
> > Dne sreda 20. oktobra 2010 ob 17:54:27 je Wolfgang Schuster napisal(a):
> >> Am 20.10.2010 um 15:26 schrieb Matija Šuklje:
> >>> since many texts (academic and otherwise) have to comply with a certain
> >>> word or character limitation and just using 'wc' on the whole source
> >>> file(s) would not be relevant, is there a way to do this in ConTeXt?
> >>
> >> http://www.ntg.nl/pipermail/ntg-context/2006/020549.html
> […]
> \setupspellchecking[state=start,method=2]
>
> \setupspellchecking[list=tufte] \input tufte \blank
OK, I tried this, but it outputs this:
t={
["abstract"]=1,
["activities"]=1,
["aggregate"]=1,
["also"]=1,
["animal"]=1,
["approximate"]=1,
["average"]=1,
["because"]=2,
["been"]=1,
…
What am I doing wrong? O_o
Cheers,
Matija
--
gsm: +386 41 849 552
www: http://matija.suklje.name
xmpp: matija.suklje@gabbler.org
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2010-10-25 9:01 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-20 13:26 Word count Matija Šuklje
2010-10-20 15:54 ` Wolfgang Schuster
2010-10-20 17:08 ` Matija Šuklje
2010-10-20 19:43 ` Hans Hagen
2010-10-20 20:14 ` Matija Šuklje
2010-10-21 4:31 ` Wolfgang Schuster
2010-10-21 17:39 ` Otared Kavian
2010-10-21 17:50 ` Hans Hagen
2010-10-25 7:21 ` Florian Wobbe
2010-10-25 8:45 ` Hans Hagen
2010-10-25 9:01 ` Matija Šuklje
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).