This should come preinstalled on the vast majority of Linux systems, and can be installed on OS X as a part of [ XCode ]. The main source tree of HyPhy can be downloaded from GitHub. Please consult the readme file on GitHub for further instructions and some dependancies. Jump to: navigation , search. Current release version of HyPhy is 2. Download HyPhy Please select your operating system from the list below.
Windows XP or later HyPhy 2. Linux, Unix or OS X command line. Personal tools Log in. Namespaces Page Discussion. Views Read View source View history. This page was last modified on 16 March , at This page has been accessed , times. HyPhy 2. So you can make up your own codes for custom hyphenation patterns, but they should be two letter strings too patches for proper handling extensions are welcome. When FOP is built from scratch, and there are pattern source file s present in the directory pointed to by the user.
Put the pattern source file s into a directory of your choice and configure FOP to look for custom patterns in this directory, by setting the configuration option.
Either of these three options will ensure hyphenation is working when using FOP from the command-line. If you would like to build your own hyphenation pattern files, or modify existing ones, this section will help you understand how to do so. Even when creating a pattern file from scratch, it may be beneficial to start with an existing file and modify it.
Here is a brief explanation of the contents of FOP's hyphenation patterns: The remaining content of this section should be considered "draft" quality. It was drafted from theoretical literature, and has not been tested against actual FOP behavior.
It may contain errors or omissions. Do not rely on these instructions without testing everything stated here. If you use these instructions, please provide feedback on the FOP User mailing list , either confirming their accuracy, or raising specific problems that we can address. It has nothing to do with the hyphenation character used in FOP, use the XSLFO hyphenation-character property for defining the hyphenation character there.
There is no default, if you declare exceptions with hyphenations, you must declare the hyphen-char too. This element is unused and not even read. It should be considered a documentation for parameters used during pattern generation. The members of each set should be treated as equivalent for purposes of hyphenation, usually upper and lower case of the same character. The first character of the set is the canonical character, the patterns and exceptions should only contain these canonical representation characters except digits for weight, the period.
Exceptions override the patterns described below. Explicit declarations don't work yet patches welcome. Exceptions are generally a bit brittle, test carefully.
The characters in these patterns are explained as follows:. Odd numbers represent an acceptable location for a hyphen, with higher values overriding lower inhibiting values. Even numbers indicate an unacceptable location, with higher values overriding lower values indicating an acceptable position. A value of zero inhibiting is implied when there is no number present. Generally patterns are constructed so that valuse greater than 4 are rare.
Due to a bug currently patterns with values of 8 and greater don't have an effect, so don't wonder. Here are some examples from the English patterns file:. Knuth The TeXBook , Appendix H uses the example hach4 , which indicates that it is extremely undesirable to place a hyphen after the substring "hach", for example in the word "toothach-es".
0コメント