there are some plugins for MoveableType, which is entirely perl based,
that can do smart quotes.  You might be able to extract the cleverness
from those into a small filter

http://daringfireball.net/2002/08/movable_type_smart_quote_devilry

Aaron

On 3/25/16 11:55 AM, Sherwood Botsford wrote:
> I may end up doing that.  That sort of thing gets in the way of the
> creative process.  Even now in TT2 I have to escape dollar signs when I
> want a dollar sign.  That's another thing to fix.
> 
> I like writing in Markdown.  All the yuck in my template is in and
> INCLUDE HEADER.  My basic web page has 3 directives at the top, 3 at the
> bottom and the rest is markdown.  Mind you HEADER.INC is 200 lines of
> TT2 and there are another pair of 200 line perl programs that do some
> pre-processing.
> 
> I was hoping to be able to do this by adding another FILTER to the stack.
> 
> Respectfully,
> 
> Sherwood of Sherwood's Forests
> 
> 
> On 25 March 2016 at 02:46, Johan Vromans <[email protected]
> <mailto:[email protected]>> wrote:
> 
>     On Thu, 24 Mar 2016 21:18:08 -0600
>     Sherwood Botsford <[email protected]
>     <mailto:[email protected]>> wrote:
> 
>     > I was hoping for a little bit more comprehensive solution.  Even
>     > SmartyPants doesn't get it all correct.
> 
>     Warning: This is not an answer to your question although it may help...
> 
>     I find it easy to input the typographical quotes (‘single’ “double”
>     even ‚oldstyle’) while typing, using one of the compose-key input
>     mechanisms. The same goes for accented letters (á ë ø) and some
>     other stuff
>     (€ ☺).
> 
>     For software that cannot handle UTF-8 encoded, I have a TT filter that
>     replaces non-ascii characters by their &ent; counterparts.
> 
>     -- Johan
> 
>     _______________________________________________
>     templates mailing list
>     [email protected] <mailto:[email protected]>
>     http://mail.template-toolkit.org/mailman/listinfo/templates
> 
> 
> 
> 
> _______________________________________________
> templates mailing list
> [email protected]
> http://mail.template-toolkit.org/mailman/listinfo/templates
> 

-- 
_______________________________________________________
Aaron Macks([email protected]) [http://www.wiglaf.org/~aaronm ]
My sheep has seven gall bladders, that makes me the King of the Universe!

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to