A complete PHP acquisition of Chinese characters Phonetic Alphabet implementation program, there is a need for friends to refer to.
The code is as follows
Copy Code
Class Getpingying {Private $pylist = Array (' A ' =>-20319,' Ai ' =>-20317,' An ' =>-20304,' Ang ' =>-20295,' AO ' =>-20292,' Ba ' =>-20283,' Bai ' =>-20265,' Ban ' =>-20257,' Bang ' =>-20242,' Bao ' =>-20230,' Bei
In PHP, a Chinese character array is sorted by the first letter of the pinyin alphabet, and the php Array
(The previous blog post had to resend it because it contained sensitive keywords)
In PHP, sort a Chinese character array by the first letter of the pinyin alphabet.Knowledge point:
that the first letter of Chinese pinyin is that oneSET Tmp_loc=interval (CONV (HEX (Tmp_char), 16,10), 0xb0a1,0xb0c5,0xb2c1,0xb4ee,0xb6ea,0xb7a2,0xb8c1,0xb9fe,0xbbf7, 0xbfa6,0xc0ac, 0xc2e8,0xc4c3,0xc5b6,0xc5be,0xc6da,0xc8bb,0xc8f6,0xcbfa,0xcdda, 0XCEF4,0XD1B9,0XD4D1);#判断左端首个字符是多字节还是单字节字符, if multibyte is considered a kanji and is obtained as the following pinyin, if the single byte is not processed. If it is a multibyte character but is not within th
Serial number uppercase lowercase English phonetic notation phonetic symbols Chinese phonetic alphabet
1ααalpha A:LF Alpha
2ββbeta Bet Bay Tower
3γγgamma Ga:m Gamma
4δδdelta Delt Delta
5εεepsilon EP ' Silon Ipsiron
6ζζzeta Zat Tower
7ηηeta EIT Etta
8θθthetθit Theta
9ιιiot Aiot Jota
10κκkappa KAP Capa
11∧λlambda LAMBD Lambda
12μμmu Mju Bartholomew
13ννnu Nju New York
14ξξxi KSI
150οomicron Omik ' Ron Omic Ro
The following two solutions are available: 1. extract the first letter of the Chinese alphabet into the database. there are two problems with extracting and classifying the first letter before the front-end display: 1. which of the above two solutions is better? Or is there any other solution? 2. What is a good solution for extracting the first letter? (The following two solutions are available:
1. Extract
How does php + mysql Query The Chinese character database based on the first letter of the pinyin alphabet? How does php + mysql Query The Chinese character database based on the first letter of the pinyin alphabet?
For example, search for lah, mysql Query results such as 'pull flowers, pull goods, pull flowers jobs,
Let's share the following: "Chinese character length, and interception of Chinese characters (alphabetic characters Universal)"Example: First calculate the length of the character, in the interception display, the day over the character length of more than 6 is used ... ReplaceEcho ' $CustomizedInfo = ' US-Japan shopping rebate net http://www.hnzyxok.com/';if (Mb_strlen ($CustomizedInfo, ' utf-8 ') >6) {Ech
The first step:
Using MPDF (version 6.1) to convert an HTML page to a PDF file, you can go to it successfully. The code is as follows:
$html = "对盲人初学者来说,它无需任何额外的修改。";// $html = "These are the most used acronyms throughout this manual.";include './mpdf/mpdf.php';$mpdf=new mPDF('+aCJK'); $mpdf->autoScriptToLang = true;$mpdf->autoLangToFont = true;$mpdf->WriteHTML($html);$mpdf->Output();
Step Two:
When using Imagick to achieve
The full name of PDF is portable document format, which is an electronic file format developed by Adobe. It has nothing to do with the operating system platform, making it an ideal document format for electronic document distribution and digital information dissemination on the Internet. More and more e-books, product descriptions, company announcements, online materials, and emails are competing to use PDF
PDF full Name Portable Document format, is an electronic file form developed by Adobe Company. It is independent of the operating system platform, making it an ideal document format for electronic document distribution and digital information dissemination on the Internet. More and more e-books, product descriptions, corporate announcements, Web materials, e-mail are competing to use PDF format files. Undou
Like me, you may be worried about generating Chinese characters when generating PDF files. Maybe you and I are the same. You can see that someone else provides a bunch of jar files and cannot find the download location, I also searched for the last base camp for a long time. It was close-up to help you and me ;)
Give yourself a witness for over an hour .-_#
You just need to go
Http://prdownloads.sourceforge
Download: Https://pan.baidu.com/s/17jzBzVdQ2XMmRIrOZhMnDQ"The father and child of the Programming Journey" Second Edition "" HD Chinese version pdf+ HD English version of the pdf+ source codeHD Chinese PDF, with catalogue and bookmarks, able to copy and paste;HD English
Download: https://pan.baidu.com/s/1Oeho172yfw1J6mCiXozQigTensorflow Machine Learning Practice Guide (Chinese Version pdf + English version PDF + Source Code)High-Definition Chinese PDF, 292 pages, with bookmarks, text can be copied and pasted;High Definition English
"Machine Learning Combat" (HD Chinese version pdf+ HD English pdf+ source code)HD Chinese and HD English comparison learning, with directory bookmarks, can be copied and pasted;The details are explained and the source code is provided.Download: https://pan.baidu.com/s/1s77wmVcPgRZUfsseHsTlWgStudy together to support ge
Ubuntu1004. Some PDF files cannot display Chinese characters. The solution is as follows:
1. First install the font
A.Sudo apt-Get install xpdf-Chinese-simplified;
B. sudo apt-Get install xpdf-Chinese-traditional.
2. Open the PDF file after installation.
Some people in Chinese also have trouble with Php_pdf to do Chinese PDF.
Php_pdf Kits Crawl Here, remember to recompile oh. There will be mark on the shelf.
Http://www.pdflib.com/pdflib/index.html
This is the php_pdf with Iconv turn UTF-16 do easy to make Chinese PDF exampl
Document directory
7.2 use xpdf to process Chinese PDF documents
7.2.1 download xpdf
7.2.2 Configuration
7.2.3 extract Chinese Characters
7.2.4 Running Effect
7.2 use xpdf to process Chinese PDF documents
Consumer box looks very convenient, and its API is powerful. It
reference. But with it you can only get one font. To support all Chinese fonts, use the TTF2PT1 program to convert TrueType fonts to pt1 fonts, one by one (detailed in the Fpdf tutorial). In order to support other Chinese fonts, the nutrient should modify the above chinese.php, as follows:
1:replace the following line in the Addgbfont () method:
function Addgbfont ($family = ' GB ', $name = ' Stsongstd-lig
tag: HTTP ar file problem html c ef htm learning PPT to PDF converter Chinese VersionWith the diversity of office software formats, the emergence of a new generation of quick PPT to PDF converter fully realizes the versatility between office and PDF text, whether you are engaged in office documents, he is still downloa
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.