|
Cookbook /
CountGlyphsSummary: A replacement for some of PmWiki's typographical wiki markup
Version: 20111015
Prerequisites: 2.1.0
Status: Stable
Maintainer: Pm
Categories: Markup
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 1731 glyphs and 269 words, where {$Glyphs} - Reports the number of glyphs on this page: 1731
{$Words} - Reports the number of words on this page: 269
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
User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |