Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Topic closed
[archived] nhn_typotuner: customisable typography
Notice: This thread is archived, this plugin is no longer available.
**********************************************************
This plugin allows you to modify the typography generated by Textpattern.
How to use it?
Simply wrap the content you want to “tune” with the tag <txp:nhn_typotuner>
. For example:
<code>
<txp:nhn_typotuner><txp:title /></txp:nhn_typotuner>
</code>
You can use the following attributes:
quotes
: 96 (standard), (), )(<br/>
You can choose between three different types of quotes:- 96: „my quotation“
- (): «my quotation»
- )(: »my quotation«
lang
: *de (standard)*<br/>Until now, you can only select German as language. Typographic replacements for other languages are very welcome! What does this option do:- adds a non-breaking space before a dash
dotextile
: yes, *no (standard)*<br/>Textile any given text.doglyphs
: yes, *no (standard)*<br/>This option is very useful if you are using the tinymce plugin and want to transform the glyphs (“-…) to their unicode entities, e. g. “–” will become “–”.
All-in-one example
Let’s say the title of an article is:
New plugin “nhn_typotuner” – it’s nice!
And your form looks like this:
<code>
<txp:nhn_typotuner quotes=”)(” lang=“de” dotextile=“yes” doglyphs=“yes”><txp:title /></txp:nhn_typotuner>
</code>
The result would be:
New plugin »nhn_typotuner« – it’s nice!
How can I help?
- If you are an expert for German typography: Weitere Vorschläge, was man an der Typografie von Textpattern verbessern kann, sind herzlich willkommen :)
- If there are special typographic issues in a language beside German, please feel free to contact me.
Download
Version 0.1 can be found here:
nhn_typotuner_v0.1.txt (31.03.2006)
Offline
Re: [archived] nhn_typotuner: customisable typography
yay! this works effectively to process textile in any tags: <txp:older />
or <txp:newer />
or <txp:recent_articles />
or <txp:title />
very helpful. thank you! :)
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
Re: [archived] nhn_typotuner: customisable typography
hm.. just one thing… it’s automatically adding <p>
tags around the text.. which is no good in a title.
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
Re: [archived] nhn_typotuner: customisable typography
I’ll look into that for the next release.
Offline
Pages: 1
Topic closed