Typographer - the story continues

    In the process of preparing the 3rd version of the Printing House, he wrote a small jQuery plugin, which is sure to be included in the release, which can make life easier for many website developers regarding typography.

    The task was as follows: to create a javascript typograph, a la “Punto Switcher”, capable of making up the necessary characters when typing, without resorting to a web service. It was also very important not to spoil the visually plain text with inserts of mnemonics, so that an unprepared person could easily join the typography process.

    I had to sacrifice a lot and concentrate only on a few basic rules that cover about 82% of the needs in typography (statistics were collected on the basis of 10 thousand texts processed on the site http://typograf.ru ).

    Example

    What does the Typographer do?


    Types the text inside text fields automatically or upon request.
    • Able to make quotes (Christmas trees, paws are customizable);
    • dash in direct speech;
    • special characters: ...,,, ₽;
    • can put a minus between numbers and × between dimensional units.


    When typography does not touch tags and comments HTML.

    Link to GitHub

    Important! jQuery.Typograf.js is not a complete replacement for an online service!

    At the request of StopDesign added typography at the click of a button and rollback to the source text.

    Also popular now: