Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Hyphen.cs
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 
19 //using System;
20 //using System.Text;
21 
22 //namespace Lucene.Net.Analysis.Compound.Hyphenation
23 //{
24 
25 // /// <summary>
26 // /// This class represents a hyphen. A 'full' hyphen is made of 3 parts: the
27 // /// pre-break text, post-break text and no-break. If no line-break is generated
28 // /// at this position, the no-break text is used, otherwise, pre-break and
29 // /// post-break are used. Typically, pre-break is equal to the hyphen character
30 // /// and the others are empty. However, this general scheme allows support for
31 // /// cases in some languages where words change spelling if they're split across
32 // /// lines, like german's 'backen' which hyphenates 'bak-ken'. BTW, this comes
33 // /// from TeX.
34 // ///
35 // /// This class has been taken from the Apache FOP project (http://xmlgraphics.apache.org/fop/). They have been slightly modified.
36 // /// </summary>
37 // [Serializable]
38 // public class Hyphen
39 // {
40 // public String preBreak;
41 
42 // public String noBreak;
43 
44 // public String postBreak;
45 
46 // private Hyphen(String pre, String no, String post)
47 // {
48 // preBreak = pre;
49 // noBreak = no;
50 // postBreak = post;
51 // }
52 
53 // private Hyphen(String pre)
54 // {
55 // preBreak = pre;
56 // noBreak = null;
57 // postBreak = null;
58 // }
59 
60 // public override string ToString()
61 // {
62 // if (noBreak == null && postBreak == null && preBreak != null
63 // && preBreak.Equals("-"))
64 // {
65 // return "-";
66 // }
67 // StringBuilder res = new StringBuilder("{");
68 // res.Append(preBreak);
69 // res.Append("}{");
70 // res.Append(postBreak);
71 // res.Append("}{");
72 // res.Append(noBreak);
73 // res.Append('}');
74 // return res.ToString();
75 // }
76 
77 // }
78 //}