entities
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
entities [2013-08-27 10:54] – Added non-breaking space 136.163.203.9 | entities [2024-06-09 16:59] (current) – +Inserting HTML code michaelsy | ||
---|---|---|---|
Line 14: | Line 14: | ||
see also [[wiki: | see also [[wiki: | ||
- | Details of the conversions are stored in the '' | + | =====Modifying/ |
+ | Details of the conversions are stored in the '' | ||
+ | |||
+ | If you need to //disable// some of the default conversions you could do it by adding only the pattern and //not// a replacement to '' | ||
+ | |||
+ | e.g. if you do not wish to have the letter c in brackets automatically replaced by the copyright sign <code - conf/ | ||
+ | (c) | ||
+ | >> #or with comment explaining that entity is removed | ||
+ | </ | ||
+ | or if you prefer another arrow <code - conf/ | ||
+ | => ▶ | ||
+ | </ | ||
+ | |||
+ | For configuration changes to take effect on the pages, the [[devel: | ||
Even though by default it is used with simple character replacements only, the entity system can also be used to insert more complex constructs into your pages. This includes HTML. However you should be aware that doing so is bound to break when used in combination with non-HTML renderers (like [[plugin: | Even though by default it is used with simple character replacements only, the entity system can also be used to insert more complex constructs into your pages. This includes HTML. However you should be aware that doing so is bound to break when used in combination with non-HTML renderers (like [[plugin: | ||
Be sure to read about [[utf-8|UTF-8 Encoding]] before editing the config file. | Be sure to read about [[utf-8|UTF-8 Encoding]] before editing the config file. | ||
- | ===== Example | + | |
+ | ===== Example | ||
The entity mechanism can be used to adapt DokuWiki to some French typography rules that necessitate non-breaking spaces before or after some punctuation marks. | The entity mechanism can be used to adapt DokuWiki to some French typography rules that necessitate non-breaking spaces before or after some punctuation marks. | ||
- | + | <code - conf/ | |
- | << & | + | << & |
- | ? & | + | ? & |
- | : & | + | : & |
- | ! & | + | ! & |
- | ; & | + | ; & |
- | >> & | + | >> & |
+ | </ | ||
To use typography for [[wp> | To use typography for [[wp> | ||
- | | + | <code - conf/ |
- | cx ĉ | + | CX Ĉ |
- | GX Ĝ | + | cx ĉ |
- | gx ĝ | + | GX Ĝ |
- | HX Ĥ | + | gx ĝ |
- | hx ĥ | + | HX Ĥ |
- | JX Ĵ | + | hx ĥ |
- | jx ĵ | + | JX Ĵ |
- | | + | jx |
- | | + | </ |
- | | + | |
- | | + | ===== Inserting HTML ===== |
+ | |||
+ | The entity mechanism can also be used to insert HTML code. | ||
+ | |||
+ | <code - conf/ | ||
+ | ~~backbutton~~ | ||
+ | </ | ||
+ | |||
+ | Please note that everything must be in one line. | ||
+ | |||
+ | |||
+ | ===== Using the number sign (#), not as comment ===== | ||
+ | |||
+ | In '' | ||
+ | |||
+ | <code - conf/ | ||
+ | ~~noheader~~ | ||
+ | </ | ||
+ | ===== See also ===== | ||
+ | * [[config|Configuring DokuWiki]] | ||
+ | * You can install and use the [[plugin: |
entities.1377593651.txt.gz · Last modified: 2013-08-27 10:54 by 136.163.203.9