createRegexpAnnotateInputProcessor

Type: Function

How to get createRegexpAnnotateInputProcessor?

JavaScript

import createRegexpAnnotateInputProcessor from 'fontoxml-pipelined-importer/src/createRegexpAnnotateInputProcessor.js'

Create an annotator which recognizes the different types of chunk

Arguments

  1. spec

    (Required)

    Type: RegExp

    The specs with which the type of chunk can be recognized

  2. chunkLabel

    (Required)

    Type: String

    The label of the chunks recognized

Returns

The functions which annotates chunks with the specified label