impeck/artlebedev-typograf 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

impeck/artlebedev-typograf

Composer 安装命令:

composer require impeck/artlebedev-typograf

包简介

PHP client for the ArtLebedevStudio.RemoteTypograf (typograf.artlebedev.ru)

README 文档

README

Typographer

Packagist

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

Installation by using

   composer require impeck/artlebedev-typograf

Usage and customization

A sample use case is given in example.php

   <?php

   require 'vendor/autoload.php';

   use ArtLebedevStudio\RemoteTypograf;

   $remoteTypograf = new RemoteTypograf();

Output characters

Ready characters — «а»

Default. The characters are output as the reader sees them as a result.

   $remoteTypograf->noEntities();

Alphabetic codes — &laquo;a&raquo;

Good for XML, bad for old browsers.

   $remoteTypograf->htmlEntities();

Numeric codes — &171;a&187;

Somebody needs. Bad for older browsers.

   $remoteTypograf->xmlEntities();

Alphabetic and numeric codes — &laquo;a&raquo; and &171;a&187;

   $remoteTypograf->mixedEntities();

Put line breaks

Default false

   $remoteTypograf->br(true);

Paragraph marking

Default false

   $remoteTypograf->p(true);

Number of tags </br> in a row

   $remoteTypograf->nobr(3);

First level quotation marks

Default « » — French

   $remoteTypograf->quotA('laquo raquo');

Second level quotation marks

Default „ “ — German

   $remoteTypograf->quotB('bdquo ldquo'); 

Possible quote options

laquo raquo — French « »

bdquo ldquo — German „ “

quot quot — Programmers " "

lsquo rsquo — English singles ‘ ’

ldquo rdquo — English double “ ”

sbquo lsquo — ' '

The authors of "Typograph"

Artemy Lebedev

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.

Alexey Smychagin

wrote his own program; he collected all the wishes and added the "Typograph" to the web

Denis Avrahamov

was the first guy in the studio who was too lazy to do all the typography by hand and wrote an automatic script

Konstantin Zhilin

helped Avrahamov

Konstantin Tomashevich

wrote his own program that put the typography into the theatrical web administration system

Andrei Shitov

wrote XML web-service and examples of its use in several languages

Vladimir Tokmakov

collected a lot of suggestions and rewrote "Typograph" from scratch

Sergei Moskalev

sent a collection of text processing rules after scanning

impeck/artlebedev-typograf 适用场景与选型建议

impeck/artlebedev-typograf 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 188 次下载、GitHub Stars 达 1, 最近一次更新时间为 2023 年 01 月 31 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 impeck/artlebedev-typograf 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 impeck/artlebedev-typograf 我们能提供哪些服务?
定制开发 / 二次开发

基于 impeck/artlebedev-typograf 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 188
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-31