Re: [NTG-context] lang-wrd.lua - howto count 1-, 2-, and 3-letter words?
>>> 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 ___
Re: [NTG-context] lang-wrd.lua - howto count 1-, 2-, and 3-letter words?
>> 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 ___
[NTG-context] lang-wrd.lua - howto count 1-, 2-, and 3-letter words?
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 ___