A method for loading a display device and an input method dictionary
By dynamically acquiring input method resource configuration information from the display device and downloading dictionaries on demand, the high storage costs and poor input method functionality caused by the pre-installed firmware mode for multilingual dictionaries are resolved, achieving efficient dictionary management and input method optimization.
Patent Information
- Application Number
- CN202611056756.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-15
- Publication Date
- 2026-11-10
AI Technical Summary
The user experience of input method functions in existing display devices is poor, mainly due to the high hardware storage cost caused by the pre-installed firmware mode of multilingual dictionaries, the large size of OTA upgrade packages, and the inability to dynamically distribute or clean up dictionary resources as needed, which affects the user experience of input method functions.
By configuring a communication device in the display device to connect with the server, the system dynamically obtains input method resource configuration information, determines the effective language set, downloads target language dictionaries as needed, automatically cleans up idle dictionary files, and optimizes the dictionary management process by using breakpoint resume and file integrity verification.
It reduces firmware footprint, lowers hardware storage costs, improves the user experience of the input method, reduces network traffic and background computing power consumption, ensures timely matching and updating of dictionary resources, and adapts to the input needs of multilingual scenarios.
Smart Images

Figure CN123067974A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of display device technology, and in particular to a display device and a method for loading an input method dictionary. Background Technology
[0002] Display devices are intelligent devices capable of presenting a user interface and supporting user interaction. Taking smart TVs as an example, smart TVs are television products based on Internet application technology, equipped with open operating systems and chips, possessing open application platforms, enabling two-way human-computer interaction, and integrating multiple functions such as audio-visual, entertainment, and data to meet diverse and personalized user needs.
[0003] Display devices can be equipped with input method functionality for human-computer interaction scenarios such as search, account login, and text input. The input method function relies on multilingual dictionary files to achieve input optimization capabilities such as text association and candidate word matching. In related technologies, display devices adopt a pre-installed multilingual dictionary firmware mode, where all supported language dictionary files are packaged and fixed to the system firmware partition at the factory. After the device powers on, the input method engine directly reads the locally pre-installed dictionary to complete initialization; during device startup, when the soft keyboard is activated, or when switching input languages, only the locally pre-installed dictionary is read. Language expansion and dictionary version updates both rely on system firmware upgrades to replace files; the dictionary storage path, language list, and file versions are all hard-coded into the firmware code.
[0004] However, the aforementioned full-dictionary firmware pre-installation mode deeply binds dictionary resources to device storage and firmware package size. Dictionaries for infrequently used languages occupy local storage space for extended periods, increasing not only the hardware storage costs of the display device and the size of OTA (Over-the-Air) upgrade packages, but also preventing the dynamic distribution or cleanup of dictionary resources as needed, thus impacting the user experience of the input method function on the display device. Summary of the Invention
[0005] This application provides a display device and a method for loading an input method dictionary to solve the problem of poor user experience of input method functions in display devices.
[0006] In a first aspect, some embodiments of this application provide a display device, including: monitor; A communication device configured to establish a communication connection with a server; The memory is configured to store the input method engine and language dictionary files; The controller is electrically connected to the display, the communication device, and the memory, respectively, and the controller is configured to: In response to detecting an input method trigger event, the system obtains input method resource configuration information from the server via the communication device. The input method resource configuration information includes the storage path and download address of the language dictionary. The effective language set is determined based on the input method resource configuration information. The effective language set includes preset basic languages, currently active languages, and historically switched languages. If the memory does not contain a target language dictionary corresponding to the currently active language, then the target language dictionary is downloaded based on the download address, and stored in the memory according to the path specified in the input method resource configuration information; Traverse the cached language dictionaries in the memory and delete dictionary files that are not included in the set of valid languages; The dictionary file in the memory is loaded, the input method engine is run, and the candidate word interface generated by the input method engine is output to the display.
[0007] The above technical solution has the following beneficial effects or advantages: By dynamically acquiring corresponding language dictionaries through on-demand configuration distribution from the server, the firmware space occupied and hardware storage costs can be reduced. At the same time, by automatically cleaning up idle dictionaries through an effective language set including preset basic languages, currently active languages, and historically switched languages, the long-term occupation of local storage by useless files can be reduced. Dictionary verification and download operations are only performed under input method-related trigger events, reducing network traffic and background computing power consumption. After dynamically loading and matching dictionaries, candidate words are output, improving the user experience of the input method in multilingual scenarios.
[0008] In some embodiments of this application, the controller is further configured to: In response to a power-on event, a configuration retrieval request is initiated to the server via the communication device. The configuration retrieval request is used to obtain the input method resource configuration information. If the input method resource configuration information is successfully obtained, the input method resource configuration information is stored in the memory; If the input method resource configuration information fails to be obtained, then the previously stored historical input method resource configuration information in the memory is read and used as the input method resource configuration information.
[0009] The above technical solution has the following beneficial effects or advantages: The device retrieves and stores the configuration file locally in advance upon startup. Various input method events can directly read the local configuration without repeatedly requesting the server, reducing network interaction and improving input method response speed. At the same time, a historical configuration rollback mechanism is set up for scenarios such as network outages during startup and server access failures, ensuring the normal operation of dictionary management logic in offline mode, thereby improving the stability of offline use of the entire device.
[0010] In some embodiments of this application, the input method triggering event includes a first event corresponding to the input method initialization operation, a second event corresponding to the input method wake-up operation, and a third event corresponding to the input method language switching operation. The controller is also configured to respond to the detection of an input method trigger event as follows: When at least one of the first event, the second event, and the third event is detected, it is determined that the input method trigger event has been detected.
[0011] The above technical solution has the following beneficial effects or advantages: It covers all usage scenarios of input method initialization, wake-up, and language switching. Any related operation can trigger dictionary verification, download, and cache clearing logic in a timely manner, avoiding the delay in dictionary resource updates caused by a single trigger scenario. It can match the user's current input language in real time and ensure timely synchronization of dictionary resources during multi-language switching.
[0012] In some embodiments of this application, the input method resource configuration information also carries the verification value for file integrity verification corresponding to each language dictionary; the controller downloading the target language dictionary is specifically configured as follows: The target language dictionary is downloaded from the server using a resume download method. The integrity of the downloaded target language dictionary is verified based on the verification value; If the integrity check passes, the target language dictionary is stored in the memory according to the path specified in the input method resource configuration information; If the integrity check fails, the downloaded target language dictionary is deleted, and the target language dictionary is downloaded again based on the download address.
[0013] The above technical solution has the following beneficial effects or advantages: The breakpoint resume mode is adapted to weak network environments. After the network is interrupted, there is no need to download the dictionary from scratch, thus shortening the loading time. The file integrity is verified by the check value to prevent the storage of damaged or incomplete dictionaries locally, which may cause input method malfunctions. If the verification fails, the download will be automatically retried without manual operation by the user, which can improve the automation level of multilingual dictionary download and the smoothness of use.
[0014] In some embodiments of this application, the controller stores the target language dictionary into the memory according to the specified path in the input method resource configuration information, specifically configured as follows: Parse the subdirectory identifier and file name identifier recorded in the input method resource configuration information; Concatenate the subdirectory identifier with the file name identifier to form the local storage path; Create a hierarchical storage directory that does not exist in the local storage path; Based on the hierarchical storage directory, the target language dictionary is written to the local storage path.
[0015] The above technical solution has the following beneficial effects or advantages: It can automatically construct the complete storage path and create missing folders layer by layer according to the cloud configuration, without the need for a fixed directory structure preset on the device. It can adapt to the flexible dictionary deployment rules adjusted by the cloud. Dictionary files are written directly to the target path, eliminating intermediate storage and file migration operations, reducing the number of local read and write operations, reducing storage consumption, and simplifying the system file scheduling logic.
[0016] In some embodiments of this application, the controller is further configured to: Receive update configuration information sent by the server, wherein the update configuration information carries the verification value of the file integrity check of the new version dictionary file; Compare the checksums of the language dictionary file in the memory with the updated configuration information; If the verification values do not match, download the new version of the dictionary file; Replace the language dictionary file in the storage device with the new version dictionary file.
[0017] The above technical solution has the following beneficial effects or advantages: Dictionary version iteration can be completed by simply sending small update configuration files from the cloud, without having to push a large whole device firmware upgrade package to save download traffic. Dictionaries with version differences can be accurately identified and replaced individually through checksums, without having to refresh all local language dictionaries, which can shorten dictionary update time and improve update efficiency.
[0018] In some embodiments of this application, the controller is further configured to: If it is detected that the user manually customizes the input language, the input method will be marked as customized, and the user's selected language will be assigned to the currently active language. If no user-defined French language is detected, the system interface language will be set to the currently active language. When the currently active language changes, the previous currently active language is assigned to the historical switching language, and then the changed language is updated to the currently active language. In the custom state, the currently active language is not updated when the system interface language changes.
[0019] The above technical solution has the following beneficial effects or advantages: It distinguishes between two working modes: user-defined language and following the system language, to adapt to different user operating habits. When switching languages, it retains the history of switched languages and includes them in the effective set. When users switch between the two languages repeatedly, they do not need to download and cache dictionaries repeatedly, which solves the lag problem caused by frequent bilingual switching. After users manually set the language, it is not affected by changes in the system interface language, and the input language status remains stable.
[0020] In some embodiments of this application, the controller is further configured to: If the target language dictionary is present in the memory, the input method is switched to intelligent working mode, which supports character input, word association, and candidate word sorting and display. If the target language dictionary is not present in the memory, the input method is switched to the basic working mode, which supports basic character input.
[0021] The above technical solution has the following beneficial effects or advantages: Basic character input functionality is retained even when the dictionary is not fully downloaded, preventing the input method from becoming completely unusable and ensuring basic input availability. Once the dictionary verification and download to disk are complete, it automatically switches to an intelligent working mode with predictive text and candidate sorting capabilities, balancing basic input availability with an intelligent input experience.
[0022] In some embodiments of this application, the memory is divided into a firmware read-only partition and a dynamic data partition, and the controller is further configured to: The factory-preset basic language dictionary is stored in the firmware read-only partition, which only supports read operations. The downloaded language dictionary file is stored in the dynamic data partition, which supports deletion.
[0023] The above technical solution has the following beneficial effects or advantages: The pre-installed basic language dictionary is embedded in the firmware's read-only partition and cannot be cleared. Basic language input can be completed even when the device has no network, enabling offline use. Dynamically downloaded dictionaries are stored separately in a deletable partition. When cleaning up idle languages, only the dynamic data partition is operated on, and the system's basic dictionary will not be accidentally deleted. Partition isolation improves the security of local dictionary data storage.
[0024] Secondly, this application provides a method for loading an input method dictionary, including: In response to the detection of an input method trigger event, the system obtains input method resource configuration information from the server via a communication device. The input method resource configuration information includes the storage path and download address of the language dictionary. The effective language set is determined based on the input method resource configuration information. The effective language set includes preset basic languages, currently active languages, and historically switched languages. If the target language dictionary corresponding to the currently active language does not exist in the memory, the target language dictionary is downloaded based on the download address, and the target language dictionary is stored in the memory according to the path specified in the input method resource configuration information; Traverse the cached language dictionaries in the memory and delete dictionary files that are not included in the set of valid languages; The dictionary file in the memory is loaded, the input method engine is run, and the candidate word interface generated by the input method engine is output to the display.
[0025] The above technical solution has the following beneficial effects or advantages: By configuring and retrieving the required language dictionaries on demand through the cloud, the storage problem caused by the massive number of dictionaries pre-installed on the device is improved. At the same time, it automatically identifies and cleans up idle dictionaries outside the effective language set, avoiding storage redundancy accumulation after long-term use. The entire dictionary verification, download, storage and cleanup process runs automatically, without requiring users to manually manage dictionary resources, which can reduce the operating threshold of multilingual devices. Attached Figure Description
[0026] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0027] Figure 1 This is a schematic diagram illustrating an operational scenario between a display device and a control device provided in some embodiments of this application; Figure 2 This is a schematic diagram of the hardware configuration of a display device provided in some embodiments of this application; Figure 3 This is a schematic diagram of the software configuration of a display device provided in some embodiments of this application; Figure 4 A flowchart illustrating the input method dictionary loading method provided in some embodiments of this application; Figure 5 A flowchart illustrating the process of determining the currently active language provided for some embodiments of this application; Figure 6 A flowchart illustrating the integrity verification process provided for some embodiments of this application; Figure 7 This application provides schematic diagrams of the update process for some embodiments; Figure 8 A schematic diagram of a three-slot configuration provided for some embodiments of this application; Figure 9 A schematic diagram illustrating the input method mode switching process provided in some embodiments of this application; Figure 10a Interface renderings of intelligent working modes provided in some embodiments of this application; Figure 10b Interface renderings of the basic working modes provided for some embodiments of this application; Figure 11 Timing diagrams for language switching provided in some embodiments of this application. Detailed Implementation
[0028] The embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described below do not represent all embodiments consistent with this application. They are merely examples of systems and methods consistent with some aspects of this application as detailed in the claims.
[0029] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.
[0030] The terms "first," "second," "third," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar or related objects or entities, and do not necessarily imply a specific order or sequence, unless otherwise specified. It should be understood that such terms are interchangeable where appropriate.
[0031] The terms “comprising” and “having”, and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device that includes a range of components is not necessarily limited to all of the components that are clearly listed, but may include other components that are not clearly listed or that are inherent to such product or device.
[0032] The term "module" refers to any known or subsequently developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.
[0033] In this embodiment, the display device 200 generally refers to a device with screen display and data processing capabilities. For example, the display device 200 includes, but is not limited to, smart TVs, mobile terminals, computers, monitors, advertising screens, wearable devices, virtual reality devices, augmented reality devices, etc.
[0034] Figure 1 This is a schematic diagram illustrating an operational scenario between a display device and a control device provided in some embodiments of this application. For example... Figure 1 As shown, a user can operate the display device 200 via touch operation, a mobile terminal 300, and a control device 100. The control device 100 receives user input commands and converts them into control commands that the display device 200 can recognize and respond to. For example, the control device 100 can be a remote control, a stylus, a gamepad, etc.
[0035] The mobile terminal 300 can function as a control device for human-computer interaction between the user and the display device 200. It can also function as a communication device for establishing a communication connection with the display device 200 and exchanging data. In some embodiments, the mobile terminal 300 can have software applications installed on it and communicate with the display device 200 via network communication protocols to achieve one-to-one control and data communication. Furthermore, it can transmit audio and video content displayed on the mobile terminal 300 to the display device 200 for synchronized display.
[0036] In some embodiments, the mobile terminal 300 or other electronic devices may also simulate the functions of the control device 100 by running an application that controls the display device 200.
[0037] like Figure 1 The diagram also shows that the display device 200 communicates with the server 400 via various communication methods. This allows the display device 200 to communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks.
[0038] Display device 200 can provide broadcast television reception function, and can also be equipped with intelligent network television function that provides computer support function, including but not limited to network television, smart television, Internet Protocol television (IPTV), etc.
[0039] Figure 2 Provided for some embodiments of this application Figure 1 Hardware configuration block diagram of display device 200.
[0040] In some embodiments, the display device 200 may include at least one of a tuner 210, a communication device 220, a detector 230, a device interface 240, a controller 250, a display 260, an audio output device 270, a memory, a power supply, and a user input interface 280.
[0041] In some embodiments, detector 230 is used to acquire signals from the external environment or to interact with the outside world. For example, detector 230 includes a light receiver, a sensor for acquiring ambient light intensity; or, detector 230 includes an image acquisition device, such as a camera, which can be used to acquire external environmental scenes, user attributes, or user interaction gestures; or, detector 230 includes a sound acquisition device, such as a microphone, for receiving external sounds.
[0042] In some embodiments, the display 260 includes display function components for presenting images and driving components for driving image display. The display 260 is used to receive and display image signals output from the controller 250. For example, the display 260 can be used to display video content, image content, menu control interface components, and user control UI interfaces, etc.
[0043] In some embodiments, the communication device 220 is a component used to communicate with external devices or the server 400 according to various communication protocol types. The display device 200 may have multiple communication devices 220 depending on the supported communication methods. For example, when the display device 200 supports wireless network communication, it may have a communication device 220 with WiFi functionality. When the display device 200 supports Bluetooth connectivity, it needs to have a communication device 220 with Bluetooth functionality.
[0044] The communication device 220 enables the display device 200 to communicate with external devices or the server 400 via wireless or wired connections. Wired connections utilize data cables, interfaces, or other components to connect the display device 200 to external devices. Wireless connections utilize wireless signals or wireless networks. The display device 200 can directly establish a connection with external devices or indirectly through gateways, routers, or other connection devices.
[0045] In some embodiments, the controller 250 may include at least one of a central processing unit, a video processor, an audio processor, a graphics processor, and a power processor, and a first to an nth interface for input / output. The controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in memory. The controller 250 controls the overall operation of the display device 200.
[0046] In some embodiments, the controller 250 and the tuner 210 may be located in different separate devices, that is, the tuner 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
[0047] In some embodiments, a user can input user commands through a graphical user interface (GUI) displayed on a display 260, and the user input interface 280 receives the user input commands through the graphical user interface (GUI).
[0048] In some embodiments, the audio output device 270 can be a built-in speaker of the display device 200 or an external audio output device connected to the display device 200. For the external audio output device connected to the display device 200, the display device 200 may also be provided with an external audio output terminal, through which the audio output device can be connected to the display device 200 to output sound from the display device 200.
[0049] In some embodiments, the user input interface 280 can be used to receive instructions from user input.
[0050] To enable user interaction, in some embodiments, the display device 200 may run an operating system. The operating system is a computer program used to manage and control the hardware and software resources of the display device 200. The operating system can control the display device to provide a user interface; for example, the operating system can directly control the display device to provide a user interface, or it can provide a user interface by running an application. The operating system also allows users to interact with the display device 200.
[0051] It should be noted that the operating system can be a native operating system based on a specific operating platform, a third-party operating system that is deeply customized based on a specific operating platform, or an independent operating system specifically developed for display devices.
[0052] An operating system can be divided into different modules or levels based on the functions it implements, for example... Figure 3 As shown, in some embodiments, the system is divided into three layers, from top to bottom: the Applications layer (referred to as the "application layer"), the middleware layer, and the hardware layer.
[0053] In some embodiments, the application layer provides services and interfaces for applications, enabling the display device 200 to run applications and interact with the user based on the applications. The application layer may contain at least one application, which may be a built-in Windows program, system settings program, or clock program of the operating system; or it may be an application developed by a third-party developer. In specific implementations, the application packages in the application layer are not limited to the examples above.
[0054] The framework layer provides application programming interfaces (APIs) and a programming framework for applications. The application framework layer includes predefined functions. It acts as a central processing unit, determining the actions taken by applications within the application layer. Through the API, applications can access system resources and obtain system services during execution.
[0055] like Figure 3 As shown, Figure 3 Provided for some embodiments of this application Figure 1 The diagram shows the software configuration of the display device. In some embodiments, the system of the display device 200 can be divided into three layers, from top to bottom: the application layer, the middleware layer, and the hardware layer.
[0056] The application layer mainly includes commonly used applications on TVs, as well as the application framework. The commonly used applications are mainly browser-based applications, such as HTML5 apps, and native apps. An application framework is a complete program model that has all the basic functions required by standard application software, such as file access, data exchange, and the user interface for these functions (toolbar, status bar, menu, dialog box).
[0057] Native apps can support online or offline access, push notifications, or access to local resources.
[0058] The middleware layer includes various television protocols, multimedia protocols, and system components. Middleware can use the basic services (functions) provided by system software to connect different parts of application systems or different applications on the network, achieving resource sharing and function sharing.
[0059] The hardware layer mainly includes the Hardware Abstraction Layer (HAL) interface, hardware, and drivers. The HAL interface is a unified interface for all TV chips, with the specific logic implemented by each individual chip. Drivers mainly include: audio drivers, display drivers, Bluetooth drivers, camera drivers, Wi-Fi drivers, USB drivers, HDMI drivers, sensor drivers (such as fingerprint sensors, temperature sensors, pressure sensors, etc.), and power drivers.
[0060] It should be noted that the above examples are merely a simple division of operating system functions and do not limit the specific form of the operating system of the display device 200 in this application embodiment. Depending on the function of the display device, the type of operating system, and other factors, the number of levels and the specific level type of the operating system may be expressed in other forms.
[0061] Display device 200 can implement input method functionality, which is used for human-computer interaction scenarios such as search, account login, and text input. The input method function relies on multilingual dictionary files to achieve input optimization capabilities such as text association and candidate word matching. In related technologies, display device 200 adopts a pre-installed multilingual dictionary firmware mode, where all supported language dictionary files are packaged and fixed to the system firmware partition at the factory. After the device is powered on, the input method engine directly reads the locally pre-installed dictionary to complete initialization; during device startup, when the soft keyboard is activated, or when switching input languages, only the locally pre-installed dictionary is read. Language expansion and dictionary version updates both rely on system firmware upgrades to complete file replacement; the dictionary storage path, language list, and file versions are all hard-coded into the firmware code.
[0062] However, the aforementioned full-dictionary firmware pre-installation mode deeply binds dictionary resources to device storage and firmware package size. Dictionaries for infrequently used languages occupy local storage space for extended periods, increasing the hardware storage cost of the display device 200 and the size of OTA upgrade packages. Furthermore, it prevents the dynamic distribution or cleanup of dictionary resources as needed, thus impacting the user experience of the input method function on the display device 200.
[0063] For example, the display device 200 supports input methods for more than 30 languages, and the total space occupied by all language dictionary files is large. However, in actual use, most users only use 1 to 3 languages. A large number of low-frequency language dictionaries occupy local storage space for a long time, resulting in a waste of resources. Another example is that when it is necessary to add a dictionary for a new language or update an existing dictionary version, a whole device firmware upgrade package must be pushed. The upgrade process is time-consuming and has a high failure rate.
[0064] To address the aforementioned issues, this application provides a method for loading a display device and an input method dictionary. By obtaining input method resource configuration information from a server 400, and determining a valid language set including preset basic languages, currently active languages, and historically switched languages based on the resource configuration information, the method downloads and stores the target dictionary on demand according to a specified path when the target dictionary is missing locally. Simultaneously, it automatically cleans up idle dictionary files that do not belong to the valid language set, achieving on-demand downloading and automatic cleanup of dictionary resources. This reduces firmware space usage, lowers hardware storage costs, and improves the user experience of the input method in multilingual scenarios.
[0065] In some embodiments, the display device 200 includes at least a display 260, a communication device 220, a memory, and a controller 250. The display 260 displays a user interface, including an input method soft keyboard interface and a candidate word display area; the communication device 220 is configured to establish a communication connection with the server 400 to obtain input method resource configuration information and download dictionary files from the server 400; the memory is configured to store the input method engine and language dictionary files; and the controller 250 is electrically connected to the display 260, the communication device 220, and the memory, respectively, and is used to execute the dynamic loading and management process of the input method dictionary.
[0066] In some embodiments, the display device 200 further includes a dictionary management service module and a download manager module. The dictionary management service module runs on the controller 250 and is used to coordinate configuration parsing, download scheduling, and cache clearing. The download manager module is responsible for performing the actual download operation of the dictionary files and is equipped with task deduplication and breakpoint resume capabilities. The input method engine is the underlying input method processing component, which reads the dictionary files in the local dictionary root directory by relying on a fixed path to realize input optimization functions such as text association and candidate word sorting.
[0067] Figure 4 This is a flowchart illustrating the input method dictionary loading method provided in some embodiments of this application. For example... Figure 4 As shown, controller 250 is configured to perform the following steps: S401. In response to detecting an input method trigger event, obtain input method resource configuration information from the server through a communication device.
[0068] The input method trigger event is the operation event that triggers the display device 200 to execute the dictionary verification and download process. The input method resource configuration information is a configuration file issued by the server 400, which organizes dictionary file entries by language code in JSON format. Each entry declares the target storage subdirectory (FileDir), file name (FileName), file integrity check value, and download address (Uniform Resource Locator, URL). The input method resource configuration information also carries a configuration version number (ConfigVersion) for backward compatibility.
[0069] In some embodiments, the input method triggering event includes a first event corresponding to the input method initialization operation, a second event corresponding to the input method wake-up operation, and a third event corresponding to the input language switching operation. The first event is triggered when the input method module initializes and loads after the device is powered on, corresponding to the Keyboard module loading scenario during the power-on phase; the second event is triggered when the user clicks the input box to bring up the soft keyboard, corresponding to the Keyboard opening scenario; and the third event is triggered when the user switches the input language on the already opened soft keyboard, corresponding to the language switching scenario on the Keyboard. The controller 250 determines that an input method triggering event has been detected when it detects at least one of the first, second, and third events.
[0070] In some embodiments, in response to a power-on event, the controller 250 initiates a configuration retrieval request to the server 400 via the communication device 220. The configuration retrieval request is used to obtain input method resource configuration information. If the input method resource configuration information is successfully obtained, it is stored in the memory; if the input method resource configuration information is not obtained, the previously stored historical input method resource configuration information is read from the memory and used as the currently used input method resource configuration information.
[0071] For example, after the display device 200 powers on, the boot configuration module runs independently first, retrieving the input method resource configuration file from the server 400 via HTTPS and saving it to the local disk. This configuration retrieval operation is independent of the Keyboard module and does not block it. If a network anomaly causes the configuration file retrieval to fail, the controller 250 reads the previously successfully downloaded and stored historical configuration file as a fallback, ensuring the normal operation of the dictionary management logic in offline mode. After the configuration file is saved, the Keyboard module starts the initialization loading process and calls the dictionary management service module. The dictionary management service module reads the local configuration file to obtain parameters such as the currently active language and the previously switched languages. By retrieving and storing the configuration file locally in advance upon boot, various input method events can directly read the local configuration without repeatedly requesting the server, reducing network interaction and improving input method response speed.
[0072] In some embodiments, the configuration version number (ConfigVersion) carried in the input method resource configuration information is used to distinguish different versions of the configuration file. When the server 400 updates the dictionary deployment strategy or adds new language support, the configuration version number increments. After each configuration file is retrieved, the controller 250 compares the configuration version number with the locally stored historical version number: if the version numbers match, it means the configuration has not changed, and subsequent parsing steps can be skipped to save system overhead; if the version numbers are different, the new configuration is used to overwrite the local historical configuration, and an incremental verification process for the dictionary file is triggered. This version number mechanism allows the display device 200 to avoid redundant file scanning and verification operations when the configuration remains unchanged, and to accurately perceive the scope of changes and perform incremental updates when the configuration is updated, balancing system operating efficiency with the real-time nature of configuration synchronization.
[0073] S402. Determine the set of valid languages based on input method resource configuration information.
[0074] The set of valid languages includes preset basic languages, currently active languages, and historically switched languages. Preset basic languages are the basic languages (such as English) that are pre-installed in the firmware at the factory and serve as the system's resident language; currently active languages are the languages that the current input method is using or will use; and historically switched languages are the languages used before the user last actively switched the input language.
[0075] Figure 5 This is a schematic diagram illustrating the process of determining the currently active language, provided for some embodiments of this application. For example... Figure 5 As shown, in some embodiments, the controller 250 determines the currently active language and the historically switched language in the following manner: if it detects that the user has manually customized the input language, it marks the input method as customized and assigns the user-selected language as the currently active language; if it does not detect a user-customized input language, it assigns the system interface language as the currently active language. When the currently active language changes, the previous currently active language is assigned as the historically switched language, and then the changed language is updated to the currently active language. Specifically, in the customized state, the currently active language is not updated when the system interface language changes.
[0076] In some embodiments, the determination of the currently active language follows a priority rule. If the user has explicitly set the keyboard language in the soft keyboard interface, the currently active language is the user-defined value, and the input method is marked as custom. If the user has not explicitly set the keyboard language, the currently active language is the current system UI language. The history of language switching records the language before the user's most recent active switch. When the currently active language changes, an update is triggered: the previous currently active language is assigned to the history of language switching, and the newly selected language is updated to the currently active language. Both sets of parameters are synchronously persisted to local non-volatile storage.
[0077] For example, there are two scenarios that trigger changes to the historical keyboard language: Scenario 1, the user actively selects a new keyboard language in the Keyboard; Scenario 2, when the soft keyboard is in the system-following state, a change in the system UI language causes the currently active language to change. It should be noted that once a user has explicitly customized the soft keyboard language, the soft keyboard configuration is marked as customized, and subsequent changes in the system UI language will no longer affect the soft keyboard language, thus achieving decoupling between the soft keyboard language and the system UI language.
[0078] Based on this, the controller 250 generates a valid language set based on the preset base language, the currently active language, and the previously switched languages, and removes duplicate languages from the set. For example, when the preset base language is English, the currently active language is Chinese, and the previously switched language is French, the valid language set is {English, Chinese, French}; when the previously switched languages are empty, meaning the user has never actively switched languages, the valid language set is {English, currently active language}.
[0079] In some embodiments, the status parameters of the currently active language and the previously switched language remain valid after a device reboot. The controller 250 writes both sets of parameters to a local non-volatile storage partition, prioritizing the reading of the previously saved language status during each boot initialization. When the user resets the keyboard language to "follow system" in custom mode, the controller 250 clears the custom flag, the currently active language reverts to the "follow system UI language" mode, and the previously switched language remains unchanged. This embodiment allows the system to smoothly transition without losing the cached previously switched languages when the user repeatedly adjusts their language preferences, reducing duplicate dictionary downloads caused by status resets. Simultaneously, when the system interface language is exactly the same as the currently active language, the deduplicated valid language set contains only two elements: the preset base language and the currently active language, preventing the same language from being repeatedly included in the set and occupying additional cache slots.
[0080] S403. If the target language dictionary corresponding to the currently active language does not exist in the memory, the target language dictionary is downloaded based on the download address, and stored in the memory according to the path specified in the input method resource configuration information.
[0081] After determining the valid language set, the controller 250 checks whether the target language dictionary corresponding to the currently active language already exists in the memory. If the target language dictionary already exists locally, no download is required, and the process proceeds directly to the next step; if the target language dictionary does not exist locally, the dictionary download process is initiated based on the download address recorded in the input method resource configuration information.
[0082] Figure 6 This is a schematic diagram illustrating the integrity verification process provided in some embodiments of this application. For example... Figure 6As shown, in some embodiments, the input method resource configuration information also carries a check value for the integrity verification of the files corresponding to each language dictionary. When the controller 250 downloads the target language dictionary, it uses a breakpoint resume method to download the target language dictionary from the server 400 (S601). The breakpoint resume method is adapted to weak network environments. When the network is interrupted and then restored, it does not need to start downloading from the beginning; it can continue the transmission from the last interrupted position, shortening the dictionary loading time. After the download is completed, the controller 250 performs an integrity verification on the downloaded target language dictionary based on the check value (S602). If the integrity verification passes, the target language dictionary is stored in the memory according to the path specified in the input method resource configuration information (S603); if the integrity verification fails, the downloaded target language dictionary is deleted, and the target language dictionary is downloaded again based on the download address (S604). Verifying file integrity through the check value can prevent damaged or incomplete dictionary files from being stored locally, which could cause input method malfunctions. When the verification fails, the download is automatically retried without manual operation by the user.
[0083] In some embodiments, when the controller 250 stores the target language dictionary into the memory according to the path specified in the input method resource configuration information, it parses the subdirectory identifier and file name identifier recorded in the input method resource configuration information; concatenates the subdirectory identifier and file name identifier into a local storage path; creates a hierarchical storage directory that does not exist in the local storage path; and writes the target language dictionary into the local storage path based on the hierarchical storage directory.
[0084] In some embodiments, the local storage path is concatenated as follows: LocalPath=<underlying IME dictionary root directory> / <filedir> / <filename>For example, a dictionary file with FileDir set to Pinyin and FileName set to PinyinD1.dat in the configuration information will be directly downloaded and stored in the Pinyin subdirectory under the dictionary's root directory. The underlying input method engine can locate and load the dictionary file based on its internally hard-coded directory structure, without any path mapping, symbolic links, or file movement operations. Subdirectory identifiers can represent multiple levels of paths (such as Zhuyin / Tone), and the download manager module automatically creates directory levels that do not exist in the intermediate levels. Multiple dictionary files for the same language are stored separately according to their respective FileDir values, supporting deployment of a single language across multiple subdirectories. Since the configuration file is distributed from the cloud, the dictionary file storage layout can be adjusted without modifying the TV firmware code. The dictionary file is directly written to the target path, eliminating intermediate storage and file migration operations, reducing local read / write operations, and lowering storage consumption.
[0085] Figure 7 This is a schematic diagram illustrating the update process provided for some embodiments of this application. For example... Figure 7 As shown, in some embodiments, the controller 250 also supports dictionary version update functionality. The controller 250 receives update configuration information from the server 400 (S701), which carries a checksum for the integrity of the new version dictionary file. The controller 250 compares the checksum of the language dictionary file in storage with the checksum of the update configuration information (S702). If the checksums do not match, it indicates that the dictionary file has been updated, and the controller 250 downloads the new version dictionary file (S703), replacing the corresponding language dictionary file in storage with the new version dictionary file (S704). Dictionary version iteration can be completed simply by sending a small update configuration file from the cloud, eliminating the need to push a large-scale firmware upgrade package, thus saving download bandwidth. Simultaneously, by accurately identifying dictionaries with version differences through the checksum and replacing them individually, it eliminates the need to fully refresh all local language dictionaries, shortening dictionary update time.
[0086] In some embodiments, the download manager module internally maintains a download task queue and a deduplication mechanism. When multiple input method trigger events occur successively within a short period, such as when a user immediately opens the soft keyboard after power-on initialization, the dictionary management service module may initiate multiple download requests for the same language dictionary. When the download manager module receives a download request, it first checks whether there is already a pending or executing task with the same language and download address in the current task queue. If it already exists, the task is reused directly and the identifier of the existing task is returned, without creating a download connection again, thus avoiding bandwidth waste and write conflicts caused by multiple threads concurrently downloading the same file.
[0087] In some embodiments, the download manager module also supports download timeout monitoring and retry limit. When the download time of a single dictionary file exceeds a preset threshold (e.g., 60 seconds), the task is marked as timed out and a retry is triggered. After the maximum number of consecutive retries is reached (e.g., 3 times), the download is abandoned and retried when the input method triggers an event again, avoiding prolonged blocking of the download thread due to server abnormalities or persistent weak network conditions. In addition, the controller 250 also checks the available storage space of the dynamic data partition before starting the download. When the remaining space is insufficient to accommodate the target language dictionary, the cache cleanup logic is triggered first to release space, thereby ensuring the smooth execution of the download task.
[0088] S404. Traverse the cached language dictionaries in the memory and delete dictionary files that are not included in the valid language set.
[0089] After downloading and storing the target language dictionary, the controller 250 iterates through all cached language dictionaries in the memory, determining whether each dictionary belongs to the valid language set. If a language dictionary does not belong to the valid language set, all physical files for that language are deleted.
[0090] Figure 8 This is a schematic diagram of a three-slot configuration provided in some embodiments of this application. For example... Figure 8 As shown, in some embodiments, the display device 200 employs a three-slot cache eviction strategy to manage the local dictionary. The semantic definitions of the three cache slots are as follows: the first slot (Slot1) corresponds to a preset basic language, such as English, and is a fixed slot that is never evicted; the preset basic language serves as the system's resident language. The second slot (Slot2) corresponds to the currently active language, representing the language currently in use. The third slot (Slot3) corresponds to a previously switched language, representing the previously active language; this slot may be empty.
[0091] The execution flow of the three-slot replacement strategy is as follows: First, the controller 250 checks and downloads the dictionary file corresponding to the currently active language (corresponding to step S403). Then, it calculates the valid language set, that is, it performs deduplication processing on the preset basic language, the currently active language, and the historically switched languages. Next, the controller 250 scans all language dictionaries in the local cache. For languages that are not in the valid language set, it deletes all physical files of this language by FileDir and FileName.
[0092] In this embodiment, when a user repeatedly switches between two downloaded languages, both languages remain in the cache—one in Slot 2 and the other in Slot 3—never triggering deletion or re-downloading, thus resolving the bilingual switching oscillation problem. For example, when a user frequently switches between Chinese and French, Chinese occupies Slot 2 as the currently active language, and French occupies Slot 3 as the previously switched language. The dictionary files for both are stored locally, eliminating the need for re-downloading during switching. However, when the user switches to a third language (such as German), German becomes the new currently active language, the original currently active language (such as Chinese) becomes the previously switched language, and the dictionary for the original previously switched language (such as French) is automatically deleted.
[0093] In scenarios involving continuous multilingual switching, taking a user's sequential switching from Chinese to French to German back to Chinese as an example, upon first switching to French, the French dictionary is downloaded and cached in Slot 2, while the Chinese dictionary moves to Slot 3. Upon switching to German, the German dictionary is downloaded and occupies Slot 2, the French dictionary moves to Slot 3, and the Chinese dictionary is cleared. Upon switching back to Chinese, the Chinese dictionary is re-downloaded and occupies Slot 2, the German dictionary moves to Slot 3, and the French dictionary is cleared. During this process, each switch to a new, uncached language requires downloading, but the effective language set remains within three to four languages, ensuring that the total local dictionary cache size is controllable.
[0094] In this way, compared to the solution of retaining all previously used language dictionaries, the three-slot strategy strictly controls the local dynamic dictionary cache limit to two downloaded languages (Slot2 and Slot3) plus one preset language (Slot1), thus avoiding unlimited cache expansion.
[0095] In some embodiments, the file deletion operation is performed in batches. The controller 250 first collects a list of files in all languages to be deleted, and then performs the deletion in a unified manner, reducing the number of disk I / O operations and improving cache cleanup efficiency.
[0096] S405: Load the dictionary file in the memory, run the input method engine, and output the candidate word interface generated by the input method engine to the display.
[0097] After completing dictionary download, storage, and cache clearing, the controller 250 loads the dictionary file in the memory and runs the input method engine. The input method engine reads the dictionary file in the local dictionary root directory, implements input optimization functions such as text association and candidate word matching, and outputs the candidate word interface generated by the input method engine to the display 260.
[0098] Figure 9 This is a schematic diagram illustrating the input method mode switching process provided in some embodiments of this application. For example... Figure 9 As shown, in some embodiments, if a target language dictionary exists in the memory, the controller 250 controls the input method to switch to intelligent working mode (S901). Intelligent working mode supports character input, word association, and candidate word sorting and display. If the target language dictionary does not exist in the memory (e.g., the dictionary is being downloaded), the controller controls the input method to switch to basic working mode (S902). Basic working mode supports basic character input.
[0099] For example, when a user opens the soft keyboard, if the dictionary file corresponding to the currently active language already exists locally, the input method directly switches to intelligent working mode, such as... Figure 10a As shown, the interface displays multiple lines of suggested words at the top, allowing users to enjoy intelligent input functions such as word association and candidate word sorting. If the dictionary file corresponding to the currently active language has not yet been downloaded to the local device, the input method will first switch to the basic working mode, such as... Figure 10b As shown, only basic character input functions are provided, including numbers, letters, and punctuation marks. The interface does not display suggested word suggestions. Once the dictionary file has finished downloading and being verified on disk, the input method automatically switches to intelligent mode. This dual-mode design preserves basic character input functions while the dictionary is downloading, preventing the input method from becoming completely unusable and ensuring basic input availability. After dictionary verification and disk installation, it automatically switches to intelligent mode with suggested word suggestions and candidate word sorting capabilities, balancing basic input usability with an intelligent input experience.
[0100] In some embodiments, the input method engine supports a hot-loading mechanism for dictionary files. After the dictionary file is downloaded in the background and verified against MD5 (Message-Digest Algorithm 5) on disk, the dictionary management service module sends a dictionary-ready notification to the input method engine. The input method engine then dynamically loads the newly downloaded dictionary file and switches to intelligent mode without restarting the soft keyboard or interrupting the user's current input session. In intelligent mode, the input method engine performs associative matching on the user's input character sequence based on word frequency statistics and the language model in the dictionary file, and sorts and displays candidate words according to matching degree and usage frequency. When multiple dictionary files exist for the same language (such as a main pinyin dictionary and a user-defined dictionary), the input method engine merges and deduplicates the query results from each dictionary before sorting them uniformly, ensuring comprehensive candidate word coverage while avoiding duplicate entries. Furthermore, user-generated input habit data (such as frequently used vocabulary preferences) is stored independently in the user configuration directory of the dynamic data partition. This data is not accidentally deleted by cache cleanup logic and retains the user's personalized input habits even after dictionary version updates.
[0101] In some embodiments, the memory is divided into a firmware read-only partition and a dynamic data partition. The controller 250 stores the factory-preset basic language dictionary in the firmware read-only partition, which only supports read operations; and stores the downloaded language dictionary files in the dynamic data partition, which supports deletion operations.
[0102] In some embodiments, the pre-installed basic language dictionaries (such as an English dictionary) in the firmware read-only partition are permanently written to the device at the factory and cannot be modified or deleted during system operation, ensuring that the device can complete basic language input under any circumstances (including without a network connection), achieving offline compatibility. The dynamic data partition is used to store various language dictionary files downloaded via the cloud and supports read, write, and delete operations. When executing cache clearing logic, the controller 250 only operates on the dynamic data partition, deleting idle dictionary files that do not belong to the valid language set, without affecting the pre-installed basic dictionaries in the firmware read-only partition.
[0103] In this embodiment of the disclosure, through a partitioned isolation design, the pre-installed basic language dictionary cannot be cleared, and the basic language input can be completed even when the device has no network, achieving offline compatibility; the dynamically downloaded dictionary is stored separately in a deletable partition, and when cleaning up idle languages, only the dynamic data partition is operated, so as not to accidentally delete the system basic dictionary, thereby improving the security of local dictionary data storage.
[0104] In some embodiments, the storage space of the dynamic data partition adopts an on-demand allocation strategy. Before each download of a dictionary file, the controller 250 first checks the remaining available space in the dynamic data partition. When the remaining space is insufficient to accommodate the target language dictionary, the controller 250 prioritizes executing cache cleanup logic, scanning all downloaded language dictionary files in the dynamic data partition, identifying and deleting idle files that do not belong to the current valid language set, freeing up storage space, and then rechecking the remaining space. If the space is still insufficient after cleanup, the controller 250 displays a message indicating insufficient storage space on the display 260, guiding the user to manually clean up other application data. In OTA firmware upgrade scenarios, the pre-installed basic language dictionary in the firmware read-only partition is updated along with the firmware package, while the language dictionary files already downloaded in the dynamic data partition remain unchanged during the upgrade process. After the upgrade is completed, there is no need to download them again, reducing user waiting time.
[0105] In this embodiment of the disclosure, the partitioned architecture makes the lifecycle of dictionary data independent of the firmware version. The basic language dictionary is updated with the firmware iteration, while the dynamic language dictionary is configured and managed independently in the cloud, and the two do not interfere with each other.
[0106] In some embodiments, when multiple input method trigger events arrive concurrently within a short period, such as when a user immediately clicks the input box to activate the soft keyboard during the power-on initialization process, the controller 250 employs an event merging and priority scheduling strategy to handle concurrent requests. The dictionary management service module maintains an event processing state machine. When the first event (power-on initialization) is detected performing a dictionary check and download process, if a second event (opening the keyboard) is received at the same time, the dictionary management service module adds the second event to a waiting queue. Once the download and verification process of the first event is completed, the processing logic for the second event is automatically triggered. If the target dictionary downloaded by the first event happens to cover the language required by the second event, the second event directly reuses the downloaded dictionary file, skipping redundant download steps. When the third event (language switching) occurs almost simultaneously with the second event, the third event has a higher priority than the second event, and the controller 250 prioritizes processing language switching requests, ensuring that the user's latest language selection is responded to promptly. Through event merging and priority scheduling, the system can avoid duplicate downloads, file lock contention, and state inconsistencies caused by concurrent events, ensuring the stability and consistency of the dictionary management process in multi-event concurrent scenarios.
[0107] In some embodiments, the controller 250 also coordinates the scheduling of network resources and system computing power to reduce the impact of dictionary management operations on the main services of the display device 200 (such as video playback, live streaming, etc.). The dictionary download task is set as a low-priority background task. The download manager module dynamically monitors the current network bandwidth usage during downloads. When it detects that a foreground application is using the network for video streaming or large file downloads, the download manager module automatically reduces the dictionary download rate, prioritizing bandwidth for foreground services. When foreground network activity decreases, the download manager module restores the normal download rate, fully utilizing idle bandwidth to shorten dictionary download time. Regarding system computing power scheduling, the MD5 checksum and cache scan operations for dictionary files are scheduled to be executed during periods of low CPU load, avoiding contention for processor resources and resulting screen stuttering in high-load scenarios such as video decoding and image rendering.
[0108] In some embodiments, the dictionary management service module also has a built-in anomaly self-recovery mechanism. When dictionary file writing is interrupted or configuration files are corrupted due to an unexpected power outage, process crash, or other anomalies, the dictionary management service module will detect incomplete files or mismatched checksums upon the next boot and automatically trigger the cleaning and re-downloading of the damaged files, restoring the system to a normal state without manual user intervention.
[0109] Figure 11 Timing diagrams for language switching provided in some embodiments of this application. For example... Figure 11 As shown, the controller 250 includes a Keyboard module, a dictionary management service module, and a download manager module. When a user performs a language switching operation, the Keyboard module receives the operation command and sends a dictionary query request to the dictionary management service module. Upon receiving the request, the dictionary management service module performs a local file check to determine whether the dictionary file corresponding to the currently active language is downloaded or not, and then provides feedback.
[0110] If the local dictionary has been downloaded, the dictionary management service module returns the result to the Keyboard module, and the Keyboard module immediately switches to intelligent working mode. If the local dictionary has not been downloaded, the Keyboard module first switches to basic working mode, the dictionary management service module initiates a dictionary download request to the download manager module, and the download manager module initiates an HTTP request to the cloud CDN (Content Delivery Network) on server 400 and receives the dictionary data. After the dictionary data is received, the dictionary management service module performs MD5 integrity verification on the dictionary file. If the verification passes, it directly stores the dictionary on disk according to the FileDir or FileName path recorded in the configuration, and deletes redundant language dictionaries in the storage that do not belong to the valid language set according to the valid language set ValidLanguageSet. After the above process is completed, the dictionary management service module sends a completion notification to the Keyboard module, and the Keyboard module switches from basic mode (i.e., basic working mode) to intelligent mode (i.e., intelligent working mode), completing the dictionary loading and input method mode change process corresponding to this language switch. The dictionary data is the data corresponding to the language dictionary file.
[0111] Based on the aforementioned display device 200, some embodiments of this application also provide a method for loading an input method dictionary, which can be applied to the display device 200, such as... Figure 4 As shown, the method includes the following steps: S401. In response to detecting an input method trigger event, obtain input method resource configuration information from the server through a communication device. The input method resource configuration information includes the storage path and download address of the language dictionary.
[0112] S402. Determine the set of valid languages based on the input method resource configuration information. The set of valid languages includes preset basic languages, currently active languages, and historically switched languages.
[0113] S403. If the target language dictionary corresponding to the currently active language does not exist in the memory, the target language dictionary is downloaded based on the download address, and the target language dictionary is stored in the memory according to the path specified in the input method resource configuration information.
[0114] S404. Traverse the language dictionaries cached in the memory and delete dictionary files not included in the set of valid languages.
[0115] S405. Load the dictionary file in the memory, run the input method engine, and output the candidate word interface generated by the input method engine via the display.
[0116] Based on the aforementioned input method dictionary loading method, it overcomes the limitations of large storage footprint and poor update flexibility caused by pre-installed full dictionary firmware. By configuring cloud-based on-demand retrieval of dictionaries for the required languages, it improves the storage problem caused by the massive number of dictionaries pre-installed on the device. Simultaneously, it automatically identifies and cleans up idle dictionaries outside the effective language set, avoiding redundant storage accumulation over long-term use. The entire dictionary verification, download, storage, and cleanup process runs fully automatically, eliminating the need for manual dictionary resource management by the user. This lowers the operational threshold for multilingual devices and improves the smoothness of multilingual interaction.
[0117] It should be noted that the input method dictionary loading method described in this application embodiment can adopt the same principle and implementation method as the above-mentioned display device 200 embodiment, and will not be described in detail here.
[0118] The same or similar parts among the various embodiments in this specification can be referred to mutually, and will not be repeated here.
[0119] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of various embodiments or certain parts of the embodiments of the present invention.
[0120] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
[0121] For ease of explanation, the above description has been provided in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Various modifications and variations can be obtained based on the above teachings. The selection and description of the above embodiments are for the purpose of better explaining the principles and practical applications, thereby enabling those skilled in the art to better utilize the described embodiments and various different variations of embodiments suitable for specific use considerations.< / filename> < / filedir>
Claims
1. A display device, characterized in that, include: monitor; A communication device configured to establish a communication connection with a server; The memory is configured to store the input method engine and language dictionary files; The controller is electrically connected to the display, the communication device, and the memory, respectively, and the controller is configured to: In response to detecting an input method trigger event, the system obtains input method resource configuration information from the server via the communication device. The input method resource configuration information includes the storage path and download address of the language dictionary. The effective language set is determined based on the input method resource configuration information. The effective language set includes preset basic languages, currently active languages, and historically switched languages. If the memory does not contain a target language dictionary corresponding to the currently active language, then the target language dictionary is downloaded based on the download address, and stored in the memory according to the path specified in the input method resource configuration information; Traverse the cached language dictionaries in the memory and delete dictionary files that are not included in the set of valid languages; The dictionary file in the memory is loaded, the input method engine is run, and the candidate word interface generated by the input method engine is output to the display.
2. The display device according to claim 1, characterized in that, The controller is also configured to: In response to a power-on event, a configuration retrieval request is initiated to the server via the communication device. The configuration retrieval request is used to obtain the input method resource configuration information. If the input method resource configuration information is successfully obtained, the input method resource configuration information is stored in the memory; If the input method resource configuration information fails to be obtained, then the previously stored historical input method resource configuration information in the memory is read and used as the input method resource configuration information.
3. The display device according to claim 1, characterized in that, The input method triggering events include a first event corresponding to the input method initialization operation, a second event corresponding to the input method wake-up operation, and a third event corresponding to the input method language switching operation. The controller is also configured to respond to the detection of an input method trigger event as follows: When at least one of the first event, the second event, and the third event is detected, it is determined that the input method trigger event has been detected.
4. The display device according to claim 1, characterized in that, The input method resource configuration information also carries the verification value for the file integrity check of each language dictionary; the controller downloads the target language dictionary, specifically configured as follows: The target language dictionary is downloaded from the server using a resume download method. The integrity of the downloaded target language dictionary is verified based on the verification value; If the integrity check passes, the target language dictionary is stored in the memory according to the path specified in the input method resource configuration information; If the integrity check fails, the downloaded target language dictionary is deleted, and the target language dictionary is downloaded again based on the download address.
5. The display device according to claim 1, characterized in that, The controller stores the target language dictionary into the memory according to the path specified in the input method resource configuration information, specifically configured as follows: Parse the subdirectory identifier and file name identifier recorded in the input method resource configuration information; Concatenate the subdirectory identifier with the file name identifier to form the local storage path; Create a hierarchical storage directory that does not exist in the local storage path; Based on the hierarchical storage directory, the target language dictionary is written to the local storage path.
6. The display device according to claim 1, characterized in that, The controller is also configured to: Receive update configuration information sent by the server, wherein the update configuration information carries the verification value of the file integrity check of the new version dictionary file; Compare the checksums of the language dictionary file in the memory with the updated configuration information; If the verification values do not match, download the new version of the dictionary file; Replace the language dictionary file in the storage device with the new version dictionary file.
7. The display device according to claim 1, characterized in that, The controller is also configured to: If it is detected that the user manually customizes the input language, the input method will be marked as customized, and the user's selected language will be assigned to the currently active language. If no user-defined French language is detected, the system interface language will be set to the currently active language. When the currently active language changes, the previous currently active language is assigned to the historical switching language, and then the changed language is updated to the currently active language. In the custom state, the currently active language is not updated when the system interface language changes.
8. The display device according to claim 1, characterized in that, The controller is also configured to: If the target language dictionary is present in the memory, the input method is switched to intelligent working mode, which supports character input, word association, and candidate word sorting and display. If the target language dictionary is not present in the memory, the input method is switched to the basic working mode, which supports basic character input.
9. The display device according to any one of claims 1-8, characterized in that, The memory is divided into a firmware read-only partition and a dynamic data partition, and the controller is further configured to: The factory-preset basic language dictionary is stored in the firmware read-only partition, which only supports read operations. The downloaded language dictionary file is stored in the dynamic data partition, which supports deletion.
10. A method for loading an input method dictionary, characterized in that, include: In response to the detection of an input method trigger event, the system obtains input method resource configuration information from the server via a communication device. The input method resource configuration information includes the storage path and download address of the language dictionary. The effective language set is determined based on the input method resource configuration information. The effective language set includes preset basic languages, currently active languages, and historically switched languages. If the target language dictionary corresponding to the currently active language does not exist in the memory, the target language dictionary is downloaded based on the download address, and the target language dictionary is stored in the memory according to the path specified in the input method resource configuration information; Traverse the cached language dictionaries in the memory and delete dictionary files that are not included in the set of valid languages; The dictionary file in the memory is loaded, the input method engine is run, and the candidate word interface generated by the input method engine is output to the display.
