* Re: lang-wrd.lua - howto count 1-, 2-, and 3-letter words?
@ 2011-03-14 19:21 Reviczky, Adam
2011-03-14 20:04 ` Florian Wobbe
0 siblings, 1 reply; 3+ messages in thread
From: Reviczky, Adam @ 2011-03-14 19:21 UTC (permalink / raw)
To: mailing list for ConTeXt users
>> So I tried to set "words.threshold = 4" in context/base/lang-wrd.lua to smaller values but this does not change anything.
You have to regenerate the formats too, after you changed the value.
Otherwise you could use directly in your document:
\ctxlua{languages.words.threshold=1}
Adam
___________________________________________________________________________________
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] 3+ messages in thread
* Re: lang-wrd.lua - howto count 1-, 2-, and 3-letter words?
2011-03-14 19:21 lang-wrd.lua - howto count 1-, 2-, and 3-letter words? Reviczky, Adam
@ 2011-03-14 20:04 ` Florian Wobbe
0 siblings, 0 replies; 3+ messages in thread
From: Florian Wobbe @ 2011-03-14 20:04 UTC (permalink / raw)
To: mailing list for ConTeXt users
>>> So I tried to set "words.threshold = 4" in context/base/lang-wrd.lua to smaller values but this does not change anything.
> You have to regenerate the formats too, after you changed the value.
I thought I did but obviously something went wrong. Now it works...
> Otherwise you could use directly in your document:
> \ctxlua{languages.words.threshold=1}
Thanks, exactly what I need!
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] 3+ messages in thread
* lang-wrd.lua - howto count 1-, 2-, and 3-letter words?
@ 2011-03-14 11:56 Florian Wobbe
0 siblings, 0 replies; 3+ messages in thread
From: Florian Wobbe @ 2011-03-14 11:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
I'd like to ask an early question again in a different way: I need to count every word in a document but lang-wrd.lua counts only words with 4+ letters.
So I tried to set "words.threshold = 4" in context/base/lang-wrd.lua to smaller values but this does not change anything.
I don't know where to start looking. Also I am searching for a non-global solution without changing the core files.
Thanks!
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] 3+ messages in thread
end of thread, other threads:[~2011-03-14 20:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-14 19:21 lang-wrd.lua - howto count 1-, 2-, and 3-letter words? Reviczky, Adam
2011-03-14 20:04 ` Florian Wobbe
-- strict thread matches above, loose matches on Subject: below --
2011-03-14 11:56 Florian Wobbe
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).