Convert the WPS form to the first letter of the lyric sentence and capitalize

Source: Internet
Author: User
Tags lowercase

Download a lot of English songs from the Internet lyrics (LRC format), found that many of the lyrics of all the letters are lowercase, especially the first letter of the sentence is not capitalized, although not serious, but for the pursuit of perfection I, is also a big regret. Through a search, found in the WPS text of the "table conversion" function with the "Find replace" function and "change case" can be one-time to all the first letter of the sentence to uppercase.

First, open the lyrics file with WPS text (or open it with Notepad, then copy and paste it into a blank WPS text), and you can see the information shown in Figure 1. By observing, all the time information is found to be enclosed by a pair of brackets ([]). That is, there is a right middle bracket (]) between the time information and the lyrics, but because some lyrics are repeated, there may be more than one time tag for the lyrics, so as long as you exclude duplicate time labels, You can separate the time label from the lyrics.

Figure 1

Press the Ctrl+h key, bring up the Find and Replace dialog box, type "[" In "Find", enter a special symbol (such as "¥¥¥¥" in "Replace with"), and click "Replace All" to mark the recurring time label first. Then, bring up the Find and Replace dialog box again, enter "]" in "Find", enter "]^t" in "Replace with" ("^t" stands for "tab", see Figure 3), and click "Replace All" so that the lyrics section and time label are separated by a tab. Then, replace all special characters (¥¥¥¥) back to "["] again.

  Computer Tutorials Figure 2

Figure 3

Next, select all the text, click "form → convert → text into a table," The Conversion dialog box (Figure 4), in the "text separated position" option to choose "tab", click OK. At this point, the lyric text has been converted into a 2-column table, the time label portion of the first column, and the second column is the Lyric text section (Figure 5). Select the 2nd column, click "format → change case", and in the pop-up dialog box, select "Capitalize first letter" and determine (Figure 6), all the first letters of the lyrics text are converted from lowercase to uppercase. Casually, you can use the Find and Replace feature to convert all individual letters "I" to Uppercase "I" (most of the "I" that appear alone should be uppercase "I").

Figure 4

Figure 5

Figure 6

Finally, the table conversion function, the conversion of a good case of the table converted to text, stored back to the original file. Note that if you edit the original file, choose Save format as "text file", and make sure that the file name extension is "LRC", which is in the form of "lyrics. LRC", not "lyrics. txt" or "lyrics. Lrc.txt".

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.