US9798721B2ActiveUtilityA1

Innovative method for text encodation in quick response code

Assignee: KING ABDULAZIZ CITY SCI & TECHPriority: May 15, 2015Filed: May 15, 2015Granted: Oct 24, 2017
Est. expiryMay 15, 2035(~8.8 yrs left)· nominal 20-yr term from priority
G06F 40/53G06F 40/129G06F 40/157G06F 17/2276G06F 17/2863G06F 17/2223
50
PatentIndex Score
1
Cited by
9
References
20
Claims

Abstract

An approach includes a method implemented in a computer infrastructure having computer executable code tangibly embodied in a computer readable storage medium having programming instructions. The approach further includes the programming instructions configured to receive a bilingual text which comprises a first set of characters in a Latin-based language and a second set of characters in a non Latin-based language. The approach further includes the programming instructions configured to convert the second set of characters in the non Latin-based language in the bilingual text to a third set of characters in the Latin-based language based on a lookup table. The approach further includes the programming instructions configured to add a prefix character and a postfix character to each converted word in the third set of characters. The approach further includes the programming instructions configured to output an encoded representation of the bilingual text.

Claims

exact text as granted — not AI-modified
What is claimed: 
     
       1. A method implemented in a computer infrastructure having computer executable code tangibly embodied in a computer readable storage medium having programming instructions configured to:
 receive a bilingual text which comprises a first set of characters in a Latin-based language and a second set of characters in a non Latin-based language; 
 convert the second set of characters in the non Latin-based language in the bilingual text to a third set of characters in the Latin-based language based on a lookup table; 
 add a prefix character and a postfix character to each converted word in the third set of characters; 
 output an encoded representation of the bilingual text which comprises the converted third set of characters, the added prefix character to each converted word in the third set of characters, the postfix character to each converted word in the third set of characters, and the first set of characters in the Latin-based language; and 
 generate a QR code based on the encoded representation of the bilingual text, 
 wherein the generation of the QR code based on the encoded representation of the bilingual text embeds a higher number of Arabic characters than a generation of the QR code for the same bilingual text based solely on a standard QR encoding scheme. 
 
     
     
       2. The method of  claim 1 , wherein the Latin-based language comprises English and the non Latin-based language comprises Arabic. 
     
     
       3. The method of  claim 1 , wherein the Latin-based language comprises one of English, French, German, and Italian. 
     
     
       4. The method of  claim 1 , wherein the non Latin-based language comprises one of Arabic, Urdu, and Farsi. 
     
     
       5. The method of  claim 1 , wherein the generation of the QR code based on the encoded representation of the bilingual text requires a smaller number of binary bits to represent the bilingual text than a generation of the QR code for the same bilingual text based solely on the standard QR encoding scheme. 
     
     
       6. The method of  claim 1 , wherein the lookup table comprises a mapping of the non Latin-based language to a corresponding Latin-based language. 
     
     
       7. The method of  claim 1 , wherein the prefix character is added immediately before each converted word in the third set of characters in the Latin-based language. 
     
     
       8. The method of  claim 1 , wherein the postfix character is added immediately after each converted word in the third set of characters in the Latin-based language. 
     
     
       9. A computer program product comprising a computer readable storage medium having program instructions embodied therewith, wherein the computer readable storage medium is not a transitory signal per se, and the program instructions are readable by a computing device to cause the computing device to perform a method comprising:
 receiving a QR code based on the encoded representation of the bilingual text; 
 converting the QR code to the encoded representation of the bilingual text; 
 receiving the encoded representation of a bilingual text which comprises a first set of characters in a Latin-based language and a second set of characters in a non Latin-based language; 
 converting the encoded representation of the bilingual text to the first set of characters in the Latin-based language and the second set of characters in the non Latin-based language based on a lookup table; 
 removing prefix characters and postfix characters after the conversion of the encoded representation; and 
 outputting the bilingual text which comprises the first set of characters in the Latin-based language and the second set of characters in the non Latin-based language, 
 wherein the received QR code based on the encoded representation of the bilingual text embeds a higher number of Arabic characters than the received QR code for the same bilingual text based solely on a standard QR encoding scheme. 
 
     
     
       10. The computer program product of  claim 9 , wherein the Latin-based language comprises English and the non Latin-based language comprises Arabic. 
     
     
       11. The computer program product of  claim 9 , wherein the Latin-based language comprises one of English, French, German, and Italian. 
     
     
       12. The computer program product of  claim 9 , wherein the non Latin-based language comprises one of Arabic, Urdu, and Farsi. 
     
     
       13. The computer program product of  claim 9 , wherein the lookup table comprises a mapping of the non Latin-based language to a corresponding Latin-based language. 
     
     
       14. The computer program product of  claim 9 , further comprising:
 outputting the encoded representation of the bilingual text. 
 
     
     
       15. A computer system for providing encoding of a multi-lingual text, the system comprising:
 a CPU, a computer readable memory, and a computer readable storage media; 
 first program instructions to receive the multi-lingual text which comprises a first set of characters in a Latin-based language and a second set of characters in a non Latin-based language; and 
 second program instructions to iterate through each letter of the multi-lingual text and perform further program instructions comprising:
 third program instructions to determine that a current letter of the multi-lingual text is the Latin-based language and a previous letter of the multi-lingual text is the non Latin-based language, and then add a postfix character to the previous letter of the multi-lingual text in response to the determination, which indicates an end of a non Latin-based language string; 
 fourth program instructions to determine that the current letter of the multi-lingual text is the non Latin-based language and is a first letter in a word, and then add a prefix character in front of the current letter of the multi-lingual text in response to the determination to indicate a start of the non Latin-based language string; and 
 fifth program instructions to convert the current letter of the multi-lingual text to a corresponding Latin-based language based on a lookup table, 
 
 wherein the first, second, third, fourth, and fifth program instructions are stored on the computer readable storage media for execution by the CPU via the computer readable memory, and 
 the postfix character is different from the prefix character. 
 
     
     
       16. The computer system of  claim 15 , wherein the lookup table comprises a mapping of the non Latin-based language to the corresponding Latin-based language. 
     
     
       17. The computer system of  claim 15 , wherein the non Latin-based language comprises one of Arabic, Urdu, and Farsi. 
     
     
       18. The computer system of  claim 15 , wherein the Latin-based language comprises English and the non Latin-based language comprises Arabic. 
     
     
       19. The method of  claim 1 , wherein the postfix character is different from the prefix character. 
     
     
       20. The method of  claim 6 , wherein the mapping of the non Latin-based language to the corresponding Latin-based language further comprises a matching Latin-based character for each non Latin-based character.

Join the waitlist — get patent alerts

Track US9798721B2 — get alerts on status changes and closely related new filings.

We store only your email — no account needed. See our privacy policy.