WO2022061857A1 - Method for operating a terminal when accessing a web page defined by a code in a markup language - Google Patents

Method for operating a terminal when accessing a web page defined by a code in a markup language Download PDF

Info

Publication number
WO2022061857A1
WO2022061857A1 PCT/CN2020/118295 CN2020118295W WO2022061857A1 WO 2022061857 A1 WO2022061857 A1 WO 2022061857A1 CN 2020118295 W CN2020118295 W CN 2020118295W WO 2022061857 A1 WO2022061857 A1 WO 2022061857A1
Authority
WO
WIPO (PCT)
Prior art keywords
language
text
terminal
input
web page
Prior art date
Application number
PCT/CN2020/118295
Other languages
French (fr)
Inventor
Zhihong Guo
Cheng Chen
Original Assignee
Orange
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Orange filed Critical Orange
Priority to PCT/CN2020/118295 priority Critical patent/WO2022061857A1/en
Priority to PCT/IB2021/000685 priority patent/WO2022064279A1/en
Publication of WO2022061857A1 publication Critical patent/WO2022061857A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • G06F40/143Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0236Character input methods using selection techniques to select from displayed items
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/58Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation

Definitions

  • the field of this invention is that of user interfaces of terminals. More particularly, the invention relates to a method for operating a terminal when its user visits a web page.
  • the webpage may be that of a translation service, wherein the user has to type a text to be translated in a text box, or simply that of a foreign entity (for instance the user may wish to shop online, apply for a job, request a visa, take a survey, etc. ) .
  • switching from a first input language to a second input language may require actions such as changing a virtual keyboard layout (for example from a QWERTY virtual keyboard to a PIN-YIN virtual keyboard if the user wishes to input Chinese) .
  • This switching is usually done manually, which may be cumbersome for the user.
  • a dedicated module installed in his computer detects the language of the text used in this web page (for instance Chinese) in order to automatically switch the input language used by the computer to this detected language.
  • this automatic input language switching may be conditioned to the detection of some user activity, for example when the user clicks on a text input area.
  • the present invention provides a method for operating a terminal when accessing a web page defined by a code in a markup language, the method comprising the following steps, performed by a processing unit of the terminal:
  • - Said code comprises, for each text input box of a plurality of text input boxes of the web page, an attribute defining an expected input language of the text input box.
  • a reference input language of the terminal is defined, said applying step comprising selecting said expected input language as the reference input language.
  • - Said applying step comprises, if said expected input language of the text input box is different from the current reference input language of the terminal, switching the reference input language to said expected input language.
  • - Said applying step comprises selecting a virtual keyboard layout, among a set of virtual keyboard layouts displayable by the terminal, as a function of the reference input language.
  • the method further comprises a step of acquiring a text being inputted by the user on a user interface of the terminal.
  • - Said acquiring step comprises automatically translating the inputted text into the expected input language if the text is inputted in a different language from the expected input language.
  • the web page is that of a translation service, each text input box corresponding to a possible language in which a text to be translated may be inputted, the expected input language defined by the attribute being said possible language in which a text to be translated may be inputted.
  • the method further comprises a step of detecting that a user of the terminal is no more focusing on said text input box or a new occurrence of said detecting step.
  • HyperText Markup Language also referred as HTML.
  • Detecting that the user of the terminal focuses on a text input box comprises detecting the selection of the text input box by the user on a user interface of the terminal.
  • the invention provides a terminal comprising a processing unit configured to:
  • the invention provides a computer program product, comprising code instructions for executing a method according to the first aspect for operating a terminal when accessing a web page defined by a code in a markup language; and a computer-readable medium, on which is stored a computer program product comprising code instructions for executing a method according to the first aspect for operating a terminal when accessing a web page defined by a code in a markup language.
  • FIG. 1 illustrates an example of architecture in which the method according to the invention is performed
  • FIG. 2 illustrates an embodiment of a method for inputting a message on a terminal according to the present invention
  • FIG. 3 illustrates an exemplary interface using the method in accordance with an embodiment of the present invention.
  • the present invention relates to a method for operating a terminal 1 as represented by figure 1.
  • the terminal 1 can be any device comprising a processing unit 11, i.e. a CPU (one or more processors) , a memory 12 (for example flash memory) , and a user interface 13 for input (for instance a keyboard, preferably a touch sensitive screen with at least one virtual keyboard) .
  • the memory 12 is in particular for storing applications, which can be of various types, and data.
  • the terminal 1 is typically a smartphone, a tablet computer, a laptop, etc. In the following description, the example of a smartphone will be used.
  • the terminal 1 may further comprise other units such as a battery, a communication unit for connecting (in particular wirelessly) the terminal 1 to a communication network 20 such as internet, etc.
  • the present method is performed by the processing unit 11 of the terminal 1, when accessing a web page defined by a code in a markup language.
  • web page it is meant any document provided by a website.
  • a web page is generally identified by a distinct Uniform Resource Locator (URL) .
  • URL Uniform Resource Locator
  • Accessing a web page thus typically involves retrieving the code of this web page from a location designated by said URL, in particular a web server 2 (in other words, the code of the web page is downloaded from the web server 2 where it is stocked or dynamically generated) .
  • the present method is preferably implemented by an application of the terminal able to execute such code to render the web page, in particular a web browser.
  • Said markup language is typically HTML (Hypertext Markup Language) , which is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaScript.
  • CSS Cascading Style Sheets
  • the web page comprises at least one “text input box” (or text input area) , i.e. a part of the web page allowing to type a text using the user interface 13, in particular through a virtual keyboard, i.e. a “soft keyboard” , when terminal 1 is a smartphone, or any physical keyboard or even through voice recognition.
  • a virtual keyboard i.e. a “soft keyboard”
  • the virtual keyboard is provided with a plurality of virtual keyboard layouts displayable on the screen 13, forming a set.
  • the set of virtual keyboard layouts at least comprises two layouts associated with different languages, and in particular there is generally a “default” layout (typically the layout of the keyboard associated with the set language of the terminal 1, for instance a QWERTY-based layout if the language is English) , and one or more “international” layouts (layouts of the keyboard associated with other languages than the set language of the terminal 1, for example AZERTY-based, PIN-YIN-based, Cyrillic, etc., layouts) .
  • There may be also “non-alphabetical” layouts such a “numerical” layout, “emoji” layouts, etc.
  • the present method does not need any specific module to be installed by the terminal 1, and may be performed by any application able to execute code in a markup language, provided that this application is up to date, i.e. able to handle a new proposed language attribute of the markup language. Note that an outdated application would still be able to access said web page but the above-mentioned language attribute would not be supported and the present method therefore not performed, but the user’s experience would not be impacted.
  • the method may start with a step (a0) of obtaining the code of the web page (for instance by downloading it from the web server 2) , and executing it for displaying the web page to the user (in particular in a browser) .
  • this code comprises an attribute defining an expected input language of one or more text input box (es) of the web page.
  • the web page comprises at least one text input box and the part of the code defining this text input box (es) comprises an attribute defining an expected input language of this text input box (es) .
  • the web page code comprises an attribute defining an expected input language for each of these text input boxes. This attribute may have different values for two of these input boxes, allowing a “multi-languages” web page.
  • the present invention proposes to introduce a new language attribute to be associated with a text input box, this language attribute determining the default input language associated with this input text box.
  • this language attribute determining the default input language associated with this input text box.
  • a developer is developing a web page with a text box component (i.e. is writing the code)
  • he/she can allocate this language attribute to the input text box, in order to control the default input language associated with this input box.
  • the attribute may be associated to an element including the text box (a block, possibly the whole web page) , and thus every input text box of said element is affected by the attribute.
  • HTML attributes are indeed special words used inside the opening tag to control the element's behaviour. HTML attributes are a modifier of an HTML element type. An attribute either modifies the default functionality of an element type or provides functionality to certain element types unable to function correctly without them. In HTML syntax, an attribute is added to an HTML start tag.
  • the new input language attribute of the present invention may have the name “default-lang” , and the expected input language be defined by a code (for instance according to the standardized nomenclature ISO 639-1) .
  • Such an exemplary code defines a text input box of size 4x50, labelled as “box1” and containing the message “Input here your text” , with English language set as the default input language for this text input box ( “en” being the language code of English) .
  • This other exemplary code defines a first text input box as previously described as well as a second text input box of size 5x75, labelled as “box2” and containing the message “Entrez Common texte” (meaning “Input your text” in French) , with French language set as the default input language for this text input box ( “fr” being the language code of French) .
  • the new language attribute has no effect on the appearance of the text input box, but provide information that will be used in further steps of the method. In the absence of the new language attribute associated to a given box, it is assumed that no language is specifically expected for this box as in the prior art.
  • a user of the terminal 1 is focusing on a text input box of said web page.
  • focusing on a text input box, it is meant any action done by the user showing that he/she intends to input text in this box in particular.
  • the focus action is simply a selection of the text input box using the user interface 13, in particular by touching/clicking it or pressing the tabulator key on a keyboard. Therefore, detecting that a user of the terminal 1 is focusing on a text input box advantageously comprises detecting the selection of the text input box by the user (with the user interface 13) . Alternatively, this focus action could even be detecting that a mouse cursor is moved above this text input box by the user, in other words detecting the user’s intention to select this text input box. This detection may be performed by the web browser itself, in a way known to the skilled person.
  • Figure 3 represents an example of a web page of a translation service, wherein different tabs correspond to different possible languages language in which a text to be translated may be inputted (for example “Detect language” , “Chinese” , “English” , “Spanish” ) .
  • Each of these tags is associated to a text input box, and some of them may be associated with a language attribute defining the expected input language for this text input box, the expected input language being a possible language in which a text to be translated may be inputted (e.g. no language attribute for “Detect language” box, and respectively “zh” , “en” , “es” for the three other boxes) .
  • “focusing” on one text input box is simply performed by by clicking on the corresponding tab in order to select this input box.
  • the focus is on the Chinese box, therefore the expected input language is Chinese, allowing for instance to automatically select an input virtual keyboard in Chinese language.
  • any of the text input boxes included in this element may share the same expected input language, so that it may be considered that focusing on this large element (for example a click anywhere on the block) is considered as focusing on all included text input boxes included in this large element.
  • the processing unit 11 determines whether or not the web page code comprises a language attribute defining an expected input language for the text input box.
  • the processing unit 11 parses the web page code in order to find a language attribute which would be associated with the text input box the user is focusing on. In a typical embodiment, this is achieved by parsing the web page code in order to find the part especially dedicated to the input text bow the user is focusing on, then parsing this code part in order to find a language attribute as aforementioned.
  • the language designated by this language attribute is the expected input language specifically associated with this input text box.
  • focus detection step (a) and language attribute determination step (b) may be performed in any order, i.e. one after the other, or even simultaneously.
  • Performing focus detection step (a) first allows to save processing power by avoiding searching uselessly for input languages associated with text input boxes which are never focused on by a user.
  • performing language attribute determination step (b) first typically as soon as a new page is visited, and thus its code downloaded and parsed in entirety by the processing unit 11, may enable a quicker input language switching once the user focuses on a specific input text box.
  • the method comprises a further step (c) of applying this expected input language for inputting some text into the text input box.
  • input language it is meant the language locally set for text input, not a system language of the terminal 1.
  • a default system language is generally defined (in particular at the first activation of the terminal 1) , this language being the one actually used by the operating system and the applications running on this operating system (the user may still use any language of his/her choice for inputting text) , but this default system language is not intended to be changed by the present method.
  • a reference input language is set on the terminal 1 (the reference input language being the one automatically applied when inputting text) , so that the step (c) of applying said expected input language comprises selecting this expected input language as the reference input language for inputting text into the text input box.
  • the reference input language may be the above-mentioned system language, or a language associated with a currently selected virtual keyboard layout, as explained.
  • the reference input language may dynamically change independently from the present method (in particular if the user manually selects another virtual keyboard layout) .
  • step (c) preferably comprises, if the expected input language of the text input box is different from the current reference input language of the terminal 1, switching (c) the reference input language to the expected input language.
  • the expected input language is selected as the “new” reference input language by processing unit 11.
  • the reference input language is considered as a lasting parameter (it will keep being used for further inputs) , while the expected input language is not saved (and just applied once, for a given input text box which is focused on) .
  • step (c) involving a reference input language:
  • the reference input language is changed (the current reference input language is replaced by the expected one, which becomes the new reference input language) ;
  • the reference input language is unchanged (the current reference input language is already the right one) ;
  • the selection of the reference input language may have various impacts to the terminal 1.
  • the reference input language may determine a virtual keyboard layout, as explained before.
  • step (c) advantageously comprises selecting a virtual keyboard layout, among a set of virtual keyboard layouts displayable by the terminal 1, as a function of the selected reference input language.
  • each virtual keyboard layout is preferably associated to a list of refence input languages (for instance, the QWERTY-based layout is mainly for English, and also for others languages such as Dutch) .
  • the method then advantageously comprises, in a further step (d) , the actual input by the user (using the interface 13) of a text in the text input box, wherein the expected input language is applied, for instance inputting the text using a virtual keyboard layout designed for the expected input language associated with the text input box.
  • the present invention is not limited to a selection of a virtual keyboard layout (and may be applied to terminals with a physical keyboard) , and the expected input language may determine:
  • a text inputted in the text input box into the expected input language
  • these input boxes can be associated with a language attribute having English language value.
  • the user can use French language everywhere in the web form and an automatic translation from French to English occurs when filling these text input boxes, so that the inputted text is translated from the native language into the expected input language (here English) for these input boxes.
  • step (c) may occurs immediately (for instance when changing a virtual keyboard layout) or during step (d) (e.g. spell check or translation) .
  • step (c) may comprises analysis of the inputted text (for example using a machine learning model) so as to determine the actually used input language and compare it with the expected input language. If they are different, automatic translation is performed.
  • step (a) may be performed if the user focuses on another text input box of the web page. Otherwise, the method may comprise a step (e) of detecting that the user is no more focusing on the text input box (for instance he/she has clicked elsewhere, in particular he/she is focusing on sorting which is not a text input box and/or is not assisted with a language parameter as previously defined) .
  • the reference input language may be switched back to its “previous” value (i.e. before step (c) ) , or be switched to a default language (for instance the default system language) .
  • step (e) may have effects such as changing the virtual keyboard layout.
  • the reference input language is kept unchanged if focus on the text input box is lost (unless as explained the user focuses on another text input box, or manually changes the reference input language) for avoiding multiple unnecessary changes of languages if the user is browsing a complex web page.
  • step (e) or new occurrence of step (a) may be performed without step (d) occurring: the user might for instance select a first text input box (the reference input language is changed) , then a second text input box (the reference input language is changed) without having filled the first text input box if he/she has changed his/her mind.
  • the present invention concerns a terminal 1 comprising a processing unit 11.
  • This terminal 1 may also comprise a memory 12, a user interface 13.
  • the aforementioned processing unit 11 is in particular configured to implement, when accessing a web page defined by a code in a markup language (in particular via a browser) , the steps of:
  • the invention further proposes a computer program product, comprising code instructions for executing (in particular with a processing unit 11 of the terminal 1) the previously described method, as well as a computer-readable medium (in particular a memory 12 of the terminal 1) , on which is stored a computer program product comprising code instructions for executing said method.
  • this computer program product may correspond to a browser application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to a method for operating a terminal (1) when accessing a web page defined by a code in a markup language, the method comprising the following steps, performed by a processing unit (11) of the terminal (1) : - detecting (a) that a user of the terminal (1) focuses on a text input box of said web page; - determining (b) that said code comprises an attribute defining an expected input language for the text input box; and - applying (c) said expected input language for inputting text into the text input box.

Description

METHOD FOR OPERATING A TERMINAL WHEN ACCESSING A WEB PAGE DEFINED BY A CODE IN A MARKUP LANGUAGE TECHNICAL FIELD
The field of this invention is that of user interfaces of terminals. More particularly, the invention relates to a method for operating a terminal when its user visits a web page.
BACKGROUND
Users are very often required the input of various information while browsing webpages. In some cases, the user has to use a foreign language. For example, the webpage may be that of a translation service, wherein the user has to type a text to be translated in a text box, or simply that of a foreign entity (for instance the user may wish to shop online, apply for a job, request a visa, take a survey, etc. ) .
However, switching from a first input language to a second input language may require actions such as changing a virtual keyboard layout (for example from a QWERTY virtual keyboard to a PIN-YIN virtual keyboard if the user wishes to input Chinese) . This switching is usually done manually, which may be cumbersome for the user.
Automatic input language switching solutions have been proposed to alleviate this situation, see for instance the US patent 9,002,699.
In this solution, when a user visits a web page with his computer, a dedicated module installed in his computer detects the language of the text used in this web page (for instance Chinese) in order to automatically switch the input language used by the computer to this detected language. In a specific embodiment, this automatic input language switching may be conditioned to the detection of some user activity, for example when the user clicks on a text input area.
Such a solution, while improving the situation when compared to a fully-manual implementation, presents some drawback. In particular, it may be difficult for the module to clearly determine the input language, especially when the visited web page contains little text or texts in different languages. In addition, such a solution only  enables the automatic detection of a single input language for a given web page, which remains inconvenient for cases when the user needs to use different input languages in the same web page. Finally, this solution requires to install on the user’s computer the dedicated software module able to analyze a visited web page in order to detect its language, which may not be accepted by numerous users and consumes processing and memory resources of the computer.
There is therefore a need for a new solution for automatically switching languages when browsing web pages, which does not have the aforementioned drawbacks of the prior art.
SUMMARY OF THE INVENTION
For these purposes, the present invention provides a method for operating a terminal when accessing a web page defined by a code in a markup language, the method comprising the following steps, performed by a processing unit of the terminal:
- detecting that a user of the terminal focuses on a text input box of said web page;
- determining that said code comprises an attribute defining an expected input language for the text input box; and
- applying said expected input language for inputting text into the text input box.
Preferred but non limiting features of the present invention are as follow:
- Said code comprises, for each text input box of a plurality of text input boxes of the web page, an attribute defining an expected input language of the text input box.
- A reference input language of the terminal is defined, said applying step comprising selecting said expected input language as the reference input language.
- Said applying step comprises, if said expected input language of the text input box is different from the current reference input language of the terminal, switching the reference input language to said expected input language.
- Said applying step comprises selecting a virtual keyboard layout, among a set of virtual keyboard layouts displayable by the terminal, as a function of the reference input language.
- The method further comprises a step of acquiring a text being inputted by the user on a user interface of the terminal.
- Said acquiring step comprises automatically translating the inputted text into the expected input language if the text is inputted in a different language from the expected input language.
- The web page is that of a translation service, each text input box corresponding to a possible language in which a text to be translated may be inputted, the expected input language defined by the attribute being said possible language in which a text to be translated may be inputted.
- The method further comprises a step of detecting that a user of the terminal is no more focusing on said text input box or a new occurrence of said detecting step.
- Said markup language is HyperText Markup Language, also referred as HTML.
- Detecting that the user of the terminal focuses on a text input box comprises detecting the selection of the text input box by the user on a user interface of the terminal.
According to a second aspect, the invention provides a terminal comprising a processing unit configured to:
- when accessing a web page defined by a code in a markup language, detecting that a user of the terminal focuses on a text input box of said web page,
- determining that said code comprises an attribute defining an expected input language for the text input box; and
- applying said expected input language for inputting text into the text input box.
According to a third and a fourth aspects, the invention provides a computer program product, comprising code instructions for executing a method according to the first aspect for operating a terminal when accessing a web page defined by a code in a markup language; and a computer-readable medium, on which is stored a computer program product comprising code instructions for executing a method according to the first aspect for operating a terminal when accessing a web page defined by a code in a markup language.
BRIEF DESCRIPTION OF THE DRAWINGS
The above and other objects, features and advantages of this invention will be apparent in the following detailed description of an illustrative embodiment thereof, which is to be read in connection with the accompanying drawings wherein:
- figure 1 illustrates an example of architecture in which the method according to the invention is performed;
- figure 2 illustrates an embodiment of a method for inputting a message on a terminal according to the present invention; and
- figure 3 illustrates an exemplary interface using the method in accordance with an embodiment of the present invention.
DETAILED DESCRIPTION OF THE EMBODIMENTS
Architecture
The present invention relates to a method for operating a terminal 1 as represented by figure 1.
The terminal 1 can be any device comprising a processing unit 11, i.e. a CPU (one or more processors) , a memory 12 (for example flash memory) , and a user interface 13 for input (for instance a keyboard, preferably a touch sensitive screen with at least one virtual keyboard) . The memory 12 is in particular for storing applications, which can be of various types, and data.
The terminal 1 is typically a smartphone, a tablet computer, a laptop, etc. In the following description, the example of a smartphone will be used.
The terminal 1 may further comprise other units such as a battery, a communication unit for connecting (in particular wirelessly) the terminal 1 to a communication network 20 such as internet, etc.
Accessing a web page
The present method is performed by the processing unit 11 of the terminal 1, when accessing a web page defined by a code in a markup language. By web page, it is meant any document provided by a website. A web page is generally identified by a distinct Uniform Resource Locator (URL) . Accessing a web page thus typically involves retrieving the code of this web page from a location designated by said URL, in particular a web server 2 (in other words, the code of the web page is downloaded from the web server 2 where it is stocked or dynamically generated) .
The present method is preferably implemented by an application of the terminal able to execute such code to render the web page, in particular a web browser. Note that it may be directly implemented by the operating system of the terminal 1 itself. Said markup language is typically HTML (Hypertext Markup Language) , which is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaScript.
It is supposed that the web page comprises at least one “text input box” (or text input area) , i.e. a part of the web page allowing to type a text using the user interface 13, in particular through a virtual keyboard, i.e. a “soft keyboard” , when terminal 1 is a smartphone, or any physical keyboard or even through voice recognition.
In a preferred embodiment, wherein a virtual keyboard is to be used for typing a text, the virtual keyboard is provided with a plurality of virtual keyboard layouts displayable on the screen 13, forming a set. Advantageously, the set of virtual keyboard layouts at least comprises two layouts associated with different languages, and in particular there is generally a “default” layout (typically the layout of the keyboard associated with the set language of the terminal 1, for instance a QWERTY-based layout if the language is English) , and one or more “international” layouts (layouts of the keyboard associated with other languages than the set language of the  terminal 1, for example AZERTY-based, PIN-YIN-based, Cyrillic, etc., layouts) . There may be also “non-alphabetical” layouts such a “numerical” layout, “emoji” layouts, etc.
As it will explained, the present method does not need any specific module to be installed by the terminal 1, and may be performed by any application able to execute code in a markup language, provided that this application is up to date, i.e. able to handle a new proposed language attribute of the markup language. Note that an outdated application would still be able to access said web page but the above-mentioned language attribute would not be supported and the present method therefore not performed, but the user’s experience would not be impacted.
In the following description, we will suppose that the application is a web browser, and that this web browser supports said attribute.
Input language selection method
With reference to figure 2, the method may start with a step (a0) of obtaining the code of the web page (for instance by downloading it from the web server 2) , and executing it for displaying the web page to the user (in particular in a browser) .
In the present invention, this code comprises an attribute defining an expected input language of one or more text input box (es) of the web page.
In other words, the web page comprises at least one text input box and the part of the code defining this text input box (es) comprises an attribute defining an expected input language of this text input box (es) .
In an embodiment where the web page comprises a plurality of text input boxes, the web page code comprises an attribute defining an expected input language for each of these text input boxes. This attribute may have different values for two of these input boxes, allowing a “multi-languages” web page.
Thus, the present invention proposes to introduce a new language attribute to be associated with a text input box, this language attribute determining the default input language associated with this input text box. When a developer is developing a web page with a text box component (i.e. is writing the code) , he/she can allocate this  language attribute to the input text box, in order to control the default input language associated with this input box. Note that the attribute may be associated to an element including the text box (a block, possibly the whole web page) , and thus every input text box of said element is affected by the attribute.
In the exemplary case of HTML language, the tag <textarea> defines a text input box, with existing possible attributes such as “id” , “name” , etc. HTML attributes are indeed special words used inside the opening tag to control the element's behaviour. HTML attributes are a modifier of an HTML element type. An attribute either modifies the default functionality of an element type or provides functionality to certain element types unable to function correctly without them. In HTML syntax, an attribute is added to an HTML start tag.
As an example, the new input language attribute of the present invention may have the name “default-lang” , and the expected input language be defined by a code (for instance according to the standardized nomenclature ISO 639-1) .
To illustrate this language attribute, in the case of a webpage containing a given input text bow, the part of HTML web page code for this given input text box could be as follows:
<textarea id= "box1" name= "box1" rows= "4" cols= "50" default-lang= "en" >Input here your text</textarea>
Such an exemplary code defines a text input box of size 4x50, labelled as “box1” and containing the message “Input here your text” , with English language set as the default input language for this text input box ( “en” being the language code of English) .
In another example of webpage containing this time two input text boxes with different input languages, the part of HTML web page code for these input text boxes could be as follows:
<textarea id= "box1" name= "box1" rows= "4" cols= "50" default-lang= "en" >Input here your text</textarea>
<textarea id= "box2" name= "box2" rows= "5" cols= "75" default-lang= "fr" >Entrez votre texte</textarea>
This other exemplary code defines a first text input box as previously described as well as a second text input box of size 5x75, labelled as “box2” and containing the message “Entrez votre texte” (meaning “Input your text” in French) , with French language set as the default input language for this text input box ( “fr” being the language code of French) .
Note that the new language attribute has no effect on the appearance of the text input box, but provide information that will be used in further steps of the method. In the absence of the new language attribute associated to a given box, it is assumed that no language is specifically expected for this box as in the prior art.
Coming back to the method, in a first step (a) , it is detected that a user of the terminal 1 is focusing on a text input box of said web page.
By “focusing” on a text input box, it is meant any action done by the user showing that he/she intends to input text in this box in particular.
Generally, the focus action is simply a selection of the text input box using the user interface 13, in particular by touching/clicking it or pressing the tabulator key on a keyboard. Therefore, detecting that a user of the terminal 1 is focusing on a text input box advantageously comprises detecting the selection of the text input box by the user (with the user interface 13) . Alternatively, this focus action could even be detecting that a mouse cursor is moved above this text input box by the user, in other words detecting the user’s intention to select this text input box. This detection may be performed by the web browser itself, in a way known to the skilled person.
Alternatively, there may be several text input boxes in the same web page and the user may focus on one by switching between them, for instance with tabs.
Figure 3 represents an example of a web page of a translation service, wherein different tabs correspond to different possible languages language in which a text to be translated may be inputted (for example “Detect language” , “Chinese” , “English” , “Spanish” ) . Each of these tags is associated to a text input box, and some of them may be associated with a language attribute defining the expected input language for this  text input box, the expected input language being a possible language in which a text to be translated may be inputted (e.g. no language attribute for “Detect language” box, and respectively “zh” , “en” , “es” for the three other boxes) . In such a case, “focusing” on one text input box is simply performed by by clicking on the corresponding tab in order to select this input box. In the example of figure 3, the focus is on the Chinese box, therefore the expected input language is Chinese, allowing for instance to automatically select an input virtual keyboard in Chinese language.
Note that, if there is for instance a large element of the page associated to a given language attribute, any of the text input boxes included in this element may share the same expected input language, so that it may be considered that focusing on this large element (for example a click anywhere on the block) is considered as focusing on all included text input boxes included in this large element.
Then, in the following step (b) , the processing unit 11 determines whether or not the web page code comprises a language attribute defining an expected input language for the text input box.
In order to do so, the processing unit 11 parses the web page code in order to find a language attribute which would be associated with the text input box the user is focusing on. In a typical embodiment, this is achieved by parsing the web page code in order to find the part especially dedicated to the input text bow the user is focusing on, then parsing this code part in order to find a language attribute as aforementioned.
If such a language attribute is not found, this means that no specific input language is expected for this input text box, just as in web pages of the prior art.
If such a language attribute is found, then the language designated by this language attribute is the expected input language specifically associated with this input text box.
It is to be noted that focus detection step (a) and language attribute determination step (b) may be performed in any order, i.e. one after the other, or even simultaneously. Performing focus detection step (a) first allows to save processing power by avoiding searching uselessly for input languages associated with text input boxes which are never focused on by a user. On the contrary, performing language attribute determination step (b) first, typically as soon as a new page is visited, and  thus its code downloaded and parsed in entirety by the processing unit 11, may enable a quicker input language switching once the user focuses on a specific input text box.
When a language attribute has been found in the web page code as associated with the text input box the user is focusing on, and thus being the expected input language for this text input box, the method comprises a further step (c) of applying this expected input language for inputting some text into the text input box.
By “input language” , it is meant the language locally set for text input, not a system language of the terminal 1. Indeed, a default system language is generally defined (in particular at the first activation of the terminal 1) , this language being the one actually used by the operating system and the applications running on this operating system (the user may still use any language of his/her choice for inputting text) , but this default system language is not intended to be changed by the present method.
In some embodiments, a reference input language is set on the terminal 1 (the reference input language being the one automatically applied when inputting text) , so that the step (c) of applying said expected input language comprises selecting this expected input language as the reference input language for inputting text into the text input box. By default, the reference input language may be the above-mentioned system language, or a language associated with a currently selected virtual keyboard layout, as explained. The reference input language may dynamically change independently from the present method (in particular if the user manually selects another virtual keyboard layout) .
Thus, step (c) preferably comprises, if the expected input language of the text input box is different from the current reference input language of the terminal 1, switching (c) the reference input language to the expected input language. In other words, the expected input language is selected as the “new” reference input language by processing unit 11.
Note that the reference input language is considered as a lasting parameter (it will keep being used for further inputs) , while the expected input language is not saved (and just applied once, for a given input text box which is focused on) .
To sum up, in the preferred embodiment of step (c) involving a reference input language:
- if the expected input language is different from the current reference input language of the terminal 1, the reference input language is changed (the current reference input language is replaced by the expected one, which becomes the new reference input language) ;
- if the expected input language is the same as the current reference input language of the terminal 1, the reference input language is unchanged (the current reference input language is already the right one) ;
- if the user is focusing on a text input box which is not associated to a language attribute (i.e. there is no expected input language for this text input box) , the reference input language is unchanged.
The selection of the reference input language may have various impacts to the terminal 1. The reference input language may determine a virtual keyboard layout, as explained before. In that case, so step (c) advantageously comprises selecting a virtual keyboard layout, among a set of virtual keyboard layouts displayable by the terminal 1, as a function of the selected reference input language. In more details, each virtual keyboard layout is preferably associated to a list of refence input languages (for instance, the QWERTY-based layout is mainly for English, and also for others languages such as Dutch) .
The method then advantageously comprises, in a further step (d) , the actual input by the user (using the interface 13) of a text in the text input box, wherein the expected input language is applied, for instance inputting the text using a virtual keyboard layout designed for the expected input language associated with the text input box.
Note that the present invention is not limited to a selection of a virtual keyboard layout (and may be applied to terminals with a physical keyboard) , and the expected input language may determine:
- which grammar is used by a spell checker (for automatic detection of misspellings in the inputted text) ;
- which voice is used by a screen reader (for assisting visually impaired people who inputs text) ;
- etc.
Note also that, in a specific embodiment, there may be an automatic translation of a text inputted in the text input box into the expected input language, when the text is inputted in another language in the text input box. For example, if the user is a native French speaker who fills a web form comprising some input boxes wherein information in English is required, these input boxes can be associated with a language attribute having English language value. The user can use French language everywhere in the web form and an automatic translation from French to English occurs when filling these text input boxes, so that the inputted text is translated from the native language into the expected input language (here English) for these input boxes.
Note that the effects of step (c) may occurs immediately (for instance when changing a virtual keyboard layout) or during step (d) (e.g. spell check or translation) . In case the expected input language is used as a source language for automatic translation of the inputted text, in a known fashion step (c) may comprises analysis of the inputted text (for example using a machine learning model) so as to determine the actually used input language and compare it with the expected input language. If they are different, automatic translation is performed.
Once the text has been inputted, a new occurrence of step (a) may be performed if the user focuses on another text input box of the web page. Otherwise, the method may comprise a step (e) of detecting that the user is no more focusing on the text input box (for instance he/she has clicked elsewhere, in particular he/she is focusing on sorting which is not a text input box and/or is not assisted with a language parameter as previously defined) .
In such case, the reference input language may be switched back to its “previous” value (i.e. before step (c) ) , or be switched to a default language (for instance the default system language) . Like for step (b) , step (e) may have effects such as changing the virtual keyboard layout.
Note that it may alternatively be provided that the reference input language is kept unchanged if focus on the text input box is lost (unless as explained the user  focuses on another text input box, or manually changes the reference input language) for avoiding multiple unnecessary changes of languages if the user is browsing a complex web page.
It is to be understood that step (e) or new occurrence of step (a) may be performed without step (d) occurring: the user might for instance select a first text input box (the reference input language is changed) , then a second text input box (the reference input language is changed) without having filled the first text input box if he/she has changed his/her mind.
Terminal and computer program
The present invention concerns a terminal 1 comprising a processing unit 11. This terminal 1 may also comprise a memory 12, a user interface 13.
The aforementioned processing unit 11 is in particular configured to implement, when accessing a web page defined by a code in a markup language (in particular via a browser) , the steps of:
- detecting that a user of the terminal 1 focuses on a text input box of said web page;
- determining that said code comprises an attribute defining an expected input language of the text input box; and
- applying said expected input language for inputting text into the text input box.
The invention further proposes a computer program product, comprising code instructions for executing (in particular with a processing unit 11 of the terminal 1) the previously described method, as well as a computer-readable medium (in particular a memory 12 of the terminal 1) , on which is stored a computer program product comprising code instructions for executing said method. In particular, this computer program product may correspond to a browser application.

Claims (14)

  1. A method for operating a terminal (1) when accessing a web page defined by a code in a markup language, the method comprising the following steps, performed by a processing unit (11) of the terminal (1) :
    - detecting (a) that a user of the terminal (1) focuses on a text input box of said web page;
    - determining (b) that said code comprises an attribute defining an expected input language for the text input box; and
    - applying (c) said expected input language for inputting text into the text input box.
  2. A method according to claim 1, wherein said code comprising, for each text input box of a plurality of text input boxes of the web page, an attribute defining an expected input language of the text input box.
  3. A method according to any one of claims 1 to 2, wherein a reference input language of the terminal (1) is defined, step (c) comprising selecting said expected input language as the reference input language.
  4. A method according to claim 3, wherein step (c) comprises, if said expected input language of the text input box is different from the current reference input language of the terminal (1) , switching (c) the reference input language to said expected input language.
  5. A method according to any one of claims 3 and 4, wherein step (c) comprises selecting a virtual keyboard layout, among a set of virtual keyboard layouts displayable by the terminal (1) , as a function of the reference input language.
  6. A method according to any one of claims 1 to 5, further comprising a step of acquiring (d) a text being inputted by the user on a user interface (13) of the terminal (1) .
  7. A method according to claim 6, wherein step (d) comprises automatically translating the inputted text into the expected input language if the text is inputted in a different language from the expected input language.
  8. A method according to any one of claims 1 to 7, wherein the web page is that of a translation service, each text input box corresponding to a possible language in which a text to be translated may be inputted, the expected input language defined by the attribute being said possible language in which a text to be translated may be inputted.
  9. A method according to any one of claims 1 to 8, further comprising a step of detecting (e) that a user of the terminal (1) is no more focusing on said text input box or a new occurrence of step (a) .
  10. A method according to any one of claims 1 to 9, wherein said markup language is HyperText Markup Language, also referred as HTML.
  11. A method according to any one of claims 1 to 10, wherein detecting (a) that the user of the terminal (1) focuses on a text input box comprises detecting the selection of the text input box by the user on a user interface (13) of the terminal (1) .
  12. A terminal (1) comprising a processing unit (11) configured to:
    - when accessing a web page defined by a code in a markup language, detecting (a) that a user of the terminal (1) focuses on a text input box of said web page,
    - determining (b) that said code comprises an attribute defining an expected input language for the text input box; and
    - applying (c) said expected input language for inputting text into the text input box.
  13. A computer program product, comprising code instructions for executing a method according to any one of claims 1 to 11 for operating a terminal (1) when accessing a web page defined by a code in a markup language, when executed by a processing unit.
  14. A computer-readable medium, on which is stored a computer program product comprising code instructions for executing a method according to any one of claims 1 to 11 for operating a terminal (1) when accessing a web page defined by a code in a markup language.
PCT/CN2020/118295 2020-09-28 2020-09-28 Method for operating a terminal when accessing a web page defined by a code in a markup language WO2022061857A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2020/118295 WO2022061857A1 (en) 2020-09-28 2020-09-28 Method for operating a terminal when accessing a web page defined by a code in a markup language
PCT/IB2021/000685 WO2022064279A1 (en) 2020-09-28 2021-09-24 Method for operating a terminal when accessing a web page defined by a code in a markup language

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/118295 WO2022061857A1 (en) 2020-09-28 2020-09-28 Method for operating a terminal when accessing a web page defined by a code in a markup language

Publications (1)

Publication Number Publication Date
WO2022061857A1 true WO2022061857A1 (en) 2022-03-31

Family

ID=78709495

Family Applications (2)

Application Number Title Priority Date Filing Date
PCT/CN2020/118295 WO2022061857A1 (en) 2020-09-28 2020-09-28 Method for operating a terminal when accessing a web page defined by a code in a markup language
PCT/IB2021/000685 WO2022064279A1 (en) 2020-09-28 2021-09-24 Method for operating a terminal when accessing a web page defined by a code in a markup language

Family Applications After (1)

Application Number Title Priority Date Filing Date
PCT/IB2021/000685 WO2022064279A1 (en) 2020-09-28 2021-09-24 Method for operating a terminal when accessing a web page defined by a code in a markup language

Country Status (1)

Country Link
WO (2) WO2022061857A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895631A (en) * 2010-07-09 2010-11-24 深圳市五巨科技有限公司 Method, device and system for intelligently switching input method by mobile terminal
CN102436454A (en) * 2010-09-29 2012-05-02 腾讯科技(深圳)有限公司 Input method switching method and system of browser
US20120290287A1 (en) * 2011-05-13 2012-11-15 Vadim Fux Methods and systems for processing multi-language input on a mobile device
US20130024802A1 (en) * 2011-07-21 2013-01-24 International Business Machines Corporation Presetting input mode for input box
CN103714085A (en) * 2012-10-09 2014-04-09 东芝泰格信息系统(深圳)有限公司 Website design method with Chinese character inputting

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8667412B2 (en) * 2007-09-06 2014-03-04 Google Inc. Dynamic virtual input device configuration
US20110087962A1 (en) * 2009-10-14 2011-04-14 Qualcomm Incorporated Method and apparatus for the automatic predictive selection of input methods for web browsers
US9002699B2 (en) 2011-11-14 2015-04-07 Microsoft Technology Licensing, Llc Adaptive input language switching
KR101393794B1 (en) * 2012-08-17 2014-05-12 주식회사 팬택 Terminal and method for determining a type of input method editor
US20140092020A1 (en) * 2012-09-28 2014-04-03 Yaad Hadar Automatic assignment of keyboard languages

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895631A (en) * 2010-07-09 2010-11-24 深圳市五巨科技有限公司 Method, device and system for intelligently switching input method by mobile terminal
CN102436454A (en) * 2010-09-29 2012-05-02 腾讯科技(深圳)有限公司 Input method switching method and system of browser
US20120290287A1 (en) * 2011-05-13 2012-11-15 Vadim Fux Methods and systems for processing multi-language input on a mobile device
US20130024802A1 (en) * 2011-07-21 2013-01-24 International Business Machines Corporation Presetting input mode for input box
CN103714085A (en) * 2012-10-09 2014-04-09 东芝泰格信息系统(深圳)有限公司 Website design method with Chinese character inputting

Also Published As

Publication number Publication date
WO2022064279A1 (en) 2022-03-31

Similar Documents

Publication Publication Date Title
US20190251143A1 (en) Web page rendering method and related device
US20190220490A1 (en) Combining website characteristics in an automatically generated website
US20060173829A1 (en) Embedded translation-enhanced search
US20070214422A1 (en) Framework for implementing skins into a portal server
US20130283195A1 (en) Methods and apparatus for dynamically adapting a virtual keyboard
US9304990B2 (en) Translation of text into multiple languages
US20120072831A1 (en) Method for creating a multi-lingual web page
JP2010506304A (en) Display the original text along with the translation on the user interface
CN101706690A (en) Adaptive input method and adaptive input system
TW201013430A (en) Method and system for providing suggested tags associated with a target page for manipulation by a user
EP3316149A1 (en) Information acquiring method and apparatus, device, and computer storage medium
US10074104B2 (en) Content dynamically targetted according to context
US8370131B2 (en) Method and system for providing convenient dictionary services
US11550990B2 (en) Machine first approach for identifying accessibility, non-compliances, remediation techniques and fixing at run-time
KR20110041136A (en) System and method for processing auto scroll
US10303747B2 (en) Method, apparatus and system for controlling address input
KR20200034660A (en) Facilitated user interaction
Artail et al. Device-aware desktop web page transformation for rendering on handhelds
WO2022061857A1 (en) Method for operating a terminal when accessing a web page defined by a code in a markup language
KR20000039748A (en) Apparatus for translating web documents written in multi-languages and method for translating service using the apparatus
CN117389538A (en) Page component content development method, device, equipment and storage medium
US11520973B2 (en) Providing user-specific previews within text
US20090300494A1 (en) User assistance panel
US20150186363A1 (en) Search-Powered Language Usage Checks
KR100836023B1 (en) Method and mobile terminal for providing web-page by detecting key word

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20954708

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20954708

Country of ref document: EP

Kind code of ref document: A1