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 the first letter of the Chinese alphabet into the database during Input
2. Extract and classify the first letter before the front-end display
There are two problems:
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? (I have found a Chinese-to-PinYin conversion method on github and extracted the first letter, but I don't know whether this solution works)
Reply content:
The following two solutions are available:
1. Extract the first letter of the Chinese alphabet into the database during Input
2. Extract and classify the first letter before the front-end display
There are two problems:
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? (I have found a Chinese-to-PinYin conversion method on github and extracted the first letter, but I don't know whether this solution works)
Store it to the database. In this way, it is convenient to search for the first letter in the future.
Or you can consider replacing the complete pinyin: http://www.oschina.net/code/snippet_115552_4975