entities
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
entities [2011-08-04 15:37] – 78.226.10.168 | entities [2023-11-25 00:57] (current) – [See also] Klap-in | ||
---|---|---|---|
Line 9: | Line 9: | ||
>> | >> | ||
=> to ⇒ | => to ⇒ | ||
+ | \_ to | ||
</ | </ | ||
- | see also [[syntax#typography]]. | + | see also [[wiki:syntax#text to html conversions]] on the syntax page. |
+ | |||
+ | =====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: | ||
- | Details of the conversions are stored in the '' | ||
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: | ||
Line 19: | Line 34: | ||
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 |
- | sx ŝ | + | </ |
- | UX Ŭ | + | |
- | ux ŭ | + | |
+ | ===== Using the number sign (#), not as comment ===== | ||
+ | |||
+ | In '' | ||
+ | |||
+ | <code - conf/ | ||
+ | ~~noheader~~ | ||
+ | </ | ||
+ | ===== See also ===== | ||
+ | * [[config|Configuring DokuWiki]] | ||
+ | * You can install and use the [[plugin: |
entities.1312465025.txt.gz · Last modified: 2011-08-04 15:37 by 78.226.10.168