tectonic icon indicating copy to clipboard operation
tectonic copied to clipboard

Word Counting

Open hughesjs opened this issue 2 years ago • 2 comments

The generally recommended solution of using wordcount from CTAN doesn't work due to Tectonic's file structure and incompatibility with legacy Tex.

As such, I think we need a command to accurately count the words in a generated build.

Something like:

tectonic -X build --count

hughesjs avatar Mar 17 '23 00:03 hughesjs

@hughesjs There are other solutions for counting the words of a tex document. Actually wordcount counts the characters (including some spaces!) and divides by 5, which is not "optimal" IMO.

I don't think tectonic should be a tool for everything related to tex.

kpym avatar Mar 17 '23 10:03 kpym

@kpym - I know there are, but none of them are ideal and the easiest point to actually evaluate the number of words in a tex document is when you're building it no?

I don't think it should do everything related to tex, I don't think we'd want it to be a linter for instance, but given that you can't really count the number of words in a tex document effectively without building it, it seems like a sensible place to have a word counter.

hughesjs avatar Mar 18 '23 15:03 hughesjs