Convert Traditional To Simplified Chinese In Powerpoint

  1. Chinese Traditional To Simplified Chinese
  2. Convert Traditional To Simplified Chinese In Powerpoint Template
  3. Simplified To Traditional Conversion
  4. 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

Simplified Traditional Characters. Keyboard Chinese dictionary. Online tool to convert a Chinese text writen with simplified or traditional characters. Is there a problem with the Simplified and Traditional Chinese Conversion function? If you want Chinese Conversion, You may need install the Chinese editing Language Package in Word Language Options Page (FileOptionsLanguage). On Review Tab, there is Chinese Conversion button that can help you.

#!/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()
  • These macros are very simple to use, as easy as '1-2-3': Type Pinyin with numbers representing the tones, as in 'Han4yu3 Pin1yin1'. Select the text or document you want to convert.
  • Jul 31, 2006 Simplified Chinese, but I am unable to find an option to do so in PowerPoint 2003. I have installed Chinese Traditional and Simplified MUI Language Pack. The only information I could find is to use the 'Research' menu under Tools, but that doest give an option to convert Traditional Chinese to Simplified Chinese or vise versa either.
  • 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'.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Automatically convert Pinyin with tone numbers
to Pinyin with tone marks (diacritics)

Downloads

Microsoft Office
Windows or Mac*
LibreOffice or OpenOffice
Windows, Mac, or Linux
Word — whole documents
(Supports tables.)
Writer — whole documents
Word — selected text
(Selected text or text before cursor.)
Writer — selected text
(Selected text only.)
Excel — selected cells
Calc — selected cells
PowerPoint
Impress - not yet available
(Want to help?)

*Not Compatible with Office for Mac 2008 or Apple iWork. See FAQ for more info.

Pinyin Macro Instructions
OverviewUse The Right FontInstallationRuby Text

Pinyin Macro Help
FAQs & Technical NotesContact Information


Overview

These macros are very simple to use, as easy as '1-2-3':

Simplified
  1. Type Pinyin with numbers representing the tones, as in 'Han4yu3 Pin1yin1'.
  2. Select the text or document you want to convert.
  3. Run the macro. Done.

To run macros, in Word or Excel for Windows press <alt-F8> or add the macro to your Quick Access Toolbar. In Office for Mac, go to Tools > Macros. In Libre/OpenOffice, go to Tools > Macros > Run Macro...

Use The Right Font

To use this macro, the only other thing to remember is that you'll need to select a font that includes letters with these diacritics. Otherwise you may find that in each word the one letter with a tone will be in a different font.

In Ubuntu Linux, I've found the default Liberation Serif and the other 'Liberation' fonts do not have everything we need, but Free Sans, DejaVu Sans, DejaVu Serif, 'Ubuntu' and many others look great. Starting with 16.04 / Xerus, Ubuntu includes the Google Chinese font Noto Sans CJK (also available for other systems as a free download under that name or as Adobe Source Han Sans), and that font also includes all the letters with diacritics we require for Hanyu Pinyin tones.

Macs have had Unicode fonts for years. Not every font on a Mac will have these letters, but worrying about Unicode fonts is mostly a Windows thing these days, and Microsoft is getting better and better about that too.

In Windows, use one of these:

Latin fonts

Arial
Courier New
Times New Roman
Calibri*
Cambria*

In recent versions of Office, these 'core' fonts have been updated to include at least enough of the Unicode character set to display Pinyin with tone marks. (See my note below about the default Calibri and Cambria fonts in Office 2007. Office 2010 and later are OK).

Arial Unicode MS The default Unicode font, included since MS Office 2000. Safest for use in Access databases too.
Lucida Sans UnicodeThe default Unicode font in earlier versions of Windows. Also used in Mac systems.
Chinese fonts
Microsoft YaHeiIncluded with Windows 8 and later.
Adobe Source Han Sans (Google Noto Sans CJK)Free open-source Pan-CJK font.

Chinese Traditional To Simplified Chinese

*Windows Office 2010 and later versions include all of these fonts, but Calibri and Cambria did not include all the necessary characters in Office 2007 until I installed Office Multi-Language Pack 2007.

Office XP (2002) and 2003 include the latest Arial, Courier New and Times New Roman, and those editions also normally install the Arial Unicode MS font as the 'Universal Font', also known as the 'Unicode Font' as part of International Support.

In Office 2000 that font is an option. If you did not install it, for either XP 2002/2003 or 2000, follow the instructions for 'Installing the Unicode Font' on Microsoft's 'Administering Fonts for Office XP' page.

Installation

Click one of the download links at the top of this page, and copy/extract the file to your PC.

To install in Microsoft Office, open Word or Excel and in Windows press <alt-F8>, or on a Mac go to Tools > Macros. Type a name for the macro and hit the 'Create' button. Then open the downloaded file, select all the text and copy it into a blank macro. Note my instructions in each macro on exactly where and how to paste it, especially the part about the 'sub' and 'end sub' lines. 99 times out of 100, the reason a macro doesn't work will be a mistake pasting it in during this step.

The MS Office Help files on this topic are actually are pretty good. Open Help, enter 'macro' in the Help index, and drill down to info on creating a macro 'from scratch'. (Note that Excel can be especially difficult about security: you must enable macros, and in recent versions of Excel you must save your final spreadsheet as a macro-enabled file.)

To install in OpenOffice or LibreOffice, go to Tools > Macros > Organize Macros > LibreOffice (or OpenOffice) Basic to create a macro and paste in my code. Here's a link to someone offering more detailed help: 5 Steps to Creating an OpenOffice Macro. In his step 5, instead of writing a macro you would paste in one of mine, making sure to follow my instructions in the macro comments about deleting the 'sub Main' and 'end sub' lines automatically created for any new blank macro.

Convert Traditional To Simplified Chinese In Powerpoint Template

When running these macros in OOo or LibrO, if you get a message saying you need a 'Java runtime environment' (JRE), that has nothing to do with me and you can run macros without it, but I know how to make that annoyance go away in Linux: install OpenJDK Java Runtime. This is easy in Ubuntu. Open Software Center, search for LibreOffice, click the 'More Info' button, scroll down to find OpenJDK Java Runtime, select it and click the 'Apply changes' button above.
Simplified

The Help files on this topic included with Open/LibreOffice are not very detailed, but there is some information there. Look under 'Macros' (plural) and click through 'Organize Macros' to 'LibreOffice Basic'.

See also the Troubleshooting section of the Pinyin macro FAQ page. If you get ambitious, the Help files in the Basic editors (launched when you click the 'Edit' button in the macro dialog) can help you add tweaks of your own. For example, you can tell the MS Word macro to search forward from your cursor instead of backwards by setting '.Forward=' to 'True', or you can remove that feature entirely.

Ruby Text

Although you can use this macro to create 'ruby' text (small phonetic transcriptions aligned above or alongside Chinese characters), there is an easier way: there are inexpensive Chinese character fonts available that include Pinyin ruby text, and there are the Phonetic Guide features of Word and Writer. With any of these options you'll have to input the Chinese characters first of course. See this section of my Zhuyin setup page for more information on Zhuyin and Pinyin ruby fonts, and Microsoft Word's Phonetic Guide, and this a brief discussion of Phonetic Guide in LibreOffice/OpenOffice (in my Ubuntu Linux section, but there is also a version of OpenOffice for Windows), which someone is trying to automate by developing an an extension called OOPinyinGuide.

Simplified To Traditional Conversion

Need More Help?

Simplified Chinese To Traditional Chinese Conversion

Please see the Troubleshooting section on the macro FAQ page, and feel free to send send questions, comments or suggestions anytime via the contact page.