CN115630610A - Slash header generation method and apparatus, electronic device, and storage medium - Google Patents

Slash header generation method and apparatus, electronic device, and storage medium Download PDF

Info

Publication number
CN115630610A
CN115630610A CN202211176753.9A CN202211176753A CN115630610A CN 115630610 A CN115630610 A CN 115630610A CN 202211176753 A CN202211176753 A CN 202211176753A CN 115630610 A CN115630610 A CN 115630610A
Authority
CN
China
Prior art keywords
header
slash
information
preset
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211176753.9A
Other languages
Chinese (zh)
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 CN202211176753.9A priority Critical patent/CN115630610A/en
Publication of CN115630610A publication Critical patent/CN115630610A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets

Abstract

The method comprises the steps of responding to a slash header creation instruction, displaying header configuration information, wherein the header configuration information comprises at least two input boxes, and the at least two input boxes are used for configuring at least two pieces of header contents in a target slash header; under the condition that the input operation triggered based on the target input box is detected, displaying header content corresponding to the input operation in the target input box; the target input box is any one of at least two input boxes; responding to a slash header generation instruction, and displaying a target slash header comprising target header content based on preset header typesetting information; the target header content is the header content displayed in the at least two input boxes. The generation efficiency and the operation convenience of the slash header can be greatly improved by utilizing the embodiment of the disclosure.

Description

Slash header generation method and apparatus, electronic device, and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a slash header generation method and apparatus, an electronic device, and a storage medium.
Background
With the development of computer technology, various office software is widely applied; when a user edits a form based on office software, the creation of a slash header is involved; editing header content in the creation process of the slash header; in the related art, when editing header content, typesetting of the header content is often performed through operations such as manual line feed, space and the like; the creation operation of the slash header in the related art is complicated, and the creation efficiency is low.
Disclosure of Invention
The present disclosure provides a slash header generation method, apparatus, electronic device, and storage medium, to at least solve the technical problems of complex and complicated slash header creation operation and low slash header creation efficiency in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a slash header generation method, including:
responding to a slash header establishing instruction, and displaying header configuration information, wherein the header configuration information comprises at least two input boxes, and the at least two input boxes are used for configuring at least two header contents in a target slash header;
under the condition that an input operation triggered based on a target input box is detected, displaying header content corresponding to the input operation in the target input box; the target input box is any one of the at least two input boxes;
responding to a slash header generation instruction, and displaying the target slash header comprising target header content based on preset header typesetting information; the target header content is the header content displayed in the at least two input boxes.
In an optional embodiment, the preset header layout information includes preset content layout information and preset slash layout information, the header configuration information further includes a preview slash header, and the preview slash header is created based on the preset slash layout information; the method further comprises the following steps:
under the condition that the input operation is detected, based on the preset content typesetting information, displaying header content corresponding to the input operation in a target header sub-area in the preview slash header;
and the target header sub-area is an area where a header content box corresponding to the target input box in the preview slash header is located.
In an optional embodiment, the header configuration information further includes: diagonal style configuration information; the slash style configuration information comprises preset slash style information in a selected state; the method further comprises the following steps:
displaying at least one piece of diagonal pattern information to be selected under the condition that a first selection operation triggered based on the preset diagonal pattern information is detected;
in response to a first selection instruction for any piece of diagonal line style information to be selected, updating the preset diagonal line style information in a selection state into target diagonal line style information in a selection state;
the target diagonal style information is diagonal style information to be selected corresponding to the first selection instruction.
In an optional embodiment, the preset header typesetting information includes preset content typesetting information and preset oblique line typesetting information; the preset oblique line typesetting information comprises preset oblique line pattern information and preset oblique line quantity; the displaying the target slash header comprising the target header content based on the preset header typesetting information comprises:
and displaying the target slash header based on the preset content typesetting information, the target slash style information and the preset slash quantity.
In an optional embodiment, the preset header typesetting information includes preset slash typesetting information, and the preset slash typesetting information includes preset slash style information; the header configuration information further comprises a preview slash header, and the preview slash header is created based on the preset slash typesetting information; the method further comprises the following steps:
and updating the style information of the head slash in the preview slash list head based on the preset slash style information in response to the first selection instruction.
In an optional embodiment, the preset header typesetting information includes preset content typesetting information and preset oblique line typesetting information; the displaying the target slash header comprising the target header content based on the preset header typesetting information comprises:
rendering a header slash in a target area corresponding to the target slash header based on the preset slash typesetting information; and rendering the target header content in the target area based on the preset content typesetting information.
In an optional embodiment, before said presenting the header configuration information in response to the slash header creation instruction, the method further comprises:
in response to an insertion instruction, presenting at least one insertion information option, wherein the at least one insertion information option comprises a slash header option;
in the case that a second selection operation aiming at the slash head option is detected, displaying at least one slash head sub-option; the at least one slash header sub-option corresponds to different header content item numbers;
under the condition that a third selection operation aiming at any slash header sub-option is detected, triggering a slash header creation instruction;
and the number of the input boxes of the at least two input boxes is the same as the number of header content items of the slash header sub-option corresponding to the third selection operation.
In an optional embodiment, the method further comprises:
and under the condition that the second selection operation is detected, acquiring the preset header typesetting information of the slash header sub-option corresponding to the second selection operation.
According to a second aspect of the embodiments of the present disclosure, there is provided a slash header generating apparatus including:
the table header configuration information display module is configured to execute a command responding to creation of the slash table header, and display table header configuration information, wherein the table header configuration information comprises at least two input boxes, and the at least two input boxes are used for configuring at least two table header contents in a target slash table header;
the first header content presentation module is configured to perform presentation of header content corresponding to an input operation in a target input box under the condition that the input operation triggered based on the target input box is detected; the target input box is any one of the at least two input boxes;
a target slash header display module configured to perform display of a target slash header including target header content based on preset header typesetting information in response to a slash header generation instruction; the target header content is the header content displayed in the at least two input boxes.
In an optional embodiment, the preset header layout information includes preset content layout information and preset slash layout information, and the header configuration information further includes a preview slash header created based on the preset slash layout information; the device further comprises:
the second header content display module is configured to display header content corresponding to the input operation in a target header sub-region in the preview slash header based on the preset content typesetting information under the condition that the input operation is detected;
the target header sub-area is an area where a header content box corresponding to the target input box in the preview slash header is located.
In an optional embodiment, the header configuration information further includes: diagonal style configuration information; the diagonal pattern configuration information comprises preset diagonal pattern information in a selection state; the device further comprises:
the oblique line style information display module is configured to display at least one piece of oblique line style information to be selected under the condition that a first selection operation triggered based on the preset oblique line style information is detected;
the oblique line style information updating module is configured to execute a first selection instruction for any oblique line style information to be selected, and update the preset oblique line style information in a selection state into target oblique line style information in a selection state;
the target diagonal style information is diagonal style information to be selected corresponding to the first selection instruction.
In an optional embodiment, the preset header typesetting information includes preset content typesetting information and preset slash typesetting information; the preset oblique line typesetting information comprises preset oblique line style information and a preset oblique line number; the target slash header presentation module is specifically configured to perform presentation of the target slash header based on the preset content layout information, the target slash style information, and the preset slash number.
In an optional embodiment, the preset header typesetting information includes preset slash typesetting information, and the preset slash typesetting information includes preset slash style information; the header configuration information further comprises a preview slash header, and the preview slash header is created based on the preset slash typesetting information; the device further comprises:
and the preview slash header updating module is configured to execute updating the style information of the header slash in the preview slash header based on the preset slash style information in response to the first selection instruction.
In an optional embodiment, the preset header typesetting information includes preset content typesetting information and preset slash typesetting information; the target slash header display module is specifically configured to render header slashes in a target area corresponding to the target slash header based on the preset slash typesetting information; and rendering the target header content in the target area based on the preset content typesetting information.
In an optional embodiment, the apparatus further comprises:
an insertion information option presentation module configured to perform presenting at least one insertion information option in response to an insertion instruction, the at least one insertion information option including a slashtag option;
the slash table head sub-option presentation module is configured to perform presentation of at least one slash table head sub-option in the case that a second selection operation for the slash table head option is detected; the at least one slash header sub-option corresponds to different header content item numbers;
the slash header creation instruction triggering module is configured to trigger the slash header creation instruction when a third selection operation for any slash header sub-option is detected;
and the number of the input boxes of the at least two input boxes is the same as the number of header content items of the slash header sub-option corresponding to the third selection operation.
In an optional embodiment, the apparatus further comprises:
and the preset header typesetting information acquisition module is configured to execute the step of acquiring the preset header typesetting information of the slash header sub-option corresponding to the second selection operation under the condition that the second selection operation is detected.
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 execute the instructions to implement the method of any of the first aspects above.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, where instructions, when executed by a processor of an electronic device, enable the electronic device to perform any one of the slashtag generation methods of the embodiments of the present disclosure.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method according to any one of the first aspects described above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
in the oblique line header creating process, the input frames for configuring at least two items of header contents in the target oblique line header and the preset content typesetting information configured in advance are arranged in the header configuration information, so that the target oblique line header can be automatically generated through simple operation of inputting the header contents, the header contents are typeset without manual line changing, blank space and other operations, and the generation efficiency and the operation convenience of the oblique line header are greatly 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 and are not to be construed as limiting the disclosure.
FIG. 1 is a flow chart illustrating a slashtag generation method in accordance with an exemplary embodiment;
FIG. 2 is a flowchart illustrating a triggering operation of a slash header creation instruction in accordance with an illustrative embodiment;
FIG. 3 is a schematic illustration of a document page provided in accordance with an exemplary embodiment;
FIG. 4 is a diagram of a document page showing at least one option to insert information, provided in accordance with an exemplary embodiment;
FIG. 5 is a diagram of a document page showing at least one slashtag sub-option, according to an illustrative embodiment;
FIG. 6 is a schematic diagram of header configuration information provided in accordance with an exemplary embodiment;
FIG. 7 is a schematic illustration of a header content configuration process provided in accordance with an example embodiment;
FIG. 8 is a diagram of a document page showing a target slash header provided in accordance with an exemplary embodiment;
FIG. 9 is a block diagram illustrating a slashtag generation apparatus in accordance with an illustrative embodiment;
fig. 10 is a block diagram illustrating an electronic device for slashtag generation in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the disclosure, as detailed in the appended claims.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for presentation, analyzed data, etc.) referred to in the present disclosure are information and data authorized by the user or sufficiently authorized by each party.
The slash header generation method provided by the embodiment of the disclosure can be applied to a terminal, and specifically, the terminal can be used for providing a document editing service for any user. The terminal provides the document editing service, which can comprise an offline document editing service and an online document editing service; optionally, when the terminal provides the online document editing service, the server corresponding to the online document editing service may provide a background support for the terminal.
In a specific embodiment, the terminal may include, but is not limited to, a smart phone, a desktop computer, a tablet computer, a notebook computer, a smart speaker, a digital assistant, an Augmented Reality (AR)/Virtual Reality (VR) device, a smart wearable device, and other types of electronic devices, and may also be software running on the electronic devices, such as an application program. Optionally, the operating system running on the electronic device may include, but is not limited to, an android system, an IOS system, linux, windows, and the like.
In a specific embodiment, the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud computing services.
Fig. 1 is a flowchart illustrating a slashtag generation method according to an exemplary embodiment, and as shown in fig. 1, the slashtag generation method may include the following steps:
in step S101, header configuration information is exposed in response to the slash header creation instruction.
In a specific embodiment, the header configuration information may include at least two input boxes, and the at least two input boxes may be used to configure at least two header contents in the target slash header; an input box can be used for configuring one header content in the target slash header; the target slash header may be the slash header that currently needs to be created. Optionally, the header configuration information may show a document page with a table created therein; optionally, the header configuration information may be displayed in the document page in a panel, a pop-up window, or the like.
In a particular embodiment, the slash header creation instruction may be an instruction that indicates that a slash header is created. Optionally, in the process of editing the form on the document page, if the slash header needs to be created, the slash header may be created by selecting a certain cell in the form and aiming at the certain cell in the form.
In an optional embodiment, before presenting the header configuration information in response to the slash header creation instruction, the method further includes: the triggering operation of the slash header creation instruction, as shown in fig. 2, may include the following steps:
in step S201, at least one insertion information option is presented in response to the insertion instruction.
In a specific embodiment, the document page may be provided with an insertion control, and optionally, the insertion instruction may be triggered by clicking, double-clicking, or the like, the insertion control; specifically, the insertion instruction may be an instruction for inserting information into the target area; optionally, the target area may be a currently selected area, for example, an area where a currently selected cell in the table is located. In a particular embodiment, as shown in FIG. 3, FIG. 3 is a schematic illustration of a document page provided in accordance with an exemplary embodiment. The control corresponding to 301 may be an insertion control; the region corresponding to 302 may be a target region.
In a specific embodiment, the at least one inserted information option may be at least one information option that is insertable during a document editing process; specifically, the at least one insertion information option may include a slash header option.
In a specific embodiment, at least one inserted information option can be displayed on a document page in a pop-up window, panel or the like manner; as shown in FIG. 4, FIG. 4 is a diagram illustrating a document page having at least one option to insert information provided according to an exemplary embodiment. Wherein, the at least one insertion information option may include 401 corresponding option information.
In step S203, in the case where a second selection operation for the slash header option is detected, at least one slash header sub-option is presented.
In a specific embodiment, the second selecting operation may be an operation of selectively inserting a slash header. Optionally, the second selection operation may include clicking on the slash head option or positioning a cursor in a region where the slash head option is located.
In a specific embodiment, the at least one slash header sub-option corresponds to a different number of header content items. Correspondingly, any one of the slash header sub-options may be a slash header sub-option corresponding to the number of content items in a header.
In a specific embodiment, as shown in FIG. 5, FIG. 5 is a diagram of a document page that exhibits at least one slash header sub-option provided in accordance with an exemplary embodiment. Wherein, the at least one slash header sub-option may include the slash header sub-option corresponding to 501. Specifically, in addition to the slash header sub-options with the header content item number of 2 and the header content item number of 3 in fig. 5, in practical application, the slash header sub-options with the header content item number of 4 or more may also be correspondingly set, which may specifically be set according to practical application requirements.
In step S205, in the case where the third selection operation for any one of the slash header sub-options is detected, a slash header creation instruction is triggered.
In a specific embodiment, the third selecting operation may be an operation of selecting a slashtag sub-option. Specifically, the second selection operation may include, but is not limited to, a single click, a double click, and the like for any slash tab sub-option.
In a specific embodiment, the number of the input boxes of the at least two input boxes is the same as the number of the header content items of the slash header sub-option corresponding to the third selecting operation. The number of header content items may be at least two; specifically, the user may select the slash header sub-option corresponding to the number of header content items in accordance with the actual application requirements, so as to create a target slash header corresponding to the number of header content items.
Furthermore, it should be noted that, in the case where there is only one slash header sub-option, the slash header creation instruction may be directly triggered in the case where the second selection operation for the slash header option is detected.
In the above embodiment, in the case of triggering the insertion instruction, by displaying at least one insertion information option, the user may select the insertion information according to the actual requirement, and in the case of performing the second selection operation on the slash header option, at least one slash header sub-option may be displayed, so that the user may select a corresponding slash header sub-option according to the actual requirement, and in the case of detecting the third selection operation on a slash header sub-option, the creation instruction for creating a target slash header corresponding to the slash header sub-option may be triggered, and further, the creation configuration of the target slash header may be performed.
In an optional embodiment, any slash header sub-option in the at least one slash header sub-option is pre-configured with a preset header typesetting information. The preset header typesetting information can be the typesetting information of the slash header corresponding to the slash header sub-option; correspondingly, the method may further include:
and under the condition that the second selection operation is detected, acquiring preset header typesetting information of the slash header sub-option corresponding to the second selection operation.
In a specific embodiment, the preset header typesetting information may include preset content typesetting information and preset slash typesetting information; the preset content typesetting information is typesetting information of preset header content, and specifically, the preset content typesetting information may include a preset alignment mode of the header content; specifically, the preset alignment manner may include an alignment manner of contents of at least two header items in the target slash header, and optionally, the target slash header is: the slash header with the header content item number of 2 is taken as an example, and the at least two items of header content may include a line header content and a list header content; optionally, the alignment of the row header contents may be arranged right of the row header and vertically centered in the row, and the alignment of the column header contents may be arranged left of the column header and vertically centered in the row.
In an optional embodiment, the preset content typesetting information may further include preset font style information (preset font information, preset font size information, and preset font color) of the header content; optionally, when the preset content typesetting information does not include the preset font style information, the preset font style information of the header content in the target slash header may be subsequently set in combination with the preset font style information corresponding to the header insertion region in the current document;
in a specific embodiment, the preset oblique line layout information may be layout information of a header oblique line. Specifically, the preset oblique line typesetting information may include a preset oblique line number and preset oblique line style information. Specifically, the preset diagonal pattern information may be line type, color, and other information reflecting the diagonal pattern of the header.
In the above embodiment, when a second selection operation for a certain slash header sub-option is detected, by obtaining the preset header layout information of the slash header sub-option corresponding to the second selection operation, it is possible to facilitate subsequent fast creation and configuration of the slash header, and further improve the header creation efficiency.
In a specific embodiment, assume that the target slash header that needs to be created is: as shown in fig. 6, fig. 6 is a schematic diagram of header configuration information according to an exemplary embodiment, where the header content item number is 2. The two input boxes corresponding to 601 may be input boxes for configuring two items of header contents in the target slash header.
In step S103, when an input operation triggered based on the target input box is detected, header content corresponding to the input operation is presented in the target input box.
In a specific embodiment, the target input box may be any one of at least two input boxes. Specifically, the user may sequentially input the header content in at least two input boxes according to actual requirements, so as to configure the header content.
In step S105, in response to the slash header generation instruction, the target slash header including the target header content is displayed based on the preset header layout information.
In a specific embodiment, the target header content may be header content displayed in at least two input boxes. Optionally, the header configuration information may further include a header generation control, optionally, the header generation control may be configured to trigger the slash header generation instruction, and optionally, the slash header generation instruction may be triggered by clicking or double clicking the header generation control.
In an optional embodiment, the preset header layout information may include preset content layout information and preset slash layout information; correspondingly, the displaying the target slash header including the target header content based on the preset header typesetting information may include:
based on preset oblique line typesetting information, rendering a head oblique line in a target area corresponding to a head of the target oblique line; and rendering the target header content in the target area based on the preset content typesetting information.
In a specific embodiment, the target area may be an area where a target slash header is located (i.e., an area where the slash header needs to be detached), and optionally, the target area may be a cell where the header needs to be inserted in the table; specifically, presetting the slash typesetting information includes presetting the slash quantity and presetting the slash style information, and correspondingly, the rendering header slash may include, based on the presetting the slash typesetting information, in a target area corresponding to a target slash header: and rendering a header slash in the target slash header in the target area based on the preset slash number and the preset slash style information.
In a specific embodiment, the rendering the target header content in the target area based on the preset content layout information may include: and performing typesetting processing on the target header content based on the preset content typesetting information in the process of rendering the target header content in the target area.
In the above embodiment, after the header configuration is performed by combining the header configuration information, in the process of generating the target slash header, the rendering of the header slash can be performed by combining the preset slash layout information, and the rendering of the target header content can be performed by combining the preset content layout information, so that the target slash header can be automatically generated only by inputting the header content, and the generation efficiency and convenience of the slash header are greatly improved.
In an optional embodiment, the preset header layout information may include preset content layout information and preset slash layout information, the header configuration information further includes a preview slash header, and the preview slash header may be created based on the preset slash layout information; correspondingly, the method may further include:
under the condition that the input operation is detected, based on preset content typesetting information, displaying header content corresponding to the input operation in a target header sub-area in the preview slash header;
in a specific embodiment, as shown in fig. 6, the slash header corresponding to 601 may be a preview slash header. Specifically, the target header sub-area may be an area where a header content box corresponding to the target input box in the preview slash header is located. Referring to fig. 6, the area where the header content box corresponding to the input box of the "please input the line header content" is located may be the area where the header content box corresponding to the "line header" in the preview slash header is located; the area where the header content box corresponding to the input box of the "please input the header content" may be the area where the header content box corresponding to the "column head" in the preview slash header is located.
In a specific embodiment, in the process of detecting an input operation triggered based on any input box, the input header content can be synchronously displayed to the preview slash header while the corresponding input box displays the input header content. In a specific embodiment, as shown in fig. 7, fig. 7 is a schematic diagram of a header content configuration process according to an exemplary embodiment. In the case where the head content "month" is input in conjunction with the input box "please input the head content" shown in a in conjunction with fig. 7, the head content of the corresponding area in the preview slash header is also updated to "month" synchronously; further, as shown in fig. 7 b, when the header content "name" is input in conjunction with the input box "please input the header content", the header content of the corresponding area in the preview slash header is also updated to "name" in synchronization.
In the above embodiment, by setting the preview slash header created based on the preset slash layout information in the header configuration information, the preview slash header can be updated in real time by combining the input header content and the preset content layout information in the header content input process, so that a user can be helped to check the edited slash header in real time, and the intuitiveness and the convenience in the header editing process are greatly improved.
In an optional embodiment, the header configuration information may further include: diagonal style configuration information; specifically, the diagonal style configuration information may be used to configure the style information of the diagonal in the header, and specifically, the diagonal style configuration information includes preset diagonal style information in a selected state; the preset slant line style information may be style information of a slant line set by a system default. Correspondingly, the method may further include:
displaying at least one piece of diagonal style information to be selected under the condition that a first selection operation triggered based on preset diagonal style information is detected;
in response to a first selection instruction for any piece of diagonal line style information to be selected, updating preset diagonal line style information in a selection state into target diagonal line style information in the selection state;
in a specific embodiment, the first selection operation may be an operation that triggers selection of diagonal line style information. Specifically, the first selection operation includes operations such as clicking preset diagonal style information or positioning a cursor to a region where the preset diagonal style information is located. The first selection instruction can select any instruction of diagonal style information to be selected; optionally, the first selection instruction may be triggered by clicking any piece of to-be-selected diagonal style information or positioning a cursor to any piece of to-be-selected diagonal style information. The target diagonal style information may be diagonal style information to be selected corresponding to the first selection instruction.
In an alternative embodiment, the slash style information may include slash color information and/or slash line information; accordingly, the preset diagonal line pattern information in the selection state may include: the method comprises the steps of presetting color information in a selected state and/or presetting slash information in a selected state; optionally, as shown in fig. 6, the information corresponding to 603 may be preset color information in a selected state; 604, the corresponding information may be the preset slash information in the selected state. Accordingly, the at least one piece of diagonal line style information to be selected may include: and the oblique line color information to be selected and/or the oblique line information to be selected.
In a specific embodiment, the preset diagonal style information in the selection state includes: under the conditions of the preset color information in the selected state and the preset oblique line information in the selected state, the display of the oblique line color information to be selected can be triggered by combining the preset color information in the selected state; the display of the diagonal line information to be selected can also be triggered by combining the preset diagonal line information in the selection state; optionally, the user may select the slash header and the slash color in the target slash header that needs to be created by combining the actual requirement with the slash color information to be selected and the slash line information to be selected.
In the above embodiment, the oblique line style configuration information is set in the header configuration information, so that the configuration of the header style can be conveniently performed by the user in combination with actual requirements in the header configuration process, and the header configuration requirements of the user can be better met.
In an optional embodiment, the preset header layout information may include preset content layout information and preset slash layout information; the preset oblique line typesetting information comprises preset oblique line style information and preset oblique line quantity; correspondingly, the displaying the target slash header including the target header content based on the preset header typesetting information may include:
and displaying the target slash header based on the preset content typesetting information, the target slash style information and the preset slash quantity.
In a specific embodiment, the displaying the target slash header based on the preset content composition information, the target slash style information, and the preset number of slashes may include rendering a header slash in a target area corresponding to the target slash header based on the target slash style information and the preset number of slashes; and rendering the target header content in the target area based on the preset content typesetting information.
In the foregoing embodiment, under the condition that the preset slash style information in the preset slash composition information is updated, in the process of rendering the target slash header, the target slash style information may be combined to render the header slash in the target slash header, so as to ensure the validity of the target slash header.
In an optional embodiment, the preset header typesetting information may include preset slash typesetting information, and the preset slash typesetting information includes preset slash style information; the header configuration information also comprises a preview slash header, and the preview slash header is created based on the preset slash typesetting information; the above method may further comprise:
and updating the style information of the head slash in the preview slash table header based on the preset slash style information in response to the first selection instruction.
In the above embodiment, under the condition that the preset slash style information in the preset slash typesetting information is updated, the update of the header slash style information in the preview slash header may be performed in combination with the updated target slash style information, so as to help a user to know the style of the slash header in time, and improve the intuitiveness during the slash header configuration process and the effectiveness of previewing the slash header.
In a specific embodiment, when the header content is input in at least two input boxes, the header generation control may be combined to trigger a slash header generation instruction, and then the preset header typesetting information may be called to generate a target slash header including the target header content, and the target slash header is displayed in a target area corresponding to the target slash header.
In a specific embodiment, as seen in b in fig. 7, the "determine" control may be a header generation control, and optionally, the slash header generation instruction may be triggered by clicking the header generation control, and accordingly, as shown in fig. 8, fig. 8 is a schematic diagram of a document page showing a target slash header according to an exemplary embodiment.
In an optional embodiment, the subsequent user may also perform update editing on the target slash header displayed in the document page in combination with the actual requirement.
As can be seen from the above technical solutions provided in the embodiments of the present specification, in the process of creating the slash header, the present specification may set, in the header configuration information, the input frame and the preset content typesetting information configured in advance, which are respectively used for configuring at least two items of header contents in the target slash header, and may automatically generate the target slash header through a simple operation of inputting the header contents, and perform typesetting on the header contents without operations such as manual line changing and space changing, so as to greatly improve generation efficiency and operation convenience of the slash header.
Fig. 9 is a block diagram illustrating a slash header generation apparatus according to an example embodiment. Referring to fig. 9, the apparatus includes:
the header configuration information presentation module 910 is configured to perform presentation of header configuration information in response to the slash header creation instruction, where the header configuration information includes at least two input boxes, and the at least two input boxes are used to configure at least two header contents in the target slash header;
a first header content presentation module 920 configured to perform, in a case that an input operation triggered based on the target input box is detected, presentation of header content corresponding to the input operation in the target input box; the target input box is any one of at least two input boxes;
a target slash header presentation module 930 configured to perform presentation of a target slash header including target header contents based on preset header composition information in response to a slash header generation instruction; the target header content is the header content displayed in the at least two input boxes.
In an optional embodiment, the preset header layout information includes preset content layout information and preset slash layout information, and the header configuration information further includes a preview slash header created based on the preset slash layout information; the above-mentioned device still includes:
the second header content display module is configured to display header content corresponding to the input operation in a target header sub-region in the preview slash header based on the preset content typesetting information under the condition that the input operation is detected;
the target header sub-area is an area where a header content box corresponding to the target input box in the preview slash header is located.
In an optional embodiment, the header configuration information further includes: diagonal style configuration information; the diagonal pattern configuration information includes preset diagonal pattern information in a selected state; the above-mentioned device still includes:
the oblique line style information display module is configured to display at least one piece of oblique line style information to be selected under the condition that a first selection operation triggered based on preset oblique line style information is detected;
the oblique line style information updating module is configured to execute a first selection instruction in response to any piece of oblique line style information to be selected, and update preset oblique line style information in a selection state to target oblique line style information in the selection state;
the target diagonal style information is diagonal style information to be selected corresponding to the first selection instruction.
In an optional embodiment, the preset header layout information includes preset content layout information and preset slash layout information; the preset oblique line typesetting information comprises preset oblique line pattern information and preset oblique line quantity; the target slash header presentation module 930 is specifically configured to perform presentation of the target slash header based on the preset content layout information, the target slash style information, and the preset slash number.
In an optional embodiment, the preset header typesetting information includes preset slash typesetting information, and the preset slash typesetting information includes preset slash style information; the header configuration information also comprises a preview slash header, and the preview slash header is created based on the preset slash typesetting information; the above-mentioned device still includes:
and the preview slash header updating module is configured to execute updating the style information of the header slash in the preview slash header based on the preset slash style information in response to the first selection instruction.
In an optional embodiment, the preset header layout information includes preset content layout information and preset slash layout information; the target slash header presentation module 930 is specifically configured to perform rendering header slashes in a target area corresponding to the target slash header based on the preset slash typesetting information; and rendering the target header content in the target area based on the preset content typesetting information.
In an optional embodiment, the apparatus further comprises:
an insertion information option presentation module configured to perform presenting at least one insertion information option in response to the insertion instruction, the at least one insertion information option including a slash header option;
the slash table head sub-option presentation module is configured to perform presentation of at least one slash table head sub-option in the case that a second selection operation for the slash table head option is detected; at least one slash header sub-option corresponds to different header content item numbers;
the slash header creation instruction triggering module is configured to trigger the slash header creation instruction when a third selection operation for any slash header sub-option is detected;
and the number of the input boxes of the at least two input boxes is the same as the number of header content items of the slash header sub-option corresponding to the third selection operation.
In an optional embodiment, the apparatus further comprises:
and the preset header typesetting information acquisition module is configured to execute the step of acquiring the preset header typesetting information of the slash header sub-option corresponding to the second selection operation under the condition that the second selection operation is detected.
With regard to the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
Fig. 10 is a block diagram illustrating an electronic device for slash header generation, which may be a terminal, according to an example embodiment, and an internal structure thereof may be as shown in fig. 10.
The terminal may include RF (Radio Frequency) circuitry 1010, memory 1020 including one or more computer-readable storage media, input unit 1030, display unit 1040, sensor 1050, audio circuitry 1060, wiFi (wireless fidelity) module 1070, processor 1080 including one or more processing cores, and power source 1090. Those skilled in the art will appreciate that the terminal structure shown in fig. 10 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
RF circuit 1010 may be used for receiving and transmitting signals during a message transmission or communication session, and in particular, for receiving downlink information from a base station and processing the received downlink information by one or more processors 1080; in addition, data relating to uplink is transmitted to the base station. In general, RF circuitry 1010 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuit 1010 may also communicate with networks and other terminals through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), etc.
The memory 1020 may be used to store software programs and modules, and the processor 1080 executes various functional applications and data processing by operating the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, application programs required for functions, and the like; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 1020 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 1020 may also include a memory controller to provide access to memory 1020 by processor 1080 and input unit 1030.
The input unit 1030 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, input unit 1030 may include touch-sensitive surface 1031, as well as other input devices 1032. The touch-sensitive surface 1031, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (such as operations by a user on or near the touch-sensitive surface 1031 using any suitable object or attachment, such as a finger, a stylus, etc.) on or near the touch-sensitive surface 1031 and drive the corresponding connection device according to a preset program. Optionally, the touch sensitive surface 1031 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 1080, and can receive and execute commands sent by the processor 1080. In addition, the touch-sensitive surface 1031 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 1030 may also include other input devices 1032 in addition to the touch-sensitive surface 1031. In particular, other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a track ball, a mouse, a joystick, and the like.
The display unit 1040 may be used to display information input by or provided to a user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 1040 may include a Display panel 1041, and optionally, the Display panel 1041 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 1031 may overlay the display panel 1041, and when a touch operation is detected on or near the touch-sensitive surface 1031, the touch operation is transmitted to the processor 1080 for determining the type of the touch event, and the processor 1080 then provides a corresponding visual output on the display panel 1041 according to the type of the touch event. Wherein the touch sensitive surface 1031 and the display panel 1041 may implement input and output functions as two separate components, but in some embodiments the touch sensitive surface 1031 may be integrated with the display panel 1041 to implement input and output functions.
The terminal may also include at least one sensor 1050, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 1041 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 1041 and/or a backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the terminal is stationary, and can be used for applications of recognizing terminal gestures (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the terminal, detailed description is omitted here.
Audio circuitry 1060, speaker 1061, and microphone 1062 may provide an audio interface between a user and the terminal. The audio circuit 1060 can transmit the electrical signal converted from the received audio data to the speaker 1061, and the electrical signal is converted into a sound signal by the speaker 1061 and output; on the other hand, the microphone 1062 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1060 and converted into audio data, which is then processed by the audio data output processor 1080 and then transmitted to, for example, another terminal via the RF circuit 1010, or output to the memory 1020 for further processing. The audio circuit 1060 may also include an earbud jack to provide communication of peripheral headphones with the terminal.
WiFi belongs to a short-distance wireless transmission technology, and the terminal can help a user to send and receive e-mails, browse web pages, access streaming media, and the like through the WiFi module 1070, and provides wireless broadband internet access for the user. Although fig. 10 shows the WiFi module 1070, it is understood that it does not belong to the essential constitution of the terminal, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 1080 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 1020 and calling data stored in the memory 1020, thereby integrally monitoring the terminal. Optionally, processor 1080 may include one or more processing cores; preferably, the processor 1080 may integrate an application processor, which primarily handles operating systems, user interfaces, application programs, etc., and a modem processor, which primarily handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1080.
The terminal also includes a power supply 1090 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 1080 via a power management system that may enable managing charging, discharging, and power consumption via the power management system. Power supply 1090 may also include any component including one or more DC or AC power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the terminal is a touch screen display, the terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors according to the instructions of the method embodiments of the present invention.
In an exemplary embodiment, there is also provided an electronic device including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the slashtag generation method as in the embodiments of the present disclosure.
In an exemplary embodiment, a computer-readable storage medium is also provided, and when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the slashtag generation method in the embodiment of the present disclosure.
In an exemplary embodiment, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the slashtag header generation method in the embodiments of the present disclosure.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, the computer program may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention 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 (11)

1. A slash header generation method is characterized by comprising the following steps:
responding to a slash header establishing instruction, and displaying header configuration information, wherein the header configuration information comprises at least two input boxes, and the at least two input boxes are used for configuring at least two header contents in a target slash header;
under the condition that an input operation triggered based on a target input box is detected, showing header content corresponding to the input operation in the target input box; the target input box is any one of the at least two input boxes;
responding to a slash header generation instruction, and displaying the target slash header comprising target header content based on preset header typesetting information; the target header content is the header content displayed in the at least two input boxes.
2. The slash table header generation method according to claim 1, wherein the preset table header layout information includes preset content layout information and preset slash layout information, and the table header configuration information further includes a preview slash table header created based on the preset slash layout information; the method further comprises the following steps:
under the condition that the input operation is detected, based on the preset content typesetting information, displaying header content corresponding to the input operation in a target header sub-area in the preview slash header;
the target header sub-area is an area where a header content box corresponding to the target input box in the preview slash header is located.
3. The slash header generation method according to claim 1, wherein the header configuration information further includes: diagonal style configuration information; the diagonal pattern configuration information comprises preset diagonal pattern information in a selection state; the method further comprises the following steps:
displaying at least one piece of diagonal pattern information to be selected under the condition that a first selection operation triggered based on the preset diagonal pattern information is detected;
in response to a first selection instruction for any piece of diagonal line style information to be selected, updating the preset diagonal line style information in a selection state into target diagonal line style information in a selection state;
the target diagonal style information is diagonal style information to be selected corresponding to the first selection instruction.
4. The slashtag generation method according to claim 3, wherein the preset header layout information includes preset content layout information and preset slashtag layout information; the preset oblique line typesetting information comprises preset oblique line style information and a preset oblique line number; the displaying the target slash header comprising the target header content based on the preset header typesetting information comprises:
and displaying the target slash header based on the preset content typesetting information, the target slash style information and the preset slash quantity.
5. The slash header generation method according to claim 3, wherein the preset header layout information includes preset slash layout information, and the preset slash layout information includes preset slash pattern information; the header configuration information further comprises a preview slash header, and the preview slash header is created based on the preset slash typesetting information; the method further comprises the following steps:
and updating the style information of the head slash in the preview slash list head based on the preset slash style information in response to the first selection instruction.
6. The slash header generation method according to any one of claims 1 to 5, wherein the preset header layout information comprises preset content layout information and preset slash layout information; the displaying the target slash header comprising the target header content based on the preset header typesetting information comprises:
based on the preset oblique line typesetting information, rendering a head oblique line in a target area corresponding to the head of the target oblique line; and rendering the target header content in the target area based on the preset content typesetting information.
7. The slash header generation method according to any one of claims 1 to 5, wherein before the header configuration information is exposed in response to the slash header creation instruction, the method further comprises:
in response to an insertion instruction, presenting at least one insertion information option, wherein the at least one insertion information option comprises a slash header option;
in the case that a second selection operation aiming at the slash head option is detected, displaying at least one slash head sub-option; the at least one slash header sub-option corresponds to different header content item numbers;
under the condition that a third selection operation aiming at any slash header sub-option is detected, triggering a slash header creation instruction;
and the number of the input boxes of the at least two input boxes is the same as the number of header content items of the slash header sub-option corresponding to the third selection operation.
8. The slashtag generation method according to claim 7, wherein the method further comprises:
and under the condition that the second selection operation is detected, acquiring the preset header typesetting information of the slash header sub-option corresponding to the second selection operation.
9. A slash header generation device, comprising:
the table header configuration information display module is configured to execute a command responding to creation of the slash table header, and display table header configuration information, wherein the table header configuration information comprises at least two input boxes, and the at least two input boxes are used for configuring at least two table header contents in a target slash table header;
the first header content presentation module is configured to perform presentation of header content corresponding to an input operation in a target input box under the condition that the input operation triggered based on the target input box is detected; the target input box is any one of the at least two input boxes;
a target slash header presentation module configured to perform presentation of a target slash header including target header content based on preset header typesetting information in response to a slash header generation instruction; the target header content is the header content displayed in the at least two input boxes.
10. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the slash header generation method of any of claims 1 to 8.
11. A computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the slashtag generation method of any of claims 1 to 8.
CN202211176753.9A 2022-09-26 2022-09-26 Slash header generation method and apparatus, electronic device, and storage medium Pending CN115630610A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211176753.9A CN115630610A (en) 2022-09-26 2022-09-26 Slash header generation method and apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211176753.9A CN115630610A (en) 2022-09-26 2022-09-26 Slash header generation method and apparatus, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
CN115630610A true CN115630610A (en) 2023-01-20

Family

ID=84903228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211176753.9A Pending CN115630610A (en) 2022-09-26 2022-09-26 Slash header generation method and apparatus, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN115630610A (en)

Similar Documents

Publication Publication Date Title
US10725649B2 (en) Graphic code display method and apparatus
US10334309B2 (en) Bullet screen display method and apparatus
CN106775637B (en) Page display method and device for application program
CN113473204A (en) Information display method and device, electronic equipment and storage medium
US11681432B2 (en) Method and terminal for displaying input method virtual keyboard
CN110032324B (en) Text selection method and terminal
CN113365106B (en) Multimedia resource generation method and device, electronic equipment and storage medium
US11455075B2 (en) Display method when application is exited and terminal
EP2846296A1 (en) Method, apparatus and terminal device for displaying messages
CN111580815A (en) Editing method of page elements and related equipment
CN108780400B (en) Data processing method and electronic equipment
CN110300047B (en) Animation playing method and device and storage medium
US20240089223A1 (en) Information display method and apparatus, and electronic device
WO2015124060A1 (en) Login interface displaying method and apparatus
CN115017340A (en) Multimedia resource generation method and device, electronic equipment and storage medium
CN115630610A (en) Slash header generation method and apparatus, electronic device, and storage medium
CN115017406A (en) Live broadcast picture display method and device, electronic equipment and storage medium
CN115643445A (en) Interaction processing method and device, electronic equipment and storage medium
CN114547436A (en) Page display method and device, electronic equipment and storage medium
US11327845B2 (en) Image synchronization method and device, and server
CN113468260A (en) Data analysis method and device, electronic equipment and storage medium
CN115361590B (en) Live video display method and device, electronic equipment and storage medium
CN115310014A (en) Information display method and device, electronic equipment and storage medium
CN115390707A (en) Sharing processing method and device, electronic equipment and storage medium
CN115018574A (en) Information display 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