text-hyphen 1.4.1 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +7 -0
  2. data/.standard.yml +5 -0
  3. data/Code-of-Conduct.md +73 -0
  4. data/Contributing.md +68 -0
  5. data/History.md +139 -0
  6. data/Licence.md +159 -0
  7. data/Manifest.txt +12 -5
  8. data/README.md +81 -0
  9. data/Rakefile +68 -19
  10. data/bin/ruby-hyphen +0 -0
  11. data/lib/text/hyphen/language/1.8/de1.rb +1307 -571
  12. data/lib/text/hyphen/language/1.8/en_us.rb +412 -453
  13. data/lib/text/hyphen/language/1.8/fr.rb +128 -334
  14. data/lib/text/hyphen/language/1.8/la.rb +1 -0
  15. data/lib/text/hyphen/language/1.8/lt.rb +115 -0
  16. data/lib/text/hyphen/language/1.8/pt.rb +2 -1
  17. data/lib/text/hyphen/language/1.8/sk.rb +277 -0
  18. data/lib/text/hyphen/language/1.9/ca.rb +2 -1
  19. data/lib/text/hyphen/language/1.9/cs.rb +2 -1
  20. data/lib/text/hyphen/language/1.9/da.rb +2 -1
  21. data/lib/text/hyphen/language/1.9/de1.rb +1382 -646
  22. data/lib/text/hyphen/language/1.9/de2.rb +110 -109
  23. data/lib/text/hyphen/language/1.9/en_uk.rb +2 -1
  24. data/lib/text/hyphen/language/1.9/en_us.rb +412 -454
  25. data/lib/text/hyphen/language/1.9/es.rb +2 -1
  26. data/lib/text/hyphen/language/1.9/et.rb +6 -5
  27. data/lib/text/hyphen/language/1.9/eu.rb +4 -3
  28. data/lib/text/hyphen/language/1.9/fi.rb +3 -2
  29. data/lib/text/hyphen/language/1.9/fr.rb +136 -343
  30. data/lib/text/hyphen/language/1.9/ga.rb +27 -26
  31. data/lib/text/hyphen/language/1.9/hr.rb +6 -5
  32. data/lib/text/hyphen/language/1.9/hsb.rb +3 -2
  33. data/lib/text/hyphen/language/1.9/hu1.rb +3 -2
  34. data/lib/text/hyphen/language/1.9/hu2.rb +5 -4
  35. data/lib/text/hyphen/language/1.9/ia.rb +2 -1
  36. data/lib/text/hyphen/language/1.9/id.rb +8 -7
  37. data/lib/text/hyphen/language/1.9/is.rb +2 -1
  38. data/lib/text/hyphen/language/1.9/it.rb +74 -74
  39. data/lib/text/hyphen/language/1.9/la.rb +54 -53
  40. data/lib/text/hyphen/language/1.9/lt.rb +116 -0
  41. data/lib/text/hyphen/language/1.9/mn.rb +7 -6
  42. data/lib/text/hyphen/language/1.9/nl.rb +2 -1
  43. data/lib/text/hyphen/language/1.9/no1.rb +3 -2
  44. data/lib/text/hyphen/language/1.9/no2.rb +3 -2
  45. data/lib/text/hyphen/language/1.9/pl.rb +2 -1
  46. data/lib/text/hyphen/language/1.9/pt.rb +3 -2
  47. data/lib/text/hyphen/language/1.9/ru.rb +2 -1
  48. data/lib/text/hyphen/language/1.9/sk.rb +280 -0
  49. data/lib/text/hyphen/language/1.9/sv.rb +4 -3
  50. data/lib/text/hyphen/language/cs.rb +1 -1
  51. data/lib/text/hyphen/language/de.rb +2 -1
  52. data/lib/text/hyphen/language/de1.rb +1 -1
  53. data/lib/text/hyphen/language/de2.rb +1 -1
  54. data/lib/text/hyphen/language/en_us.rb +1 -1
  55. data/lib/text/hyphen/language/eu.rb +1 -1
  56. data/lib/text/hyphen/language/fr.rb +1 -1
  57. data/lib/text/hyphen/language/hu.rb +1 -1
  58. data/lib/text/hyphen/language/hu1.rb +1 -1
  59. data/lib/text/hyphen/language/hu2.rb +1 -1
  60. data/lib/text/hyphen/language/is.rb +1 -1
  61. data/lib/text/hyphen/language/lt.rb +4 -0
  62. data/lib/text/hyphen/language/ms.rb +3 -3
  63. data/lib/text/hyphen/language/nl.rb +1 -1
  64. data/lib/text/hyphen/language/no.rb +1 -1
  65. data/lib/text/hyphen/language/sk.rb +4 -0
  66. data/lib/text/hyphen/language.rb +45 -45
  67. data/lib/text/hyphen.rb +139 -97
  68. data/lib/text-hyphen.rb +1 -1
  69. data/test/data/bug_9807_latin1.rb +2 -2
  70. data/test/data/bug_9807_utf-8.rb +1 -1
  71. data/test/test_bugs.rb +14 -13
  72. data/test/test_text_hyphen.rb +31 -21
  73. metadata +146 -96
  74. data/.autotest +0 -23
  75. data/.gemtest +0 -0
  76. data/History.rdoc +0 -99
  77. data/License.rdoc +0 -159
  78. data/README.rdoc +0 -95
  79. data/text-hyphen.gemspec +0 -51
@@ -1,4 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
+
2
3
  # Hyphenation patterns for Text::Hyphen in Ruby: German
3
4
  # Converted from the TeX hyphenation/dehypht.tex file, by Rechenzentrum
4
5
  # der Ruhr-Universitaet Bochum (1988, 1991); Bernd Raichle/DANTE e.V.
@@ -75,11 +76,11 @@
75
76
  # at the end of this file.
76
77
  #++
77
78
 
78
- require 'text/hyphen/language'
79
+ require "text/hyphen/language"
79
80
 
80
81
  Text::Hyphen::Language::DE2 = Text::Hyphen::Language.new do |lang|
81
82
  lang.encoding "UTF-8"
82
- lang.isocode = 'de'
83
+ lang.isocode = "de"
83
84
  lang.patterns <<-PATTERNS
84
85
  .aa6l .ab3a4s .ab3ei .abi2 .ab3it .ab1l .ab1r .ab3u .ad3o4r .alti6 .ana3c
85
86
  .an5alg .an1e .ang8s .an1s .ap1p .ar6sc .ar6ta .ar6tei .as2z .au2f1 .au2s3
@@ -572,111 +573,111 @@ zu1s8 zu1z 2z1v zw8 z1wal 5zweck zwei3s z1wel z1wer z6werg 8z5wes 1zwi zwi1s
572
573
  ß1p8 ß5q ß1r ß1s2 ßst8 ß1ta ß1te ßt3hei ß1ti ß5to ß1tr 1ßu8 6ß5um ß1v ß1w
573
574
  ß1z
574
575
  PATTERNS
575
- # -----------------------------------------------------------------
576
- # =============== Additional Documentation ===============
577
- #
578
- # Older Versions of German Hyphenation Patterns:
579
- # ----------------------------------------------
580
- #
581
- # All older versions of `ghyphen.tex' distributed as
582
- #
583
- # ghyphen.tex/germhyph.tex as of 1986/11/01
584
- # ghyphen.min/ghyphen.max as of 1988/10/10
585
- # ghyphen3.tex as of 1990/09/27 & 1991/02/13
586
- # ghyph31.tex as of 1994/02/13
587
- #
588
- # are out of date and it is recommended to replace them
589
- # with the new version `dehypht.tex' as of 1999/03/03.
590
- #
591
- # If you are using `ghyphen.min' (a minor version of `ghyphen')
592
- # because of limited trie memory space, try this version and if
593
- # the space is exceeded get a newer TeX implementation with
594
- # larger or configurable trie memory sizes.
595
- #
596
- # Trie Memory Requirements/Space for Hyphenation Patterns:
597
- # --------------------------------------------------------
598
- # To load this set of german hyphenation patterns the parameters
599
- # of TeX has to have at least these values:
600
- #
601
- # TeX 3.x:
602
- # IniTeX: trie_size >= 9733 trie_op_size >= 207
603
- # VirTeX: trie_size >= 8375 trie_op_size >= 207
604
- #
605
- # TeX 2.x:
606
- # IniTeX: trie_size >= 8675 trie_op_size >= 198
607
- # VirTeX: trie_size >= 7560 trie_op_size >= 198
608
- #
609
- # If you want to load more than one set of hyphenation patterns
610
- # (in TeX 3.x), the parameters have to be set to a value larger
611
- # than or equal to the sum of all required values for each set.
612
- #
613
- #
614
- # Setting Trie Memory Parameters:
615
- # -------------------------------
616
- #
617
- # Some implementations allow the user to change the default value
618
- # of a set of the internal TeX parameters including the trie memory
619
- # size parameter specifying the used memory for the hyphenation
620
- # patterns.
621
- #
622
- # Web2c 7.x (Source), teTeX 0.9 (Unix, Amiga), fpTeX (Win32)
623
- # and newer:
624
- # The used memory size of the true is usually set high enough.
625
- # If needed set the size of the trie using the keyword `trie_size'
626
- # in the configuration file `texmf/web2c/texmf.cnf'. For details
627
- # see the included documentation.
628
- #
629
- # emTeX (OS/2, MS-DOS, Windows 3.x/9x/NT):
630
- # You can set the used memory size of the trie using the
631
- # `-mt<number>' option on the command line or in the
632
- # TEXOPTIONS environment variable.
633
- #
634
- # PasTeX (Amiga):
635
- # The values for the parameters can be set using the keywords
636
- # `triesize', `itriesize' and `trieopsize' in the configuration
637
- # file.
638
- #
639
- # others (binaries only):
640
- # See the documentation of the implementation if it is possible
641
- # and how to change these values without recompilation.
642
- #
643
- # others (with sources)
644
- # If the trie memory is too small, you have to recompile TeX
645
- # using larger values for `trie_size' and `trie_op_size'.
646
- # Modify the change file `tex.ch' and recompile TeX.
647
- # For details see the documentation included in the sources.
648
- #
649
- # Necessary Settings in TeX macro files:
650
- # --------------------------------------
651
- #
652
- # \lefthyphenmin, \righthyphenmin:
653
- # You can set both parameters to 2.
654
- #
655
- # \lccode <char>:
656
- # To get correct hyphenation points within words containing
657
- # umlauts or \ss, it's necessary to assign values > 0 to the
658
- # appropriate \lccode <char> positions.
659
- #
660
- # These changes are _not_ done when reading this file and have to
661
- # be included in the language switching mechanism as is done in,
662
- # for example, `german.sty' (\lccode change for ^^Y = \ss in OT1,
663
- # \left-/\righthyphenmin settings).
664
- #
665
- ## \CharacterTable
666
- ## {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
667
- ## Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
668
- ## Digits \0\1\2\3\4\5\6\7\8\9
669
- ## Exclamation \! Double quote \" Hash (number) \#
670
- ## Dollar \$ Percent \% Ampersand \&
671
- ## Acute accent \' Left paren \( Right paren \)
672
- ## Asterisk \* Plus \+ Comma \,
673
- ## Minus \- Point \. Solidus \/
674
- ## Colon \: Semicolon \; Less than \<
675
- ## Equals \= Greater than \> Question mark \?
676
- ## Commercial at \@ Left bracket \[ Backslash \\
677
- ## Right bracket \] Circumflex \^ Underscore \_
678
- ## Grave accent \` Left brace \{ Vertical bar \|
679
- ## Right brace \} Tilde \~}
680
- ##
681
- ## End of file `dehypht.tex'.
576
+ # -----------------------------------------------------------------
577
+ # =============== Additional Documentation ===============
578
+ #
579
+ # Older Versions of German Hyphenation Patterns:
580
+ # ----------------------------------------------
581
+ #
582
+ # All older versions of `ghyphen.tex' distributed as
583
+ #
584
+ # ghyphen.tex/germhyph.tex as of 1986/11/01
585
+ # ghyphen.min/ghyphen.max as of 1988/10/10
586
+ # ghyphen3.tex as of 1990/09/27 & 1991/02/13
587
+ # ghyph31.tex as of 1994/02/13
588
+ #
589
+ # are out of date and it is recommended to replace them
590
+ # with the new version `dehypht.tex' as of 1999/03/03.
591
+ #
592
+ # If you are using `ghyphen.min' (a minor version of `ghyphen')
593
+ # because of limited trie memory space, try this version and if
594
+ # the space is exceeded get a newer TeX implementation with
595
+ # larger or configurable trie memory sizes.
596
+ #
597
+ # Trie Memory Requirements/Space for Hyphenation Patterns:
598
+ # --------------------------------------------------------
599
+ # To load this set of german hyphenation patterns the parameters
600
+ # of TeX has to have at least these values:
601
+ #
602
+ # TeX 3.x:
603
+ # IniTeX: trie_size >= 9733 trie_op_size >= 207
604
+ # VirTeX: trie_size >= 8375 trie_op_size >= 207
605
+ #
606
+ # TeX 2.x:
607
+ # IniTeX: trie_size >= 8675 trie_op_size >= 198
608
+ # VirTeX: trie_size >= 7560 trie_op_size >= 198
609
+ #
610
+ # If you want to load more than one set of hyphenation patterns
611
+ # (in TeX 3.x), the parameters have to be set to a value larger
612
+ # than or equal to the sum of all required values for each set.
613
+ #
614
+ #
615
+ # Setting Trie Memory Parameters:
616
+ # -------------------------------
617
+ #
618
+ # Some implementations allow the user to change the default value
619
+ # of a set of the internal TeX parameters including the trie memory
620
+ # size parameter specifying the used memory for the hyphenation
621
+ # patterns.
622
+ #
623
+ # Web2c 7.x (Source), teTeX 0.9 (Unix, Amiga), fpTeX (Win32)
624
+ # and newer:
625
+ # The used memory size of the true is usually set high enough.
626
+ # If needed set the size of the trie using the keyword `trie_size'
627
+ # in the configuration file `texmf/web2c/texmf.cnf'. For details
628
+ # see the included documentation.
629
+ #
630
+ # emTeX (OS/2, MS-DOS, Windows 3.x/9x/NT):
631
+ # You can set the used memory size of the trie using the
632
+ # `-mt<number>' option on the command line or in the
633
+ # TEXOPTIONS environment variable.
634
+ #
635
+ # PasTeX (Amiga):
636
+ # The values for the parameters can be set using the keywords
637
+ # `triesize', `itriesize' and `trieopsize' in the configuration
638
+ # file.
639
+ #
640
+ # others (binaries only):
641
+ # See the documentation of the implementation if it is possible
642
+ # and how to change these values without recompilation.
643
+ #
644
+ # others (with sources)
645
+ # If the trie memory is too small, you have to recompile TeX
646
+ # using larger values for `trie_size' and `trie_op_size'.
647
+ # Modify the change file `tex.ch' and recompile TeX.
648
+ # For details see the documentation included in the sources.
649
+ #
650
+ # Necessary Settings in TeX macro files:
651
+ # --------------------------------------
652
+ #
653
+ # \lefthyphenmin, \righthyphenmin:
654
+ # You can set both parameters to 2.
655
+ #
656
+ # \lccode <char>:
657
+ # To get correct hyphenation points within words containing
658
+ # umlauts or \ss, it's necessary to assign values > 0 to the
659
+ # appropriate \lccode <char> positions.
660
+ #
661
+ # These changes are _not_ done when reading this file and have to
662
+ # be included in the language switching mechanism as is done in,
663
+ # for example, `german.sty' (\lccode change for ^^Y = \ss in OT1,
664
+ # \left-/\righthyphenmin settings).
665
+ #
666
+ ## \CharacterTable
667
+ ## {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
668
+ ## Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
669
+ ## Digits \0\1\2\3\4\5\6\7\8\9
670
+ ## Exclamation \! Double quote \" Hash (number) \#
671
+ ## Dollar \$ Percent \% Ampersand \&
672
+ ## Acute accent \' Left paren \( Right paren \)
673
+ ## Asterisk \* Plus \+ Comma \,
674
+ ## Minus \- Point \. Solidus \/
675
+ ## Colon \: Semicolon \; Less than \<
676
+ ## Equals \= Greater than \> Question mark \?
677
+ ## Commercial at \@ Left bracket \[ Backslash \\
678
+ ## Right bracket \] Circumflex \^ Underscore \_
679
+ ## Grave accent \` Left brace \{ Vertical bar \|
680
+ ## Right brace \} Tilde \~}
681
+ ##
682
+ ## End of file `dehypht.tex'.
682
683
  end
@@ -1,4 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
+
2
3
  # Hyphenation patterns for Text::Hyphen in Ruby: UK English
3
4
  # Converted from the TeX hyphenation/ukhyph.tex file, by Dominik Wujastyk
4
5
  # and Graham Toal in 1992.
@@ -38,7 +39,7 @@
38
39
  #
39
40
  # These patterns require a value of about 14000 for TeX's pattern memory size.
40
41
  #++
41
- require 'text/hyphen/language'
42
+ require "text/hyphen/language"
42
43
 
43
44
  Text::Hyphen::Language::EN_UK = Text::Hyphen::Language.new do |lang|
44
45
  lang.encoding "UTF-8"