Changes between Version 1 and Version 2 of EntityMacro
- Timestamp:
- Dec 25, 2008, 6:30:17 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
EntityMacro
v1 v2 1 = EntityMacro =1 = !EntityMacro = 2 2 3 3 == Description == 4 4 5 The EntityMacro package returns HTML 4.01 numeric character entity references from their corresponding names. 5 The !EntityMacro package returns HTML 4.01 numeric character entity references 6 from their corresponding names. 6 7 7 == Bugs/Feature Requests == 8 The character entity data is straight out of the DTD for HTML 4.01 so if there 9 are errors or ommissions you can blame it on the W3C, not me. ;-) 8 10 9 Existing bugs and feature requests for EntityMacro are 10 [report:9?COMPONENT=EntityMacro here]. 11 See: [http://www.w3.org/TR/1999/REC-html401-19991224/sgml/entities.html Character entity references in HTML 4] for more information. 11 12 12 If you have any issues, create a 13 [http://trac-hacks.org/newticket?component=EntityMacro&owner=dwclifton new ticket]. 13 Calling the macro like so: `[[Entity(name)]]` returns the value. If no name 14 matches, it returns an empty string. Names are case-sensitive, in other words, 15 `aacute` is not the same code point as `Aacute`. Keyword syntax is also supported: 16 `[[Entity(name=name)]]`. 14 17 15 == Download == 18 The macro is useful in any [WikiFormatting wiki formatted] page. 16 19 17 Download the zipped source from [download:entitymacro here]. 20 == Installation == 21 22 Download the zipped [http://trac-hacks.org/attachment/wiki/EntityMacro/entitymacro.zip?format=raw source] 23 Unzip the archive to a temporary location, visit the 0.11 directory and run: 24 25 {{{ 26 python setup.py bdist_egg 27 cp dist/*.egg /trac/env/Project/plugins 28 }}} 29 30 == Configuration == 31 32 Enable the macro in: 33 34 /trac/env/Project/conf/trac.ini: 35 36 {{{ 37 [components] 38 entity.* = enabled 39 }}} 40 41 You may have to restart you Web server. 42 43 == Examples == 44 45 {{{ 46 [[Entity(raquo)]] 47 [[Entity(name=raquo)]] 48 }}} 49 50 Both of these examples will return `»` 18 51 19 52 == Source == 20 53 21 You can check out EntityMacro from [http://trac-hacks.org/svn/entitymacro here] using Subversion, or [source:entitymacro browse the source] with Trac. 22 23 == Example == 24 25 [[Entity(raquo)]] 26 [[Entity(name=raquo)]] 54 * Browse the source at: [http://github.com/dwclifton/tracentitymacro/tree/master GitHub] 55 * Public clone URL: 56 {{{ 57 git clone git://github.com/dwclifton/tracentitymacro.git 58 }}} 27 59 28 60 == Recent Changes == … … 32 64 == Author/Contributors == 33 65 34 '''Author:''' [wiki:dwclifton] [[BR]]35 '''Contributors:''' 66 * '''Author:''' [wiki:dwclifton] 67 * '''Contributors:''' The Trac and Python community.