CN104166574A - Interface display method and system - Google Patents
Interface display method and system Download PDFInfo
- Publication number
- CN104166574A CN104166574A CN201410407402.3A CN201410407402A CN104166574A CN 104166574 A CN104166574 A CN 104166574A CN 201410407402 A CN201410407402 A CN 201410407402A CN 104166574 A CN104166574 A CN 104166574A
- Authority
- CN
- China
- Prior art keywords
- interface
- arabic
- language
- user
- character string
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
Abstract
The invention relates to an interface display method and system. The method comprises the following steps that the language of an interface selected by a user is obtained; whether the language of the interface is Arabic is judged, and if yes, content on the interface is displayed from right to left. According to the interface display method and system, the language of the interface is obtained in real time when the user selects the interface, whether the language of the interface is Arabic is judged, and if yes, the content on the interface is displayed from right to left, so that the reading habit of Arabic users is met, great convenience is brought to using of interfaces for users, Arabic users can conveniently use interfaces, and application and popularization of terminal products are greatly promoted.
Description
Technical field
The present invention relates to the communications field, relate in particular to a kind of interface display method and system.
Background technology
Along with scientific and technological development, various end products (for example Set Top Box, televisor, mobile phone etc.) are used widely, and user can use multiple terminal product.
For the user who makes each area and language can use end product, end product can provide multilingual interface for user conventionally, the speech selection interface needing according to oneself for user.Because the reading method of most of language is all from left to right, for example Chinese and English, so the demonstration at the current all interfaces of end product and reading method are from left to right substantially entirely.But, for Arabic, Arabic user's reading method is but from right to left, and the demonstration from left to right of end product interface brings great inconvenience just to Arabic user, be unfavorable for Arabic user's use, limited greatly applying of end product.
Summary of the invention
In view of this, be necessary to bring to Arabic user for above-mentioned interface display the problem of very big inconvenience, a kind of interface display method and system are provided.
The invention provides a kind of interface display method, comprise the steps:
S10: the language that obtains user-selected interface;
S20: whether the language that judges interface is Arabic, if Arabic shows interface according to mode from right to left.
The present invention also provides a kind of interface display system, comprising:
Interface languages acquiring unit, obtains the language at user-selected interface;
Interface display adjustment unit, judges whether the language at interface is Arabic, if Arabic shows interface according to mode from right to left.
Interface display method of the present invention and system, the language at Real-time Obtaining interface in the time of user selection interface, and judge whether whether interface is Arabic, if Arabic shows interface according to mode from right to left, adapt to Arabic user's reading habit, thereby have great convenience for the user to use, be beneficial to Arabic user's use, promoted greatly applying of end product.
Brief description of the drawings
Fig. 1 is the process flow diagram of an interface display method in embodiment;
Fig. 2 is the structural drawing of an interface display system in embodiment.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Fig. 1 is the process flow diagram of an interface display method in embodiment.As shown in Figure 1, the method comprises the steps:
S10: the language that obtains user-selected interface.
In the time that user uses end product, the interface of meeting speech selection corresponding language as required.Select behind required interface user, by the language at interface, interface is shown according to corresponding mode, to meet people's the reading method of different language.
In this embodiment, this step S10 is specially: convert the character string at interface to UTF16 coded system, after user selection interface, according to the encoded radio of second character of character string at selected interface, obtain the language at user-selected interface.First the character string at each interface is processed, converted the character string at interface to UTF16 coded system.The character string of different language is converted to after UTF16 coded system, and the character in different language character string can have different encoded radios.Can know that according to the encoded radio of character which kind of language this character and character string are.Consider that character string first character is likely null character (NUL), in which, judge that according to the encoded radio of second of character string character which kind of language is character string be, thus the language at the user-selected interface of Obtaining Accurate.
S20: whether the language that judges interface is Arabic, if Arabic shows interface according to mode from right to left.
Obtaining after the language at user-selected interface, need to judge the language at interface.Because the user's of Arabic reading method is for from right to left, and all interface display modes of most of end products are all for from left to right, and this bring very big inconvenience will to Arabic user.Therefore judge whether the language at interface is Arabic, if Arabic interface is shown according to mode from right to left, thereby meet Arabic user's demand.
In this embodiment, this step S20 is specially: according to the encoded radio of second of interface character string character, if encoded radio is greater than or equal to 0x0600 and is less than or equal to 0x06FF, to be judged to be current interface be Arabic, otherwise be judged as non-Arabic.The interval of the encoded radio of the character string by Arabic interface, judges whether current string is Arabic, and then judges whether current interface language is Arabic.
In further embodiment, step S20 is specially: if Arabic shows the character string at interface according to mode from right to left.Owing to can comprising multiple parts on interface, such as multiple display boxes etc., multiple parts are initially to arrange and show according to mode from left to right mostly, for Arabic user, parts mode from left to right arrange show also can make troubles, therefore further, step S20 also comprises: if Arabic shows the parts at interface according to mode from right to left.Concrete: arrange one and exchange attribute mark, if Arabic obtains the ordinate that parts are new, parts are exchanged according to new ordinate.Wherein obtain the ordinate that parts are new and use formula: Xnk=Wr-Xk-Wk obtains.Xnk is the ordinate that parts are new, and Wr is the width at interface, and Xk is the old ordinates of parts, and Wk is the width of parts.So both the character string at Arabic interface was shown according to mode from right to left, again the parts at Arabic interface are shown according to mode from right to left, interface all elements is all shown according to mode from right to left, thereby the use habit that has adapted to Arabic user completely, brings great convenience to user.
This interface display method, the language at Real-time Obtaining interface in the time of user selection interface, and judge whether whether interface is Arabic, if Arabic shows interface according to mode from right to left, adapt to Arabic user's reading habit, thereby have great convenience for the user to use, be beneficial to Arabic user's use, promoted greatly applying of end product.
Meanwhile, the present invention also provides a kind of interface display system.As shown in Figure 2, this system comprises:
Interface languages acquiring unit 100, obtains the language at user-selected interface.
In the time that user uses end product, the interface of meeting speech selection corresponding language as required.Select behind required interface user, by the language at interface, interface is shown according to corresponding mode, to meet people's the reading method of different language.
In this embodiment, interface languages acquiring unit 100 converts the character string at interface to UTF16 coded system, after user selection interface, according to the encoded radio of second character of character string at selected interface, obtains the language at user-selected interface.First the character string at each interface is processed, converted the character string at interface to UTF16 coded system.The character string of different language is converted to after UTF16 coded system, and the character in different language character string can have different encoded radios.Interface languages acquiring unit 100 can know that according to the encoded radio of character which kind of language this character and character string are.Consider that character string first character is likely null character (NUL), in which, interface languages acquiring unit 100 judges that according to the encoded radio of second of character string character which kind of language is character string be, thus the language at the user-selected interface of Obtaining Accurate.
Interface display adjustment unit 200, judges whether the language at interface is Arabic, if Arabic shows interface according to mode from right to left.
Obtaining after the language at user-selected interface, need to judge the language at interface.Because the user's of Arabic reading method is for from right to left, and all interface display modes of most of end products are all for from left to right, and this bring very big inconvenience will to Arabic user.Therefore interface display adjustment unit 200 will judge whether the language at interface is Arabic, if Arabic is adjusted into interface according to mode from right to left and shows, thereby meet Arabic user's demand.
In this embodiment, interface display adjustment unit 200 is according to the encoded radio of second of interface character string character, if encoded radio is greater than or equal to 0x0600 and is less than or equal to 0x06FF, to be judged to be current interface be Arabic, otherwise be judged as non-Arabic.Interface display adjustment unit 200, by the interval of the encoded radio of the character string at Arabic interface, judges whether current string is Arabic, and then judges whether current interface language is Arabic.
In further embodiment, if Arabic, 200 of interface display adjustment units show the character string at interface according to mode from right to left.Owing to can comprising multiple parts on interface, such as multiple display boxes etc., multiple parts are initially to arrange and show according to mode from left to right mostly, for Arabic user, parts mode from left to right arrange show also can make troubles, therefore further, if Arabic, 200 of interface display adjustment units show the parts at interface according to mode from right to left.Concrete: arrange one and exchange attribute mark, if Arabic, 200 of interface display adjustment units obtain the ordinate that parts are new, and parts are exchanged according to new ordinate.Wherein obtain the ordinate that parts are new and use formula: Xnk=Wr-Xk-Wk obtains.Xnk is the ordinate that parts are new, and Wr is the width at interface, and Xk is the old ordinates of parts, and Wk is the width of parts.So both the character string at Arabic interface was shown according to mode from right to left, again the parts at Arabic interface are shown according to mode from right to left, interface all elements is all shown according to mode from right to left, thereby the use habit that has adapted to Arabic user completely, brings great convenience to user.
This interface display system, the language at Real-time Obtaining interface in the time of user selection interface, and judge whether whether interface is Arabic, if Arabic shows interface according to mode from right to left, adapt to Arabic user's reading habit, thereby have great convenience for the user to use, be beneficial to Arabic user's use, promoted greatly applying of end product.
Interface display method of the present invention and system, the language at Real-time Obtaining interface in the time of user selection interface, and judge whether whether interface is Arabic, if Arabic shows interface according to mode from right to left, adapt to Arabic user's reading habit, thereby have great convenience for the user to use, be beneficial to Arabic user's use, promoted greatly applying of end product.
These are only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.
Claims (10)
1. an interface display method, is characterized in that, comprises the steps:
S10: the language that obtains user-selected interface;
S20: whether the language that judges interface is Arabic, if Arabic shows interface according to mode from right to left.
2. interface display method according to claim 1, it is characterized in that, described step S10 is specially: convert the character string at interface to UTF16 coded system, after user selection interface, according to the encoded radio of second character of character string at selected interface, obtain the language at user-selected interface.
3. interface display method according to claim 2, it is characterized in that, described step S20 is specially: according to the encoded radio of second of interface character string character, if encoded radio is greater than or equal to 0x0600 and is less than or equal to 0x06FF, to be judged to be current interface be Arabic, otherwise be judged as non-Arabic.
4. interface display method according to claim 1, is characterized in that, described step S20 is specially: if Arabic shows the character string at interface according to mode from right to left.
5. according to the arbitrary described interface display method of claim 1 to 4, it is characterized in that, described step S20 is specially: if Arabic shows the parts at interface according to mode from right to left.
6. an interface display system, is characterized in that, comprising:
Interface languages acquiring unit, obtains the language at user-selected interface;
Interface display adjustment unit, judges whether the language at interface is Arabic, if Arabic shows interface according to mode from right to left.
7. interface display system according to claim 6, it is characterized in that, described interface languages acquiring unit converts the character string at interface to UTF16 coded system, after user selection interface, according to the encoded radio of second character of character string at selected interface, obtain the language at user-selected interface.
8. interface display system according to claim 7, it is characterized in that, described interface display adjustment unit is according to the encoded radio of second of interface character string character, if encoded radio is greater than or equal to 0x0600 and is less than or equal to 0x06FF, to be judged to be current interface be Arabic, otherwise be judged as non-Arabic.
9. interface display system according to claim 6, is characterized in that, if Arabic, described interface display adjustment unit shows the character string at interface according to mode from right to left.
10. according to the arbitrary described interface display system of claim 6 to 9, it is characterized in that, if Arabic, described interface display adjustment unit shows the parts at interface according to mode from right to left.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410407402.3A CN104166574A (en) | 2014-08-18 | 2014-08-18 | Interface display method and system |
PCT/CN2015/085698 WO2016026379A1 (en) | 2014-08-18 | 2015-07-31 | Interface display method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410407402.3A CN104166574A (en) | 2014-08-18 | 2014-08-18 | Interface display method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104166574A true CN104166574A (en) | 2014-11-26 |
Family
ID=51910408
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410407402.3A Pending CN104166574A (en) | 2014-08-18 | 2014-08-18 | Interface display method and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104166574A (en) |
WO (1) | WO2016026379A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016026379A1 (en) * | 2014-08-18 | 2016-02-25 | 深圳市九洲电器有限公司 | Interface display method and system |
CN106095437A (en) * | 2016-06-12 | 2016-11-09 | 青岛海信电器股份有限公司 | The implementation method of the layout type of user interface RTL from right to left and device |
CN107850988A (en) * | 2015-07-15 | 2018-03-27 | 三菱电机株式会社 | Display control unit and display control method |
CN110609980A (en) * | 2019-08-15 | 2019-12-24 | 崔晓珂 | Arabic display method |
CN111124481A (en) * | 2019-12-24 | 2020-05-08 | 广州市百果园信息技术有限公司 | Installation package generation method and device of webpage application program, storage medium and equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101114225A (en) * | 2007-08-28 | 2008-01-30 | 中国科学院软件研究所 | Multiple language self-adapting method of graphical user interface |
CN101441619A (en) * | 2007-11-22 | 2009-05-27 | 国际商业机器公司 | Method and device for improving user experience of reading BiDi document |
CN101526856A (en) * | 2009-02-17 | 2009-09-09 | 广东国笔科技股份有限公司 | Arabic input system and Arabic input method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100478884C (en) * | 2007-05-11 | 2009-04-15 | 华为技术有限公司 | Interface layout changing method and interface display controller |
CN100561468C (en) * | 2007-10-08 | 2009-11-18 | 北大方正集团有限公司 | A kind of method and device that shows the dimension literary composition |
CN104166574A (en) * | 2014-08-18 | 2014-11-26 | 深圳市九洲电器有限公司 | Interface display method and system |
-
2014
- 2014-08-18 CN CN201410407402.3A patent/CN104166574A/en active Pending
-
2015
- 2015-07-31 WO PCT/CN2015/085698 patent/WO2016026379A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101114225A (en) * | 2007-08-28 | 2008-01-30 | 中国科学院软件研究所 | Multiple language self-adapting method of graphical user interface |
CN101441619A (en) * | 2007-11-22 | 2009-05-27 | 国际商业机器公司 | Method and device for improving user experience of reading BiDi document |
CN101526856A (en) * | 2009-02-17 | 2009-09-09 | 广东国笔科技股份有限公司 | Arabic input system and Arabic input method |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016026379A1 (en) * | 2014-08-18 | 2016-02-25 | 深圳市九洲电器有限公司 | Interface display method and system |
CN107850988A (en) * | 2015-07-15 | 2018-03-27 | 三菱电机株式会社 | Display control unit and display control method |
CN107850988B (en) * | 2015-07-15 | 2020-11-10 | 三菱电机株式会社 | Display control device and display control method |
CN106095437A (en) * | 2016-06-12 | 2016-11-09 | 青岛海信电器股份有限公司 | The implementation method of the layout type of user interface RTL from right to left and device |
CN110609980A (en) * | 2019-08-15 | 2019-12-24 | 崔晓珂 | Arabic display method |
CN110609980B (en) * | 2019-08-15 | 2023-03-14 | 崔晓珂 | Arabic display method |
CN111124481A (en) * | 2019-12-24 | 2020-05-08 | 广州市百果园信息技术有限公司 | Installation package generation method and device of webpage application program, storage medium and equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2016026379A1 (en) | 2016-02-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104166574A (en) | Interface display method and system | |
EP3537277A1 (en) | Screen capturing method and system for electronic device, and electronic device | |
CN104123940A (en) | Voice control system and method based on intelligent home system | |
CN103942705A (en) | Advertisement classified match pushing method and system based on human face recognition | |
CN102930263A (en) | Information processing method and device | |
CN103945129A (en) | Photographing-preview picture composition instruction method and system based on mobile terminal | |
US9600467B2 (en) | Display apparatus and character correcting method thereof | |
CN102664009B (en) | System and method for implementing voice control over video playing device through mobile communication terminal | |
WO2009144740A3 (en) | Method and system for obtaining autographed photograph via a mobile communication network | |
MY192807A (en) | A method, device and system for message response | |
CN103336788A (en) | Humanoid robot added Internet information acquisition method and system | |
MY185876A (en) | Webpage translation system, webpage translation apparatus, webpage providing apparatus, and webpage translation method | |
KR20120005631U (en) | Cosmetics expiry date indication and A makeup coordination function for Mobile communications terminal | |
CN111240669A (en) | Interface generation method and device, electronic equipment and computer storage medium | |
MY191563A (en) | Method, apparatus, and system for generating resource value transfer request, and a storage medium | |
WO2015143114A1 (en) | Sign language translation apparatus with smart glasses as display featuring a camera and optionally a microphone | |
CN104978045B (en) | A kind of Chinese character input method and device | |
CN104679737A (en) | Text message translational processing method on basis of mobile terminal and mobile terminal | |
CN103618958A (en) | Method and device for inputting text information to television | |
CN103870008A (en) | Method and device for output and input of Braille characters on touch screen | |
CN105786367A (en) | Virtual desktop display method and terminal | |
CN105302812A (en) | Image information processing method and apparatus | |
CN103188543A (en) | Remote control method and device | |
US10877641B2 (en) | Image adjustment method, apparatus, device and computer readable storage medium | |
CN104936015A (en) | Set top box language control method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20141126 |