- Select the cell contains the traditional Chinese or simplified Chinese word you need to convert, then click Review Translate.
- Guideline for translating between Traditional Chinese and Simplified Chinese. Click on the 'Convert with Options' button in the Review Tab of Microsoft Word 2016; Select the suitable radio button at the 'Translation direction' field and then click 'OK'.
- Simplified To Traditional Chinese
- Convert Traditional To Simplified Chinese In Powerpoint Presentations
- Simplified Chinese To Traditional Chinese Conversion
Convert epub content from simple chinese to traditional chinese using OpenCC (https://code.google.com/p/opencc/)
epubs2t_opencc.py
#!/usr/bin/env python |
#-*- coding: utf8 -*- |
from __future__ importprint_function |
fromoptparseimportOptionParser |
importzipfile |
fromsysimportargv, exit |
fromsubprocessimportPopen, PIPE, check_output |
importos.path |
find_bin_path=lambdabin_name: check_output(['which', bin_name]) |
fn_base_extension=lambdafn: os.path.splitext(fn) |
defopencc_convert_s2t(text, opencc_bin_path): |
try: |
proc=Popen([opencc_bin_path], stdin=PIPE, stdout=PIPE) |
proc.stdin.write(text.encode('utf8')) |
code=proc.poll() |
ifcode: |
raiseRuntimeError('Failed to call opencc with exit code {0}'.format(code)) |
result=proc.communicate()[0] |
returnresult.decode('utf8') |
exceptOSError: |
return' |
defconvert_epub_sc2tc(input_fn, output_fn, opencc_bin_path): |
# read epub file and convert |
file_exts= ['.html', '.htm', '.ncx', '.opf', '.xhtml'] |
input_fh=zipfile.ZipFile(input_fn, 'r') |
fn_list_sc, fn_list_bin=reduce(lambda (fn_sc, fn_bin), fn: |
(fn_sc+ [fn], fn_bin) |
ifany(fn.endswith(x) forxinfile_exts) |
else (fn_sc, fn_bin+ [fn]), |
input_fh.namelist(), ([], [])) |
read_zip=lambdafn: input_fh.read(fn).replace('zh-CN', 'zh-TW').decode('utf8') |
content_list_tc= [opencc_convert_s2t(read_zip(fn), opencc_bin_path) |
forfninfn_list_sc] |
content_list_bin= [input_fh.read(fn) forfninfn_list_bin] |
input_fh.close() |
# write epub file |
out_fh=zipfile.ZipFile(output_fn, 'w') |
map(lambda (fn, content): out_fh.writestr(fn, content.encode('utf8')), |
zip(fn_list_sc, content_list_tc)) |
map(lambda (fn, content): out_fh.writestr(fn, content), |
zip(fn_list_bin, content_list_bin)) |
out_fh.close() |
defget_option_args(argv): |
parser=OptionParser() |
parser.add_option('-o', '--output', dest='output', action='store', |
default=', type='string', help='output input file name') |
option, args=parser.parse_args(argv) |
fn_list= [fnforfninargs[1:] iffn_base_extension(fn)[1] '.epub'] |
ifnotfn_list: |
parser.print_help() |
exit(1) |
ifoption.output: |
returnzip(fn_list, [option.output]) |
else: |
returnzip(fn_list, |
[fn_base_extension(fn)[0] +'_tc.epub'forfninfn_list]) |
defmain(): |
opencc_bin_path=find_bin_path('opencc').strip() |
ifnotopencc_bin_path: |
print('Please install opencc and check opecc in your $PATH') |
exit(1) |
in_out_fn_list=get_option_args(argv) |
forin_fn, out_fninin_out_fn_list: |
convert_epub_sc2tc(in_fn, out_fn, opencc_bin_path) |
print('Convert {0} to {1} sucessfully.'.format(in_fn, out_fn)) |
if__name__'__main__': |
main() |
Simplified To Traditional Chinese
Convert Traditional To Simplified Chinese In Powerpoint Presentations
Chinese Simplified and Traditional OCR (Optical Character Recognition). Online & Free Convert Scanned Documents and Images in chinese simplified and traditional language into Editable Word, Pdf, Excel and Txt (Text) output formats.
Simplified Chinese To Traditional Chinese Conversion
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment