
Practically five years ago I published a post about Habré about my typographer:
habrahabr.ru/post/67010 . A lot of time has passed, it was updated several times and received continuations in modules for engines and blogs. The time has come to think about the best and most competent tool that will print the text for you. That is why I returned to my typographer and started everything all over again.
Typographer is a tool for formatting text using the norms, rules and specifics of the Russian language and screen typography.
')
Naturally, I understood that there are other solutions from other developers that have their pros and cons. But I really wanted to start creating a product that will have the minimum number of drawbacks and difficulties. In other words, I want to create the best typographer in the world - so far only for the Russian language. After reviewing all existing typographers, having collected all the rules, tests, checks and books on typography, I tried to compile a list of rules that can be properly implemented in a new, third version of a typographer, and leave the rest to be considered.
About the product
- The typographer received Unicode support (this allows you to immediately get beautiful and formatted text at the output without an HTML mnemonic). By default it is disabled, you need to manually enable.
- Included about 70 rules, 30 additions and exceptions to them. The site has a section with all the general rules , there you can read more. But again, they are not all. There are many sub-rules and conditions.
- Now the typographer occupies only one file (EMP.php) and is available for PHP, but soon versions for Python (in progress), Ruby, Perl and JS will also be released.
- The tool is free and will always remain that way. Open source. When using, we do not ask to indicate anything, but it would be great if you tell about it.
- Each rule can be turned on or off. There are many hidden rules inside.
- Implemented hanging punctuation (some call it optical alignment).
Future
As mentioned above, we will support all the popular languages of web development and look towards the application. We will do our best to get our solutions to the most popular Runet resources (Yandex, Look At Me, Habr, Ayyo, and so on). We would be grateful if you can help you, based on our typographer, write modules for popular blogs and engines. It really helps to make the texts that we read more pleasant and beautiful. We will create an API so that developers can always have the current version and put everything on GitHub.
Reality
In life, not everything is as smooth as you want. The typographer is not perfect and in version 3.1 we will correct a number of problem areas about which we already know, although they are rare.
I would be very grateful for the useful criticism and help in the promotion. Tell us what you are missing, what should I add, remove or pay attention to? I believe that such things should be told to friends, colleagues, and indeed, to raise literacy around.
The site
mdash.ru contains a
list of rules ,
demo and
introductory for installation .
Facebook group .
Let's make the lyrics beautiful!