Am 21.03.2012 00:10, schrieb Massimo Manghi: > On Wed, 2012-03-14 at 17:59 +0100, Harald Oehlmann wrote: >> I would try to stay as compatible to tcllib as possible: >> >> html::html_entities >> >> but this is not a really nice name. > > I would mark the difference between tcllib's implementation and Rivet's > adopted code. What if we get the code into a 'entitities' package and > let the actual command be placed within the ::rivet namespace? > > e.g. > > package require entities > set xformed_text [::rivet::entities $text] > > or > > ::rivet::html_entities
I like both, but would prefer the first. > the name ::html::html_entities is a redundant, not very well picked. > >> >> I personally have used: >> >> ee -> encode entity >> >> mce -> use msgcat::mc and html_entities >> > > I'm not an msgcat expert. I presume this call would be a wrapper for > msgcat and ::rivet::entitited being called in sequence. Absolutely. My demo code was wrong. Here is the corrected code with the upper definition: proc ::wwwbase::mce args { return [::rivet::entities [uplevel 1 [concat ::msgcat::mc $args]]] } Thank you, Harald --------------------------------------------------------------------- To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org For additional commands, e-mail: rivet-dev-h...@tcl.apache.org