C# 클래스 Common.HtmlCleaner.PersianProofWriter

파일 보기 프로젝트 열기: rabbal/Mvc5

공개 메소드들

메소드 설명
ApplyHalfSpaceRule ( this text ) : string

Adds zwnj char between word and prefix/suffix

ApplyModeratePersianRules ( this text ) : string
ApplyPersianYeKe ( this text ) : string

Fixes common writing mistakes caused by using a bad keyboard layout, such as replacing Arabic Ye with Persian one and so on ...

CleanupExtraMarks ( this text ) : string

Replaces more than one ! or ? mark with just one

CleanupZwnj ( this text ) : string

Removes unnecessary zwnj char that are succeeded/preceded by a space

ContainsFarsi ( this text ) : bool

Does text contain Persian characters?

YeHeHalfSpace ( this text ) : string

Converts ه ی to ه‌ی

메소드 상세

ApplyHalfSpaceRule() 공개 정적인 메소드

Adds zwnj char between word and prefix/suffix
public static ApplyHalfSpaceRule ( this text ) : string
text this Text to process
리턴 string

ApplyModeratePersianRules() 공개 정적인 메소드

public static ApplyModeratePersianRules ( this text ) : string
text this
리턴 string

ApplyPersianYeKe() 공개 정적인 메소드

Fixes common writing mistakes caused by using a bad keyboard layout, such as replacing Arabic Ye with Persian one and so on ...
public static ApplyPersianYeKe ( this text ) : string
text this Text to process
리턴 string

CleanupExtraMarks() 공개 정적인 메소드

Replaces more than one ! or ? mark with just one
public static CleanupExtraMarks ( this text ) : string
text this Text to process
리턴 string

CleanupZwnj() 공개 정적인 메소드

Removes unnecessary zwnj char that are succeeded/preceded by a space
public static CleanupZwnj ( this text ) : string
text this Text to process
리턴 string

ContainsFarsi() 공개 정적인 메소드

Does text contain Persian characters?
public static ContainsFarsi ( this text ) : bool
text this Text to process
리턴 bool

YeHeHalfSpace() 공개 정적인 메소드

Converts ه ی to ه‌ی
public static YeHeHalfSpace ( this text ) : string
text this Text to process
리턴 string