CN106919540B - Text display method, system and device - Google Patents

Text display method, system and device Download PDF

Info

Publication number
CN106919540B
CN106919540B CN201610623850.6A CN201610623850A CN106919540B CN 106919540 B CN106919540 B CN 106919540B CN 201610623850 A CN201610623850 A CN 201610623850A CN 106919540 B CN106919540 B CN 106919540B
Authority
CN
China
Prior art keywords
text
target
type
client
input
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.)
Active
Application number
CN201610623850.6A
Other languages
Chinese (zh)
Other versions
CN106919540A (en
Inventor
童骏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Advanced New Technologies Co Ltd
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 Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201610623850.6A priority Critical patent/CN106919540B/en
Publication of CN106919540A publication Critical patent/CN106919540A/en
Application granted granted Critical
Publication of CN106919540B publication Critical patent/CN106919540B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing

Abstract

The invention provides a method, a system and a device for displaying a text, wherein the method comprises the following steps of identifying the input text through a first client to determine the target type of the text, wherein the type of the text comprises the following steps: the method comprises the steps that a user manually inputs a type and a non-manual type, a first client sends a text and a target type of the text to a server, the server sends the text and the target type to a second client, and the second client can display according to a first target display mode corresponding to the target type. In the embodiment, the type of the text can be automatically identified, the text is displayed according to the display mode corresponding to the target type of the text, and the user can intuitively distinguish the texts of different types because the display modes of the texts of different types are different.

Description

Text display method, system and device
Technical Field
The invention belongs to the text display technology in the communication field, and particularly relates to a text display method, system and device.
Background
The client generally installs instant messaging tools, and a user chats with other users through the instant messaging tools, and in the process of chatting, the user can input texts in the same dialog box, wherein the input texts can be texts manually input by the user or texts copied by the user through means of copying, pasting and the like.
In practical application, a user may be required to distinguish whether text is manually input or not, but existing instant messaging tools cannot automatically determine whether text input in a dialog box by the user is text manually input or not manually input by the user.
Disclosure of Invention
The invention provides a text display method, a text display system and a text display device, which are used for solving the problem that the text input by a user cannot be automatically determined to be manually input or not manually input in the existing communication tool.
In order to achieve the above object, the present invention provides a method for displaying a text, comprising:
the first client identifies input text to determine a target type of the text, wherein the type of the text comprises: a user manually inputting type and a non-manual inputting type;
the first client sends the text and the target type to a server;
the server sends the text and the target type to a second client;
and the second client displays the text according to a first target display mode corresponding to the target type.
In order to achieve the above object, the present invention provides another text display method, including:
recognizing input text to determine a target type of the text; wherein the types of text include: a user manually inputting type and a non-manual inputting type;
and sending the text and the target type to a server so that the server sends the text and the target type to an opposite-end client.
In order to achieve the above object, the present invention provides another text display method, including:
receiving a text sent by a server and a target type of the text; wherein the types of text include: a user manually inputting type and a non-manual inputting type;
and displaying the text according to a target mode corresponding to the target type.
In order to achieve the above object, the present invention provides a display system of a text, comprising:
the system comprises a first client, a server and a second client, wherein the first client is used for identifying input texts to determine target types of the texts and sending the texts and the target types to the server; wherein the types of text include: a user manually inputting type and a non-manual inputting type;
the server is used for receiving the text and the target type and sending the text and the target type to a second client;
and the second client is used for receiving the text and the target type and displaying the text according to a second target display mode corresponding to the target type.
In order to achieve the above object, the present invention provides a display device of a text, comprising:
the recognition module is used for recognizing the input text to determine the target type of the text; wherein the types of text include: a user manually inputting type and a non-manual inputting type;
and the sending module is used for sending the text and the target type to a server so that the server sends the text and the target type to an opposite-end client.
In order to achieve the above object, the present invention provides another text display device, including:
the receiving module is used for receiving the text sent by the server and the target type of the text; wherein the types of text include: a user manually inputting type and a non-manual inputting type;
and the display module is used for displaying the text according to the target mode corresponding to the target type.
The method, the system and the device for displaying the text provided by the invention identify the input text through the first client to determine the target type of the text, wherein the type of the text comprises the following steps: the method comprises the steps that a user manually inputs a type and a non-manual type, a first client sends a text and a target type of the text to a server, the server sends the text and the target type to a second client, and the second client can display according to a first target display mode corresponding to the target type. In the embodiment, the type of the text can be automatically identified, the text is displayed according to the display mode corresponding to the target type of the text, and the user can intuitively distinguish the texts of different types because the display modes of the texts of different types are different.
Drawings
Fig. 1 is a schematic flowchart of a text display method according to an embodiment of the present invention;
FIG. 2 is a schematic illustration of a prior art text display;
FIG. 3 is a diagram illustrating a text display according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a text display method according to a second embodiment of the present invention;
fig. 5 is a flowchart illustrating a text display method according to a third embodiment of the present invention;
fig. 6 is a flowchart illustrating a text display method according to a fourth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a text display system according to a fifth embodiment of the present invention;
fig. 8 is a schematic structural diagram of a text display device according to a sixth embodiment of the present invention;
fig. 9 is a schematic structural diagram of a text display device according to a seventh embodiment of the present invention;
fig. 10 is a schematic structural diagram of a text display device according to an eighth embodiment of the present invention.
Detailed Description
The following describes a text display method, system and apparatus according to an embodiment of the present invention in detail with reference to the accompanying drawings.
Example one
Fig. 1 is a schematic flow chart of a text display method according to an embodiment of the present invention. The text display method comprises the following steps:
s101, the first client identifies the input text to determine the target type of the text.
Wherein the types of text include: a user manual entry type and a non-manual entry type.
Currently, users follow some instant communication tools or software on their clients and then talk or chat with other users through the communication tools or software. In this embodiment, a user installs an instant messaging tool on a first client, and the user inputs chat content, i.e., text, in a dialog box provided by the instant messaging tool through the first client.
In practical application, a user can manually enter a text in a dialog box by clicking a keyboard and the like, and can also enter the text in the dialog box by copying, pasting, cutting, pasting and the like. In this embodiment, the first client may identify a target type of a text input by a user to determine the target type of the text. The text type comprises a user manual entry type and a non-manual entry type.
Specifically, the first client may identify a target type of the text according to a source of the text, where the source of the text includes: a keyboard and a clipboard. When the text originates from a keyboard, i.e. the text is text entered by the user by typing on the keyboard, the text may be identified as entered text of the type manually entered by the user. When the text comes from the clipboard, the text may be recognized as text copied by the copy-and-paste instruction, at which time the text may be recognized as a non-manual entry type of copied text.
Optionally, the first client may monitor an operation of an input device that is inputting a text, and identify a target type corresponding to the text according to the monitored operation of the input device. And when the monitored operation instruction of the input device is manual entry of the text, identifying the text as an entry text of a type manually entered by the user. When the monitored operation of the input device indicates that the text is pasted, the text is identified as copied text of a non-manual entry type.
Optionally, the target type of the text is identified according to the monitored input text amount in the unit time and a preset threshold. And when the input word amount does not exceed the threshold value, identifying the text as an input text of a manual input type of the user, and when the input word amount exceeds the threshold value, identifying the text as a copied text of a non-manual input type.
S102, the first client sends the text and the target type to a server.
S103, the server sends the text and the target type to the second client.
The first client side sends the text and the target type to the server after recognizing the target type of the text, and the server sends the text and the target type to the second client side after receiving the text and the target type. Here, it should be noted that the second client is at least one client. When a user chats with a plurality of other user groups, the server needs to send the text and the target type to a plurality of second clients at the same time. And when the user chats with one user in a private mode, the server only needs to send the text and the target type to a second client of the private chat user.
And S104, the second client displays the text according to the first target display mode corresponding to the target type.
In this embodiment, the user may set different display modes for different text types in advance on the client of the user. The second client receives the text and the target type sent by the server, then obtains a first target display mode corresponding to the target type according to the target type of the text, and displays the text by using the first target display mode. For example, the display mode corresponding to the copied text input by the user through the copy mode may be: in a default display mode, a background color is added for the display of the copied text. The display mode corresponding to the entered text manually input by the user may be a default display mode. In this embodiment, because there may be a difference in display mode between different types of text, the user can distinguish different types of text more intuitively.
For example, in a chat scenario using an instant messaging tool, as shown in fig. 2, it is a schematic diagram of a text display in a dialog box in an existing instant messaging tool. In fig. 2 the copied text and the entered text are displayed in the same display mode.
The contents of the copied text in fig. 2 are as follows:
"many developers that I know sell suddenly pervade the old because their discs sell too quickly and completely. "marketing of one property always tells bang.
Marketing of the buildings is always abused by industry as 'roast ducks on stoves', namely the fire is weak and the ducks are half-grown and unripe; if the fire is vigorous, the fire is very easy to burn. That is to say, in the Shanghai, when one floor marketing is always in fact difficult, namely, the house is sold too fast, the old board price is set to be low, the high-quality asset is sold by the base, and the face is pulled down to allow people to walk when the old board marketing is possibly serious; but the house with high price may not be approved by the trading center, which may cause the building to miss the market.
You cannot be confident about the fact that "price is high and cannot pass". The real estate of true call and handsome refers to the explosive material, and the expensive new building in Shanghai part does not pass price examination.
In fact, when korea is met with korea economic and assistant general and financial department of planning and planning, long willow and one line, it is said that the commodity house is a special commodity, which needs to pay high attention all the time, issues comprehensive and objective authority information in time, maintains market order, stabilizes market expectation, and meets the basic housing requirements of the masses. "
It is also popular in the industry to: the Shanghai is seeking real estate experts opinions and developing new regulation and control policies. The public number 'melt 360' is disclosed, and people who have the retail department of Shanghai branch in the bankroll system of shares say that according to the situation of Shanghai building City at present, the qualification of the loan officer can be more strictly examined, and the improvement of the first payment proportion is being considered. "
The content of the entered text in fig. 2 is as follows:
recent signs also indicate that the Shanghai will have new policies for the regulation of the building and the city.
As shown in fig. 3, it is a schematic diagram of text display corresponding to the text display method provided in this embodiment. As can be seen from fig. 3, when the copied text is displayed, a background color is added to the copied text in the default display mode for the copied text, wherein the background color is gray, but no background color is added to the entered text, and the entered text is still displayed according to the default display mode.
Compared with the prior art, the method and the device can automatically identify the types of the texts, the texts of different types correspond to different labels, and the different labels correspond to different display modes, so that the display modes of the texts of different types can be different, and a user can distinguish the texts of different types more intuitively. In practical application, the content manually input by a general user, namely the input text, is evaluated or supplemented to the copied content, and the problem of confusion between the copied content and the manually input content of the user can be solved through the differential display.
Further, after recognizing the target type of the text, the first client may obtain a second target display mode corresponding to the target type stored on the first client, and the text may be displayed on the first client according to the second target display mode.
In order to ensure that the first client and the second client adopt the uniform display mode, the first client can send the text and the target type to the server, meanwhile, the first client can send the second target display mode to the second client through the server, and the second client can display the text according to the second target display mode, so that the two clients can display the text in the uniform display mode.
In the text display method provided by the embodiment of the invention, the first client automatically identifies the target type of the text, the text and the target type are sent to the server, the server sends the text and the target type to the second client, and the second client displays the text according to the first target display mode corresponding to the target type.
Example two
Fig. 4 is a schematic flow chart of a text display method according to a second embodiment of the present invention. The text display method comprises the following steps:
s201, recognizing the input text to determine the target type of the text.
Wherein the types of text include: a user manual entry type and a non-manual entry type.
In this embodiment, the execution subject may be the first client, and when the user inputs a text in the first client, the first client may automatically recognize a target type of the text input by the user. Specifically, the target type of the text is identified according to the source of the text. Wherein different sources correspond to different text types. Sources of text may include: a keyboard and a clipboard.
When the text comes from a keyboard, i.e., the text is the text entered by the user through keyboard typing, the text may be recognized as the entered text of the type manually entered by the user. When the text comes from the clipboard, the text may be recognized as text copied by the copy-and-paste instruction, at which time the text may be recognized as a non-manual entry type of copied text.
In practical applications, the text cached on the clipboard is generally copied from a web page, or copied from other text storage media, such as copied from a word in some storage devices.
Optionally, the local client may monitor an operation of an input device that is inputting a text, and identify a target type corresponding to the text according to the monitored operation of the input device.
In this embodiment, the input device may include a keyboard, a mouse, a microphone, and the like. The current keyboard is provided with a number of shortcut keys for operating commands, for example, the shortcut key for cutting the command is Ctrl + X, the shortcut key for copying the command is Ctrl + C, and the shortcut key for pasting is Ctrl + V. The operation of the shortcut keys can be monitored during the monitoring of the input device, the keyboard.
Accordingly, when a user inputs text through the keyboard, corresponding characters can be generated among keys on the keyboard through combination, and finally the text which the user wants to input is formed, which is the process of manually inputting the text by the user. The local client can monitor the input operation of a user manually inputting a text by using a keyboard in the process of monitoring the keyboard. When the input device is a keyboard, when the monitored operation of the keyboard is Ctrl + V shortcut key, Ctrl + C, and Ctrl + X, it indicates that the user inputs the selected text to the position specified by the user in a copy-paste or cut-paste manner, so that the currently input text can be recognized as a copy text. And when the monitored keyboard operation is an entry operation which combines keys on the keyboard to generate a text formed by characters, the text which is attempted to be input currently is the entry text.
Currently, a menu bar can be displayed by clicking a right mouse button, and then a copy, cut, or paste command is selected in the menu bar. In the process of monitoring the input device of the mouse, the operations of the mouse by the user can be monitored. When the input device is a mouse, when the monitored operation of the mouse is an operation of generating commands such as copy, cut or paste by clicking, the user is explained to input the selected text to the position designated by the user in a copy paste or cut paste mode, so that the currently input text can be recognized as a copy text. And when the monitored mouse operation is an entry operation for generating a text formed by characters by continuously clicking keys on the virtual keyboard for combination, the text currently input by the user is indicated as the entry text.
Currently, a user may also use a mouse to click a virtual keyboard displayed on a display screen to manually enter a text desired to be input, specifically, the user continuously clicks the mouse to combine keys on the virtual keyboard, so as to generate the text desired to be input by the user. Correspondingly, in the process of monitoring by the mouse, the fact that the user continuously clicks the virtual keyboard through the mouse can be monitored, and the input operation for manually inputting the text is carried out.
At present, a user can input text through a microphone, the microphone can collect voice of the user, collected voice content is converted into text, and the text can be displayed to the user in a text form after the text is converted. In this embodiment, the microphone as an input device may be monitored, and in the process of monitoring the microphone, when a user clicks and opens the microphone in a text inputting process, it is described that the user tries to input text through the microphone, which is equivalent to monitoring an operation of inputting text through the microphone by the user.
In this embodiment, after the operation of the input device is monitored, the target type corresponding to the text may be identified according to the monitored operation of the input device. And when the monitored operation instruction of the input equipment is to paste the text, identifying the text as a copied text. And when the operation instruction of the keyboard is monitored to be manual entry of the text, the text can be identified as the entry text.
When the input device is a microphone, when the input operation that the user inputs the text through the microphone is monitored, the text currently input by the user is the input text.
Optionally, the target type of the text is identified according to the monitored input text amount in the unit time and a preset threshold. Specifically, the amount of input text per unit time is compared with a preset threshold, and when the amount of input text per unit time exceeds the preset threshold, the text is recognized as a copied text, and when the amount of input text per unit time does not exceed the preset threshold, the text is recognized as an entered text manually entered by the user.
In this embodiment, the threshold may be calculated according to an input speed of a user manually inputting a text within a period of time. Specifically, the input speed of manually inputting a text by a user within a period of time is collected, all the collected input speeds are used as sample data, and a preset text amount threshold value is calculated according to the collected sample. Specifically, the abnormal samples in the sample data are removed to obtain the remaining sample data, then the arithmetic mean of the remaining sample data is calculated, and the arithmetic mean is used as a preset text amount threshold. For example, one standard deviation σ and the arithmetic mean μ of all sample data are acquired based on a standard deviation formula, a normal distribution graph of the sample data is acquired by using the standard deviation σ and the arithmetic mean μ, the sample data falling outside (μ -3 σ, μ +3 σ) is taken as an abnormal sample, the abnormal sample is removed, the residual sample data is obtained, then the arithmetic mean of the residual sample data is calculated, and the arithmetic mean is taken as a preset character size threshold.
S202, the text and the target type are sent to a server, so that the server sends the text and the target type to an opposite-end client to display the text.
After the target type of the text is identified, the local client sends the text and the target type to the server, so that the server sends the text and the target type to the opposite-end client for text display. In this embodiment, different display modes are set for different text types in advance, after the target type of the text is identified, the first client may display according to the target display mode corresponding to the target type, correspondingly, different display modes are also set for different text types on the peer client, and after the text and the target type sent by the server are received, the peer client may display according to the display mode corresponding to the target type.
The text display method provided by the embodiment of the invention identifies the input text, determines the target type of the text, and sends the text and the target type to the server, so that the server sends the text and the target type to the opposite-end client for display. In the embodiment, the target type of the text can be automatically identified, so that the user is not relied to manually distinguish different types of texts, the operation is convenient and fast, and the time is saved.
EXAMPLE III
Fig. 5 is a schematic flow chart illustrating a text display method according to a third embodiment of the present invention. The text display method comprises the following steps:
s301, recognizing the input text to determine the target type of the text.
Wherein the types of text include: a user manual entry type and a non-manual entry type.
In this embodiment, the execution subject may be the first client, and when the user inputs text on the first client, the first client may automatically recognize the target type of the text input by the user. Preferably, the first client identifies the target type of the text based on the source of the text. Wherein different sources correspond to different text types. Sources of text may include: a keyboard and a clipboard.
For a specific process of identifying the target type of the text according to the source of the text, reference may be made to the description of the related contents in the above embodiment, and details are not repeated here.
Optionally, the first client monitors an operation corresponding to an input device that is inputting a text, and identifies a target type corresponding to the text according to the monitored operation of the input device.
For the process of monitoring the operation corresponding to the input device that is inputting the text and identifying the target type corresponding to the text according to the monitored operation of the input device, reference may be made to the description of relevant contents in the above embodiment one, and details are not described here.
Optionally, the first client identifies the target type of the text according to the monitored input text amount in the unit time and a preset threshold.
For the process of identifying the target type of the text according to the monitored amount of the input text in the unit time and the preset threshold, reference may be made to the description of the relevant contents in the first embodiment, and details are not repeated here.
S302, acquiring a target label corresponding to the target type of the text.
After recognizing the target type of the text, the first client may obtain a target label corresponding to the target type. For example, a mapping relationship between a type and a label may be pre-established, and after a target type is obtained, the mapping relationship is queried according to the target type, so that a target label corresponding to the target type may be obtained.
And S303, labeling the text by using the target label.
In this embodiment, different labels are set for texts of different text types in advance, and after the target type of the text is identified, the first client may label the text according to the target label corresponding to the target type. Preferably, the first client can add a customized identifier for the texts of different text types, and label the texts of different types through different identifiers. For example, the identification of the copied text is "text 1" and the identification of the entered text is "text 2". In this embodiment, an identifier of "text 1" may be added to both the first text and the third text, and an identifier of "text 2" may be added to the second text.
And S304, displaying the text according to the target display mode corresponding to the target type.
In this embodiment, different display modes are set for different text types in advance, after the target type of the text is obtained, the first client may obtain the target display mode corresponding to the target type, and after the target display mode is obtained, the text may be displayed according to the target display mode.
For example, the display mode corresponding to the copied text input by the user through the copy mode may be: in a default display mode, a background color is added for the display of the copied text. The display mode corresponding to the entered text manually input by the user may be a default display mode.
Alternatively, the "background color is added to the copied text in the default display mode" is used as a parameter, and after the text is determined to be the copied text, the parameter may be used as an attribute of the text. Accordingly, the user may also remove the parameter, i.e., the attribute "copy text adds background color", through the first client.
S305, the text and the target type are sent to the server, so that the server sends the text and the target type to the opposite-end client to display the text.
In this embodiment, in order to implement instant messaging between the first client and the second client, that is, the peer client, the local client may send the text and the target type to the server, so that the server sends the text and the target type to the peer client for text display.
Further, in order to ensure that the first client and the second client, namely the peer client, adopt a unified display mode, the first client can send the text and the target type to the server, and at the same time, the first client can send the target display mode to the peer client through the server, and the peer client can display the text according to the target display mode, so that the two clients can display the text in the unified display mode.
S306, the target label is sent to the server, so that the server sends the target label to the opposite-end client to label the text.
In this embodiment, the first client may also send the target label to the server synchronously while sending the text and the target type, so that the server sends the target label to the peer client, and after receiving the target label, the peer client may label the text with the target label.
And S307, receiving an adjusting command for adjusting the target display mode.
After the text is displayed according to the target display mode, the first client may further receive an adjustment command sent by the user to adjust the target display mode, where the adjustment command may be a deletion command to delete the target display mode or a modification command to modify the target display mode.
And S308, adjusting the target display mode according to the adjusting command.
After receiving the adjustment command, the first client may perform corresponding adjustment on the target display mode according to the content of the adjustment command. For example, when the content of the adjustment command is the deletion target display mode, the current target display mode of the text is deleted, and after the target display mode of the text is deleted, the text may be displayed in the default display mode. When the content of the adjustment command is to modify the target display mode, the current target display mode may be modified according to the adjustment command. For example, the current target display mode is a red font, and the current target display mode can be modified by an adjustment command for better display effect, such as adding a bold font on a red basis, or modifying the red font to be highlighted.
And S309, displaying the text by using the adjusted target display mode.
And after the current target display mode of the text is adjusted according to the adjustment command, the first client displays the text by using the adjusted target display mode.
Further, the first client may also send the adjusted target display mode to the server, so that the server sends the adjusted target display mode to the opposite-end client, and the opposite-end client may display the text according to the adjusted target display mode after receiving the adjusted target display mode.
According to the text display method provided by the embodiment of the invention, the target type of the text is determined by identifying the input text, and the text and the target type are sent to the server, so that the server sends the text and the target type to the opposite-end client for text display. In this embodiment, not only can the target type of the text be automatically identified, but also the text is displayed according to the display mode corresponding to the target type, and because the display modes of different types of texts are different, the user can distinguish different types of texts more intuitively. And the text is labeled according to the target type of the text, so that the user is not relied to manually distinguish and label different types of texts, the operation is convenient and fast, and the time is saved. Furthermore, the display mode can be adjusted, the flexibility is good, and the user experience is good.
Example four
Fig. 6 is a schematic flow chart illustrating a text display method according to a fourth embodiment of the present invention. The text display method comprises the following steps:
s401, receiving the text sent by the server and the target type of the text.
In this embodiment, the execution subject is the second client, and the other client that performs communication with the second client is the first client, and the first client is the opposite client with respect to the user on the second client side. Firstly, a user corresponding to a first client is required to input a text on the first client, and the first client can recognize a target type of the text. For the description of the target type of the first client recognition text, reference may be made to the description of relevant contents in the foregoing embodiments, and details are not described here. Wherein the types of text include: a user manual entry type and a non-manual entry type. And after recognizing the text and the target type, the first client sends the text and the target type to the server. The second client may receive the text sent by the server and the target type of the text.
S402, displaying the text according to the target mode corresponding to the target type.
In this embodiment, different display modes are set for different text types in advance. And after receiving the text and the target type, the second client acquires a target display mode corresponding to the target type, and then displays the text according to the target display mode.
Further, the second client may also receive a target annotation sent by the server, where the target annotation corresponds to the target type and is synchronously sent to the server by the first client when sending the text and the target type. And after receiving the target label, the second client can label the text by using the target label. For the setting of the annotation, reference may be made to the description of the related content in the above embodiments, and details are not described here.
Further, in order to realize that the first client and the second client display the text in a uniform display mode, the second client may also receive a first target display mode sent by the server while receiving the text and the target type, where the first target display mode is a display mode corresponding to the target type set in the first client, i.e., the peer client. And after receiving the first target display mode sent by the server, the second client displays the text according to the first target display mode.
Further, after the user corresponding to the first client attempts to adjust the first target display mode, in order to ensure that the second client simultaneously adjusts the display modes, in this embodiment, the second client may receive the adjusted first target display mode sent by the server, and then display the text according to the adjusted first target display mode.
The text display method provided by the embodiment of the invention receives the text sent by the server and the target type of the text, and displays the text according to the target display mode corresponding to the target type. In this embodiment, the text is displayed according to the display mode corresponding to the target type, and because the display modes of different types of texts are different, the user can distinguish different types of texts more intuitively. And the text is labeled according to the target type of the text, so that the user is not relied to manually distinguish and label different types of texts, the operation is convenient and fast, and the time is saved. Furthermore, the display mode can be adjusted, the flexibility is good, and the user experience is good.
EXAMPLE five
Fig. 7 is a schematic structural diagram of a text display system according to a fifth embodiment of the present invention. The display system of the text comprises: a first client 1, a server 2 and a second client 3.
The first client 1 is used for recognizing the input text to determine the target type of the text, and sending the text and the target type to the server 2.
Wherein the types of text include: a user manually inputting type and a non-manual inputting type;
and the server 2 is used for receiving the text and the target type and sending the text and the target type to the second client 3.
And the second client 3 is used for receiving the text and the target type and displaying the text according to a second target display mode corresponding to the target type.
Further, the first client 1 is further configured to obtain a target label corresponding to the target type according to a preset mapping relationship between the label and the type, label the text with the target label, and send the target label to the server 2.
The server 2 is further configured to receive the target label, and send the target label to the second client 3.
The second client 3 is further configured to receive the target label, and label the text with the target label.
Further, the first client 1 is further configured to display the text according to a first target display mode corresponding to the target type.
Further, the first client 1 is further configured to send the first target display mode to the server 2.
The server 2 is further configured to receive the first target display mode and send the first target display mode to the second client 3.
The second client 3 is further configured to receive the first target display mode, and display the text according to the first target display mode.
The text display system provided in this embodiment may be used to execute the process of the text display method shown in fig. 1, fig. 4 to fig. 6, and specific working principles thereof are not described again, for details, see description of method embodiments.
In the text display system provided by the embodiment of the invention, the first client automatically identifies the target type of the text and sends the text and the target type to the server, the server sends the text and the target type to the second client, and the second client displays the text according to the first target display mode corresponding to the target type.
EXAMPLE six
Fig. 8 is a schematic structural diagram of a text display device according to a sixth embodiment of the present invention. The display device of the text comprises: an identification module 11 and a sending module 12.
The recognition module 11 is configured to recognize the input text to determine a target type of the text. Wherein the types of text include: a user manual entry type and a non-manual entry type.
And the sending module 12 is configured to send the text and the target type to the server, so that the server sends the text and the target type to the peer client for text display.
In this embodiment, when the user inputs a text on the corresponding client, the recognition module 11 may automatically recognize the target type of the text input by the user. Preferably, the recognition module 11 recognizes the target type of the text according to the source of the text. Wherein different sources correspond to different text types. Sources of text may include: a keyboard and a clipboard.
For a specific process of identifying the target type of the text according to the source of the text, reference may be made to the description of the related contents in the above embodiment, and details are not repeated here.
Optionally, the recognition module 11 monitors an operation corresponding to an input device that is inputting a text, and recognizes a target type corresponding to the text according to the monitored operation of the input device.
For the process of monitoring the operation corresponding to the input device that is inputting the text and identifying the type corresponding to the text according to the monitored operation of the input device, reference may be made to the description of relevant contents in the above embodiment one, and details are not described here.
Optionally, the identification module 11 identifies the target type of the text according to the monitored input text amount in the unit time and a preset threshold.
For the description of identifying the target type of the text according to the monitored input word amount in the unit time and the preset threshold, reference may be made to the description of the relevant contents in the above embodiments, and details are not repeated here.
The text display apparatus provided in this embodiment may be used to execute the process of the text display method shown in fig. 4, and specific working principles thereof are not described again, for details, see the description of the method embodiment.
The text display device provided by the embodiment of the invention identifies the input text, determines the target type of the text, and sends the text and the target type to the server, so that the server sends the text and the target type to the opposite-end client for display. In the embodiment, the target type of the text can be automatically identified, so that the user is not relied to manually distinguish different types of texts, the operation is convenient and fast, and the time is saved.
EXAMPLE seven
Fig. 9 is a schematic structural diagram of a text display device according to a seventh embodiment of the present invention. The display device of the text comprises: the system comprises an identification module 11, a sending module 12, an acquisition module 13, a labeling module 14, a display module 15, a receiving module 16 and an adjusting module 17.
In this embodiment, the identification module 11 is specifically configured to identify a target type of a text according to a source of the text; wherein different sources correspond to different text types.
Further, the recognition module 11 is specifically configured to recognize the text as an entered text of a type manually entered by the user when the text originates from the keyboard, and recognize the text as a copied text of a type not manually entered when the text originates from the clipboard.
An optional structure manner of the identification module 11 in this embodiment includes: the monitoring unit and the first identification unit.
A monitoring unit for monitoring operation of an input device that is inputting text.
And the first identification unit is used for identifying the target type of the text according to the monitored operation of the input equipment.
Further, the first identification unit is specifically configured to identify the text as an entry text of a type manually entered by a user when the monitored operation instruction of the input device is to manually enter the text, and identify the text as a copied text of a type not manually entered when the monitored operation instruction of the input device is to paste the text.
Optionally, the identifying module 11 is specifically configured to identify the target type of the text according to the monitored input text amount in the unit time and a preset threshold.
Another optional structure manner of the identification module 11 in this embodiment includes: a comparison unit and a second identification unit.
And the comparison unit is used for comparing the input character quantity with a preset threshold value.
And the second identification unit is used for identifying the text as an input text of a manual input type of the user when the input text amount does not exceed the threshold value, and identifying the text as a copied text of a non-manual input type when the input text amount exceeds the threshold value.
And the obtaining module 13 is configured to obtain a target label corresponding to the target type according to a mapping relationship between preset labels and types.
And the labeling module 14 is used for labeling the text by using the target label.
For the related descriptions of the labels, reference may be made to the descriptions of the related contents in the above embodiments, which are not described herein again.
And the display module 15 is configured to display the text according to the target display mode corresponding to the target type.
A receiving module 16, configured to receive an adjustment command for adjusting the target display mode.
And the adjusting module 17 is configured to adjust the target display mode according to the adjustment command.
Further, the display module 16 is further configured to display the text by using the adjusted target display mode.
The sending module 12 is further configured to send the target display mode to a server, so that the server sends the target display mode to an opposite-end client.
The text display device provided in this embodiment may be used to execute the flows of the text display methods shown in fig. 4 to 5, and specific working principles thereof are not described again, for details, see description of the method embodiments.
The text display device provided by the embodiment of the invention identifies the input text, determines the target type of the text, and sends the text and the target type to the server, so that the server sends the text and the target type to the opposite-end client for text display. In this embodiment, not only can the target type of the text be automatically identified, but also the text is displayed according to the display mode corresponding to the target type, and because the display modes of different types of texts are different, the user can distinguish different types of texts more intuitively. And the text is labeled according to the target type of the text, so that the user is not relied to manually distinguish and label different types of texts, the operation is convenient and fast, and the time is saved. Furthermore, the display mode can be adjusted, the flexibility is good, and the user experience is good.
Example eight
Fig. 10 is a schematic structural diagram of a text display device according to an eighth embodiment of the present invention. The display device of the text comprises: a receiving module 21 and a display module 22.
The receiving module 21 is configured to receive the text sent by the server and the target type of the text. Wherein the types of text include: a user manual entry type and a non-manual entry type.
And the display module 22 is configured to display the text according to the target mode corresponding to the target type.
Further, the receiving module 21 is further configured to receive the target annotation sent by the server.
The display device of the text further includes: and a labeling module 23.
And the labeling module 23 is configured to label the text with the target label.
Further, the receiving module 21 is further configured to receive the first target display mode sent by the server.
The display module 22 is further configured to display the text according to a first target display mode, where the first target display mode is a display mode corresponding to a target type set in the peer client.
Further, the receiving module 21 is further configured to receive the adjusted first target display mode sent by the server.
The display module 22 is further configured to display the text according to the adjusted first target display mode.
The text display apparatus provided in this embodiment may be used to execute the process of the text display method shown in fig. 6, and specific working principles thereof are not described again, for details, see the description of the method embodiment.
The text display device provided by the embodiment of the invention receives the text sent by the server and the target type of the text, and displays the text according to the target display mode corresponding to the target type. In this embodiment, the text is displayed according to the display mode corresponding to the target type, and because the display modes of different types of texts are different, the user can distinguish different types of texts more intuitively. And the text is labeled according to the target type of the text, so that the user is not relied to manually distinguish and label different types of texts, the operation is convenient and fast, and the time is saved. Furthermore, the display mode can be adjusted, the flexibility is good, and the user experience is good.
It should be noted here that the display device for the text provided in the sixth embodiment or the seventh embodiment and the display device for the text provided in the eighth embodiment are installed on the first client or the second client at the same time.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (30)

1. A method for displaying text, comprising:
the first client identifies input text to determine a target type of the text, wherein the target type of the text comprises: the method comprises the following steps of manually inputting a type and a non-manually inputting type by a user, wherein the text of the non-manually inputting type is as follows: the text copied by the copy-and-paste instruction or the text for which the amount of input text per unit time exceeds a threshold value, and the user manually enters the types of text as: the user types the input text through the keyboard or the text with the input text quantity in unit time not exceeding the threshold value;
the first client sends the text and the target type to a server;
the server sends the text and the target type to a second client;
and the second client displays the text according to a first target display mode corresponding to the target type.
2. The method of claim 1, further comprising:
the first client side obtains a target label corresponding to the target type according to a preset mapping relation between labels and types;
the first client marks the text by using the target mark;
the first client sends the target label to the server;
the server sends the target label to the second client;
and the second client labels the text by using the target label.
3. The method of claim 1, further comprising:
and the first client displays the text according to a second target display mode corresponding to the target type.
4. The method of claim 3, further comprising:
the first client sends the second target display mode to a server;
the server sends the second target display mode to the second client;
and the second client displays the text according to the second target display mode.
5. A method for displaying text, comprising:
recognizing input text to determine a target type of the text; wherein the target types of the text include: the method comprises the following steps of manually inputting a type and a non-manually inputting type by a user, wherein the text of the non-manually inputting type is as follows: the text copied by the copy-and-paste instruction or the text for which the amount of input text per unit time exceeds a threshold value, and the user manually enters the types of text as: the user types the input text through the keyboard or the text with the input text quantity in unit time not exceeding the threshold value;
and sending the text and the target type to a server so that the server sends the text and the target type to an opposite-end client for text display.
6. The method of claim 5, further comprising:
acquiring a target label corresponding to the target type according to a preset mapping relation between labels and types;
labeling the text by using the target label;
and sending the target label to the server so that the server sends the target label to the opposite-end client.
7. The method of claim 5, further comprising:
and displaying the text according to a target display mode corresponding to the target type.
8. The method of claim 7, further comprising:
and sending the target display mode to a server so that the server sends the target display mode to an opposite-end client.
9. The method of any one of claims 5-8, wherein the recognizing the input text to determine the target type of the text comprises:
identifying a target type of the text according to the source of the text; wherein different sources correspond to different text types.
10. The method of claim 9, wherein identifying the target type of the text based on the source of the text comprises:
when the text is sourced from a keyboard, identifying the text as an input text of a type manually input by a user;
identifying the text as a non-manual entry type of duplicate text when the text originates from a clipboard.
11. The method of any one of claims 5-8, wherein the recognizing the input text to determine the target type of the text comprises:
monitoring operation of an input device that is inputting the text;
and identifying the target type of the text according to the monitored operation of the input equipment.
12. The method of claim 11, wherein the identifying the target type of the text according to different operation types of the input device comprises:
when the monitored operation instruction of the input equipment is to manually input a text, identifying the text as an input text of a manual input type of a user;
and when the monitored operation instruction of the input equipment is to paste the text, identifying the text as a copied text of a non-manual entry type.
13. The method of any one of claims 5-8, wherein the recognizing the input text to determine the target type of the text comprises:
and identifying the target type of the text according to the monitored input text amount in unit time and a preset threshold value.
14. The method of claim 13, wherein identifying the target type of the text based on the monitored amount of input text per unit time and a preset threshold comprises:
comparing the input text quantity with the preset threshold value;
when the input text amount does not exceed the threshold value, identifying the text as an input text of a manual input type of a user;
when the amount of input text exceeds the threshold, identifying the text as a non-manually entered type of copied text.
15. The method of claim 8, further comprising:
receiving an adjustment command for adjusting the target display mode;
adjusting the target display mode according to the adjusting command;
displaying the text by using the adjusted target display mode;
and sending the adjusted target display mode to the server so that the server sends the adjusted target display mode to an opposite-end client.
16. A system for displaying text, comprising:
the system comprises a first client, a server and a second client, wherein the first client is used for identifying input texts to determine target types of the texts and sending the texts and the target types to the server; wherein the target types of the text include: the method comprises the following steps of manually inputting a type and a non-manually inputting type by a user, wherein the text of the non-manually inputting type is as follows: the text copied by the copy-and-paste instruction or the text for which the amount of input text per unit time exceeds a threshold value, and the user manually enters the types of text as: the user types the input text through the keyboard or the text with the input text quantity in unit time not exceeding the threshold value;
the server is used for receiving the text and the target type and sending the text and the target type to a second client;
and the second client is used for receiving the text and the target type and displaying the text according to a second target display mode corresponding to the target type.
17. The system of claim 16,
the first client is further configured to obtain a target label corresponding to the target type according to a mapping relationship between preset labels and types, label the text with the target label, and send the target label to the server;
the server is further used for receiving the target label and sending the target label to the second client;
and the second client is also used for receiving the target label and labeling the text by using the target label.
18. The system of claim 17, wherein the first client is further configured to display the text in a first target display mode corresponding to the target type.
19. The system of claim 18,
the first client is further used for sending the first target display mode to a server;
the server is further used for receiving the first target display mode and sending the first target display mode to the second client;
the second client is further configured to receive the first target display mode and display the text according to the first target display mode.
20. A display device for text, comprising:
the recognition module is used for recognizing the input text to determine the target type of the text; wherein the target types of the text include: the method comprises the following steps of manually inputting a type and a non-manually inputting type by a user, wherein the text of the non-manually inputting type is as follows: the text copied by the copy-and-paste instruction or the text for which the amount of input text per unit time exceeds a threshold value, and the user manually enters the types of text as: the user types the input text through the keyboard or the text with the input text quantity in unit time not exceeding the threshold value;
and the sending module is used for sending the text and the target type to a server so that the server sends the text and the target type to an opposite-end client for text display.
21. The apparatus of claim 20, further comprising:
the acquisition module is used for acquiring a target label corresponding to the target type according to a preset mapping relation between the label and the type;
the marking module is used for marking the text by utilizing the target mark;
the sending module is configured to send the target label to the server, so that the server sends the target label to the peer client.
22. The apparatus of claim 21, further comprising:
and the display module is used for displaying the text according to the target display mode corresponding to the target type.
23. The apparatus of claim 22, wherein the sending module is further configured to send the target display mode to the server, so that the server sends the target display mode to a peer client.
24. The apparatus according to any of the claims 20-23, wherein the identification module is specifically configured to identify the target type based on a source of the text; wherein different sources correspond to different text types.
25. The apparatus according to claim 24, wherein the recognition module is configured to recognize the text as an entered text of a type manually entered by a user when the text originates from a keyboard, and as a copied text of a type not manually entered when the text originates from a clipboard.
26. The apparatus according to any one of claims 20-23, wherein the identification module comprises:
a monitoring unit for monitoring an operation of an input device that is inputting the text;
a first recognition unit for recognizing the target type of the text according to the monitored operation of the input device.
27. The apparatus according to claim 26, wherein the identifying unit is specifically configured to identify the text as an entry text of a type manually entered by a user when the monitored operation indication of the input device is manual entry of the text, and identify the text as a copied text of a type not manually entered when the monitored operation indication of the input device is pasting of the text.
28. The apparatus according to any one of claims 20 to 23, wherein the identifying module is configured to identify the target type of the text according to a monitored amount of input text per unit time and a preset threshold.
29. The apparatus of claim 28, wherein the identification module comprises:
a comparison unit for comparing the input text amount with the preset threshold value;
the second identification unit is used for identifying the text as an input text of a manual input type of the user when the input text amount does not exceed the threshold value; when the amount of input text exceeds the threshold, identifying the text as a non-manually entered type of copied text.
30. The apparatus of claim 22, further comprising:
a receiving module, configured to receive an adjustment command for adjusting the target display mode;
the adjusting module is used for adjusting the target display mode according to the adjusting command;
the display module is further configured to display the text by using the adjusted target display mode;
the sending module is further configured to send the adjusted target display mode to the server, so that the server sends the adjusted target display mode to an opposite-end client.
CN201610623850.6A 2016-08-02 2016-08-02 Text display method, system and device Active CN106919540B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610623850.6A CN106919540B (en) 2016-08-02 2016-08-02 Text display method, system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610623850.6A CN106919540B (en) 2016-08-02 2016-08-02 Text display method, system and device

Publications (2)

Publication Number Publication Date
CN106919540A CN106919540A (en) 2017-07-04
CN106919540B true CN106919540B (en) 2021-07-13

Family

ID=59454464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610623850.6A Active CN106919540B (en) 2016-08-02 2016-08-02 Text display method, system and device

Country Status (1)

Country Link
CN (1) CN106919540B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110096695B (en) * 2018-01-30 2023-01-03 腾讯科技(深圳)有限公司 Hyperlink marking method and device and text classification method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1486469A (en) * 2001-01-16 2004-03-31 Method and system for chatting service providing realtime tag analysis
JP4245843B2 (en) * 2002-01-15 2009-04-02 株式会社亀田医療情報研究所 Formatted document creation system and method, and computer program
CN103716444A (en) * 2012-09-29 2014-04-09 联想(北京)有限公司 Information processing method and electronic equipment
CN104052655A (en) * 2014-06-27 2014-09-17 上海梦荻网络科技有限公司 Group chatting method and instant messaging client-side
CN104243273A (en) * 2013-06-09 2014-12-24 阿里巴巴集团控股有限公司 Method and device for displaying information on instant messaging client and information display system
CN105553834A (en) * 2016-01-21 2016-05-04 腾讯科技(深圳)有限公司 Message sending method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8996648B2 (en) * 2010-12-01 2015-03-31 Microsoft Corporation Social networking feed extensibility based on data types
CN103218363B (en) * 2012-01-19 2018-05-04 腾讯科技(深圳)有限公司 Information processing method and device
CN102789360B (en) * 2012-06-27 2017-12-19 中兴通讯股份有限公司 A kind of intelligent terminal text input display methods and device
CN104765951A (en) * 2014-04-08 2015-07-08 惠州Tcl移动通信有限公司 Multimedia medical recording assembly and data access method
CN105376134B (en) * 2014-08-26 2020-04-03 腾讯科技(北京)有限公司 Method and device for displaying communication message
CN105512138B (en) * 2014-09-25 2019-04-19 阿里巴巴集团控股有限公司 The processing method and its system of text message
CN104615747B (en) * 2015-02-11 2017-05-17 腾讯科技(深圳)有限公司 Information processing method, client side and server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1486469A (en) * 2001-01-16 2004-03-31 Method and system for chatting service providing realtime tag analysis
JP4245843B2 (en) * 2002-01-15 2009-04-02 株式会社亀田医療情報研究所 Formatted document creation system and method, and computer program
CN103716444A (en) * 2012-09-29 2014-04-09 联想(北京)有限公司 Information processing method and electronic equipment
CN104243273A (en) * 2013-06-09 2014-12-24 阿里巴巴集团控股有限公司 Method and device for displaying information on instant messaging client and information display system
CN104052655A (en) * 2014-06-27 2014-09-17 上海梦荻网络科技有限公司 Group chatting method and instant messaging client-side
CN105553834A (en) * 2016-01-21 2016-05-04 腾讯科技(深圳)有限公司 Message sending method and device

Also Published As

Publication number Publication date
CN106919540A (en) 2017-07-04

Similar Documents

Publication Publication Date Title
US11004150B2 (en) Apparatuses, methods and systems for a high density financial asset information display
CN112134785B (en) Information processing method, client and system in network security level protection
CN111158831B (en) Data processing method, device, equipment and medium based on instant messaging application
CN111917708B (en) Multi-target cooperative network security monitoring method, client and system
US20110314387A1 (en) Intelligent filtering for render status determination in a screen sharing system
US11665115B2 (en) Interlacing responses within an instant messaging system
CN103269305B (en) Method and system for issuing group exchange of information
CN112134787A (en) Communication method, client and system in network security level protection
US20180284961A1 (en) Read activity of chat rooms
JP5001846B2 (en) System and method for managing news headlines
CN112134786A (en) Contact person establishing method and application in network security level protection
CN111934976A (en) Network security monitoring method, client and system based on instant messaging
US7269622B2 (en) Watermarking messaging sessions
CN111917560B (en) Communication method, device and equipment
US9756057B2 (en) System and method for enhanced display-screen security and privacy
CN111162998A (en) Session data processing method, device, equipment and medium
WO2022205784A1 (en) Interface information control method and apparatus
JP6303369B2 (en) Information processing system, information processing apparatus, information processing method, and program
CN106919540B (en) Text display method, system and device
US20090077472A1 (en) Techniques for displaying graphical comments
KR20200047990A (en) Method for providing fake news alert service through syntactic analysis of instant messages based on news writing and broadcast guidelines and apparatus thereof
CN112968827B (en) Intelligent communication method and client in network security level protection
US20120016890A1 (en) Assigning visual characteristics to records
CN110007814B (en) Session marking method and device
CN115695635B (en) Operation prompting method, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200925

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200925

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant