Recent Changes · Search:

Support the Project

Wikipublisher

PmWiki

edit SideBar

 

I have already created a quotation scheme for myself. It uses ""quote"" syntax, like this:

  ""Citations are useful for quoting people,"" Gustav said one day.\\
 ''"What's the difference from just using italics?"'' John Doe asked.\\
 ""No need to remember the double quotes and the italics, and easier \
  to pick out the things characters say,"" answered Gustav.

This produces:

“Citations are useful for quoting people,” Gustav said one day.
“What’s the difference from just using italics?” John Doe asked.
“No need to remember the double quotes and the italics, and easier to pick out the things characters say,” answered Gustav.

The Markup I’ve used to make this happen goes like this:

    if ($format=='pdf') { Markup('""', 'inline', '/""(.*?)""/',
      '<tbook:visual markup="it">"$1"</tbook:visual>'); }
    else { Markup('""', 'inline', '/""(.*?)""/', '<cite>"$1"</cite>'); }

finally the CSS goes like this:

   $HTMLStylesFmt[] = 'cite {font-family: Times New Roman, serif; }';

Now, I use Arial for the rest of the site, so the different font face stands out nicely as being ‘different’ from the rest. To have a look, check out the wiki syntax summary on my my (new) wiki at http://www.parakoos.eu/pmWiki/Site/WikiSyntax

The second syntax box contains the text example above so you can see what it looks like. The recipe is also active on this page.

Contributor: Gustav Andersson, Wednesday, 31 October 2007

Note that by default under Wikipublisher, two double quote characters produce a double prime (inch) mark: for example 6″. Two single quote characters produce a prime (foot) mark: 6′.

Creative Commons License
Edit · History · Print · Recent Changes · Search · Links
Page last modified on 09 November 2007 at 11:59 AM