Hello!
Not so long ago, Evgeny Muravyov released a completely new version of his famous typographer
3.0 . Any product needs a little run in, the very first versions are usually damp, so we waited for version 3.2 and started watching it. I must say that in general, the new printer has left positive impressions.

It has become more convenient, the linear transfer of parameters in the current version is much easier to understand. Now, if we need automatic paragraphing, simply set the 'Text.paragraphs' options to 'on' (or 'off' to disable). It is not clear, however, why the usual boolean true and false were not used, but oh well, this is not so important.
')
Despite its relative youth, the printer has shown itself from the best side. We tried to test the library to the maximum, it seems to be more or less good, the set of bugs of the old version is not here.
An interesting feature of the new version of the library is the placement of all the code in one file (3,281 lines). On the one hand, this is not very convenient for understanding the code (and refactoring is probably not convenient), on the other hand, it is easier for end users - one file is much less scary, it causes less rejection than 13 =)
Slightly upset by the lack of normal documentation, I had to dig deeper into the code, but quite quickly the “get_options_list” method was found, which lists all options with a human description (but, unfortunately, not all descriptions are enough). Another badly missing library on github.
In the end, we released a new version of the
ddTypograph 2.0b snippet. The library has quite a few options, but in the snippet we considered it expedient to make only 4:
- “OptAlign” - optical alignment (hanging punctuation).
- “Text_paragraphs” - setting paragraphs and line breaks.
- "Text_autoLinks" - selection of links from the text (including email).
- “Etc_unicodeConvert” - convert html entities to unicode (- instead of & mdash; etc.).
You can see the full list of options with their descriptions in the snippet code, the default values ​​are also visible there. With the human description of the library Muravyov can be found on the
official site .
Help please test the snippet. Maybe something does not work very well or there are not enough vital options for your tasks. We will be glad to hear your thoughts here in the comments or by email (
code@divandesign.biz ).
PS: The image in the post used from the site
mdash.ru , I hope the authors of the public domain do not mind ;-).
PPS:
emuravjev , if you are reading this, please reply to my letter or Skype.
PPPS:
Snippet on GitHub .