All Projects → asleepwalker → Typographie

asleepwalker / Typographie

Licence: mit
Web service for preparation of Russian texts for the web publication

Programming Languages

processing
702 projects

Projects that are alternatives of or similar to Typographie

Russian news corpus
Russian mass media stemmed texts corpus / Корпус лемматизированных (морфологически нормализованных) текстов российских СМИ
Stars: ✭ 76 (+533.33%)
Mutual labels:  russian, articles, text
Vertical Rhythm
Put some typographical vertical rhythm in your CSS. LESS, Stylus and SCSS/SASS versions included.
Stars: ✭ 83 (+591.67%)
Mutual labels:  text, typography
Jbook
Notes about programming, advices, algorithms and a lot of good stuff with Java
Stars: ✭ 233 (+1841.67%)
Mutual labels:  russian, articles
Eyo
🦔 CLI for restoring the letter «ё» (yo) in russian texts
Stars: ✭ 119 (+891.67%)
Mutual labels:  russian, text
Web Highlighter
✨ A no-runtime dependency lib for text highlighting & persistence on any website ✨🖍️
Stars: ✭ 373 (+3008.33%)
Mutual labels:  text, website
Blotter
A JavaScript API for drawing unconventional text effects on the web.
Stars: ✭ 2,833 (+23508.33%)
Mutual labels:  text, typography
Swiftrichstring
👩‍🎨 Elegant Attributed String composition in Swift sauce
Stars: ✭ 2,744 (+22766.67%)
Mutual labels:  text, typography
ukrainian-typographic-layouts
Типографічні розкладки для української та російської мови / Типографские раскладки для украинского и русского языка
Stars: ✭ 69 (+475%)
Mutual labels:  typography, russian
baseline
New method for creating leading on the web
Stars: ✭ 31 (+158.33%)
Mutual labels:  text, typography
Bonmot
Beautiful, easy attributed strings in Swift
Stars: ✭ 3,182 (+26416.67%)
Mutual labels:  text, typography
Ru.reactjs.org
React documentation website in Russian / Официальная русская версия сайта React
Stars: ✭ 444 (+3600%)
Mutual labels:  russian, website
Online Bling
Stars: ✭ 9 (-25%)
Mutual labels:  website
Website
The code that powers the Egee.io website.
Stars: ✭ 25 (+108.33%)
Mutual labels:  website
Ps Webapi
(Migrated from CodePlex) Let PowerShell Script serve or command-line process as WebAPI. PSWebApi is a simple library for building ASP.NET Web APIs (RESTful Services) by PowerShell Scripts or batch/executable files out of the box.
Stars: ✭ 24 (+100%)
Mutual labels:  text
P5 Hershey Js
p5.js Hershey Vector Font Library
Stars: ✭ 23 (+91.67%)
Mutual labels:  typography
Aviaryan.github.com Retired 2018
My website (retired)
Stars: ✭ 10 (-16.67%)
Mutual labels:  website
Postcss Interpolate
PostCSS plugin for values interpolation between breakpoints.
Stars: ✭ 9 (-25%)
Mutual labels:  typography
Gridsome Starter Liebling
Grisome starter based on Ghost Liebling and tailwindcss.
Stars: ✭ 23 (+91.67%)
Mutual labels:  articles
Lining.js
An easy to use javascript plugin offers you complete DOWN-TO-THE-LINE control for radical web typography.
Stars: ✭ 907 (+7458.33%)
Mutual labels:  typography
Gaintime
GainTime é um framework de HTML, CSS e JS para desenvolvimento de projetos responsivos, focado na simplicidade.
Stars: ✭ 19 (+58.33%)
Mutual labels:  website

#Typographie

Easy-to-use service for basic typographical preparation of russian texts before web publication.
Also available as an extension for Google Chrome.

Web service

Available as online service at typographie.ru

typographie

Library

You can use Typographie as a standalone library in your PHP project.

Installation

Add package to the composer.json:

composer require asleepwalker/typographie "~1.3.0"

Run Composer:

php composer.phar install

Example

<?php

	use asleepwalker\typographie\Typographie;

	$raw = 'Сервис "Typographie" - подготовка текстов к веб-публикации онлайн (с) 2014-2017';
	$engine = new Typographie('inquot,dashes,specials,paragraphs');
	$result = $engine->process($raw);

	echo $result;
	// > Сервис «Typographie» — подготовка текстов к веб-публикации онлайн © 2014–2017

API

Web service also has API.

For processing text, you need to create HTTP request and send params using POST method to https://api.typographie.ru/

Parameters

raw (required) : The text to be processed.
actions : List of actions, separated by a comma (default — all).
in : Mode of the input, plain (by default) or html.
out : Mode of the output, plain (by default) or html.

Encoding — UTF-8.

Available actions

quotes : Correction of quotes: "" becomes «».
inquot (needs quotes) : Nested quotes: «„“» (otherwise — duplicate quotes stashing).
dashes : If necessary replace hyphens with dashes and minus signs.
angles : Replace asterisks and quotes with degrees, feet, inches.
dblspace : Fix duplicate spaces in the text.
specials : Insert special characters (from the symbol table).
mathchars : Insert mathematical symbols (from the same table).
punctuation : Fix punctuation, such as spaces before commas.
specialspaces : Fix the wrong skip special characters with spaces.
nbsp : Attach short words to following words in the text.
hellip : Replace repeating dot symbols with ellipsis.
paragraphs : Puts paragraphs (<p>) when converting to HTML (with empty string as a delimeter).
safehtml : Do not process the text inside the HTML-tags <code> and <pre>.

List should be comma separated, somethink like action1,action2,action3.

Response example

The response comes in the JSON format.

{"version":"1.3.0","result":"Your text."}

Error codes

BAD_REQUEST : Not received a required parameter — the text for processing (raw).
ACTIONLIST_EMPTY : Not specified actions. To perform all available actions just skip the action parameter.
ACTIONLIST_INVALID : Non-existent actions found in the list.
INPUT_MODE_INVALID : Invalid input text mode.
OUTPUT_MODE_INVALID : Invalid output text mode.

License

The MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].