1'use strict' 2 3const Typograf = require('../libs/typograf'); 4 5function getTypograf() { 6 var typograf = new Typograf({locale: ['ru', 'en-US']}); 7 const rules = [ 8 'ru/dash/izpod', 9 'ru/dash/izza', 10 'ru/dash/ka', 11 'ru/dash/kakto', 12 'ru/dash/koe', 13 'ru/dash/surname', 14 'ru/dash/to', 15 'ru/date/fromISO', 16 'common/space/*', 17 'ru/space/*', 18 'ru/punctuation/*' 19 ]; 20 21 for (const rule of rules) { 22 typograf.disableRule(rule); 23 } 24 return typograf; 25} 26 27module.exports = { 28 getTypograf: getTypograf, 29}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.