OpenCC 1.2.0__cp38-cp38-manylinux2014_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- opencc/__init__.py +49 -0
- opencc/clib/__init__.py +0 -0
- opencc/clib/bin/opencc +0 -0
- opencc/clib/bin/opencc_dict +0 -0
- opencc/clib/bin/opencc_phrase_extract +0 -0
- opencc/clib/include/opencc/BinaryDict.hpp +53 -0
- opencc/clib/include/opencc/Common.hpp +82 -0
- opencc/clib/include/opencc/Config.hpp +49 -0
- opencc/clib/include/opencc/Conversion.hpp +47 -0
- opencc/clib/include/opencc/ConversionChain.hpp +43 -0
- opencc/clib/include/opencc/Converter.hpp +51 -0
- opencc/clib/include/opencc/DartsDict.hpp +60 -0
- opencc/clib/include/opencc/Dict.hpp +92 -0
- opencc/clib/include/opencc/DictConverter.hpp +32 -0
- opencc/clib/include/opencc/DictEntry.hpp +173 -0
- opencc/clib/include/opencc/DictGroup.hpp +57 -0
- opencc/clib/include/opencc/Exception.hpp +88 -0
- opencc/clib/include/opencc/Export.hpp +40 -0
- opencc/clib/include/opencc/Lexicon.hpp +70 -0
- opencc/clib/include/opencc/MarisaDict.hpp +63 -0
- opencc/clib/include/opencc/MaxMatchSegmentation.hpp +43 -0
- opencc/clib/include/opencc/Optional.hpp +76 -0
- opencc/clib/include/opencc/PhraseExtract.hpp +195 -0
- opencc/clib/include/opencc/Segmentation.hpp +32 -0
- opencc/clib/include/opencc/Segments.hpp +118 -0
- opencc/clib/include/opencc/SerializableDict.hpp +77 -0
- opencc/clib/include/opencc/SerializedValues.hpp +52 -0
- opencc/clib/include/opencc/SimpleConverter.hpp +113 -0
- opencc/clib/include/opencc/TextDict.hpp +60 -0
- opencc/clib/include/opencc/UTF8StringSlice.hpp +246 -0
- opencc/clib/include/opencc/UTF8Util.hpp +291 -0
- opencc/clib/include/opencc/opencc.h +161 -0
- opencc/clib/include/opencc/opencc_config.h +21 -0
- opencc/clib/lib/cmake/opencc/OpenCCConfig.cmake +31 -0
- opencc/clib/lib/cmake/opencc/OpenCCConfigVersion.cmake +65 -0
- opencc/clib/lib/cmake/opencc/OpenCCTargets-release.cmake +29 -0
- opencc/clib/lib/cmake/opencc/OpenCCTargets.cmake +110 -0
- opencc/clib/lib/libmarisa.a +0 -0
- opencc/clib/lib/libopencc.a +0 -0
- opencc/clib/lib/pkgconfig/opencc.pc +11 -0
- opencc/clib/opencc_clib.cpython-38-x86_64-linux-gnu.so +0 -0
- opencc/clib/share/opencc/HKVariants.ocd2 +0 -0
- opencc/clib/share/opencc/HKVariantsRev.ocd2 +0 -0
- opencc/clib/share/opencc/HKVariantsRevPhrases.ocd2 +0 -0
- opencc/clib/share/opencc/JPShinjitaiCharacters.ocd2 +0 -0
- opencc/clib/share/opencc/JPShinjitaiPhrases.ocd2 +0 -0
- opencc/clib/share/opencc/JPVariants.ocd2 +0 -0
- opencc/clib/share/opencc/JPVariantsRev.ocd2 +0 -0
- opencc/clib/share/opencc/STCharacters.ocd2 +0 -0
- opencc/clib/share/opencc/STPhrases.ocd2 +0 -0
- opencc/clib/share/opencc/TSCharacters.ocd2 +0 -0
- opencc/clib/share/opencc/TSPhrases.ocd2 +0 -0
- opencc/clib/share/opencc/TWPhrases.ocd2 +0 -0
- opencc/clib/share/opencc/TWPhrasesRev.ocd2 +0 -0
- opencc/clib/share/opencc/TWVariants.ocd2 +0 -0
- opencc/clib/share/opencc/TWVariantsRev.ocd2 +0 -0
- opencc/clib/share/opencc/TWVariantsRevPhrases.ocd2 +0 -0
- opencc/clib/share/opencc/hk2s.json +33 -0
- opencc/clib/share/opencc/hk2t.json +22 -0
- opencc/clib/share/opencc/jp2t.json +25 -0
- opencc/clib/share/opencc/s2hk.json +27 -0
- opencc/clib/share/opencc/s2t.json +22 -0
- opencc/clib/share/opencc/s2tw.json +27 -0
- opencc/clib/share/opencc/s2twp.json +32 -0
- opencc/clib/share/opencc/t2hk.json +16 -0
- opencc/clib/share/opencc/t2jp.json +16 -0
- opencc/clib/share/opencc/t2s.json +22 -0
- opencc/clib/share/opencc/t2tw.json +16 -0
- opencc/clib/share/opencc/tw2s.json +33 -0
- opencc/clib/share/opencc/tw2sp.json +36 -0
- opencc/clib/share/opencc/tw2t.json +22 -0
- opencc/py.typed +0 -0
- opencc-1.2.0.dist-info/AUTHORS +12 -0
- opencc-1.2.0.dist-info/LICENSE +56 -0
- opencc-1.2.0.dist-info/METADATA +347 -0
- opencc-1.2.0.dist-info/RECORD +78 -0
- opencc-1.2.0.dist-info/WHEEL +5 -0
- opencc-1.2.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
|
|
3
|
+
####### Any changes to this file will be overwritten by the next CMake run ####
|
|
4
|
+
####### The input file was OpenCCConfig.cmake.in ########
|
|
5
|
+
|
|
6
|
+
get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
|
|
7
|
+
|
|
8
|
+
macro(set_and_check _var _file)
|
|
9
|
+
set(${_var} "${_file}")
|
|
10
|
+
if(NOT EXISTS "${_file}")
|
|
11
|
+
message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
|
|
12
|
+
endif()
|
|
13
|
+
endmacro()
|
|
14
|
+
|
|
15
|
+
macro(check_required_components _NAME)
|
|
16
|
+
foreach(comp ${${_NAME}_FIND_COMPONENTS})
|
|
17
|
+
if(NOT ${_NAME}_${comp}_FOUND)
|
|
18
|
+
if(${_NAME}_FIND_REQUIRED_${comp})
|
|
19
|
+
set(${_NAME}_FOUND FALSE)
|
|
20
|
+
endif()
|
|
21
|
+
endif()
|
|
22
|
+
endforeach()
|
|
23
|
+
endmacro()
|
|
24
|
+
|
|
25
|
+
####################################################################################
|
|
26
|
+
|
|
27
|
+
include(${CMAKE_CURRENT_LIST_DIR}/OpenCCTargets.cmake)
|
|
28
|
+
|
|
29
|
+
set_and_check(OPENCC_INCLUDE_DIR ${PACKAGE_PREFIX_DIR}/include/opencc)
|
|
30
|
+
|
|
31
|
+
check_required_components(OpenCC)
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# This is a basic version file for the Config-mode of find_package().
|
|
2
|
+
# It is used by write_basic_package_version_file() as input file for configure_file()
|
|
3
|
+
# to create a version-file which can be installed along a config.cmake file.
|
|
4
|
+
#
|
|
5
|
+
# The created file sets PACKAGE_VERSION_EXACT if the current version string and
|
|
6
|
+
# the requested version string are exactly the same and it sets
|
|
7
|
+
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version,
|
|
8
|
+
# but only if the requested major version is the same as the current one.
|
|
9
|
+
# The variable CVF_VERSION must be set before calling configure_file().
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
set(PACKAGE_VERSION "1.2.0")
|
|
13
|
+
|
|
14
|
+
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
|
|
15
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
|
16
|
+
else()
|
|
17
|
+
|
|
18
|
+
if("1.2.0" MATCHES "^([0-9]+)\\.")
|
|
19
|
+
set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
|
|
20
|
+
if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0)
|
|
21
|
+
string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR}")
|
|
22
|
+
endif()
|
|
23
|
+
else()
|
|
24
|
+
set(CVF_VERSION_MAJOR "1.2.0")
|
|
25
|
+
endif()
|
|
26
|
+
|
|
27
|
+
if(PACKAGE_FIND_VERSION_RANGE)
|
|
28
|
+
# both endpoints of the range must have the expected major version
|
|
29
|
+
math (EXPR CVF_VERSION_MAJOR_NEXT "${CVF_VERSION_MAJOR} + 1")
|
|
30
|
+
if (NOT PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
|
|
31
|
+
OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX_MAJOR STREQUAL CVF_VERSION_MAJOR)
|
|
32
|
+
OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX VERSION_LESS_EQUAL CVF_VERSION_MAJOR_NEXT)))
|
|
33
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
|
34
|
+
elseif(PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
|
|
35
|
+
AND ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS_EQUAL PACKAGE_FIND_VERSION_MAX)
|
|
36
|
+
OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MAX)))
|
|
37
|
+
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
|
38
|
+
else()
|
|
39
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
|
40
|
+
endif()
|
|
41
|
+
else()
|
|
42
|
+
if(PACKAGE_FIND_VERSION_MAJOR STREQUAL CVF_VERSION_MAJOR)
|
|
43
|
+
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
|
44
|
+
else()
|
|
45
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
|
46
|
+
endif()
|
|
47
|
+
|
|
48
|
+
if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
|
|
49
|
+
set(PACKAGE_VERSION_EXACT TRUE)
|
|
50
|
+
endif()
|
|
51
|
+
endif()
|
|
52
|
+
endif()
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
|
|
56
|
+
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "")
|
|
57
|
+
return()
|
|
58
|
+
endif()
|
|
59
|
+
|
|
60
|
+
# check that the installed version has the same 32/64bit-ness as the one which is currently searching:
|
|
61
|
+
if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8")
|
|
62
|
+
math(EXPR installedBits "8 * 8")
|
|
63
|
+
set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
|
|
64
|
+
set(PACKAGE_VERSION_UNSUITABLE TRUE)
|
|
65
|
+
endif()
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#----------------------------------------------------------------
|
|
2
|
+
# Generated CMake target import file for configuration "Release".
|
|
3
|
+
#----------------------------------------------------------------
|
|
4
|
+
|
|
5
|
+
# Commands may need to know the format version.
|
|
6
|
+
set(CMAKE_IMPORT_FILE_VERSION 1)
|
|
7
|
+
|
|
8
|
+
# Import target "OpenCC::OpenCC" for configuration "Release"
|
|
9
|
+
set_property(TARGET OpenCC::OpenCC APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
|
10
|
+
set_target_properties(OpenCC::OpenCC PROPERTIES
|
|
11
|
+
IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX"
|
|
12
|
+
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libopencc.a"
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
list(APPEND _cmake_import_check_targets OpenCC::OpenCC )
|
|
16
|
+
list(APPEND _cmake_import_check_files_for_OpenCC::OpenCC "${_IMPORT_PREFIX}/lib/libopencc.a" )
|
|
17
|
+
|
|
18
|
+
# Import target "OpenCC::marisa" for configuration "Release"
|
|
19
|
+
set_property(TARGET OpenCC::marisa APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
|
20
|
+
set_target_properties(OpenCC::marisa PROPERTIES
|
|
21
|
+
IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX"
|
|
22
|
+
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libmarisa.a"
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
list(APPEND _cmake_import_check_targets OpenCC::marisa )
|
|
26
|
+
list(APPEND _cmake_import_check_files_for_OpenCC::marisa "${_IMPORT_PREFIX}/lib/libmarisa.a" )
|
|
27
|
+
|
|
28
|
+
# Commands beyond this point should not need to know the version.
|
|
29
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# Generated by CMake
|
|
2
|
+
|
|
3
|
+
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
|
|
4
|
+
message(FATAL_ERROR "CMake >= 2.8.12 required")
|
|
5
|
+
endif()
|
|
6
|
+
if(CMAKE_VERSION VERSION_LESS "2.8.12")
|
|
7
|
+
message(FATAL_ERROR "CMake >= 2.8.12 required")
|
|
8
|
+
endif()
|
|
9
|
+
cmake_policy(PUSH)
|
|
10
|
+
cmake_policy(VERSION 2.8.12...4.0)
|
|
11
|
+
#----------------------------------------------------------------
|
|
12
|
+
# Generated CMake target import file.
|
|
13
|
+
#----------------------------------------------------------------
|
|
14
|
+
|
|
15
|
+
# Commands may need to know the format version.
|
|
16
|
+
set(CMAKE_IMPORT_FILE_VERSION 1)
|
|
17
|
+
|
|
18
|
+
# Protect against multiple inclusion, which would fail when already imported targets are added once more.
|
|
19
|
+
set(_cmake_targets_defined "")
|
|
20
|
+
set(_cmake_targets_not_defined "")
|
|
21
|
+
set(_cmake_expected_targets "")
|
|
22
|
+
foreach(_cmake_expected_target IN ITEMS OpenCC::OpenCC OpenCC::marisa)
|
|
23
|
+
list(APPEND _cmake_expected_targets "${_cmake_expected_target}")
|
|
24
|
+
if(TARGET "${_cmake_expected_target}")
|
|
25
|
+
list(APPEND _cmake_targets_defined "${_cmake_expected_target}")
|
|
26
|
+
else()
|
|
27
|
+
list(APPEND _cmake_targets_not_defined "${_cmake_expected_target}")
|
|
28
|
+
endif()
|
|
29
|
+
endforeach()
|
|
30
|
+
unset(_cmake_expected_target)
|
|
31
|
+
if(_cmake_targets_defined STREQUAL _cmake_expected_targets)
|
|
32
|
+
unset(_cmake_targets_defined)
|
|
33
|
+
unset(_cmake_targets_not_defined)
|
|
34
|
+
unset(_cmake_expected_targets)
|
|
35
|
+
unset(CMAKE_IMPORT_FILE_VERSION)
|
|
36
|
+
cmake_policy(POP)
|
|
37
|
+
return()
|
|
38
|
+
endif()
|
|
39
|
+
if(NOT _cmake_targets_defined STREQUAL "")
|
|
40
|
+
string(REPLACE ";" ", " _cmake_targets_defined_text "${_cmake_targets_defined}")
|
|
41
|
+
string(REPLACE ";" ", " _cmake_targets_not_defined_text "${_cmake_targets_not_defined}")
|
|
42
|
+
message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_cmake_targets_defined_text}\nTargets not yet defined: ${_cmake_targets_not_defined_text}\n")
|
|
43
|
+
endif()
|
|
44
|
+
unset(_cmake_targets_defined)
|
|
45
|
+
unset(_cmake_targets_not_defined)
|
|
46
|
+
unset(_cmake_expected_targets)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# Compute the installation prefix relative to this file.
|
|
50
|
+
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
51
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
52
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
53
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
54
|
+
if(_IMPORT_PREFIX STREQUAL "/")
|
|
55
|
+
set(_IMPORT_PREFIX "")
|
|
56
|
+
endif()
|
|
57
|
+
|
|
58
|
+
# Create imported target OpenCC::OpenCC
|
|
59
|
+
add_library(OpenCC::OpenCC STATIC IMPORTED)
|
|
60
|
+
|
|
61
|
+
set_target_properties(OpenCC::OpenCC PROPERTIES
|
|
62
|
+
INTERFACE_INCLUDE_DIRECTORIES "/tmp/build-via-sdist-koyediv4/opencc-1.2.0/build/lib.linux-x86_64-cpython-38/opencc/clib/include/opencc"
|
|
63
|
+
INTERFACE_LINK_LIBRARIES "OpenCC::marisa"
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
# Create imported target OpenCC::marisa
|
|
67
|
+
add_library(OpenCC::marisa STATIC IMPORTED)
|
|
68
|
+
|
|
69
|
+
# Load information for each installed configuration.
|
|
70
|
+
file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/OpenCCTargets-*.cmake")
|
|
71
|
+
foreach(_cmake_config_file IN LISTS _cmake_config_files)
|
|
72
|
+
include("${_cmake_config_file}")
|
|
73
|
+
endforeach()
|
|
74
|
+
unset(_cmake_config_file)
|
|
75
|
+
unset(_cmake_config_files)
|
|
76
|
+
|
|
77
|
+
# Cleanup temporary variables.
|
|
78
|
+
set(_IMPORT_PREFIX)
|
|
79
|
+
|
|
80
|
+
# Loop over all imported files and verify that they actually exist
|
|
81
|
+
foreach(_cmake_target IN LISTS _cmake_import_check_targets)
|
|
82
|
+
if(CMAKE_VERSION VERSION_LESS "3.28"
|
|
83
|
+
OR NOT DEFINED _cmake_import_check_xcframework_for_${_cmake_target}
|
|
84
|
+
OR NOT IS_DIRECTORY "${_cmake_import_check_xcframework_for_${_cmake_target}}")
|
|
85
|
+
foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
|
|
86
|
+
if(NOT EXISTS "${_cmake_file}")
|
|
87
|
+
message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
|
|
88
|
+
\"${_cmake_file}\"
|
|
89
|
+
but this file does not exist. Possible reasons include:
|
|
90
|
+
* The file was deleted, renamed, or moved to another location.
|
|
91
|
+
* An install or uninstall procedure did not complete successfully.
|
|
92
|
+
* The installation package was faulty and contained
|
|
93
|
+
\"${CMAKE_CURRENT_LIST_FILE}\"
|
|
94
|
+
but not all the files it references.
|
|
95
|
+
")
|
|
96
|
+
endif()
|
|
97
|
+
endforeach()
|
|
98
|
+
endif()
|
|
99
|
+
unset(_cmake_file)
|
|
100
|
+
unset("_cmake_import_check_files_for_${_cmake_target}")
|
|
101
|
+
endforeach()
|
|
102
|
+
unset(_cmake_target)
|
|
103
|
+
unset(_cmake_import_check_targets)
|
|
104
|
+
|
|
105
|
+
# This file does not depend on other imported targets which have
|
|
106
|
+
# been exported from the same project but in a separate export set.
|
|
107
|
+
|
|
108
|
+
# Commands beyond this point should not need to know the version.
|
|
109
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|
|
110
|
+
cmake_policy(POP)
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
prefix=/tmp/build-via-sdist-koyediv4/opencc-1.2.0/build/lib.linux-x86_64-cpython-38/opencc/clib
|
|
2
|
+
exec_prefix=${prefix}
|
|
3
|
+
libdir=lib
|
|
4
|
+
includedir=/tmp/build-via-sdist-koyediv4/opencc-1.2.0/build/lib.linux-x86_64-cpython-38/opencc/clib/include
|
|
5
|
+
|
|
6
|
+
Name: opencc
|
|
7
|
+
Description: Open Chinese Convert
|
|
8
|
+
Version: 1.2.0
|
|
9
|
+
Requires:
|
|
10
|
+
Libs: -L${libdir} -lopencc
|
|
11
|
+
Cflags: -I${includedir}/opencc
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Traditional Chinese (Hong Kong variant) to Simplified Chinese",
|
|
3
|
+
"segmentation": {
|
|
4
|
+
"type": "mmseg",
|
|
5
|
+
"dict": {
|
|
6
|
+
"type": "ocd2",
|
|
7
|
+
"file": "TSPhrases.ocd2"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"conversion_chain": [{
|
|
11
|
+
"dict": {
|
|
12
|
+
"type": "group",
|
|
13
|
+
"dicts": [{
|
|
14
|
+
"type": "ocd2",
|
|
15
|
+
"file": "HKVariantsRevPhrases.ocd2"
|
|
16
|
+
}, {
|
|
17
|
+
"type": "ocd2",
|
|
18
|
+
"file": "HKVariantsRev.ocd2"
|
|
19
|
+
}]
|
|
20
|
+
}
|
|
21
|
+
}, {
|
|
22
|
+
"dict": {
|
|
23
|
+
"type": "group",
|
|
24
|
+
"dicts": [{
|
|
25
|
+
"type": "ocd2",
|
|
26
|
+
"file": "TSPhrases.ocd2"
|
|
27
|
+
}, {
|
|
28
|
+
"type": "ocd2",
|
|
29
|
+
"file": "TSCharacters.ocd2"
|
|
30
|
+
}]
|
|
31
|
+
}
|
|
32
|
+
}]
|
|
33
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Traditional Chinese (Hong Kong variant) to Traditional Chinese",
|
|
3
|
+
"segmentation": {
|
|
4
|
+
"type": "mmseg",
|
|
5
|
+
"dict": {
|
|
6
|
+
"type": "ocd2",
|
|
7
|
+
"file": "HKVariantsRevPhrases.ocd2"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"conversion_chain": [{
|
|
11
|
+
"dict": {
|
|
12
|
+
"type": "group",
|
|
13
|
+
"dicts": [{
|
|
14
|
+
"type": "ocd2",
|
|
15
|
+
"file": "HKVariantsRevPhrases.ocd2"
|
|
16
|
+
}, {
|
|
17
|
+
"type": "ocd2",
|
|
18
|
+
"file": "HKVariantsRev.ocd2"
|
|
19
|
+
}]
|
|
20
|
+
}
|
|
21
|
+
}]
|
|
22
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "New Japanese Kanji (Shinjitai) to Traditional Chinese Characters (Kyūjitai)",
|
|
3
|
+
"segmentation": {
|
|
4
|
+
"type": "mmseg",
|
|
5
|
+
"dict": {
|
|
6
|
+
"type": "ocd2",
|
|
7
|
+
"file": "JPShinjitaiPhrases.ocd2"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"conversion_chain": [{
|
|
11
|
+
"dict": {
|
|
12
|
+
"type": "group",
|
|
13
|
+
"dicts": [{
|
|
14
|
+
"type": "ocd2",
|
|
15
|
+
"file": "JPShinjitaiPhrases.ocd2"
|
|
16
|
+
}, {
|
|
17
|
+
"type": "ocd2",
|
|
18
|
+
"file": "JPShinjitaiCharacters.ocd2"
|
|
19
|
+
}, {
|
|
20
|
+
"type": "ocd2",
|
|
21
|
+
"file": "JPVariantsRev.ocd2"
|
|
22
|
+
}]
|
|
23
|
+
}
|
|
24
|
+
}]
|
|
25
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Simplified Chinese to Traditional Chinese (Hong Kong variant)",
|
|
3
|
+
"segmentation": {
|
|
4
|
+
"type": "mmseg",
|
|
5
|
+
"dict": {
|
|
6
|
+
"type": "ocd2",
|
|
7
|
+
"file": "STPhrases.ocd2"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"conversion_chain": [{
|
|
11
|
+
"dict": {
|
|
12
|
+
"type": "group",
|
|
13
|
+
"dicts": [{
|
|
14
|
+
"type": "ocd2",
|
|
15
|
+
"file": "STPhrases.ocd2"
|
|
16
|
+
}, {
|
|
17
|
+
"type": "ocd2",
|
|
18
|
+
"file": "STCharacters.ocd2"
|
|
19
|
+
}]
|
|
20
|
+
}
|
|
21
|
+
}, {
|
|
22
|
+
"dict": {
|
|
23
|
+
"type": "ocd2",
|
|
24
|
+
"file": "HKVariants.ocd2"
|
|
25
|
+
}
|
|
26
|
+
}]
|
|
27
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Simplified Chinese to Traditional Chinese",
|
|
3
|
+
"segmentation": {
|
|
4
|
+
"type": "mmseg",
|
|
5
|
+
"dict": {
|
|
6
|
+
"type": "ocd2",
|
|
7
|
+
"file": "STPhrases.ocd2"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"conversion_chain": [{
|
|
11
|
+
"dict": {
|
|
12
|
+
"type": "group",
|
|
13
|
+
"dicts": [{
|
|
14
|
+
"type": "ocd2",
|
|
15
|
+
"file": "STPhrases.ocd2"
|
|
16
|
+
}, {
|
|
17
|
+
"type": "ocd2",
|
|
18
|
+
"file": "STCharacters.ocd2"
|
|
19
|
+
}]
|
|
20
|
+
}
|
|
21
|
+
}]
|
|
22
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Simplified Chinese to Traditional Chinese (Taiwan standard)",
|
|
3
|
+
"segmentation": {
|
|
4
|
+
"type": "mmseg",
|
|
5
|
+
"dict": {
|
|
6
|
+
"type": "ocd2",
|
|
7
|
+
"file": "STPhrases.ocd2"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"conversion_chain": [{
|
|
11
|
+
"dict": {
|
|
12
|
+
"type": "group",
|
|
13
|
+
"dicts": [{
|
|
14
|
+
"type": "ocd2",
|
|
15
|
+
"file": "STPhrases.ocd2"
|
|
16
|
+
}, {
|
|
17
|
+
"type": "ocd2",
|
|
18
|
+
"file": "STCharacters.ocd2"
|
|
19
|
+
}]
|
|
20
|
+
}
|
|
21
|
+
}, {
|
|
22
|
+
"dict": {
|
|
23
|
+
"type": "ocd2",
|
|
24
|
+
"file": "TWVariants.ocd2"
|
|
25
|
+
}
|
|
26
|
+
}]
|
|
27
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Simplified Chinese to Traditional Chinese (Taiwan standard, with phrases)",
|
|
3
|
+
"segmentation": {
|
|
4
|
+
"type": "mmseg",
|
|
5
|
+
"dict": {
|
|
6
|
+
"type": "ocd2",
|
|
7
|
+
"file": "STPhrases.ocd2"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"conversion_chain": [{
|
|
11
|
+
"dict": {
|
|
12
|
+
"type": "group",
|
|
13
|
+
"dicts": [{
|
|
14
|
+
"type": "ocd2",
|
|
15
|
+
"file": "STPhrases.ocd2"
|
|
16
|
+
}, {
|
|
17
|
+
"type": "ocd2",
|
|
18
|
+
"file": "STCharacters.ocd2"
|
|
19
|
+
}]
|
|
20
|
+
}
|
|
21
|
+
}, {
|
|
22
|
+
"dict": {
|
|
23
|
+
"type": "ocd2",
|
|
24
|
+
"file": "TWPhrases.ocd2"
|
|
25
|
+
}
|
|
26
|
+
}, {
|
|
27
|
+
"dict": {
|
|
28
|
+
"type": "ocd2",
|
|
29
|
+
"file": "TWVariants.ocd2"
|
|
30
|
+
}
|
|
31
|
+
}]
|
|
32
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Traditional Chinese to Traditional Chinese (Hong Kong variant)",
|
|
3
|
+
"segmentation": {
|
|
4
|
+
"type": "mmseg",
|
|
5
|
+
"dict": {
|
|
6
|
+
"type": "ocd2",
|
|
7
|
+
"file": "HKVariants.ocd2"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"conversion_chain": [{
|
|
11
|
+
"dict": {
|
|
12
|
+
"type": "ocd2",
|
|
13
|
+
"file": "HKVariants.ocd2"
|
|
14
|
+
}
|
|
15
|
+
}]
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Traditional Chinese Characters (Kyūjitai) to New Japanese Kanji (Shinjitai)",
|
|
3
|
+
"segmentation": {
|
|
4
|
+
"type": "mmseg",
|
|
5
|
+
"dict": {
|
|
6
|
+
"type": "ocd2",
|
|
7
|
+
"file": "JPVariants.ocd2"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"conversion_chain": [{
|
|
11
|
+
"dict": {
|
|
12
|
+
"type": "ocd2",
|
|
13
|
+
"file": "JPVariants.ocd2"
|
|
14
|
+
}
|
|
15
|
+
}]
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Traditional Chinese to Simplified Chinese",
|
|
3
|
+
"segmentation": {
|
|
4
|
+
"type": "mmseg",
|
|
5
|
+
"dict": {
|
|
6
|
+
"type": "ocd2",
|
|
7
|
+
"file": "TSPhrases.ocd2"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"conversion_chain": [{
|
|
11
|
+
"dict": {
|
|
12
|
+
"type": "group",
|
|
13
|
+
"dicts": [{
|
|
14
|
+
"type": "ocd2",
|
|
15
|
+
"file": "TSPhrases.ocd2"
|
|
16
|
+
}, {
|
|
17
|
+
"type": "ocd2",
|
|
18
|
+
"file": "TSCharacters.ocd2"
|
|
19
|
+
}]
|
|
20
|
+
}
|
|
21
|
+
}]
|
|
22
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Traditional Chinese to Traditional Chinese (Taiwan standard)",
|
|
3
|
+
"segmentation": {
|
|
4
|
+
"type": "mmseg",
|
|
5
|
+
"dict": {
|
|
6
|
+
"type": "ocd2",
|
|
7
|
+
"file": "TWVariants.ocd2"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"conversion_chain": [{
|
|
11
|
+
"dict": {
|
|
12
|
+
"type": "ocd2",
|
|
13
|
+
"file": "TWVariants.ocd2"
|
|
14
|
+
}
|
|
15
|
+
}]
|
|
16
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Traditional Chinese (Taiwan standard) to Simplified Chinese",
|
|
3
|
+
"segmentation": {
|
|
4
|
+
"type": "mmseg",
|
|
5
|
+
"dict": {
|
|
6
|
+
"type": "ocd2",
|
|
7
|
+
"file": "TSPhrases.ocd2"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"conversion_chain": [{
|
|
11
|
+
"dict": {
|
|
12
|
+
"type": "group",
|
|
13
|
+
"dicts": [{
|
|
14
|
+
"type": "ocd2",
|
|
15
|
+
"file": "TWVariantsRevPhrases.ocd2"
|
|
16
|
+
}, {
|
|
17
|
+
"type": "ocd2",
|
|
18
|
+
"file": "TWVariantsRev.ocd2"
|
|
19
|
+
}]
|
|
20
|
+
}
|
|
21
|
+
}, {
|
|
22
|
+
"dict": {
|
|
23
|
+
"type": "group",
|
|
24
|
+
"dicts": [{
|
|
25
|
+
"type": "ocd2",
|
|
26
|
+
"file": "TSPhrases.ocd2"
|
|
27
|
+
}, {
|
|
28
|
+
"type": "ocd2",
|
|
29
|
+
"file": "TSCharacters.ocd2"
|
|
30
|
+
}]
|
|
31
|
+
}
|
|
32
|
+
}]
|
|
33
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Traditional Chinese (Taiwan standard) to Simplified Chinese (with phrases)",
|
|
3
|
+
"segmentation": {
|
|
4
|
+
"type": "mmseg",
|
|
5
|
+
"dict": {
|
|
6
|
+
"type": "ocd2",
|
|
7
|
+
"file": "TSPhrases.ocd2"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"conversion_chain": [{
|
|
11
|
+
"dict": {
|
|
12
|
+
"type": "group",
|
|
13
|
+
"dicts": [{
|
|
14
|
+
"type": "ocd2",
|
|
15
|
+
"file": "TWPhrasesRev.ocd2"
|
|
16
|
+
}, {
|
|
17
|
+
"type": "ocd2",
|
|
18
|
+
"file": "TWVariantsRevPhrases.ocd2"
|
|
19
|
+
}, {
|
|
20
|
+
"type": "ocd2",
|
|
21
|
+
"file": "TWVariantsRev.ocd2"
|
|
22
|
+
}]
|
|
23
|
+
}
|
|
24
|
+
}, {
|
|
25
|
+
"dict": {
|
|
26
|
+
"type": "group",
|
|
27
|
+
"dicts": [{
|
|
28
|
+
"type": "ocd2",
|
|
29
|
+
"file": "TSPhrases.ocd2"
|
|
30
|
+
}, {
|
|
31
|
+
"type": "ocd2",
|
|
32
|
+
"file": "TSCharacters.ocd2"
|
|
33
|
+
}]
|
|
34
|
+
}
|
|
35
|
+
}]
|
|
36
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Traditional Chinese (Taiwan standard) to Traditional Chinese",
|
|
3
|
+
"segmentation": {
|
|
4
|
+
"type": "mmseg",
|
|
5
|
+
"dict": {
|
|
6
|
+
"type": "ocd2",
|
|
7
|
+
"file": "TWVariantsRevPhrases.ocd2"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"conversion_chain": [{
|
|
11
|
+
"dict": {
|
|
12
|
+
"type": "group",
|
|
13
|
+
"dicts": [{
|
|
14
|
+
"type": "ocd2",
|
|
15
|
+
"file": "TWVariantsRevPhrases.ocd2"
|
|
16
|
+
}, {
|
|
17
|
+
"type": "ocd2",
|
|
18
|
+
"file": "TWVariantsRev.ocd2"
|
|
19
|
+
}]
|
|
20
|
+
}
|
|
21
|
+
}]
|
|
22
|
+
}
|
opencc/py.typed
ADDED
|
File without changes
|