[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Plugins/FancyPants/ -> Parser.js (summary)

(no description)

File Size: 289 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 11 functions

  addTag()
  parseDashesAndEllipses()
  parseDoubleQuotePairs()
  parseFractions()
  parseGuillemets()
  parseNotEqualSign()
  parseQuotePairs()
  parseSingleQuotePairs()
  parseSingleQuotes()
  parseSymbolsAfterDigits()
  parseSymbolsInParentheses()

Functions
Functions that are not part of a class:

addTag(tagPos, tagLen, chr, prio)   X-Ref
Add a fancy replacement tag

param: {number} tagPos Position of the tag in the text
param: {number} tagLen Length of text consumed by the tag
param: {string} chr    Replacement character
param: {number=} prio   Tag's priority
return: {!Tag}

parseDashesAndEllipses()   X-Ref
Parse dashes and ellipses

Does en dash –, em dash — and ellipsis …

parseDoubleQuotePairs()   X-Ref
Parse pairs of double quotes

Does quote pairs “” -- must be done separately to handle nesting

parseFractions()   X-Ref
Parse vulgar fractions


parseGuillemets()   X-Ref
Parse guillemets-style quotation marks


parseNotEqualSign()   X-Ref
Parse the not equal sign

Supports != and =/=

parseQuotePairs(q, regexp, leftQuote, rightQuote)   X-Ref
Parse pairs of quotes

param: {string}  q          ASCII quote character
param: {!RegExp} regexp     Regexp used to identify quote pairs
param: {string}  leftQuote  Fancy replacement for left quote
param: {string}  rightQuote Fancy replacement for right quote

parseSingleQuotePairs()   X-Ref
Parse pairs of single quotes

Does quote pairs ‘’ must be done separately to handle nesting

parseSingleQuotes()   X-Ref
Parse single quotes in general

Does apostrophes ’ after a letter or at the beginning of a word or a couple of digits

parseSymbolsAfterDigits()   X-Ref
Parse symbols found after digits

Does symbols found after a digit:
- apostrophe ’ if it's followed by an "s" as in 80's
- prime ′ and double prime ″
- multiply sign × if it's followed by an optional space and another digit

parseSymbolsInParentheses()   X-Ref
Parse symbols found in parentheses such as (c)

Does symbols ©, ® and ™



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1