LaTeXM...:Mouth(3pm)
π LaTeXM...:Mouth(3pm) π
okay bestie, welcome to LaTeXM...:Mouth(3pm) from the User Contributed Perl Documentation β yes, that manual name is a whole mouthful, but we're gonna get through it together π
β¨
β¨ NAME β¨
LaTeXML::Core::Mouth β tokenize the input. periodt π«Ά
π DESCRIPTION π
A LaTeXML::Core::Mouth (and its subclasses, bestie β don't forget the subclasses) is responsible for tokenizing, i.e. converting plain text and strings into LaTeXML::Core::Tokens according to the current category codes (catcodes πΎ) stored in the LaTeXML::Core::State.
It extends LaTeXML::Common::Object. slay, inheritance π
π«Ά Creating Mouths π«Ά
$mouth = LaTeXML::Core::Mouth->create($source, %options);β creates a new Mouth of the appropriate class for reading from$source. very demure, very classy β¨$mouth = LaTeXML::Core::Mouth->new($string, %options);β creates a new Mouth reading from$string. new mouth, who dis ππ
πΈ Methods πΈ
$token = $mouth->readToken;β returns the nextLaTeXML::Core::Tokenfrom the source π$boole = $mouth->hasMoreInput;β returns whether there is more data to read π$string = $mouth->getLocator;β return a description of the current position in the source, for reporting errors π§$tokens = $mouth->readTokens;β reads all remaining tokens in the mouth, removing any trailing space catcode tokens π$lines = $mouth->readRawLine;β reads a raw (untokenized) line from$mouth, orundefif none is found π
π AUTHOR π
Bruce Miller <bruce.miller@nist.gov> π
π COPYRIGHT π
Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US.
and that's the whole vibe, bestie π¦ this page came from perl v5.40.1, dated 2025-11-16, and it lives under LaTeXM...:Mouth(3pm) in the User Contributed Perl Documentation. mwah πβ¨
π¦ where this page comes from
- ubuntu resolute: latexml 0.8.8-4 Β· PD
- ubuntu stonking: latexml 0.8.8-4 Β· PD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms