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.