Last active
December 13, 2015 21:29
-
-
Save phluks/4977891 to your computer and use it in GitHub Desktop.
Revisions
-
phluks revised this gist
Feb 19, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use warnings; use v5.10; # Remember to save as utf8! use utf8; use TeX::Hyphen; use TeX::Hyphen::Pattern; -
phluks revised this gist
Feb 19, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use warnings; use v5.10; # save as utf8! use utf8; use TeX::Hyphen; use TeX::Hyphen::Pattern; @@ -11,7 +11,7 @@ $pat = TeX::Hyphen::Pattern->new(); $pat->label('da_DK'); # Changing left/rightmin does not seem to help #$hyph = TeX::Hyphen->new(file => $pat->filename, leftmin => 2, rightmin => 2); $hyph = TeX::Hyphen->new(file => $pat->filename); -
phluks revised this gist
Feb 19, 2013 . 1 changed file with 12 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,10 +6,20 @@ use utf8; use TeX::Hyphen; use TeX::Hyphen::Pattern; use open ":locale"; $pat = TeX::Hyphen::Pattern->new(); $pat->label('da_DK'); # Det ser ikke ud til at det hjælper at ændre på left/rightmin #$hyph = TeX::Hyphen->new(file => $pat->filename, leftmin => 2, rightmin => 2); $hyph = TeX::Hyphen->new(file => $pat->filename); say "køreskole: " . $hyph->visualize("køreskole"); # køreskole: køresko-le say "wonderwoman: " . $hyph->visualize("wonderwoman"); # wonderwoman: won-derwo-man say "katedralskole: " . $hyph->visualize("katedralskole"); # katedralskole: ka-ted-ralsko-le -
phluks created this gist
Feb 18, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ #!/usr/bin/perl use warnings; use v5.10; # gem som utf8! use utf8; use TeX::Hyphen; use TeX::Hyphen::Pattern; $pat = TeX::Hyphen::Pattern->new(); $pat->label('da_DK'); # Det ser ikke ud til at det hjælper at ændre på left/rightmin $hyph = TeX::Hyphen->new(file => $pat->filename, leftmin => 2, rightmin => 2); say "køreskole: " . $hyph->visualize("køreskole"); # k�reskole: k�resko-le