CN-121996337-A - Computer system and method for supporting multi-language document processing
Abstract
The invention provides a computer system and a method for supporting multi-language document processing. The storage unit stores a graphical user interface GUI program and files. The processing unit loads the GUI program from the storage unit to perform the steps of receiving a file name of the file, wherein the file name is represented in a first national language and conforms to a first character encoding standard, creating an alias for the file name, wherein the alias is represented in a second national language and conforms to the first character encoding standard, concatenating the alias to the file such that both the file name and the alias refer to the file, and converting the alias to conform to the second character encoding standard to initiate an underlying process conforming to the second character encoding standard for the file to which the alias refers.
Inventors
- ZHUANG YIXIAN
Assignees
- 新唐科技股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20250521
- Priority Date
- 20241108
Claims (12)
- 1. A computer system for supporting multi-lingual document processing, comprising: a memory unit for storing a GUI program and a file, and A processing unit loading the GUI program from the storage unit to perform the steps of: Receiving a file name of the file, wherein the file name is expressed in a first national language and conforms to a first character encoding standard; Establishing an alias for the file name, wherein the alias is expressed in a second national language and conforms to the first character encoding standard; Linking the alias to the file such that the file name and the alias both refer to the file, and The alias is converted to conform to a second character encoding standard to initiate an underlying process for the file referenced by the alias, the underlying process conforming to the second character encoding standard.
- 2. The computer system of claim 1 wherein the second language is english.
- 3. The computer system of claim 1, wherein the first character encoding standard is a Unicode and the second character encoding standard is a multi-byte character set.
- 4. The computer system of claim 1 wherein the underlying process includes invoking a function in a library of functions that complies with the second character encoding standard.
- 5. The computer system of claim 1, wherein the processing unit further performs: Recording the file name and the alias in a file name mapping table, and And searching the file name mapping table according to the alias conforming to the first character encoding standard to acquire the file name.
- 6. A method for supporting multi-lingual document processing, the method comprising a computer system comprising a memory unit and a processing unit, the memory unit storing a graphical user interface GUI program and a document, the processing loading the GUI program from the memory unit to perform the method, the method comprising: Receiving a file name of the file, wherein the file name is expressed in a first national language and conforms to a first character encoding standard; Establishing an alias for the file name, wherein the alias is expressed in a second national language and conforms to the first character encoding standard; Linking the alias to the file such that the file name and the alias both refer to the file, and The alias is converted to conform to a second character encoding standard to initiate an underlying process for the file referenced by the alias, the underlying process conforming to the second character encoding standard.
- 7. The method as set forth in claim 6, further comprising: receiving the alias compliant with the second character encoding standard from the underlying process and converting the alias to be compliant with the first character encoding standard; Mapping the alias conforming to the first character encoding standard back to the file name, and And displaying the file name on an interface of the GUI program.
- 8. The method of claim 6 wherein the second language is english.
- 9. The method of claim 6 wherein the first character encoding standard is a Unicode and the second character encoding standard is a multi-byte character set.
- 10. The method as set forth in claim 6, further comprising: Recording the file name and the alias in a file name mapping table, and And searching the file name mapping table according to the alias conforming to the first character encoding standard to acquire the file name.
- 11. The method of claim 6, wherein the file is an execution file and the underlying process includes executing the execution file.
- 12. The method as set forth in claim 11, further comprising: Receiving execution result information of the execution file from the bottom layer process; converting the execution result information to comply with the first character encoding standard, and And converting the execution result information conforming to the first character encoding standard into a selected language of the GUI program and displaying the selected language on the interface of the GUI program.
Description
Computer system and method for supporting multi-language document processing Technical Field The present invention relates to GUI programs, and more particularly to GUI programs that support processing of multilingual documents. Background A graphical user interface (GRAPHICAL USER INTERFACE; GUI) is a way for a user to interact with a computer system or application through visual images and icons. Unlike earlier Command line interfaces (Command LINE INTERFACE; CLI), GUIs typically contain visual elements such as windows, buttons, icons, drop-down menus, and dialog boxes for a user to interact with the interface using a mouse and keyboard. In order to display and process multi-national languages and symbols, GUIs are often collocated with the use of Unicode (Unicode). Unicode is a character encoding standard that aims to assign unique codes to all characters and symbols in the world, allowing characters in different languages to be represented and processed consistently on a variety of computer systems, software, and networks. Unicode supports characters of various languages such as English, chinese and Japanese, special symbols and emoticons, realizes cross-platform character processing through various coding modes (such as UTF-8 and UTF-16), and solves the problem of incompatibility of various coding systems in the past. However, other pre-existing character encoding standards have advanced as early as 1991 Unicode release, and so far a number of related Static and Dynamic libraries (DLLs) have been accumulated. None of these character encoding standards, such as the American Standard code for information interchange (AMERICAN STANDARD Code for Information Interchange; ASCII), multi-byte character set (Multi-byte CHARACTER SET; MBCS), assign unique codes to characters in languages other than English. Next, MBCS will be described as an example. MBCS is also a character encoding standard that allows the use of more than one byte to represent characters, using one byte to represent the basic english letters and symbols, and other languages that use more bytes to represent, for example, chinese, japanese, korean, etc. MBCS can be subdivided according to the language family, for example BIG5 for representing traditional chinese, GB2312 for representing simplified chinese, EUC-KR for representing korean, etc. These other languages share the same byte range. In other words, these other languages share the same set of MBCS codes. In other words, the same set of MBCS codes may correspond to characters in different languages. The set of MBCS codes will depend on the Language family/Language suite (Language Pack) used by the operating system for which the characters correspond. For example, MBCS code 0xB0A1 represents the Chinese character "o" in simplified Chinese (GB 2312), but Korean (EUC-KR) represents Korean In order to process multi-lingual files using MBCS execution files, static function libraries or dynamic function libraries, the GUI program using Unicode must rely on an application program interface (Application Programming Interface; API) provided by the operating system to convert Unicode characters into MBCS characters. For example, the MultiByteToWideChar () function provided by Windows can convert Unicode characters to MBCS characters. Since the conversion also involves language family/language suites used by the operating system, the user of the GUI program must install the corresponding language suite according to the language used. That is, when the user wants to use different languages, he/she has to manually switch the language system. In addition, when characters in different languages exist in a section of text at the same time, unavailable MBCS characters may be obtained after conversion. Therefore, this approach has limitations that can cause inconvenience to the user of the GUI program. Therefore, there is a need for a computer system and method for supporting multi-lingual document processing that solves the above-mentioned problems. Disclosure of Invention The embodiment of the application provides a computer system for supporting multi-language document processing, which comprises a storage unit and a processing unit. The storage unit stores GUI programs and files. The processing unit loads the GUI program from the storage unit to perform the steps of receiving a file name of the file, wherein the file name is represented in a first national language and conforms to a first character encoding standard, creating an alias for the file name, wherein the alias is represented in a second national language and conforms to the first character encoding standard, concatenating the alias to the file such that both the file name and the alias refer to the file, and converting the alias to conform to the second character encoding standard to initiate an underlying process conforming to the second character encoding standard for the file to which the alias refers. An embodiment of the application pro