A text copy tracking method and system thereof
Patent Information
- Application Number
- CN202310716815.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-16
- Publication Date
- 2026-10-23
- Estimated Expiration
- 2043-06-16
AI Technical Summary
然而,对于纯文本内容,目前并没有暗水印技术,只能使用明水印或其他方法来实现文本拷贝的追溯,然而通过明水印的文本拷贝追溯方式不仅容易影响文本的质量,而且还是会导致文本容易被人抄袭
[0012] The beneficial effects of this invention are as follows: by using the method of this invention, text copying can be effectively traced, and letters can be replaced by empty characters, different symbols of the same form, or different encoding forms, making copying more difficult to tamper with or ignore. This can more effectively protect the copyright of original content and help prevent plagiarism.
Smart Images

Figure CN116842486B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer communication technology, and in particular to a text copy tracking method and system. Background Technology
[0002] In the past, users typically used two methods to trace text copying: inserting image watermarks into the text or appending copyright information to the end of the text. For image content, both visible and invisible watermarking technologies can currently be used to trace the source of the copy. However, for plain text content, there is currently no invisible watermarking technology; only visible watermarks or other methods can be used to trace text copying. However, tracing text copying through visible watermarks not only easily affects the quality of the text but also makes the text easier for others to copy. Summary of the Invention
[0003] To overcome the above problems, the purpose of this invention is to provide a text copy tracking method and system that can effectively track copied text content and protect the copyright of original content.
[0004] This invention is implemented using the following scheme: a text copy tracking method, the method comprising the following steps: Step S1: Obtain the number of uppercase letters in the text that have the same appearance as Greek letters. First, convert the user ID of the text to be protected into binary code, and then encode the binary code result using error correction code. Step S2: Determine whether the number of characters in the error correction code encoding result exceeds the number of uppercase letters that have the same appearance as Greek letters, and select blank characters that do not occupy space according to the number of uppercase letters. Step S3: For characters in the error correction code encoding result that do not exceed the number of uppercase letters in the text, use binary encoding to convert them into Greek letters corresponding to the uppercase letters in the text. Then, use Hamming code to correct the binary encoding result and replace the uppercase letters in the text with the Hamming code correction result in sequence. For characters in the error correction code encoding result that exceed the number of uppercase letters in the text, convert them into ternary encoding and then use error correction code encoding on the ternary encoding. Randomly insert whitespace characters into the text, and then use the whitespace character encoding result to replace the inserted whitespace characters in the text. Step S4: When the text is copied, the code inserted in the text is extracted to restore the original user ID information.
[0005] Furthermore, the blank characters in step S2 include \U200C, \U200D, and \U200F.
[0006] Furthermore, step 2 further involves determining whether the number of characters in the error correction code encoding result exceeds the number of uppercase letters in the text. If the number of characters in the error correction code encoding result does not exceed the number of uppercase letters in the text that have the same appearance as Greek letters, then no blank characters need to be selected. If the number of characters in the error correction code encoding result exceeds the number of uppercase letters in the text that have the same appearance as Greek letters, then the number of blank characters selected is based on the number of uppercase letters in the text that have the same appearance as Greek letters that the error correction code encoding result exceeds.
[0007] Furthermore, step S4 further comprises: when the text is copied, reading each character one by one to determine whether it is a blank character or an encoded uppercase letter. After extracting all blank characters and encoded uppercase letters, a number can be formed to restore the original user ID information.
[0008] A text copy tracking system, the system comprising a user ID conversion module, a text storage space determination module, an encoding insertion module, and an encoding extraction module; The user ID conversion module: obtains the number of uppercase letters in the text that are identical in appearance to Greek letters, converts the user ID of the text to be protected into binary code, and then encodes the binary code result using error correction code; The text storage space judgment module: determines whether the number of characters in the error correction code encoding result exceeds the number of uppercase letters with the same appearance as Greek letters, and selects blank characters that do not occupy space based on the number of uppercase letters; The encoding insertion module performs the following steps: First, it encodes characters in the error correction code that do not exceed the number of uppercase letters in the text into Greek letters corresponding to the uppercase letters in the text using binary encoding. Then, it corrects the binary encoding using Hamming codes and replaces the uppercase letters in the text with the corrected Hamming code results in sequence. Second, it converts characters in the error correction code that exceed the number of uppercase letters in the text into ternary encoding, performs error correction code encoding on the ternary encoding, randomly inserts whitespace characters into the text, and then replaces the inserted whitespace characters in the text with the whitespace character encoding results after encoding the error correction code results using whitespace characters. The encoding extraction module extracts the encoding inserted into the text when the text is copied, thus restoring the original user ID information.
[0009] Furthermore, the blank characters in the text storage space determination module include \U200C, \U200D, and \U200F.
[0010] Furthermore, the text storage space determination module further determines whether the number of characters in the error correction code encoding result exceeds the number of uppercase letters in the text. If the number of characters in the error correction code encoding result does not exceed the number of uppercase letters in the text that have the same appearance as Greek letters, then no blank characters need to be selected. If the number of characters in the error correction code encoding result exceeds the number of uppercase letters in the text that have the same appearance as Greek letters, then the number of blank characters selected is based on the number of uppercase letters in the text that have the same appearance as Greek letters that the error correction code encoding result exceeds.
[0011] Furthermore, the encoding extraction module further comprises: when the text is copied, reading each character one by one to determine whether it is a blank character or an encoded uppercase letter, extracting all blank characters and encoded uppercase letters to form a number, and restoring the original user ID information.
[0012] The beneficial effects of this invention are as follows: by using the method of this invention, text copying can be effectively traced, and letters can be replaced by empty characters, different symbols of the same form, or different encoding forms, making copying more difficult to tamper with or ignore. This can more effectively protect the copyright of original content and help prevent plagiarism. Attached Figure Description
[0013] Figure 1 This is a schematic diagram of the method flow of the present invention.
[0014] Figure 2 This is a system principle block diagram of the present invention. Detailed Implementation
[0015] The invention will now be further described with reference to the accompanying drawings.
[0016] Please see Figure 1 As shown, the present invention provides a text copy tracking method, the method comprising the following steps: Step S1: Obtain the number of uppercase letters in the text that have the same appearance as Greek letters. First, convert the user ID of the text to be protected into binary code, and then encode the binary code result using error correction code. Step S2: Determine whether the number of characters in the error correction code encoding result exceeds the number of uppercase letters that have the same appearance as Greek letters, and select blank characters that do not occupy space according to the number of uppercase letters. Step S3: For characters in the error correction code encoding result that do not exceed the number of uppercase letters in the text, use binary encoding to convert them into Greek letters corresponding to the uppercase letters in the text. Then, use Hamming code to correct the binary encoding result and replace the uppercase letters in the text with the Hamming code correction result in sequence. For characters in the error correction code encoding result that exceed the number of uppercase letters in the text, convert them into ternary encoding and then use error correction code encoding on the ternary encoding. Randomly insert whitespace characters into the text, and then use the whitespace character encoding result to replace the inserted whitespace characters in the text. Step S4: When the text is copied, the code inserted in the text is extracted to restore the original user ID information.
[0017] The present invention will be further described below with reference to a specific embodiment: A text copy tracking method, Obtain the number of uppercase letters in the text that have the same appearance as Greek letters. First, convert the user ID of the text to be protected into binary code, and then encode the binary code result using error correction code. For example: 1. Suppose there is an article with user ID 5, and the text content is as follows: "Computer science is a very important discipline that involves many fields, including computer architecture, algorithm design, programming languages, and so on." Suppose we want to protect the copyright of user ID 5. We first encode it as binary 101, then encode this as an error-correcting code. Among the uppercase letters, there are A, B, E, H, etc. that look the same as Greek letters. The number of uppercase letters that look the same as Greek letters in the text that needs to be protected is 0.
[0018] 2. Determine whether the number of characters in the error correction code encoding result exceeds the number of uppercase letters that have the same appearance as Greek letters, and select blank characters that do not occupy space based on the number of uppercase letters; 2.1 Whitespace characters include \U200C, \U200D, and \U200F.
[0019] 2.2 Further, it is determined whether the number of characters in the error correction code encoding result exceeds the number of uppercase letters in the text. If the number of characters in the error correction code encoding result does not exceed the number of uppercase letters in the text that have the same appearance as Greek letters, then no whitespace characters need to be selected. If the number of characters in the error correction code encoding result exceeds the number of uppercase letters in the text that have the same appearance as Greek letters, then the number of whitespace characters selected is based on the number of uppercase letters in the text that have the same appearance as Greek letters that the error correction code encoding result exceeds. For example, whitespace characters include \U200C, \U200D, and \U200F.
[0020] For example: 2.2 Based on the number of words in the text above, and since the text content does not use uppercase letters, select \U200C, \U200D and \U200F whitespace characters according to the error correction code encoding result; 3. For characters in the error correction code encoding result that do not exceed the number of uppercase letters in the text, use binary encoding to convert them into Greek letters corresponding to the uppercase letters in the text. Then, use Hamming code to correct the binary encoding result and replace the uppercase letters in the text with the Hamming code correction result in sequence. For characters in the error correction code encoding result that exceed the number of uppercase letters in the text, convert them into ternary encoding and then use error correction code encoding on the ternary encoding. Randomly insert whitespace characters into the text, and then use whitespace character encoding to replace the inserted whitespace characters in the text. Whitespace characters are used for encoding and storage when there are not enough special uppercase letters, i.e., uppercase letters that look like Greek letters, to store the user ID.
[0021] For example: 3. Since the text content does not use any uppercase letters that look like Greek letters, select the three whitespace characters \U200C, \U200D, and \U200F. Randomly insert these whitespace characters into the text. These special characters can represent 0 and 1 in the binary code of the user ID. Suppose we insert the following whitespace characters: Computer science is a very important discipline that encompasses many areas, including computer architecture, algorithm design, programming languages, and more. The error correction code is then converted back to ternary. Assuming the ternary encoded result is 210, the error correction code is then encoded as 21002. The previously selected whitespace character is used to encode the error correction code result. This encoded result then replaces the previously inserted whitespace character. The result is as follows: Computer science is a very important discipline that involves many areas, including computer architecture, algorithm design, programming languages, and more. For example: 3. Suppose the binary encoding of user ID 5, after error correction coding, is 011011. The text contains some uppercase letters CCCCAACCAACACA. The uppercase letters A and B are the same as the Greek letters A and B. There are exactly 6 A's, which can store 6 binary numbers, so no additional whitespace is needed. Encode the error correction coding result 011011 into the Greek letter A in sequence. Then replace the uppercase letters A in the text with the binary encoded result in sequence; for example, it can be replaced with CCCCA0A1CCA1A0CA1A1. A0 is the encoding for the ordinary letter A, and A1 is the encoding for the Greek letter A. (The naked eye cannot distinguish between the ordinary letter A and the Greek letter A; they appear to be English letters, but their actual encodings are different. Computers can distinguish them, but the human eye cannot, so here we use A0 to represent the ordinary letter A and A1 to represent the Greek letter A, although it is still A in the original text.) When the text is copied, the user ID information can be recovered by extracting this encoding. This encoding uses Hamming code error correction, so even if the user makes some adjustments, such as formatting changes or modifying wording, the original user ID information can be recovered to the greatest extent possible. If the user ID error-corrected encoding has 8 binary digits, then 6 digits are not enough; spaces are added to store the extra 2 binary digits. The original user ID information is then recovered by extracting these encodings.
[0022] When the text is copied, the code inserted in the text is extracted to restore the original user ID information.
[0023] 4.1 Further, when the text is copied, each character is read one by one to determine whether it is a whitespace character or an encoded uppercase letter. After extracting all whitespace characters and encoded uppercase letters, a number is formed to restore the original user ID information. For example: 4. When an article is copied, the copied article will contain the aforementioned whitespace characters. We can extract the encoded information from these whitespace characters and convert it into a user ID. Assume the copied article is as follows: Computer science is a very important discipline that involves many areas, including computer architecture, algorithm design, programming languages, and more. We can extract the whitespace characters \U200D\U200C\U200F\U200F\U200D, which is 21002. We can then extract the ternary code of the user ID from the error correction code. Based on these special characters, we get the code 210, which is then converted to decimal to get the user ID as 5. This allows us to trace the source of the copy.
[0024] Please see Figure 2 As shown, the present invention also provides a text copy tracking system, the system including a user ID conversion module, a text storage space judgment module, an encoding insertion module, and an encoding extraction module; The user ID conversion module: obtains the number of uppercase letters in the text that are identical in appearance to Greek letters, converts the user ID of the text to be protected into binary code, and then encodes the binary code result using error correction code; For example: 1. Suppose there is an article with user ID 5, and the text content is as follows: "Computer science is a very important discipline that involves many fields, including computer architecture, algorithm design, programming languages, and so on." Suppose we want to protect the copyright of user ID 5. We first encode it as binary 101, then encode this as an error-correcting code. Among the uppercase letters, there are A, B, E, H, etc. that look the same as Greek letters. The number of uppercase letters that look the same as Greek letters in the text that needs to be protected is 0.
[0025] The text storage space judgment module: determines whether the number of characters in the error correction code encoding result exceeds the number of uppercase letters with the same appearance as Greek letters, and selects blank characters that do not occupy space based on the number of uppercase letters; 2.1 The blank characters in the text storage space judgment module include \U200C, \U200D, and \U200F.
[0026] 2.2 The text storage space judgment module further determines whether the number of characters in the error correction code encoding result exceeds the number of uppercase letters in the text. If the number of characters in the error correction code encoding result does not exceed the number of uppercase letters in the text that have the same appearance as Greek letters, then no whitespace characters need to be selected. If the number of characters in the error correction code encoding result exceeds the number of uppercase letters in the text that have the same appearance as Greek letters, then the number of whitespace characters selected is based on the number of uppercase letters in the text that have the same appearance as Greek letters that the error correction code encoding result exceeds. For example, whitespace characters include \U200C, \U200D, and \U200F.
[0027] For example: 2.2 Based on the number of words in the text above, and since the text content does not use uppercase letters, select \U200C, \U200D and \U200F whitespace characters according to the error correction code encoding result; The encoding insertion module performs the following steps: First, it encodes characters in the error correction code that do not exceed the number of uppercase letters in the text into Greek letters corresponding to the uppercase letters in the text using binary encoding. Then, it corrects the binary encoding using Hamming codes and replaces the uppercase letters in the text sequentially with the Hamming code correction results. Second, it converts characters in the error correction code that exceed the number of uppercase letters in the text into ternary encoding, then performs error correction code encoding on the ternary encoding. Third, it randomly inserts whitespace characters into the text, encodes the error correction code results using whitespace characters, and then replaces the inserted whitespace characters with the whitespace character encoding results. Fourth, it uses whitespace characters for encoding and storage when there are insufficient special uppercase letters (i.e., uppercase letters that look like Greek letters) to store the user ID. For example: 3. Because the text content does not use any uppercase letters that look like Greek letters, select the three whitespace characters \U200C, \U200D, and \U200F. Randomly insert these whitespace characters into the text. These special characters can represent 0 and 1 in the binary code of the user ID. Suppose we insert the following whitespace characters: Computer science is a very important discipline that encompasses many areas, including computer architecture, algorithm design, programming languages, and more. The error correction code is then converted back to ternary. Assuming the ternary encoded result is 210, the error correction code, after re-encoding, becomes 21002. The previously selected whitespace character is used to encode the error correction code result, and then this code replaces the previously inserted whitespace character. The result is as follows: Computer science is a very important discipline that involves many areas, including computer architecture, algorithm design, programming languages, and more. For example: 3. Suppose the binary encoding of user ID 5, after error correction coding, is 011011. The text contains some uppercase letters CCCCAACCAACACA, where the uppercase A and B are the same as the Greek letters A and B. There are exactly 6 A's, which can store 6 binary numbers, so no additional whitespace is needed. The error correction coding result 011011 is sequentially binary encoded into the Greek letter A. Then, the binary encoded result is used to replace the uppercase A's in the text in sequence; for example, it can be replaced with CCCCA0A1CCA1A0CA1A1, A 0 represents the encoding of the ordinary letter A, and A1 represents the encoding of the Greek letter A. (The naked eye cannot distinguish between the ordinary letter A and the Greek letter A; they appear to be English letters, but their actual encodings are different. Computers can distinguish them, but the human eye cannot, so here we represent the ordinary letter A as A0 and the Greek letter A as A1, but in the original text, it is still A). When the text is copied, by extracting this encoding, the user ID information can be restored. This encoding uses Hamming code error correction, so even if the user makes some adjustments, such as formatting changes or modifying wording, the original user ID information can be restored to the greatest extent possible. If the user ID error-corrected encoding has 8 binary digits, then 6 digits are not enough; whitespace is added to store the extra 2 binary digits. The original user ID information is then restored by extracting these encodings.
[0028] The encoding extraction module extracts the encoding inserted into the text when the text is copied, thus restoring the original user ID information.
[0029] The 4.1 encoding extraction module further works as follows: When text is copied, each character is read one by one to determine whether it is a whitespace character or an encoded uppercase letter. After extracting all whitespace characters and encoded uppercase letters, a number is formed to restore the original user ID information. For example: 4. When an article is copied, the copied article will contain the aforementioned whitespace characters. We can extract the encoded information from these whitespace characters and convert it into a user ID. Assume the copied article is as follows: Computer science is a very important discipline that involves many areas, including computer architecture, algorithm design, programming languages, and more. We can extract the whitespace characters \U200D\U200C\U200F\U200F\U200D, which is 21002. We can then extract the ternary code of the user ID from the error correction code. Based on these special characters, we get the code 210, which is then converted to decimal to get the user ID as 5. This allows us to trace the source of the copy.
[0030] The above description is only a preferred embodiment of the present invention. All equivalent changes and modifications made within the scope of the claims of the present invention should be included in the scope of the present invention.
Claims
1. A text copy tracking method, characterized in that... The method includes the following steps: Step S1: Obtain the number of uppercase letters in the text that have the same appearance as Greek letters. First, convert the user ID of the text to be protected into binary code, and then encode the binary code result using error correction code. Step S2: Determine whether the number of characters in the error correction code encoding result exceeds the number of uppercase letters that have the same appearance as Greek letters, and select blank characters that do not occupy space according to the number of uppercase letters. Step S3: For characters in the error correction code encoding result that do not exceed the number of uppercase letters in the text, use binary encoding to convert them into Greek letters corresponding to the uppercase letters in the text. Then, use Hamming code to correct the binary encoding result and replace the uppercase letters in the text with the Hamming code correction result in sequence. For characters in the error correction code encoding result that exceed the number of uppercase letters in the text, convert them into ternary encoding and then use error correction code encoding on the ternary encoding. Randomly insert whitespace characters into the text, and then use the whitespace character encoding result to replace the inserted whitespace characters in the text. Step S4: When the text is copied, the code inserted in the text is extracted to restore the original user ID information; Step 2 further involves determining whether the number of characters in the error correction code encoding result exceeds the number of uppercase letters in the text. If the number of characters in the error correction code encoding result does not exceed the number of uppercase letters in the text that have the same appearance as Greek letters, then no blank characters need to be selected. If the number of characters in the error correction code encoding result exceeds the number of uppercase letters in the text that have the same appearance as Greek letters, then the number of blank characters selected is based on the number of uppercase letters in the text that have the same appearance as Greek letters that the error correction code encoding result exceeds. When the text is copied, each character is read one by one to determine whether it is a whitespace character or an encoded uppercase letter. After extracting all whitespace characters and encoded uppercase letters, a number is formed to restore the original user ID information.
2. The text copy tracking method according to claim 1, characterized in that: The blank characters in step S2 include \U200C, \U200D, and \U200F.
3. A text copy tracking system, characterized in that: The system includes a user ID conversion module, a text storage space judgment module, an encoding insertion module, and an encoding extraction module; The user ID conversion module: obtains the number of uppercase letters in the text that are identical in appearance to Greek letters, converts the user ID of the text to be protected into binary code, and then encodes the binary code result using error correction code; The text storage space judgment module: determines whether the number of characters in the error correction code encoding result exceeds the number of uppercase letters with the same appearance as Greek letters, and selects blank characters that do not occupy space based on the number of uppercase letters; The encoding insertion module performs the following steps: First, it encodes characters in the error correction code that do not exceed the number of uppercase letters in the text into Greek letters corresponding to the uppercase letters in the text using binary encoding. Then, it corrects the binary encoding using Hamming codes and replaces the uppercase letters in the text with the corrected Hamming code results in sequence. Second, it converts characters in the error correction code that exceed the number of uppercase letters in the text into ternary encoding, performs error correction code encoding on the ternary encoding, randomly inserts whitespace characters into the text, and then replaces the inserted whitespace characters in the text with the whitespace character encoding results after encoding the error correction code results using whitespace characters. The encoding extraction module: when text is copied, it extracts the encoding inserted in the text to restore the original user ID information; Determine whether the number of characters in the error correction code encoding result exceeds the number of uppercase letters in the text. If the number of characters in the error correction code encoding result does not exceed the number of uppercase letters in the text that have the same appearance as Greek letters, then no whitespace characters need to be selected. If the number of characters in the error correction code encoding result exceeds the number of uppercase letters in the text that have the same appearance as Greek letters, then select the number of whitespace characters according to the number of uppercase letters in the text that have the same appearance as Greek letters that the error correction code encoding result exceeds. When the text is copied, each character is read one by one to determine whether it is a whitespace character or an encoded uppercase letter. After extracting all whitespace characters and encoded uppercase letters, a number is formed to restore the original user ID information.
4. A text copy tracking system according to claim 3, characterized in that: The blank characters in the text storage space determination module include \U200C, \U200D, and \U200F.
Citation Information
Patent Citations
DNA storage coding method for optimizing Chinese storage
CN111600609A
Invisable coding of element information
CN1344462A