Changes between Initial Version and Version 1 of WikiGoodiesPlugin


Ignore:
Timestamp:
Jan 2, 2006, 6:17:44 PM (18 years ago)
Author:
Christian Boos
Comment:

New hack WikiGoodiesPlugin, created by cboos

Legend:

Unmodified
Added
Removed
Modified
  • WikiGoodiesPlugin

    v1 v1  
     1= Wiki Goodies for Trac =
     2
     3== Description ==
     4
     5This plugin extends the Trac Wiki in several ways:
     6 * Support for displaying smileys, as in
     7   [http://moinmoin.wikiwikiweb.de/HelpOnSmileys MoinMoin]
     8 * Support for inserting HTML 4.0 entities
     9 * Support for replacing common text idioms by their corresponding symbols
     10   (e.g. arrows, fractions, etc.)
     11
     12
     13== Bugs/Feature Requests ==
     14
     15Existing bugs and feature requests for WikiGoodiesPlugin are
     16[report:9?COMPONENT=WikiGoodiesPlugin here].
     17
     18If you have any issues, create a
     19[http://trac-hacks.swapoff.org/newticket?component=WikiGoodiesPlugin&owner=cboos new ticket].
     20
     21== Download ==
     22
     23Download the zipped source from [download:wikigoodiesplugin here].
     24
     25== Source ==
     26
     27You can check out the source for WikiGoodiesPlugin from Subversion at http://trac-hacks.swapoff.org/svn/wikigoodiesplugin.
     28
     29== Example ==
     30
     31There are 3 new macros that can be used
     32to conveniently display all the newly introduced markup.
     33
     34Simply copy&paste the following wiki snippet somewhere into your Wiki
     35(e.g. in WikiFormatting):
     36{{{
     37== Additional Goodies ==
     38=== Smileys ===
     39[[ShowSmileys(5)]]
     40=== Entities ===
     41[[ShowEntities(5)]]
     42=== Symbols ===
     43[[ShowSymbols(5)]]
     44}}}
     45''(the argument is the number of columns to be used in the displayed table)''
     46
     47
     48=== Known Issues ===
     49
     50That plugin will only be compatible with Trac-0.9.3,
     51which is not yet released...
     52
     53But it also works for the trunk (!r2713 as of this writing).
     54However, in order to support the HTML 4.0 entities, this
     55additional patch is required:
     56{{{
     57Index: trac/wiki/formatter.py
     58===================================================================
     59--- trac/wiki/formatter.py      (revision 2713)
     60+++ trac/wiki/formatter.py      (working copy)
     61@@ -144,7 +144,6 @@
     62     # between _pre_rules and _post_rules
     63
     64     _pre_rules = [
     65-        r"(?P<htmlescape>[&<>])",
     66         # Font styles
     67         r"(?P<bolditalic>%s)" % BOLDITALIC_TOKEN,
     68         r"(?P<bold>%s)" % BOLD_TOKEN,
     69@@ -160,6 +159,7 @@
     70         r"(?P<htmlescapeentity>!?&#\d+;)"]
     71
     72     _post_rules = [
     73+        r"(?P<htmlescape>[&<>])",
     74         # shref corresponds to short TracLinks, i.e. sns:stgt
     75         r"(?P<shref>!?((?P<sns>%s):(?P<stgt>%s|%s(?:%s*%s)?)))" \
     76         % (LINK_SCHEME, QUOTED_STRING,
     77}}}
     78
     79
     80=== See Also ===
     81
     82The EmoticonsPlugin also provides support for smileys, and is
     83a little bit more lightweight than this plugin.
     84
     85
     86
     87== Author/Contributors ==
     88
     89'''Author:''' [wiki:cboos] [[BR]]
     90'''Contributors:'''
     91
     92[[TagIt(plugin,cboos,beta,0.9)]]