GithubHelp home page GithubHelp logo

axonnet / dw-plugin-typography Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ssahara/dw-plugin-typography

0.0 2.0 0.0 141 KB

Empower DokuWiki with html typographic capability. Also it provides compatible syntax of fontcolor, fontfamily and fontsize2 plugin.

Home Page: https://www.dokuwiki.org/plugin:typography

PHP 100.00%

dw-plugin-typography's Introduction

DokuWiki plugin Typography

Extended version from original Typography plugin developed by Paweł Piekarski.

Sometimes there is need for nice looking slogan, quotation or article paragraph. For full control you need full control over font displaing as CSS can give. Typography plugin extends DokuWiki markup by typesetting abilities. It brings all font related directives from CSS as wiki syntax.

It gives ability to adjust settings for text look, but does not influence subtle stuff like text baseline or vertical alignment.

Syntax

<typo parameters>beautiful looking test</typo> where parameters are semicolon separated name:value;

functionality parameter syntax comment
font family <typo ff:Coma separated, font names, 'Single quatation required for those contains 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

Shorter syntax

The Typography plugin provides additional short (or single property) syntax those are compatible with fontcolor, fontfamily and fontsize2 plugins. If you have enabled these three plugins, the short syntax are treated by relevant plugins instead of this plugin. These short syntax are available through toolbar icons: fontcolor icon fontfamily icon font-size icon.

  <fc Turquoise>Specific color text</fc>        = <typo fc:Turquoise;>Specific color text</typo>
  <ff 'Comic Sans MS'>Different font used</ff>  = <typo ff:'Comic Sans MS';>Different font used</typo>
  <fs 200%>Large size text</fs>                 = <typo fs:200%;>Large size text</typo>

Licensed under the GNU Public License (GPL) version 2

see https://www.dokuwiki.org/plugin:typography for more information.

dw-plugin-typography's People

Contributors

ssahara avatar lpaulsen93 avatar

Watchers

James Cloos avatar Bodrogi Viktor avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.