All Projects → typograf → gulp-typograf

typograf / gulp-typograf

Licence: MIT license
Prepare texts with Typograf using Gulp

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to gulp-typograf

raven
Raven: a theme-able blog workflow with gulp, pug, sass, and markdown. Check out the demo here:
Stars: ✭ 16 (-38.46%)
Mutual labels:  gulp
ukrainian-typographic-layouts
Типографічні розкладки для української та російської мови / Типографские раскладки для украинского и русского языка
Stars: ✭ 69 (+165.38%)
Mutual labels:  typography
choerodon-front-boot
Choerodon front boot is a toolkit about front end package management, startup, compilation. It is mainly used to provide custom some configurations file to create a project of React that can be modified to some extent.
Stars: ✭ 27 (+3.85%)
Mutual labels:  gulp
personal-page
Personal Page is a project that contains a person's personal information and resume.
Stars: ✭ 20 (-23.08%)
Mutual labels:  gulp
gulp-sass-glob
Use glob includes in sass
Stars: ✭ 56 (+115.38%)
Mutual labels:  gulp
gulp-bourbon-neat-example
A sample project for getting started with Bourbon and Neat with Gulp
Stars: ✭ 38 (+46.15%)
Mutual labels:  gulp
the-subway-of-china
中国地铁图
Stars: ✭ 104 (+300%)
Mutual labels:  gulp
gulp-sass-bootstrap-boilerplate
⏰📌 Boilerplate with gulp.js, Sass, Babel, and Browsersync.
Stars: ✭ 24 (-7.69%)
Mutual labels:  gulp
selene
A opinionated Wordpress base theme based on Sage.
Stars: ✭ 31 (+19.23%)
Mutual labels:  gulp
postcss
No description or website provided.
Stars: ✭ 59 (+126.92%)
Mutual labels:  typography
Compressed-Punctuation-Sans
包含基础标点挤压效果的中文标点符号字体
Stars: ✭ 49 (+88.46%)
Mutual labels:  typography
gulp-jstransform
Gulp plugin to transform ES6 to ES5.
Stars: ✭ 16 (-38.46%)
Mutual labels:  gulp
react-fittext
FitText.js as a React v16+ component.
Stars: ✭ 69 (+165.38%)
Mutual labels:  typography
designs
Blockstack designs
Stars: ✭ 26 (+0%)
Mutual labels:  typography
jscrambler
Monorepo of Jscrambler's Javascript Client and Integrations
Stars: ✭ 118 (+353.85%)
Mutual labels:  gulp
Azia-Admin-Bootstrap-Template
Free Bootstrap 4 Admin template
Stars: ✭ 73 (+180.77%)
Mutual labels:  gulp
actions-js-build
GitHub Actions for running Javascript build tools and committing file changes
Stars: ✭ 46 (+76.92%)
Mutual labels:  gulp
gulp-esbuild
gulp plugin for esbuild bundler
Stars: ✭ 39 (+50%)
Mutual labels:  gulp
kibe
A simple Yeoman Generator to start projects with the most common tasks of my workflow using Gulp.
Stars: ✭ 33 (+26.92%)
Mutual labels:  gulp
gulp-shopify
Blank slate Shopify theme for Developers, packaged with Gulp.js for processing SCSS, JavaScript (ES6), images and fonts. Made to support Online Store 2.0 features and Shopify CLI.
Stars: ✭ 142 (+446.15%)
Mutual labels:  gulp

gulp-typograf

NPM version NPM downloads Build Status Dependency Status

Prepare texts with Typograf using Gulp.

Install

npm install gulp-typograf --save-dev

Usage

'use strict';

const typograf = require('gulp-typograf');

gulp.task('typograf', function() {
    gulp.src('./src/*.html')
        .pipe(typograf({ locale: ['ru', 'en-US'] }))
        .pipe(gulp.dest('./public/'));
});

With additional options

.pipe(typograf({
    locale: ['ru', 'en-US'],
    // Type of HTML entities: 'digit' -  , 'name' -  , 'default' - UTF-8
    htmlEntity: { type: 'digit' },
    disableRule: ['ru/optalign/*'],
    enableRule: ['ru/money/ruble'],
    safeTags: [
        ['<\\?php', '\\?>'],
        ['<no-typography>', '</no-typography>']
    ],
    // Own rules
    rules: [
        {
            name: 'common/other/typographicalEmoticon',
            handler: function(text, settings) {
                return text.replace(/:-\)/, ':—)');
        },
        {
            name: 'common/other/trimLeft'
            handler: function(text, settings) {
                return text.trimLeft();
            }
        }
    ]
}))

Links

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].