Skip to content

PinYin4Objc is a popular objective-c library supporting convertion between Chinese(both Simplified and Tranditional) characters and most popular Pinyin systems

License

Notifications You must be signed in to change notification settings

oppinfo/PinYin4Objc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PinYin4Objc

PinYin4Objc is a popular objective-c library supporting convertion between Chinese(both Simplified and Tranditional) characters and most popular Pinyin systems, it's performance is very efficient, data cached at first time. The output format of pinyin could be customized.

  • Usage

      NSString *sourceText=@"我爱中文";
      HanyuPinyinOutputFormat *outputFormat=[[HanyuPinyinOutputFormat alloc] init];
      [outputFormat setToneType:ToneTypeWithoutTone];
      [outputFormat setVCharType:VCharTypeWithV];
      [outputFormat setCaseType:CaseTypeLowercase];
      NSString *outputPinyin=[PinyinHelper toHanyuPinyinStringWithNSString:sourceText withHanyuPinyinOutputFormat:outputFormat withNSString:@" "];
    
  • ScreenShot

    ScreenShot

About

PinYin4Objc is a popular objective-c library supporting convertion between Chinese(both Simplified and Tranditional) characters and most popular Pinyin systems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 97.2%
  • Ruby 2.8%