Skip to content

cpp-pinyinv2.0.0

Updated

A lightweight Chinese/Cantonese to Pinyin library.

#Usage

cpp-pinyin provides CMake targets:

find_package(cpp-pinyin2 CONFIG REQUIRED)
target_link_libraries(main PRIVATE cpp-pinyin2::cpp-pinyin2)

The dictionaries are in CPP_PINYIN2_DICT_DIR. To deploy them beside your application:

add_custom_command(TARGET main POST_BUILD
    COMMAND "${CMAKE_COMMAND}" -E copy_directory
      "${CPP_PINYIN2_DICT_DIR}"
      "$<TARGET_FILE_DIR:main>/dict"
)

Pass the deployed dictionary directory to Engine::open.

cpp-pinyin provides pkg-config modules:

# A lightweight Chinese/Cantonese to Pinyin library.
cpp-pinyin2

#Supported Platforms

All platforms supported.

#Features

No features defined.

#Dependencies

No dependencies.

#Host Dependencies

No transitive dependencies.

#Used By

No ports use this.

#Host Tool For

No ports use this.

#Contributors

  • wolfgitpr's avatarwolfgitpr
  • SunBlack's avatarSunBlack

#Changelog

  • 3c0b120[cpp-pinyin] Update to 2.0.0 (#55144)
  • da6fc34[cpp-pinyin] update to 1.0.2 (#44377)
  • 871321b[cpp-pinyin] update to 1.0.1 (#44082)
  • acdbbba[cpp-pinyin] Add new port (#42063)