TeX::Hyphen::czech(3)
π TeX::Hyphen::czech π
Okay so this is the manual page for TeX::Hyphen::czech β and yes bestie, it's a User Contributed Perl Documentation page. If you're an end user, lowkey there's not much here for you; the real move is just passing the style parameter to new TeX::Hyphen. But if you're here to hack on pattern parsing, welcome, you're the main character now. π
β¨ NAME β¨
TeX::Hyphen::czech β provides parsing routine for Czech patterns
π¦ SYNOPSIS π¦
use TeX::Hyphen;
my $hyp = new TeX::Hyphen 'hyphen.tex', style => 'czech';
# and then follow documentation for TeX::Hyphen
πΈ DESCRIPTION πΈ
This pattern processing happens to be the default β Czech is literally the blueprint, no cap. π If you need to write your own style of parsing the pattern file, you might want to start with this file and hack it to suit your needs. There is nothing for end users here β just specify the style parameter in the call to new TeX::Hyphen.
The language style specific modules have to define the following functions:
π§ process_patterns π§
This method gets individual lines of the \patterns content. It should parse these lines, and fill values in $bothhyphen, $beginhyphen, $endhyphen and $hyphen, which are being passed to this function as parameters following the line. The function should return 0 if the end of the pattern section (macro) was reached, and 1 if the parsing should continue.
π process_hyphenation π
This method gets the lines of the \hyphenation content. It should parse these lines and fill values into $exception, which is passed as the second parameter upon call. The function should return 0 if the end of the exception section (macro) was reached, and 1 if the parsing should continue.
Check the TeX::Hyphen::czech source to see the exact form of the values inserted into these has structures. π
Each style module should also define $LEFTMIN and $RIGHTMIN global variables, if they have different values than the default 2. The values should match the paratemers used to generate the patterns. Since various pattern files could be generated with different values set, this is just the default that can be changed with parameters to the TeX::Hyphen constructor.
Okay that's the whole vibe check, bestie. This iconic little page comes from perl v5.32.1, dated 2018-02-09, and it's the TeX::Hyphen::czech(3) manual page. Slay. π
β¨
π¦ where this page comes from
- epel 9: perl-TeX-Hyphen 1.18-5.el9 Β· GPL+ or Artistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms