Ignore:
Timestamp:
Jun 25, 2015, 1:28:09 AM (9 years ago)
Author:
healthsevak
Message:

Cleaned little bit of glitches and added the About dialog and also synced the demo project in line with the updated component properties

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/HealthSevak-CPRS/CPRS-Lib/Hans SpellCheck/skaSpellCheck.pas

    r1722 r1725  
    8484    FIgnoreCaps: boolean;
    8585    FOptionsKey: String;
     86    FHyphenated: Boolean;
    8687    function AddCustomWord(aWord: String; isInternal: Boolean = False): Boolean;
    8788                                                            overload; virtual;
     
    135136    property Active: Boolean read GetActive write SetActive;
    136137    property AffixFileName: string read FAffixFileName write SetAffixFileName;
     138    property HyphenatedWords: Boolean read FHyphenated write FHyphenated default false;
    137139    property IgnoreAllCaps: boolean read FIgnoreCaps write SetIgnoreCaps default true;
    138140    property IgnoreWordWithDigits:boolean read FIgnoreWordWdigits write SetIgnoreWordWdigits default true;
     
    606608        //SuggestionList.Clear;
    607609        {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
    609615
    610616        WordLength        := i- FoundAt -1;
Note: See TracChangeset for help on using the changeset viewer.