- Timestamp:
- Jun 25, 2015, 1:28:09 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/HealthSevak-CPRS/CPRS-Lib/Hans SpellCheck/skaSpellCheck.pas
r1722 r1725 84 84 FIgnoreCaps: boolean; 85 85 FOptionsKey: String; 86 FHyphenated: Boolean; 86 87 function AddCustomWord(aWord: String; isInternal: Boolean = False): Boolean; 87 88 overload; virtual; … … 135 136 property Active: Boolean read GetActive write SetActive; 136 137 property AffixFileName: string read FAffixFileName write SetAffixFileName; 138 property HyphenatedWords: Boolean read FHyphenated write FHyphenated default false; 137 139 property IgnoreAllCaps: boolean read FIgnoreCaps write SetIgnoreCaps default true; 138 140 property IgnoreWordWithDigits:boolean read FIgnoreWordWdigits write SetIgnoreWordWdigits default true; … … 606 608 //SuggestionList.Clear; 607 609 {Any character except these will count as a word delimiter} 608 While CurrentText[i] in ['A'..'Z','a'..'z','0'..'9'] do inc(i); 610 if HyphenatedWords then 611 While CurrentText[i] in ['A'..'Z','a'..'z','0'..'9','-'] do inc(i) 612 else 613 While CurrentText[i] in ['A'..'Z','a'..'z','0'..'9'] do inc(i); 614 609 615 610 616 WordLength := i- FoundAt -1;
Note:
See TracChangeset
for help on using the changeset viewer.