English | Русский
There comes a time in the life of every decent webmaster when he seriously thinks about screen typography.
On the one hand, he wants the typed text to look good in the browser window. And to do this, instead of signs of the inch to put a normal quote ("herringbone" and "feet"), to kill the extra space, in the right places to change the hyphens into hyphens, unbroken space "tied" all the short conjunctions and prepositions to follow them to words and make a bunch of other operations. On the other hand, do not really want to put all these icons, quotation marks and non-breaking spaces by hand.
Lebedev Studio was the first on the Internet to declare the importance of using on-screen typography in the layout of materials. Since 2000, the texts of all websites created by Lebedev Studio are put in order with the help of "Typographer". Since 2002 the program has been available on our site for free.
You can read more about the principles of screen typography in § 62 "Guidelines".
Do you want something special from Typographer? Email us.
Typograf homepage: http://typograf.artlebedev.ru/
Web-service address: http://typograf.artlebedev.ru/webservices/typograf.asmx
WSDL-description: http://typograf.artlebedev.ru/webservices/typograf.asmx?WSDL
Installation by using
composer require impeck/artlebedev-typograf
A sample use case is given in example.php
<?php
require 'vendor/autoload.php';
use ArtLebedevStudio\RemoteTypograf;
$remoteTypograf = new RemoteTypograf();
Default. The characters are output as the reader sees them as a result.
$remoteTypograf->noEntities();
Good for XML, bad for old browsers.
$remoteTypograf->htmlEntities();
Somebody needs. Bad for older browsers.
$remoteTypograf->xmlEntities();
$remoteTypograf->mixedEntities();
Default false
$remoteTypograf->br(true);
Default false
$remoteTypograf->p(true);
$remoteTypograf->nobr(3);
Default « » — French
$remoteTypograf->quotA('laquo raquo');
Default „ “ — German
$remoteTypograf->quotB('bdquo ldquo');
laquo raquo
— French « »
bdquo ldquo
— German „ “
quot quot
— Programmers " "
lsquo rsquo
— English singles ‘ ’
ldquo rdquo
— English double “ ”
sbquo lsquo
— ' '
all his life dreamed of using long dashes on the web. After several years of dreaming, he wrote § 62 and made everyone do the extra work. Together with Alexander Petrosyan, he wrote an AppleScript version of Typograph.
wrote his own program; he collected all the wishes and added the "Typograph" to the web
was the first guy in the studio who was too lazy to do all the typography by hand and wrote an automatic script
helped Avrahamov
wrote his own program that put the typography into the theatrical web administration system
wrote XML web-service and examples of its use in several languages
collected a lot of suggestions and rewrote "Typograph" from scratch
sent a collection of text processing rules after scanning