CN109635202B - Content item processing method and device, electronic equipment and storage medium - Google Patents

Content item processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109635202B
CN109635202B CN201811553307.9A CN201811553307A CN109635202B CN 109635202 B CN109635202 B CN 109635202B CN 201811553307 A CN201811553307 A CN 201811553307A CN 109635202 B CN109635202 B CN 109635202B
Authority
CN
China
Prior art keywords
template
window
keyword
online editing
content item
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
CN201811553307.9A
Other languages
Chinese (zh)
Other versions
CN109635202A (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201811553307.9A priority Critical patent/CN109635202B/en
Publication of CN109635202A publication Critical patent/CN109635202A/en
Application granted granted Critical
Publication of CN109635202B publication Critical patent/CN109635202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The disclosure relates to a content item processing method and device, electronic equipment and a storage medium, and belongs to the technical field of networks. The method comprises the following steps: acquiring input content in an online editing page; performing keyword detection on the input content based on at least one template keyword; when detecting that the input content comprises any template keyword, acquiring template information corresponding to the template keyword; in the online editing page, the input content and the template information are displayed in a plurality of windows, respectively. The method and the device enable the electronic equipment to automatically retrieve the template information corresponding to the template keyword, and automatically display the template information in the online editing page, simplify the complex manual retrieval process in the online editing process of a user, save the time cost of online editing, and improve the efficiency of online editing.

Description

Content item processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of network technologies, and in particular, to a content item processing method and apparatus, an electronic device, and a storage medium.
Background
In the related technology, collaborative editing of content items such as texts, pictures, tables and the like can be realized through online documents, so that the content items jointly edited by multiple users can be displayed on the basis of a webpage in real time.
When a user processes a content item through an online document, in order to input the content item having a fixed-format template, such as a resume, a recommendation letter, a leave-on bar, and the like, the user usually performs manual retrieval through a search engine, manually pastes the template content into the online document, and then revises or fills the template content.
In the above process, the user is required to review and screen the web page resources returned by the search engine, which takes up more retrieval time and affects the editing efficiency.
Disclosure of Invention
The present disclosure provides a content item processing method, device, electronic device, and storage medium, which can overcome the problem that manual retrieval takes up more retrieval time and affects editing efficiency.
According to a first aspect of embodiments of the present disclosure, there is provided a content item processing method, comprising:
acquiring input content in an online editing page;
performing keyword detection on the input content based on at least one template keyword;
when detecting that the input content comprises any template keyword, acquiring template information corresponding to the template keyword, wherein the template information is used for providing reference information for an online editing process;
in the online editing page, the input content and the template information are displayed in a plurality of windows, respectively.
In one possible embodiment, in the online editing page, displaying the input content and the template information in a plurality of windows, respectively, includes:
in a first window of the online editing page, reducing and displaying the input content;
and displaying the template information in a second window of the online editing page.
In one possible implementation, the first window and the second window are arranged horizontally in the online editing page; or the like, or, alternatively,
the first window and the second window are arranged longitudinally in the online editing page.
In one possible embodiment, when the first window and the second window are arranged horizontally in the online editing page, the method further comprises:
and if the template information comprises a plurality of templates, displaying the plurality of templates in the second window in a longitudinal sequence from large to small according to the correlation degree.
In one possible embodiment, when it is detected that any one of the template keywords is included in the input content, acquiring template information corresponding to the template keyword includes:
and when detecting that the input content comprises any template keyword, acquiring template information corresponding to the template keyword from a preset template database.
In one possible implementation, a function option is further included in the display window of the template information, and the function option is used for indicating an editing position where a current cursor is located in the display window of the input content to copy the template information.
In one possible embodiment, the method further comprises:
and when the template information corresponding to the template keyword is not acquired from the preset template database, acquiring a search result corresponding to the template keyword from at least one search engine, and acquiring the search result as the template information.
In one possible embodiment, performing keyword detection on the input content based on at least one template keyword comprises:
and performing keyword detection on the front target numeric characters of the input content based on the at least one template keyword.
In one possible embodiment, the template information includes at least one of textual information or format information.
According to a second aspect of embodiments of the present disclosure, there is provided a content item processing apparatus comprising:
a first acquisition unit configured to perform acquisition of input content in an online editing page;
a detection unit configured to perform keyword detection on the input content based on at least one template keyword;
a second acquisition unit configured to perform, when it is detected that any one of the template keywords is included in the input content, acquiring template information corresponding to the template keyword, the template information being used to provide reference information for an online editing process;
a display unit configured to display the input content and the template information in a plurality of windows, respectively, performed in the online editing page.
In one possible embodiment, the display unit is further configured to perform:
in a first window of the online editing page, reducing and displaying the input content;
and displaying the template information in a second window of the online editing page.
In one possible implementation, the first window and the second window are arranged horizontally in the online editing page; or the like, or, alternatively,
the first window and the second window are arranged longitudinally in the online editing page.
In one possible embodiment, the apparatus further comprises:
and if the template information comprises a plurality of templates, displaying the plurality of templates in the second window in a longitudinal sequence from large to small according to the correlation degree.
In one possible implementation, the second obtaining unit is further configured to perform:
and when detecting that the input content comprises any template keyword, acquiring template information corresponding to the template keyword from a preset template database.
In one possible implementation, a function option is further included in the display window of the template information, and the function option is used for indicating an editing position where a current cursor is located in the display window of the input content to copy the template information.
In one possible embodiment, the apparatus further comprises:
and when the template information corresponding to the template keyword is not acquired from the preset template database, acquiring a search result corresponding to the template keyword from at least one search engine, and acquiring the search result as the template information.
In a possible embodiment, the detection unit is further configured to perform:
and performing keyword detection on the front target numeric characters of the input content based on the at least one template keyword.
In one possible embodiment, the template information includes at least one of textual information or format information.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to:
acquiring input content in an online editing page;
performing keyword detection on the input content based on at least one template keyword;
when detecting that the input content comprises any template keyword, acquiring template information corresponding to the template keyword, wherein the template information is used for providing reference information for an online editing process;
in the online editing page, the input content and the template information are displayed in a plurality of windows, respectively.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having instructions therein, which when executed by a processor of an electronic device, enable the electronic device to perform a method of content item processing, the method comprising:
acquiring input content in an online editing page;
performing keyword detection on the input content based on at least one template keyword;
when detecting that the input content comprises any template keyword, acquiring template information corresponding to the template keyword, wherein the template information is used for providing reference information for an online editing process;
in the online editing page, the input content and the template information are displayed in a plurality of windows, respectively.
According to a fifth aspect of embodiments of the present disclosure, there is provided an application comprising one or more instructions which, when executed by a processor of an electronic device, enable the electronic device to perform a method of content item processing, the method comprising:
acquiring input content in an online editing page;
performing keyword detection on the input content based on at least one template keyword;
when detecting that the input content comprises any template keyword, acquiring template information corresponding to the template keyword, wherein the template information is used for providing reference information for an online editing process;
in the online editing page, the input content and the template information are displayed in a plurality of windows, respectively.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the method comprises the steps of obtaining input content in an online editing page, detecting keywords of the input content, obtaining template information corresponding to template keywords according to the template keywords matched in a detection result when the input content is detected to comprise any template keyword, and displaying the input content and the template information in a plurality of windows in the online editing page respectively, so that electronic equipment can automatically retrieve the template information corresponding to the template keywords, and the template information is automatically displayed in the online editing page, so that the complicated manual retrieval process in the online editing process of a user is simplified, the time cost of online editing is saved, and the efficiency of online editing is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow diagram illustrating a method of content item processing according to an example embodiment.
FIG. 2 is a flow diagram illustrating a method of content item processing according to an example embodiment.
FIG. 3 is an interface diagram illustrating an online editing page in accordance with an illustrative embodiment.
FIG. 4 is an interface diagram illustrating an online editing page in accordance with an exemplary embodiment.
FIG. 5 is an interface diagram illustrating an online editing page in accordance with an illustrative embodiment.
FIG. 6 is an interface diagram illustrating an online editing page in accordance with an illustrative embodiment.
FIG. 7 is a block diagram illustrating a content item processing apparatus according to an example embodiment.
FIG. 8 is a block diagram illustrating a logical structure of an electronic device in accordance with an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flow chart illustrating a content item processing method according to an exemplary embodiment, the content item processing method being used in an electronic device, as illustrated in fig. 1, and comprising the steps of:
in step 101, input content in an online editing page is acquired.
In step 102, keyword detection is performed on the input content based on at least one template keyword.
In step 103, when it is detected that any template keyword is included in the input content, template information corresponding to the template keyword is obtained, and the template information is used for providing reference information for an online editing process.
In step 104, the input content and the template information are displayed in a plurality of windows, respectively, in the online editing page.
According to the method provided by the embodiment of the disclosure, the input content is detected by acquiring the input content in the online editing page, when the input content is detected to include any template keyword, the template information corresponding to the template keyword is acquired according to the template keyword matched in the detection result, and in the online editing page, the input content and the template information are respectively displayed in a plurality of windows, so that the electronic equipment can automatically retrieve the template information corresponding to the template keyword, and then the template information is automatically displayed in the online editing page, thereby simplifying the tedious process of manual retrieval in the online editing process of a user, saving the time cost of online editing, and improving the efficiency of online editing.
In one possible embodiment, in the online editing page, displaying the input content and the template information in a plurality of windows, respectively, includes:
in a first window of the online editing page, reducing and displaying the input content;
and displaying the template information in a second window of the online editing page.
In one possible implementation, the first window and the second window are arranged horizontally in the online editing page; or the like, or, alternatively,
the first window and the second window are arranged longitudinally in the online editing page.
In one possible embodiment, when the first window and the second window are arranged horizontally in the online editing page, the method further comprises:
and if the template information comprises a plurality of templates, displaying the plurality of templates in the second window in a longitudinal sequence from large to small according to the correlation degree.
In one possible embodiment, when it is detected that any one of the template keywords is included in the input content, acquiring template information corresponding to the template keyword includes:
and when detecting that the input content comprises any template keyword, acquiring template information corresponding to the template keyword from a preset template database.
In one possible implementation, a function option is further included in the display window of the template information, and the function option is used for indicating an editing position where a current cursor is located in the display window of the input content to copy the template information.
In one possible embodiment, the method further comprises:
and when the template information corresponding to the template keyword is not acquired from the preset template database, acquiring a search result corresponding to the template keyword from at least one search engine, and acquiring the search result as the template information.
In one possible embodiment, performing keyword detection on the input content based on at least one template keyword comprises:
and performing keyword detection on the front target numeric characters of the input content based on the at least one template keyword.
In one possible embodiment, the template information includes at least one of textual information or format information.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
FIG. 2 is a flow diagram illustrating a content item processing method, as shown in FIG. 2, for use in an electronic device, according to an example embodiment, including the steps of:
in step 201, the electronic device obtains input content in an online editing page.
The online editing page may support inputting multimedia resources such as text, table, picture, audio, video, etc. as content items, and further support modifying the input content items, for example, the modification may be addition or deletion, and in the above modification process, may also support modifying the format of the input content, which may be the font of the text, the color of the text, the size of the text or picture, the style of the table, etc., and the embodiment of the present disclosure does not specifically limit the form and format of the input content.
In the above process, the electronic device may be installed with a client, which may be any client capable of providing an online editing service, such as a browser-based web page client, a social application client with an online editing function, and the like, and the online editing page may be accessed based on the client, so that the input content is obtained in real time whenever the input characters are detected.
In step 202, the electronic device performs keyword detection on top target numeric characters of the input content based on at least one template keyword.
In the above process, when the keyword detection is performed on the input content, the input content may be filtered by a regular matching method, that is, according to the regular expression corresponding to the at least one template keyword, so as to obtain the character matched with the at least one template keyword.
The target value is a positive integer, the at least one template keyword is used to indicate a text form to be referred to in online editing, for example, the at least one template keyword may be "resume", "work summary", "training feeling", or the like, the at least one template keyword or target value may be set by the client as a default, or may be individually reset based on a user, and an obtaining manner of the at least one template keyword or target value is not specifically limited in the embodiments of the present disclosure.
In some embodiments, the target value is 25, so that only the first 25 characters of the input content are detected, and since the title of the text does not exceed 25 characters, and a brand-new template information in a fixed format is not required to be introduced into the text body of the text, the keyword detection only on the title of the text is realized by setting the target value, useless detection on the text body is avoided, and resource configuration is optimized.
In the step 202, by controlling to detect only the characters of the previous target value, only the keyword detection on the title of the text message can be realized, so that under the condition of not influencing the provision of the template information, the waste of the computing resources of the electronic equipment is avoided, optionally, the detected characters can also not be controlled, that is, the electronic equipment immediately performs the keyword detection on the full text of the input content, thereby being capable of more comprehensively meeting the requirements of the user.
In step 203, when it is detected that any template keyword is included in the input content, the electronic device obtains template information corresponding to the template keyword from a preset template database.
The template information is used for providing reference information for an online editing process, and the template information may include at least one of text information or format information, for example, the template information may be a model essay of a plain text, or a blank resume template configured with a format; the preset template database is used for storing template information, and may be a database locally stored in the electronic device, and the preset template database may be downloaded to the electronic device when the client is installed.
In step 203, that is, when the input content includes a character matching any template keyword, the electronic device is triggered to automatically obtain template information corresponding to the template keyword from a preset template database, which is taken as an example to explain, in the above process, the electronic device sends a query instruction carrying the template keyword to a server, the server receives the query instruction and analyzes the query instruction to obtain the template keyword, the server queries index content matching the index from the preset template database by taking the template keyword as the index, and sends the index content corresponding to the index to the electronic device, so that the electronic device obtains the template information, thereby avoiding a complicated process of manually copying and pasting after a user manually retrieves the template information, the editing efficiency is improved. In some embodiments, when the electronic device obtains the template information from the locally stored database, the electronic device side may perform similar operations to obtain the template information, which is not described herein again.
Optionally, when the preset template database is updated in real time, taking the preset template database as an example of a database accessed in a network, when a user corresponding to each electronic device finishes editing, inquiring whether to store the content item edited this time as new template information, when the user selects to confirm the storage, prompting the user to input a template keyword, so that the electronic device generates a storage instruction according to the content item edited this time and the template keyword input by the user, sending the storage instruction to a server by the electronic device, after receiving the storage instruction, analyzing the storage instruction by the server, inquiring in the preset template database by using the template keyword as an index, and when inquiring the index, adding the content item edited this time to the index content under the index, thereby maintaining and updating the original index content, optionally, when the index is not queried, an index corresponding to the template keyword is newly created, and the content item edited this time is added to the index content under the newly created index, so that a new index is added to the preset template database. Of course, for the locally stored database, the electronic device may store the new template information through similar operations, which is not described herein.
Certainly, in the above process, the server may maintain a personalized preset template database for each user, so that the preset template database of each user is more customized and conforms to the editing habits of different users, that is, in the database of the server, the preset template database of each user is bound with the user identification information, when receiving the query instruction, the user identification information carried in the query instruction is verified, when the user identification information is verified, the query is performed by using the template keyword as an index from the preset template database bound with the user identification information, so that the template information stored by each user is not shared, optionally, the server may also maintain the preset template database of the whole platform for all users on the online editing platform, that is, when the server receives the query instruction, the verification of the user identification information is not performed, but directly inquires from a preset template database of the whole platform, so that the template information which can be provided in the preset template database is increased, and the template information is shared by the whole platform.
In step 204, when the template information corresponding to the template keyword is not obtained from the preset template database, the electronic device obtains a search result corresponding to the template keyword from at least one search engine, and obtains the search result as the template information.
In step 203-204, the template information is obtained from the preset template database, and when there is no corresponding template information in the preset template database, the search result corresponding to the template keyword is automatically retrieved, and the search result is obtained as the template information. In some embodiments, whether template information is acquired from the preset template database or not, the acquisition of the search result from the at least one search engine may be performed, so that an auxiliary reference may be provided to the user more comprehensively.
Optionally, when the retrieval result is obtained from the at least one search Engine, the query instruction carrying the template keyword may be sent only to a single search Engine defaulted by the browser, so that the search result of the single search Engine is obtained as the template information, and the processing flow is simplified. When the template information is obtained, the preset number of template information may be obtained according to the sequence of the search results sent by the search engine, and certainly, the preset number of template information may be obtained according to the sequence of the access amount from large to small, where the preset number is a positive integer, for example, 10.
In step 205, the electronic device displays the input content in a first window of the online editing page in a reduced manner.
In step 205, fig. 3 is an interface schematic diagram of an online editing page according to an exemplary embodiment, as shown in fig. 3, originally, only a first window where the input content is displayed in the online editing page, that is, the default size of the first window is the size of the online editing page, but since a template keyword in the input content is detected and corresponding template information needs to be displayed, the electronic device may reduce and display the first window, so that the template information is displayed in a second window in the remaining space.
In the process of the above-mentioned reduction display, the first window may be reduced and displayed according to a fixed reduction scale, so that the size scale of the second window is also fixed, wherein, the width reduction ratio of the first window, the height reduction ratio of the first window and the reduction ratio of the font size of the input content in the first window may be the same or different, for example, the height of the first window and the font size of the input content in the window are reduced to 80% of the default size when the display is reduced, alternatively, FIG. 4 is an interface diagram illustrating an online editing page in accordance with an exemplary embodiment, as shown in fig. 4, it is also possible to narrow the width of the first window to 70% of the default width only in the width direction, the word size of the input content is not changed, and the like, and certainly, there may be more reduction ratios and the like, and the reduction ratio and the matching are not limited in the embodiment of the disclosure.
In some embodiments, in the process of reducing display, the reduction ratio may also be not fixed, and according to the number of the template information acquired in step 203 or 204, the size of the second window is determined first, so as to reduce the size of the first window adaptively, for example, a value obtained by adding 1 to the number of the templates is used as a numerator, a value obtained by adding 1 to the number of the templates is used as a denominator, and a ratio of the numerator to the denominator is used as a ratio of the second window to the online editing page, so as to determine the size of the second window, so that in the process of reducing display, when the template information is less, the size of the second window may be relatively smaller, and when the template information is more, the size of the second window may be relatively larger. Optionally, a minimum scale may be set for the first window, so that when the adaptively reduced size is smaller than the minimum scale, the first window is reduced to the minimum scale, and the second window is adaptively adjusted to a size balanced with the minimum scale, thereby avoiding that when the template information is excessive, the input content is reduced to be unclear.
In step 206, the electronic device displays the template information in a second window of the online editing page.
In step 205-. Alternatively, fig. 5 is an interface schematic diagram illustrating an online editing page, according to an example embodiment, as shown in fig. 5, the first window and the second window may be arranged vertically in the online editing page, and of course, in some embodiments, the first window and the second window may also be arranged horizontally in the online editing page, in the case of the horizontal arrangement, if a plurality of templates are included in the template information acquired in the above-described step 203, the templates may be displayed in the second window in a vertical order according to the degree of correlation from large to small, that is, fig. 6 is a schematic interface diagram illustrating an online editing page according to an exemplary embodiment, where, as shown in fig. 6, the template with the greatest relevance to the template keyword is arranged at the top of the second window, and the remaining templates are sequentially arranged vertically from top to bottom according to the decreasing relevance. Optionally, a prompt box may also be popped up in the online editing page, and the prompt box is used for prompting to view the template information in the second window.
In a possible implementation manner, when the template information is derived from a preset template database, a function option for indicating that the template information is copied to the editing position of the current cursor in the first window may also be included in the second window. Therefore, when the triggering operation of the function option is detected, the template information can be directly imported into the current input content, as shown in fig. 6, and the function option can be an "application" option in the figure, so as to improve the online editing efficiency of the user.
Optionally, when performing window layout on an online editing page, an HTML framing technology may be used, that is, layout information of a window is changed from a frame of a web page through an < iframe > tag, so that a plurality of windows are displayed in a frame on one page, and different windows may have different URL addresses, and optionally, HTML framing may be performed through tags such as < frameset >, and the like.
The step 205 and 206 provide a method for displaying the input content and the template information in multiple windows, and optionally, the input content and the template information may also be displayed in the form of a floating window with transparency, a pop-up window, a sub-label page, and the like, which is not described herein again.
The method provided by the embodiment of the disclosure can detect the keywords by acquiring the input content in the online editing page, and when detecting that the input content includes any template keyword, acquire the template information corresponding to the template keyword according to the template keyword matched regularly, and in the online editing page, display the input content and the template information in a plurality of windows respectively, so that the electronic device can automatically retrieve the template information corresponding to the template keyword, and from being automatically displayed in the online editing page, simplify the complicated manual retrieval process in the online editing process of the user, save the time cost of online editing, improve the efficiency of online editing, further, can acquire the template information from the preset template database first, thereby providing functional options during subsequent display, therefore, the template information in the preset template database is directly imported into the position of the cursor in the input process, the time cost of manually copying and pasting by a user is avoided, further, when the relevant template information is not inquired in the preset template database, the webpage resources are obtained through the meta search engine to serve as the template information, the time cost of manually retrieving a plurality of search engines by the user is reduced, further, in the online editing page, the window layout is carried out through an HTML framing technology, the first window where the input content is located and the second window where the template information is located can be transversely arranged or longitudinally arranged, and the page layout is optimized.
FIG. 7 is a block diagram illustrating a content item processing apparatus according to an example embodiment. Referring to fig. 7, the apparatus includes a first acquisition unit 701, a detection unit 702, a second acquisition unit 703, and a display unit 704.
The first obtaining unit 701 is configured to perform obtaining input content in an online editing page;
the detecting unit 702 is configured to perform keyword detection on the input content based on at least one template keyword;
the second obtaining unit 703 is configured to perform, when it is detected that any one of the template keywords is included in the input content, obtaining template information corresponding to the template keyword, the template information being used to provide reference information for an online editing process;
the display unit 704 is configured to execute displaying the input content and the template information in a plurality of windows, respectively, in the online editing page.
According to the device provided by the embodiment of the disclosure, the input content in the online editing page is acquired, so that keyword detection can be performed on the input content, when the input content is detected to include any template keyword, the template information corresponding to the template keyword is acquired according to the template keyword matched in the detection result, and in the online editing page, the input content and the template information are respectively displayed in a plurality of windows, so that the electronic equipment can automatically retrieve the template information corresponding to the template keyword, and then automatically display in the online editing page, the tedious process of manual retrieval in the online editing process of a user is simplified, the time cost of online editing is saved, and the efficiency of online editing is improved.
In a possible implementation, based on the apparatus composition of fig. 7, the display unit 704 is further configured to perform:
in a first window of the online editing page, reducing and displaying the input content;
and displaying the template information in a second window of the online editing page.
In one possible implementation, the first window and the second window are arranged horizontally in the online editing page; or the like, or, alternatively,
the first window and the second window are arranged longitudinally in the online editing page.
In a possible embodiment, based on the apparatus composition of fig. 7, the apparatus further comprises:
and if the template information comprises a plurality of templates, displaying the plurality of templates in the second window in a longitudinal sequence from large to small according to the correlation degree.
In a possible implementation, based on the apparatus composition of fig. 7, the second obtaining unit 703 is further configured to perform:
and when detecting that the input content comprises any template keyword, acquiring template information corresponding to the template keyword from a preset template database.
In one possible implementation, a function option is further included in the display window of the template information, and the function option is used for indicating an editing position where a current cursor is located in the display window of the input content to copy the template information.
In a possible embodiment, based on the apparatus composition of fig. 7, the apparatus further comprises:
and when the template information corresponding to the template keyword is not acquired from the preset template database, acquiring a search result corresponding to the template keyword from at least one search engine, and acquiring the search result as the template information.
In a possible implementation, based on the apparatus composition of fig. 7, the detecting unit 702 is further configured to perform:
and performing keyword detection on the front target numeric characters of the input content based on the at least one template keyword.
In one possible embodiment, the template information includes at least one of textual information or format information.
With regard to the content item processing apparatus in the above-described embodiment, the specific manner in which the respective units perform operations has been described in detail in the embodiment relating to the content item processing method, and will not be described in detail here.
FIG. 8 is a block diagram illustrating a logical structure of an electronic device in accordance with an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 8, electronic device 800 may include one or more of the following components: a processor 801 and a memory 802.
The processor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 801 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 801 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 801 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 801 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 802 may include one or more computer-readable storage media, which may be non-transitory. Memory 802 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 802 is used to store at least one instruction for execution by processor 801 to implement a content item processing method as provided by method embodiments herein.
In some embodiments, the electronic device 800 may further optionally include: a peripheral interface 803 and at least one peripheral. The processor 801, memory 802 and peripheral interface 803 may be connected by bus or signal lines. Various peripheral devices may be connected to peripheral interface 803 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 804, a touch screen display 805, a camera 806, an audio circuit 807, a positioning component 808, and a power supply 809.
The peripheral interface 803 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 801 and the memory 802. In some embodiments, the processor 801, memory 802, and peripheral interface 803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 801, the memory 802, and the peripheral interface 803 may be implemented on separate chips or circuit boards, which are not limited by this embodiment.
The Radio Frequency circuit 804 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 804 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 804 converts an electrical signal into an electromagnetic signal to be transmitted, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 804 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 804 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 804 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 805 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 805 is a touch display, the display 805 also has the ability to capture touch signals on or above the surface of the display 805. The touch signal may be input to the processor 801 as a control signal for processing. At this point, the display 805 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 805 may be one, providing the front panel of the electronic device 800; in other embodiments, the number of the display screens 805 may be at least two, and the at least two display screens are respectively disposed on different surfaces of the electronic device 800 or are in a folding design; in still other embodiments, the display 805 may be a flexible display disposed on a curved surface or on a folded surface of the electronic device 800. Even further, the display 805 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The Display 805 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 806 is used to capture images or video. Optionally, camera assembly 806 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 806 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 807 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 801 for processing or inputting the electric signals to the radio frequency circuit 804 to realize voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the electronic device 800. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 801 or the radio frequency circuit 804 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 807 may also include a headphone jack.
The positioning component 808 is configured to locate a current geographic location of the electronic device 800 to implement navigation or LBS (location based Service). The positioning component 808 may be a positioning component based on the GPS (global positioning System) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
The power supply 809 is used to power the various components in the electronic device 800. The power supply 809 can be ac, dc, disposable or rechargeable. When the power source 809 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the electronic device 800 also includes one or more sensors 810. The one or more sensors 810 include, but are not limited to: acceleration sensor 811, gyro sensor 812, pressure sensor 813, fingerprint sensor 814, optical sensor 815 and proximity sensor 816.
The acceleration sensor 811 may detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the electronic device 800. For example, the acceleration sensor 811 may be used to detect the components of the gravitational acceleration in three coordinate axes. The processor 801 may control the touch screen 805 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 811. The acceleration sensor 811 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 812 may detect a body direction and a rotation angle of the electronic device 800, and the gyro sensor 812 may cooperate with the acceleration sensor 811 to acquire a 3D motion of the user on the electronic device 800. From the data collected by the gyro sensor 812, the processor 801 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 813 may be disposed on the side bezel of electronic device 800 and/or underneath touch display 805. When the pressure sensor 813 is disposed on the side frame of the electronic device 800, the holding signal of the user to the electronic device 800 can be detected, and the processor 801 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 813. When the pressure sensor 813 is disposed at a lower layer of the touch display screen 805, the processor 801 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 805. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 814 is used for collecting a fingerprint of the user, and the processor 801 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 814, or the fingerprint sensor 814 identifies the identity of the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 801 authorizes the user to perform relevant sensitive operations including unlocking a screen, viewing encrypted information, downloading software, paying for and changing settings, etc. Fingerprint sensor 814 may be disposed on the front, back, or side of electronic device 800. When a physical button or vendor Logo is provided on the electronic device 800, the fingerprint sensor 814 may be integrated with the physical button or vendor Logo.
The optical sensor 815 is used to collect the ambient light intensity. In one embodiment, the processor 801 may control the display brightness of the touch screen 805 based on the ambient light intensity collected by the optical sensor 815. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 805 is increased; when the ambient light intensity is low, the display brightness of the touch display 805 is turned down. In another embodiment, the processor 801 may also dynamically adjust the shooting parameters of the camera assembly 806 based on the ambient light intensity collected by the optical sensor 815.
A proximity sensor 816, also known as a distance sensor, is typically disposed on the front panel of the electronic device 800. The proximity sensor 816 is used to capture the distance between the user and the front of the electronic device 800. In one embodiment, the processor 801 controls the touch display 805 to switch from the bright screen state to the dark screen state when the proximity sensor 816 detects that the distance between the user and the front surface of the electronic device 800 is gradually decreased; when the proximity sensor 816 detects that the distance between the user and the front surface of the electronic device 800 becomes gradually larger, the processor 801 controls the touch display 805 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 8 does not constitute a limitation of electronic device 800, and may include more or fewer components than shown, or combine certain components, or employ a different arrangement of components.
In an exemplary embodiment, there is also provided a non-transitory computer readable storage medium, such as the memory 802, comprising instructions executable by the processor 801 of the electronic device 800 to perform the content item processing method described above, the method comprising: acquiring input content in an online editing page; performing keyword detection on the input content based on at least one template keyword; when detecting that the input content comprises any template keyword, acquiring template information corresponding to the template keyword, wherein the template information is used for providing reference information for an online editing process; in the online editing page, the input content and the template information are displayed in a plurality of windows, respectively. Optionally, the instructions may also be executable by the processor 801 of the electronic device 800 to perform other steps involved in the exemplary embodiments described above. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided an application program comprising one or more instructions executable by the processor 801 of the electronic device 800 to perform the content item processing method described above, the method comprising: acquiring input content in an online editing page; performing keyword detection on the input content based on at least one template keyword; when detecting that the input content comprises any template keyword, acquiring template information corresponding to the template keyword, wherein the template information is used for providing reference information for an online editing process; in the online editing page, the input content and the template information are displayed in a plurality of windows, respectively. Optionally, the instructions may also be executable by the processor 801 of the electronic device 800 to perform other steps involved in the exemplary embodiments described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (16)

1. A method of content item processing, comprising:
acquiring input content in an online editing page;
performing keyword detection on the input content based on at least one template keyword;
when detecting that the input content comprises any template keyword, acquiring template information corresponding to the template keyword from a locally stored preset template database, wherein the template information comprises a plurality of templates and is used for providing reference information for an online editing process;
in a first window of the online editing page, zooming out and displaying the input content;
displaying the plurality of templates in the template information in a second window of the online editing page;
when the user finishes editing, inquiring whether the content item edited this time is stored as new template information;
and when the user selects and confirms the storage, prompting the user to input template keywords, and adding the content item into the preset template database by taking the template keywords as indexes.
2. The content item processing method according to claim 1, wherein the first window and the second window are arranged horizontally in the online editing page; or the like, or, alternatively,
the first window and the second window are longitudinally arranged in the online editing page.
3. The content item processing method according to claim 2, wherein when the first window and the second window are arranged horizontally in the online editing page, the method further comprises:
and displaying the templates in the second window in a longitudinal sequence from large to small according to the correlation degree.
4. The content item processing method according to claim 1, further comprising a function option in the display window of the template information, the function option being used to indicate an edit position where a current cursor is located in copying the template information into the display window of the input content.
5. The content item processing method according to claim 1, characterized in that the method further comprises:
and when the template information corresponding to the template keyword is not acquired from the preset template database, acquiring a search result corresponding to the template keyword from at least one search engine, and acquiring the search result as the template information.
6. The content item processing method of claim 1, wherein the keyword detection of the input content based on at least one template keyword comprises:
and performing keyword detection on the front target numeric characters of the input content based on the at least one template keyword.
7. The content item processing method of claim 1, wherein the template information comprises at least one of text information or format information.
8. A content item processing apparatus, comprising:
a first acquisition unit configured to perform acquisition of input content in an online editing page;
a detection unit configured to perform keyword detection on the input content based on at least one template keyword;
a second obtaining unit configured to perform, when it is detected that any one of the template keywords is included in the input content, obtaining template information corresponding to the template keyword from a preset template database stored locally, where the template information includes a plurality of templates and is used to provide reference information for an online editing process;
a display unit configured to perform zoom-out display of the input content in a first window of the online editing page;
displaying the plurality of templates in the template information in a second window of the online editing page;
when the user finishes editing, inquiring whether the content item edited this time is stored as new template information;
and when the user selects and confirms the storage, prompting the user to input template keywords, and adding the content item into the preset template database by taking the template keywords as indexes.
9. The content item processing apparatus according to claim 8, wherein the first window and the second window are arranged horizontally in the online editing page; or the like, or, alternatively,
the first window and the second window are longitudinally arranged in the online editing page.
10. The content item processing apparatus according to claim 9, characterized in that the apparatus further comprises:
and displaying the templates in the second window in a longitudinal sequence from large to small according to the correlation degree.
11. The content item processing apparatus according to claim 8, further comprising a function option in the display window of the template information, the function option being used to indicate an edit position where a current cursor is located in copying the template information into the display window of the input content.
12. The content item processing apparatus according to claim 8, characterized in that the apparatus further comprises:
and when the template information corresponding to the template keyword is not acquired from the preset template database, acquiring a search result corresponding to the template keyword from at least one search engine, and acquiring the search result as the template information.
13. The content item processing apparatus according to claim 8, wherein the detection unit is further configured to perform:
and performing keyword detection on the front target numeric characters of the input content based on the at least one template keyword.
14. The content item processing apparatus according to claim 8, wherein the template information includes at least one of text information or format information.
15. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform operations to implement the content item processing method of any one of claims 1 to 7.
16. A non-transitory computer-readable storage medium having instructions therein, which, when executed by a processor of an electronic device, enable the electronic device to perform operations performed to implement the content item processing method of any one of claims 1 to 7.
CN201811553307.9A 2018-12-19 2018-12-19 Content item processing method and device, electronic equipment and storage medium Active CN109635202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811553307.9A CN109635202B (en) 2018-12-19 2018-12-19 Content item processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811553307.9A CN109635202B (en) 2018-12-19 2018-12-19 Content item processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109635202A CN109635202A (en) 2019-04-16
CN109635202B true CN109635202B (en) 2020-09-01

Family

ID=66075340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811553307.9A Active CN109635202B (en) 2018-12-19 2018-12-19 Content item processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109635202B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112367308A (en) * 2020-10-27 2021-02-12 广州朗国电子科技有限公司 Automatic making method, device and storage medium of multimedia playing content
CN112711937B (en) * 2021-01-18 2022-06-24 腾讯科技(深圳)有限公司 Template recommendation method, device, equipment and storage medium
CN113805709A (en) * 2021-09-24 2021-12-17 维沃移动通信有限公司 Information input method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040189707A1 (en) * 2003-03-27 2004-09-30 Microsoft Corporation System and method for filtering and organizing items based on common elements
CN104090863A (en) * 2014-07-24 2014-10-08 高德良 Intelligent legal instrument generating method and system
CN105302786A (en) * 2015-11-10 2016-02-03 百度在线网络技术(北京)有限公司 Editing method and device for data
CN106445894A (en) * 2015-08-13 2017-02-22 中国科学院计算技术研究所 New media intelligent online editing method and apparatus, and network information release platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040189707A1 (en) * 2003-03-27 2004-09-30 Microsoft Corporation System and method for filtering and organizing items based on common elements
CN104090863A (en) * 2014-07-24 2014-10-08 高德良 Intelligent legal instrument generating method and system
CN106445894A (en) * 2015-08-13 2017-02-22 中国科学院计算技术研究所 New media intelligent online editing method and apparatus, and network information release platform
CN105302786A (en) * 2015-11-10 2016-02-03 百度在线网络技术(北京)有限公司 Editing method and device for data

Also Published As

Publication number Publication date
CN109635202A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
CN107885533B (en) Method and device for managing component codes
WO2019095962A1 (en) Recommended content display method, apparatus and system
CN110019929B (en) Webpage content processing method and device and computer readable storage medium
US20240061659A1 (en) Mini program data binding method and apparatus, device, and storage medium
CN110932963B (en) Multimedia resource sharing method, system, device, terminal, server and medium
CN110248236B (en) Video playing method, device, terminal and storage medium
CN112578971B (en) Page content display method and device, computer equipment and storage medium
CN111880712B (en) Page display method and device, electronic equipment and storage medium
CN109635202B (en) Content item processing method and device, electronic equipment and storage medium
CN108959361B (en) Form management method and device
US11954464B2 (en) Mini program production method and apparatus, terminal, and storage medium
WO2022048398A1 (en) Multimedia data photographing method and terminal
CN110321126B (en) Method and device for generating page code
CN112363660B (en) Method and device for determining cover image, electronic equipment and storage medium
CN112667835A (en) Work processing method and device, electronic equipment and storage medium
CN112632445A (en) Webpage playing method, device, equipment and storage medium
CN109917988B (en) Selected content display method, device, terminal and computer readable storage medium
CN110543350A (en) Method and device for generating page component
CN112257006A (en) Page information configuration method, device, equipment and computer readable storage medium
CN111191176A (en) Website content updating method, device, terminal and storage medium
CN109547847B (en) Method and device for adding video information and computer readable storage medium
CN108038232B (en) Webpage editing method, device and system and storage medium
CN112069350A (en) Song recommendation method, device, equipment and computer storage medium
CN112860046A (en) Method, apparatus, electronic device and medium for selecting operation mode
CN110717110B (en) Multimedia resource filtering method and device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant