Changes between Version 12 and Version 13 of EntityMacro
- Timestamp:
- Apr 16, 2015, 11:53:04 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
EntityMacro
v12 v13 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 = Character Entity Macro =3 2 4 = = Description ==3 = Character Entity Macro 5 4 6 The !EntityMacro package returns HTML 4.01 numeric character entity references 7 from their corresponding names. 5 == Description 8 6 9 The character entity data is straight out of the DTD for HTML 4.01 so if there 10 are errors or ommissions you can blame it on the W3C, not me. ;-) 7 The !EntityMacro package returns HTML 4.01 numeric character entity references from their corresponding names. 8 9 The character entity data is straight out of the DTD for HTML 4.01 so if there are errors or ommissions, please refer to the [http://www.w3.org/ W3C]. 11 10 12 11 See: [http://www.w3.org/TR/1999/REC-html401-19991224/sgml/entities.html Character entity references in HTML 4] for more information. 13 12 14 Calling the macro like so: `[[Entity(name)]]` returns the value. If no name 15 matches, it returns an empty string. Names are case-sensitive, in other words, 16 `aacute` is not the same code point as `Aacute`. Keyword syntax is also supported: 17 `[[Entity(name=name)]]`. 13 Calling the macro like so: `[[Entity(name)]]` returns the value. If no name matches, it returns an empty string. Names are case-sensitive, in other words, `aacute` is not the same code point as `Aacute`. Keyword syntax is also supported: `[[Entity(name=name)]]`. 18 14 19 15 The macro is useful in any [WikiFormatting wiki formatted] page. 20 16 21 == Installation == 17 Also see the WikiGoodiesPlugin, which supports smileys, HTML 4.0 entities (named entities and numerical entities), automatic replacement of common text idioms by their corresponding symbols, such as arrows, fractions, etc. 18 19 == Installation 22 20 23 21 Download the zipped [download:/entitymacro/0.11 source]. … … 29 27 }}} 30 28 31 == Configuration ==29 == Configuration 32 30 33 31 Enable the macro in: `/trac/env/Project/conf/trac.ini:` … … 40 38 You may have to restart you Web server. 41 39 42 == Examples ==40 == Examples 43 41 44 42 {{{ … … 47 45 }}} 48 46 49 Both of these examples will return `»` 47 Both of these examples will return `»`, the guillemet `»`. 50 48 51 == Source ==49 == Source 52 50 53 * Browse the source at: [http://github.com/dwclifton/tracentitymacro/tree/master GitHub] 51 * Browse the source at: [http://github.com/dwclifton/tracentitymacro/tree/master GitHub]. 54 52 * Public clone URL: 55 53 {{{#!sh … … 57 55 }}} 58 56 59 == Recent Changes ==57 == Recent Changes 60 58 61 59 [[ChangeLog(entitymacro, 3)]] 62 60 63 == See Also ==61 == Author/Contributors 64 62 65 The WikiGoodiesPlugin support for displaying smileys, HTML 4.0 entities (named entities and numerical entities), automatic replacement of common text idioms by their corresponding symbols (e.g. arrows, fractions, etc.).... 66 67 == Author/Contributors == 68 69 * '''Author:''' [wiki:dwclifton] 70 * '''Maintainer:''' [wiki:dwclifton] 71 * '''Contributors:''' The Trac and Python community. 63 '''Author:''' [wiki:dwclifton] [[BR]] 64 '''Maintainer:''' [[Maintainer]] [[BR]] 65 '''Contributors:''' The Trac and Python community.