You are here: Foswiki>Tasks Web>Item1883 (04 Jan 2015, GeorgeClark)Edit Attach

   * *Entities*
      * Set AMP = &
      * Set NDASH = –
      * Set MDASH = —
      * Set LSQUO = ‘
      * Set RSQUO = ’
      * Set DQUO = “
      * Set RDUO = ”

This will make it easier for people who care about typography to do:

“This is a quotation from so and so”

“This is a quotation from so and so“

where do you have to use & instead of & ?

however, wouldn't it be nicer if you could just type: ``This is a quotation...''  -- Author ?

TWiki:Plugins.TypographyPlugin tries to do these sorts of character and string remappings, but fails in at least two ways:
  1. the code just seems bugs
  2. its fight with the core about what --- means (personally, i wish it could mean an emdash and i use 4 =-='s for hlines, but...)

also, for producing beautiful typesetting, this sure seems like an ugly mechanism. (yes, i realise you're only working with what twiki provides). perhaps this bug report should just be "fix TypographyPlugin"?


Indeed, that would do it. Besides the --- problem, my regex experience is nowhere near good enough to fix this one.


No idea what to do with this.... Setting to Proposal Required.

-- Main.GeorgeClark - 04 Jan 2015 - 20:29

ItemTemplate edit

Summary Add common HTML entities to DefaultPreferences and/or fix TypographyPlugin
ReportedBy TWiki:Main.MeredithLesly
SVN Range Mon, 13 Mar 2006 build 9258
AppliesTo Engine
Component FoswikiRender, Documentation, TypographyPlugin
Priority Enhancement
CurrentState Proposal Required
TargetRelease minor
ReleasedIn n/a
Topic revision: r9 - 04 Jan 2015, GeorgeClark - This page was cached on 22 Nov 2020 - 22:53.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy