Re: [NTG-context] Word count

2010-10-25 Thread Florian Wobbe
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
___


Re: [NTG-context] Word count

2010-10-25 Thread Hans Hagen

On 25-10-2010 9:21, Florian Wobbe wrote:


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ß, 
...


fixed in next beta

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


Re: [NTG-context] Word count

2010-10-25 Thread Matija Šuklje
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.suk...@gabbler.org


signature.asc
Description: This is a digitally signed message part.
___
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
___


Re: [NTG-context] Word count

2010-10-21 Thread Hans Hagen

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
___


Re: [NTG-context] Word count

2010-10-20 Thread Wolfgang Schuster

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

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


Re: [NTG-context] Word count

2010-10-20 Thread Matija Šuklje
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.suk...@gabbler.org


signature.asc
Description: This is a digitally signed message part.
___
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
___


Re: [NTG-context] Word count

2010-10-20 Thread Hans Hagen

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
___


Re: [NTG-context] Word count

2010-10-20 Thread Matija Šuklje
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.suk...@gabbler.org


signature.asc
Description: This is a digitally signed message part.
___
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
___


Re: [NTG-context] Word count

2010-10-20 Thread Wolfgang Schuster

Am 20.10.2010 um 22:14 schrieb Matija Šuklje:

 Will check it out some day soon-ish.

Another example from the spellchecker: 
http://wiki.contextgarden.net/Spellchecker

Wolfgang

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