piekarnia Friday, 03 September 2010, 246 day of year 05:09

Your time is limited, so don't waste it living someone else's life. Don't be trapped by dogma - which is living with the results of other people's thinking. Don't let the noise of other's opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.

-- Steve Jobs

Typography (dokuwiki plugin) .vimrc Comma (planning poker cards deck)

Typography plugin for DokuWiki

Plugin extends wiki markup to give wiki users ability to write beautiful text. There is sometimes some need for nice looking slogan, paragraphs of article or quotation.

That piece of software is not maintained anymore as I dropped DokuWiki in favor to other solution. Functionality currently covers all typographic aspects of HTML text formatting, so no new features possible anyway.

Features & Constraints

  • FREE to use under LGPL license
  • extremely easy to use by syntax allowing any order of parameters
  • now You decide how text will look like
    • use your favorite font family
    • set small-caps variant
    • define text line height
    • manipulate spacing between letters and words
  • supports all CSS size units for flexibility
    • px -- pixels (does not allow to use decimal part)
    • em -- a unit of measurement in the field of typography, equal to the point size of the current font
    • ex -- similar in concept to em units, with difference that base size for font is it's small letter "x" size.
    • pt -- points (per pixel), this setting depends on browser/printer resolution (DPI)
    • % -- any comment needed?

As everything, Typography plugin has it's strong and weak sides as well. Cause line-height property is not handled well in all browsers, typography based on that settings can look ugly in some cases.

Syntax

Whole syntax walks around <typo parameters>beatifull looking test</typo>, where parameters syntax looks quite intuitive: name:value; (Have in mind there is no space after colon, and do not forget about semicolon)

functionalityparameter syntaxcomment
font family<typo ff:Coma separated, font famliy names, can contain spaces;>Text</typo> 
font variant<typo fv:smallcaps;>Text</typo>only "smallcaps" value allowed
font size<typo fs:20px;>Text</typo>values below zero not allowed
line height<typo lh:20px;>Text</typo>values below zero not allowed
letter spacing<typo ls:20px;>Text</typo>values below zero allowed
spacing between word<typo ws:20px;>Text</typo>values below zero allowed

Full-featured example

Let's see the code of quotation on top of page.

<typo fs:1.8em; ff:Iwona, Georgia, serif; ls:-2px; ws:-0.1em;>
Programming today is <color #F0276E>a race between software engineers</color>, striving to build bigger and better idiot-proof programs, and the <color #F0276E>and the Universe</color> trying to produce bigger and better idiots.
</typo>
<typo fs:1.8em; fv:smallcaps; lh:10px; ff:Iwona, Georgia, serif;>
So far, the Universe is winning.
</typo>

License

This software is provided as it is witout any warranty. Licensed on LGPL.

Download

Contact

Report bugs, suggest features or improvements directly to qentinson AT gmail DOT com.

Changelog

  • 2009/02/04
    • initial release

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

--abyss of internet


Your time is limited, so don't waste it living someone else's life. Don't be trapped by dogma - which is living with the results of other people's thinking. Don't let the noise of other's opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.

--Steve Jobs


If you need more than 3 levels of indentation, you're screwed anyway, and should fix your program.

--Linus Torvalds


Vodka! You're feeling stronger! Vodka! No more feeling bad! Vodka! You're eyes are shining! Vodka! You are the real man! Vodka! Washes away your tears. Vodka! Removes your fears. Vodka! The woman is gorgeous. Yeah vodka!!

Korpiklaani / Vodka

qtn