ak|weblog

Samstag, 05. Januar 2008

Textpattern Tutorials, neue Beiträge

Vor einigen Wochen habe ich die verschiedenen ausführlichen Textpatternbeiträge im Weblog ausgelagert und einen neuen Bereich Texpattern in der Rubrik Webdesign eröffnet.

Seit gestern ist dort das fünfte Tutorial zu Textpattern verfügbar: Bausteine in Textpattern. Weitere möglicherweise interessante Beiträge sind Grundlagen von Textpattern und Textile sowie die beiden kürzeren Artikel Eine Website mit Textpattern organisieren und Textpattern: Sitestruktur.

Der ältere Beitrag über Kommentarformulare ist eher von speziellerem Interesse.

Ich hoffe, die Anleitungen sind nützlich und freue mich auch über Anregungen und Kritik.

Dienstag, 07. Juni 2005

Deutsches Datum mit Textpattern

Textpattern bietet mit der neuesten Version umfangreiche Möglichkeiten der Sprachanpassung. Eine deutsche Sprachdatei wird mitgeliefert, so dass sämtliche Interfaceelemente übersetzt sind.

Aber auch intern ist Textpattern inzwischen stark internationalisiert. Vor allem für die Gestaltung der Datumsangaben in einem Weblog ist das interessant, weil man problemlos deutsche Wochentage und Monatsnamen anzeigen kann.

Textpattern verwendet für das Datum eines Artikels das Tag <txp:posted />. Dieses greift auf die PHP Funktion strftime zu, die verschiedene Parameter zur individuellen Gestaltung des Datums zur Verfügung stellt.

Mein Datum im Weblog wird mit der folgenden Konfiguration erstellt:

<txp:posted format="%A, %d. %B %Y" />

Die Trennzeichen zwischen den einzelnen Elementen sind frei wählbar; um deutsche Namen zu bekommen, muss in den Voreinstellungen Deutsch als Sprache eingestellt sein.

Lässt man das format Attribut weg, benutzt Textpattern das unter Admin > Voreinstellungen gewählte Datumsformat.

Freitag, 06. Mai 2005

Aktuelle Textpattern Version

Die neueste Version von Textpattern (Release Candidate 3) ist als Download Paket verfügbar. Wem es bisher zu umständlich war, die aktuellen Dateien per SVN-Client herunterzuladen, kann nun also zuschlagen.

Die Version 1.0 wird immer noch sehnlich erwartet, doch kann man getrost mit RC3 arbeiten: meine Site läuft damit und ich habe noch keinerlei Stabilitätsprobleme bemerkt.

Wie das mit OpenSource Projekten so ist, steht das Veröffentlichungsdatum für v1.0 ohnehin in den Sternen. Im Hintergrund wird emsig gearbeitet, wie man an der Timeline sehen kann, doch wann das zum Erreichen des ersten Meilensteins führen wird, bleibt abzuwarten.

Montag, 11. April 2005

Making of v2

Mein Redesign umfasst als Neuerung auch ein “Kolophon”, laut Google

A brief listing of production information, often including typeface details and information related to any artwork.

Im deutschprachigen Web ist diese Bezeichnung noch nicht verbreitet. Doch die Idee und auch der Begriff gefallen mir und daher hat meine Site ein umfangreiches Kolophon (verlinkt im Footer), in dem verschiedene Details zu Design und technischen Unterbau zu erfahren sind.

Da ich schon einige Male nach diesen gefragt wurde: Voilà.

Montag, 04. Oktober 2004

Easy text editing with Textpattern

One of the Textpattern features I like best is its built-in text formatting engine called “Textile”.

Textile parses everything I write and converts certain combinations of signs into typographically correct ones. E.g. it replaces

  • double hyphens (––) with an em-dash (—)
  • single hyphens surrounded by spaces with an en-dash (–) entity
  • triplets of periods (...) with an ellipsis (…) entity
  • ( TM ), ( R ), and ( C ) to ™, ®, and ©

to name but a few.

This may not seem a great achievement. But Textile does more. It offers a set of handy quicktags that allow for easy and fast typing while at the same time offering extensive control of the resulting XHTML.

To insert a paragraph, I only need to finish off a block of text with a double line break. That’s nothing new, Wordpress does the same. To insert a paragraph with a class attribute, however, all I need to type is: p(myclass). This is my paragraphtext. In the same manner I can apply an ID to a paragraph (or a header element, for that matter):

  • p(#myID). This is my paragraph with ID.
  • h1(#anotherID). This is my headline with ID

But Textile doesn’t stop here. Links are just as simple:
“This is my linktext”:http://www.urlofmylink.com

As are unordered lists:

* listitem 1
* listitem 2
* listitem 3

There are many more quicktags. A double asterisk wrapped around a piece of text will result in bold print. Double underscores turn into italics .

The full set of quicktags is explained and available for testing on the Textile homepage.

Quicktags in general are common to many blog tools and CMS. For me, however, the Textile way of writing is the best I have encountered so far. After a short period of getting used to it, I don’t have to think about the quicktags at all and writing XHTML is as easy and fluent as writing ordinary text—because that’s exactly what I’m doing. No brackets—angled, squared or whatever—no hyperlinks and the like: just ordinary signs that are easily accessible on the keyboard.

The Textile parsing engine makes Textpattern an unbeatable tool if you don’t want the editing process to trip up your flow of thoughts.