|
Cookbook /
CountGlyphsSummary: A replacement for some of PmWiki's typographical wiki markup
Version: 2006-05-19
Prerequisites: 2.1.0
Status: Stable
Maintainer: Pm
QuestionIs there a markup that will tell me the number of characters or words on a page? AnswerThe countglyphs.phpΔ script adds ExampleThis page contains 1275 glyphs and 209 words, where {$Glyphs} - Reports the number of glyphs on this page: 1275
{$Words} - Reports the number of words on this page: 209
Notes and Comments
The algorithm considers a "word" to be any sequence of non-whitespace characters, thus Note also that the number of glyphs reported may be slightly different from a direct count, because of the existence of the See AlsoContributors |