Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-03-31 14:53:24

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

[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)

Some more information in German can be found here.

Offline

#2 2006-08-31 23:16:09

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

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

#3 2006-08-31 23:21:31

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

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

#4 2006-09-01 07:06:21

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

Re: [archived] nhn_typotuner: customisable typography

I’ll look into that for the next release.

Offline

Board footer

Powered by FluxBB