Everyone in the use of office2010 to do some courses, want to give some Chinese characters phonetic notation, but many people do not know how to give Chinese characters phonetic notation, as long as the selection of the Font group in the Add pinyin can give the Chinese characters phonetic, oh, the following and small set together to see how to operate it.
office
/**
Generation of Phonetic Code table:
Start the Input method Builder to load the window's phonetic input method on the Reverse Conversion tab and save it as a text
This document (Winpy.txt) is standby.
The following code loads the Phonetic Code table file (text) into the array $pymb: (Pinyin, (Chinese characters ...))
Code table conversion Time is longer, shoul
/**
Generation of Phonetic Code table:
Start the Input method Builder to load the window's phonetic input method on the Reverse Conversion tab and save it as a text
This document (Winpy.txt) is standby.
The following code loads the Phonetic Code table file (text) into the array $pymb: (Pinyin, (Chinese characters ...))
Code table conversion Time is longer, shoul
Code is very simple, here is not much BB, we look at the comments, comments are not understand the small partners, to let go of php!!!
Copy Code code as follows:
/**
* Chinese Pinyin first Letter tool class
* Note: English string: Unchanged return (including number) eg. abc123 => abc123
* Chinese character string: Return phonetic first characters eg. Test string => CSZFC
* Chinese and English mixed string: Return the
Environment: Win10 python3.6First of all, the idea of arithmetic:First, the local phonetic library (without tones) is established. Use the greedy algorithm to scan the string from left to right, match the string to the local phonetic library (provided here to everyone), and then continue scanning until the match is found to match or end. Repeat the process.Here's the Python code:defPinyin_or_word (String):"
Chinese Pinyin Whole spelling
The code is as follows
Copy Code
--Create a Chinese phonetic control temporary tableCREATE TABLE IF not EXISTS ' T_base_pinyin ' (' Pin_yin_ ' varchar (255) CHARACTER SET GBK not NULL,' Code_ ' int (one) is not NULL,PRIMARY KEY (' Code_ ')) Engine=innodb DEFAULT charset=latin1;--Inserting data INSERT into T_base_pinyin (pin_yin_,code_) VALUES ("a", 20319), ("AI", 20317), ("A", 20304), ("Ang",
Division, two are full legal pinyin, so, here to choose the former as the best segmentation.
In this way, we formally define the problem as:
Input: A phonetic sequence that may contain multiple syllables
Output: A well-spaced syllable that satisfies the above conditions (minimum syllable and most complete syllable)
For this input sequence, let's say we find the first place in a certain way, we have two shorter sub-sequences, and in the same way we
DELIMITER $$DROP FUNCTION IF EXISTS ' fun_getpy ' $$CREATE FUNCTION ' his '. ' Fun_getpy '(In_string VARCHAR (21845))RETURNS VARCHAR (21845) CHARSET UTF8BEGIN#截取字符串, each time the truncated string is stored in the variable, the initial function parameter in_string valueDECLARE tmp_str VARCHAR (21845) CHARSET gbk DEFAULT ';#tmp_str的长度DECLARE Tmp_len SMALLINT DEFAULT 0;#tmp_str的长度DECLARE Tmp_loc SMALLINT DEFAULT 0;#截取字符, each left (tmp_str,1) return value is stored in the variableDECLARE Tmp_char
In this article, I recorded how MySQL is implemented to sort names alphabetically, and here's how this sort is implemented in Java. The code is as follows:1 PackageCom.review.chapter6;2 3 ImportJava.text.Collator;4 Importjava.util.Collections;5 ImportJava.util.Comparator;6 Importjava.util.Enumeration;7 ImportJava.util.Locale;8 ImportJava.util.Vector;9 Ten Importorg.junit.Test; One A /** - * This example demonstrates sorting by phonetic order in the
Python Kanji Conversion Phonetic Code
#-*-coding:utf-8-*-# return pinyin of Chinese charactersdef return_pinyin (word):Global ReslistFor line in Reslist:if (word==line[0]+line[1]) or (word==line[2]+line
[3]):str = lineBreak# take the content between ① and ②s = str.find (U ' ① ') +4E = str.find (U ' ② ') +3return Str[s:e]def getpy (word):#首先装载资源文件I=0Allstr = ' 'While IIf Ord (Word[i]) >127:If Allstr:Allstr + + return_pinyin (word[i]+word[i+1])E
' Zao ', N ' ovens 'UNION ALL select ' Ze ', N ' 稄 'UNION ALL SELECT ' Zei ', N ' 鱡 'UNION ALL SELECT ' Zen ', N ' 囎 'UNION ALL select ' Zeng ', N ' giveaway 'UNION ALL SELECT ' Zha ', N ' winepress 'UNION ALL SELECT ' Zhai ', N ' partners 'UNION ALL SELECT ' Zhan ', N ' 驏 'UNION ALL select ' Zhang ', N ' 瞕 'UNION ALL select ' Zhao ', N ' 羄 'UNION ALL SELECT ' Zhe ', N ' 鷓 'UNION ALL select ' Zhen ', N ' gloom 'UNION ALL select ' Zheng ', N ' certificate 'UNION ALL select ' Zhi ', N ' 豒 'UNION
Tags: mysql kanji pinyin sortIf the MySQL encoding format is the GBK character set, you can add it directly after the query statementOrder by name ASC; --Sort in ascending orderif it is a UTF8 character set, you need to transcode the field when sorting,ORDER by CONVERT (name using GBK) ASC;attached: View MySQL encoding methodSHOW VARIABLES like ' character% ';Character_set_client is the client-side encoding method;Character_set_connection the encoding used to establish the connection;Coding of
First, the extraction of pinyin
In the language examination, the pinyin question is the veritable "the master Hua Dan", is often the whole examination paper's first question. However, many times we only need pinyin, and do not need the corresponding Chinese characters, the method of inserting symbols although can be done, but the operation is very cumbersome, the correctness is not guaranteed. So, how to quickly get the correct pinyin? Use the phonetic
Need to use Pingyin4j.jar
Import Net.sourceforge.pinyin4j.PinyinHelper;
Import Net.sourceforge.pinyin4j.format.HanyuPinyinCaseType;
Import Net.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat;
Import
We often encounter some rare words in Word documents, that is not common, we do not know the word, do not know that of course will not read. In fact, we can use Word2010 Pinyin guide, to help us to these rare words plus pinyin and tone of the annotation, so we can easily understand and read these rare words.
Select Uncommon Words, and then click the Phonetic Guide
Article Description: to the open beta-bean in the Product Shopping guide page after testing some feelings. From the results of the overall test, although the prototype of the commodity Shopping guide has been formed, but watercress to be in the field of electrical business, the road ahead to go a long way. After all, this is only watercress use of commodity shopping gui
As a webmaster, on the major search engine webmaster Guide to know all about it? We want our site in Google, Baidu and other search engines have a better ranking and more included, is not to first understand Google, Baidu and other search engine evaluation criteria? The Webmaster Guide is precisely the major search criteria for scoring. As the saying goes, "know the known, victorious", so we can only first
1. Device: Mac computer One, HHKB keyboard one 2. Primary configuration(1) Adjust the mode of HHKB to Macintosh mode: 011001 (Open the slider on the side of the keyboard, adjust it in this order) (2) Mac computer installs the official drive http://www.pfu.co.jp/hhkeyboard/macdownload.html, the installation completes will restart the computerPS: Follow the above two to finish, open the computer, plug in the keyboard, this time will be able to use the normal.3.HHKB shortcut key operation
2008-8-28
Tourism through the project from the tourist services and scenic management Two aspects of the provision of basic communications, mobile Office, service marketing, including Mobile information services. Before traveling to Luofu Mountain, China Mobile users by sending text messages "Luofu Mountain" or "Luo floating" to "travel through" customer service port 6262988, you can receive the reply message of Luofu Mountain Scenic Area, use mobile phone login SMS WAP site, you can
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.