Disclosure of Invention
An object of the embodiments of the present disclosure is to provide a method, an apparatus, and a device for processing a word level table, so as to provide a more stable and more beautiful word level table generation scheme.
In order to solve the above technical problem, the embodiments of the present specification are implemented as follows:
an embodiment of the present specification provides a method for processing a spreadsheet, where the method includes:
acquiring a target font size value input by a user, wherein the target font size value is used for representing the size of a font;
and taking the target word size value as the minimum word size value in the word order table of the user to generate the word order table, wherein the word order table comprises a plurality of different word size values.
Optionally, the obtaining a target font size value input by a user includes:
when the word size value setting mechanism is triggered, displaying an input box of the word size value;
and when an input completion instruction is received, acquiring a target word size value input by a user from the input box.
Optionally, the generating the word-level table by using the target word size value as a minimum word size value in the word-level table of the user includes:
taking the target word size value as the minimum word size value in the word order table of the user;
and calculating to obtain a plurality of different word size values through a preset word order table generation algorithm according to the minimum word size value so as to generate the word order table.
Optionally, the word-level-table generating algorithm is determined based on an exponential function with a predetermined number as a base.
Optionally, the calculating, according to the minimum word size value, a plurality of different word size values through a preset word size table generating algorithm to generate the word size table includes:
according to the minimum word size value, the following formula is utilized
f(n)=f(0)*akn
And calculating to obtain a plurality of different word size values to generate the word order table, wherein f (n) is the nth word size value, f (0) is the minimum word size value, a is a base number, k is a constant, and n is a natural number.
Optionally, the predetermined value of the base number is a natural constant e or 1.618.
Optionally, k-1/5, a-e.
Optionally, the table of levels includes a first predetermined number of word size values, and the method further includes:
when a request for displaying more word size values is received, acquiring the maximum word size value in the first preset number of word size values;
determining the calculated number n of the word size value corresponding to the maximum word size value according to the maximum word size value and the minimum word size value;
and sequentially calculating the (n + m) th word value according to the calculated number n of the word value corresponding to the maximum word value and the minimum word value to obtain m word values so as to obtain a word order table comprising the n + m word values, wherein m is a positive integer.
An apparatus for processing a vocabulary provided in an embodiment of the present specification, the apparatus includes:
the font size value acquisition module is used for acquiring a target font size value input by a user, and the target font size value is used for representing the size of a font;
and the word order table generating module is used for generating the word order table by taking the target word size value as the minimum word size value in the word order table of the user, and the word order table comprises a plurality of different word size values.
Optionally, the word size value obtaining module includes:
the input display unit is used for displaying an input box of the font size value when the font size value setting mechanism is triggered;
and the word size value acquisition unit is used for acquiring a target word size value input by a user from the input box when an input completion instruction is received.
Optionally, the word level generation module includes:
a minimum font size determining unit, configured to use the target font size value as a minimum font size value in the user's font table;
and the word order table generating unit is used for calculating to obtain a plurality of different word size values through a preset word order table generating algorithm according to the minimum word size value so as to generate the word order table.
Optionally, the word-level-table generating algorithm is determined based on an exponential function with a predetermined number as a base.
Optionally, the word level table generating unit is configured to utilize the following formula according to the minimum word size value
f(n)=f(0)*akn
And calculating to obtain a plurality of different word size values to generate the word order table, wherein f (n) is the nth word size value, f (0) is the minimum word size value, a is a base number, k is a constant, and n is a natural number.
Optionally, the predetermined value of the base number is a natural constant e or 1.618.
Optionally, k-1/5, a-e.
Optionally, the table of the word order includes a first predetermined number of word size values, and the apparatus further includes:
a maximum word size determining module, configured to, when a request for displaying more word size values is received, obtain a maximum word size value of the first predetermined number of word size values;
the number determining module of the word size value is used for determining the calculated number n of the word size value corresponding to the maximum word size value according to the maximum word size value and the minimum word size value;
and the word size expansion module is used for sequentially calculating the (n + m) th word size value according to the calculated number n of the word size value corresponding to the maximum word size value and the minimum word size value to obtain m word size values so as to obtain a word order table comprising the n + m word size values, wherein m is a positive integer.
An embodiment of the present specification provides a processing apparatus for a spreadsheet, where the processing apparatus for a spreadsheet includes:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
acquiring a target font size value input by a user, wherein the target font size value is used for representing the size of a font;
and taking the target word size value as the minimum word size value in the word order table of the user to generate the word order table, wherein the word order table comprises a plurality of different word size values.
It can be seen from the above technical solutions provided in the embodiments of the present specification that, in the embodiments of the present specification, a target font size value input by a user for representing the font size is obtained, the target font size value is used as a minimum font size value in a font table of the user, and the font table is generated, where the font table includes a plurality of different font size values, so that only the user needs to determine the minimum font size value in the font table of the user, and a font table including a plurality of different font size values can be generated according to the minimum font size value, and the user does not need to set different font size values in sequence according to personal experience, which greatly saves human resources and improves the efficiency of generating the font table, and in addition, the font table generated by the above method, as long as the minimum font size value is not changed, other font size values in the font table are stable, and will not be changed due to subjective factors of the user, and will not make the font tables used by replacing the user different, the method has a good word-level table inheritance effect, the generated word-level table is high in attractiveness, and user experience is improved.
Detailed Description
The embodiment of the specification provides a method, a device and equipment for processing a word list.
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present specification.
Example one
As shown in fig. 1, an embodiment of the present specification provides a method for processing a word list, where an execution subject of the method may be a terminal device or a server, where the terminal device may be a device such as a personal computer, or may also be a mobile terminal device such as a mobile phone and a tablet computer, and the terminal device may be a terminal device used by a user. The server may be an independent server, or a server cluster composed of a plurality of servers, and the server may be a background server of a certain service, or a background server of a certain website (such as an online shopping website or a payment application), and the server may have functions of document editing and web page design. In order to simplify the processing procedure of the present solution, in this embodiment, an execution main body is taken as an example of a terminal device, and for the case of a server, the processing may be performed according to the following related contents, which is not described herein again. The method may specifically comprise the steps of:
in step S102, a target font size value input by the user is obtained, and the target font size value is used for representing the size of the font.
The target font size value may be any font size value, and the font size value may be a display size of characters input in the document in a document editing process, where the document editing may include multiple types, for example, a document created by a document editing application, specifically, a Word document or a PPT document created by an Office editing application, or a web document written by a web page design tool. In practical applications, the font size value may include various expressions, such as a length expression, specifically 4.94 mm or 5.29 mm; or may be represented by a "Point," which may be a basic unit for measuring font size, i.e., "Point," and may be abbreviated as pt or pound, specifically 12 or 16 pounds, etc.; the word size value may be expressed in a pixel manner, and in this embodiment of the present specification, the word size value may be expressed in a pixel manner, and document editing may be described in an example of writing a web document by a web page design tool, and for other cases, processing may be performed according to the following related content, and details are not described herein again.
In implementation, in document editing, the font size is an important part of the presented document content, which can affect the final display effect of the document, specifically, in the process of designing a web page, in editing a web page document, the font size is an important part of the visual design of the web page, and the size of the font size value can directly affect the final effect of the visual design of the web page. Currently, a web page designer usually sets fonts and sizes of font size values in a web page document according to personal experience, for example, currently, in the design field, a set of font tables is given according to personal experience of the designer, the font size values included in the font tables are even numbers and are multiples of 4, such as 12, 16, 20, 24, 28, 32, 40, 48,. 108, etc., the font tables are precipitated by the experience of the designer, the aesthetic property is poor, in addition, the font size values included in the font tables are too many, moreover, the setting of font size values and the selection of font size values by the designer have certain subjectivity, the sizes of the set fonts and font size values may be different for different web page designers, and meanwhile, the design concept and idea of the web page designer may have certain fluctuation at different time, and further the sizes of the set fonts and font size values may be influenced, thereby making the word size value setting of the web page design more confusing. Therefore, the embodiment of the present specification provides a scheme for generating a word level table with high aesthetic property and a certain rule for setting the font size value, which may specifically include the following contents:
the document editing application or the webpage design tool for document editing can be provided with a word size value setting page, when a user installs the document editing application or the webpage design tool, the word size value can be preset through the word size value setting page, and therefore, when the user starts the document editing application or the webpage design tool, the set word size value can be used as a target word size value input by the user in the current use in a default mode.
In addition, in addition to determining the target font size value input by the user in the current use by the default setting, the target font size value input by the user in the current use may also be determined by setting or changing the default setting each time the user needs to edit a document, specifically, when the user needs to edit the document, a document editing application or a web page design tool may be started, and an editing tool for editing the document may be provided in the document editing application or the web page design tool, for example, as shown in fig. 2, a font and font size value setting option, a font and font size value selection option, a paragraph setting option, and the like may be provided in the document editing application or the web page design tool, and different options may implement different document editing functions, for example, the paragraph setting option may facilitate the user to set paragraph spacing, line spacing, and layout, and the like of the document, and the font and font size value selection option may facilitate the user to select the font presented by the document, and the size of the font size value of the font, etc. The method includes the steps that before a user edits a document through a document editing application or a webpage design tool, a font size value presented by the document can be set, specifically, when the user starts the document editing application or the webpage design tool, a terminal device presents a prompt box in a pop-up window mode to prompt the user to set the font size value, if the user determines that the font size value needs to be set, the terminal device can display a setting page of a font and a font size value, or when the user triggers a setting option of the font and the font size value, the terminal device can display the setting page of the font and the font size value.
As shown in fig. 2, the setup page may include an input box of font size values and a description of the input font size values (e.g., please input the minimum font size, or please input the maximum font size, or, as shown in fig. 2, please input the initial font size, etc.). The user can input a font size value in the input box of the font size value, after the input is completed, the user can click a determination key in the setting page, the terminal device can acquire the font size value in the input box and can use the font size value as a target font size value, and the target font size value can be specifically 12px or 16px and the like.
In step S104, the target font size value is used as the minimum font size value in the user' S font table, and the font table is generated, and the font table includes a plurality of different font size values.
The word level table may be a table formed by arranging a plurality of word size values with different sizes, and the word level table may include a plurality of word size values, for example, the word level table may be 12px, 16px, 20px, 24px, 28px, 32px, 40px, 48px,. 108px, and the like.
In implementation, a word-level table generating mechanism may be provided in the terminal device, where the word-level table generating mechanism may determine, through a preset word-level algorithm, a word size value included in the word-level table, and the word-level table may include a maximum word size value and a minimum word size value, where the maximum word size value and the minimum word size value may be set by a user, or may be determined by a technician according to experience or preset conditions, for example, the maximum word size value is not greater than 100px, or the maximum word size value is 108px, and the like. The word order algorithm may be set according to an actual situation, and specifically, the word order algorithm may be determined by an exponential function with a base number being a predetermined value, or by a predetermined piecewise function, and the like, which is not limited in this specification.
After the terminal device obtains the target font size value input by the user, in order to obtain a plurality of different font size values, the target font size value may be regarded as the minimum font size value in the font table of the user, and the minimum font size value may be input to the font algorithm (determined by an exponential function whose base number is a predetermined value, or determined by a predetermined piecewise function, etc.) for calculation, so as to obtain any font size value greater than the minimum font size value, and thus a plurality of different font size values may be obtained, wherein the number of the obtained font size values may be set according to the actual situation, specifically 20 or 50, and if the font size algorithm is determined by a predetermined piecewise function, that is, the font size algorithm includes: the 1 st to 5 th word size values can be obtained by calculation through a formula A; the 6 th to 8 th word size values can be obtained by calculation through a formula B; the 8 th-12 th word size values can be obtained by calculation of formula C, and the like, and a plurality of word size values can be obtained by calculation of the piecewise function. If the number of the word size values calculated by the word order algorithm reaches a preset value, the obtained word size values can be obtained, and the obtained word size values can be constructed into a word order table, so as to obtain the word order table of the user, for example, the obtained word order table may be: 12px, 14px, 16px, 20px, 24px, 30px, 38px, 46px, 56px, 68px, etc.
The embodiment of the specification provides a processing method of a word order table, which generates the word order table by acquiring a target word size value which is input by a user and used for representing the size of a font, taking the target word size value as a minimum word size value in the word order table of the user, wherein the word order table comprises a plurality of different word size values, so that the user can generate the word order table comprising a plurality of different word size values according to the minimum word size value only by determining the minimum word size value in the word order table of the user, and does not need to set different word size values in sequence according to personal experience, thereby greatly saving human resources and improving the generation efficiency of the word order table. The method has a good word-level table inheritance effect, the generated word-level table is high in attractiveness, and user experience is improved.
Example two
As shown in fig. 3, an embodiment of the present specification provides a method for processing a word list, where an execution subject of the method may be a terminal device or a server, where the terminal device may be a device such as a personal computer, or may also be a mobile terminal device such as a mobile phone and a tablet computer, and the terminal device may be a terminal device used by a user. The server may be an independent server, or a server cluster composed of a plurality of servers, and the server may be a background server of a certain service, or a background server of a certain website (such as an online shopping website or a payment application), and the server may have functions of document editing and web page design. In order to simplify the processing procedure of the present solution, in this embodiment, an execution main body is taken as an example of a terminal device, and for the case of a server, the processing may be performed according to the following related contents, which is not described herein again. The method may specifically comprise the steps of:
in step S302, when it is detected that the font size value setting mechanism is triggered, an input box of the font size value is displayed.
The font size value setting mechanism can be a font size value setting key, a font size value setting link and the like. The font size setting mechanism may be triggered by clicking or pressing a font size setting button, or by opening a predetermined web page, or by starting a specified application, and the like.
In implementation, as described in the related content in step S102 in the first embodiment, as shown in fig. 2, when a user needs to perform document editing, a document editing application or a web page design tool may be started, at this time, the terminal device may pop up a prompt box in a pop-up window form to prompt the user to set a font size value, and if the user determines that the font size value needs to be set, the terminal device may display a setting page of the font and the font size value.
Alternatively, as shown in FIG. 2, font and font size value setting options may be provided in a document editing application or web page design tool. Before the user edits the document through the document editing application or the web page design tool, the user may click the font and font size value setting options, and the terminal device may display a font and font size value setting page.
As shown in fig. 2, the setting page may include an input box of a font size value, and a description of the input font size value, such as the font size of the input start shown in fig. 2.
In step S304, when an input completion instruction is received, a target font size value input by the user is acquired from the above-described input box.
In implementation, the input completion instruction may be generated by a user by clicking a certain key in a setting page of a font size value, or generated when the user inputs an "Enter" signal through a keyboard, and the like, which is not limited in this embodiment of the specification. For the specific processing procedure from step S302 to step S304, reference may be made to the relevant content of step S102 in the first embodiment, and details are not repeated here.
In step S306, the target font size value is taken as the smallest font size value in the user' S font table.
It should be noted that different users may set different word level tables, and the difference of the word level tables may be embodied by the minimum word size value specified by the user, for example, the minimum word size value specified by the user is 12px, 14px, 16px, 20px, 24px, etc., and if the minimum word size value specified by the user is 14px, the word level tables may be 14px, 17px, 20px, 25px, 31px, etc.
In step S308, a plurality of different font sizes are calculated by a preset font size generation algorithm according to the minimum font size value, so as to generate the font size table of the user.
It should be noted that, the word list generating algorithm may be set according to an actual situation, and in an actual application, the word list generating algorithm may include a plurality of word list generating algorithms, for example, the word list generating algorithm determined by the piecewise function in the first embodiment, and may further include a plurality of word list generating algorithms determined in other manners, for example, the word list generating algorithm is determined based on an exponential function with a predetermined number as a base, where the predetermined number of the base may be determined according to an aesthetic measure of the word list, and the word list generating algorithm determined by the exponential function may also include a plurality of different implementation manners, and an optional implementation manner is provided below, and the processing in the step S308 may specifically include the following contents:
according to the minimum word size value, the following formula is utilized
f(n)=f(0)*akn (1)
And calculating to obtain a plurality of different word size values to generate a word order table, wherein f (n) is the nth word size value, f (0) is the minimum word size value, a is a base number, k is a constant, and n is a natural number.
In practice, after the minimum font size value in the user 'S font table is determined through the processing of the steps S304 and S306, the obtained minimum font size value can be input into the formula (1) to calculate the 1 st font size value, the 2 nd font size value and the 3 rd font size value … … nth font size value, and the minimum font size value, the 1 st font size value, the 2 nd font size value and the 3 rd font size value … … nth font size value can form a font table, namely the user' S font table. For example, if the minimum font size value input by the user is 12px, the 1 st font size value f (1) ═ 12 × a can be calculated by the above formula (1)kThe 2 nd word size f (2) ═ 12 a2kThe 3 rd word size f (3) ═ 12 a3k… … n-th symbol value f (n) -12 aknSo as to obtain the word-level table of the user as 12px, 12 akpx、12*a2kpx、12*a3kpx……12*aknpx。
It should be noted that the base a in the above formula (1) may be set according to actual situations, which is not limited in this embodiment of the present specification, and in practical applications, the base a may include multiple setting manners, and in this embodiment of the present specification, the predetermined value of the base a may be a natural constant e or 1.618.
In the case where the predetermined number of the base a may be a natural constant e, the value of the constant k in the above formula (1) may be set according to actual conditions, for example, k is 0.1 or k is 0.3, and an alternative value manner is provided in the embodiment of the present specification, that is, k is 1/5, and then the above formula (1) may be changed to the following formula
Accordingly, the processing of step S308 may specifically include the following:
and (3) calculating to obtain a plurality of different word size values by using the formula (2) according to the minimum word size value so as to generate a word order table.
In practice, after the minimum font size value in the user 'S font table is determined through the processing of the above steps S304 and S306, the obtained minimum font size value can be input to the above formula (2) to calculate the 1 st font size value, the 2 nd font size value, and the 3 rd font size value … … nth font size value, respectively, thereby obtaining the user' S font table. For example, if the minimum font size value input by the user is 12px, the 1 st font size value f (1) can be calculated as 12 × e by the above formula (21)0.2The 2 nd word size f (2) ═ 12 × e0.4The 3 rd word size f (3) ═ 12 × e0.6… … n-th symbol value f (n) 12 × e0.2nSo as to obtain the word-level tables of 12px, 14px, 18px, 22px … … 12 xe of the user0.2npx。
It should be noted that, though an infinite number of font size values can be obtained by the above formula (1) or formula (2), in practical applications, the usage rate of the excessively large font size values is usually small, so that the terminal device may preset a limiting condition of the maximum value in the font table, for example, the maximum value in the font table must not exceed 100px, etc., or may set the number of font size values that can be accommodated in the font table, for example, 20 or 30, etc., so that the font table of the user determined by the above manner includes a finite number of font size values, and resource consumption of the terminal device in calculating the font size values can be reduced.
In practical applications, the user may select a word size value larger than the maximum word size value in the table, and if the table includes the first predetermined number of word size values, the following processing from step S310 to step S314 may be performed.
In step S310, when a request to exhibit more font size values is received, the largest font size value among the first predetermined number of font size values is obtained.
The first predetermined number may be the number of the word size values accommodated in the current word level table, specifically, 20 or 30.
In practice, after the terminal device generates the user' S character list through the above-mentioned processing from step S302 to step S308, the character list may be displayed, and the character list may include the first predetermined number of character size values. Meanwhile, as shown in fig. 4, in order to facilitate the user to select a font size value other than the currently displayed font size value, a key for acquiring more font size values may be provided at a predetermined position of the character order table. If the user determines that the word size value required by the user is not contained after browsing the current word order table, the key can be clicked, at this time, a request for displaying more word size values can be generated, and after receiving the request for displaying more word size values, the terminal device can determine the maximum word size value contained in the current word order table through modes of comparison and the like.
In step S312, the calculated number n of the word size value corresponding to the maximum word size value is determined based on the maximum word size value and the minimum word size value.
In implementation, after the maximum word size value in the word order table is determined in the above manner, the minimum word size value may be obtained, and the maximum word size value and the minimum word size value may be substituted into the word order table generation algorithm for calculation, so as to obtain the calculated number n of the word size value corresponding to the maximum word size value. For example, the above-mentioned word-level table is generatedThe algorithm is determined by the above equation (2), where the maximum size value is 32px and the minimum size value is 12px, and the maximum size value and the minimum size value may be substituted into the above equation (2), i.e., 32 ═ 12 × e0.2nBy calculation, n is 5, that is, the number of calculation n of the number of word values corresponding to the maximum number of word values is 5.
In step S314, according to the calculated number n and the minimum number value of the number value corresponding to the maximum number value, the (n + m) th number value is sequentially calculated to obtain m number values, so as to obtain a word order table including n + m number values, where m is a positive integer.
In the implementation, as shown in fig. 5, after the calculated number n of the font sizes corresponding to the maximum font size value is obtained through the processing in step S312, it can be determined that the current font table includes n font sizes, in this case, the (n + 1) th font size value, the (n + 2) th font size value, the (n + 3) th font size value … …, the (n + m) th font size value can be calculated to obtain m font size values, and the m font size values can be combined with the n font size values to obtain the font table including the n + m font size values. The terminal device can display the word list comprising n + m word size values to the user, and if the user needs to check more word size values, the user can continue to obtain a plurality of word sizes through the processing procedure and display the word sizes. Wherein m can be set according to actual conditions, such as 5 or 10.
The embodiment of the specification provides a processing method of a word order table, which generates the word order table by acquiring a target word size value which is input by a user and used for representing the size of a font, taking the target word size value as a minimum word size value in the word order table of the user, wherein the word order table comprises a plurality of different word size values, so that the user can generate the word order table comprising a plurality of different word size values according to the minimum word size value only by determining the minimum word size value in the word order table of the user, and does not need to set different word size values in sequence according to personal experience, thereby greatly saving human resources and improving the generation efficiency of the word order table. The method has a good word-level table inheritance effect, the generated word-level table is high in attractiveness, and user experience is improved.
EXAMPLE III
Based on the same idea, the method for processing a vocabulary table provided in the embodiments of the present specification further provides a device for processing a vocabulary table, as shown in fig. 6.
The processing device of the word order table comprises: a word size value obtaining module 601 and a word list generating module 602, wherein:
a font size value obtaining module 601, configured to obtain a target font size value input by a user, where the target font size value is used to represent the size of a font;
a word order table generating module 602, configured to use the target word size value as a minimum word size value in the word order table of the user, and generate the word order table, where the word order table includes multiple different word size values.
In this embodiment of this specification, the word size value obtaining module 601 includes:
the input display unit is used for displaying an input box of the font size value when the font size value setting mechanism is triggered;
and the word size value acquisition unit is used for acquiring a target word size value input by a user from the input box when an input completion instruction is received.
In this embodiment of the present specification, the word level table generating module 602 includes:
a minimum font size determining unit, configured to use the target font size value as a minimum font size value in the user's font table;
and the word order table generating unit is used for calculating to obtain a plurality of different word size values through a preset word order table generating algorithm according to the minimum word size value so as to generate the word order table.
In the embodiment of the present specification, the word-level-table generation algorithm is determined based on an exponential function with a predetermined number as a base.
In an embodiment of this specification, the word-level table generating unit is configured to utilize the following formula according to the minimum word size value
f(n)=f(0)*akn
And calculating to obtain a plurality of different word size values to generate the word order table, wherein f (n) is the nth word size value, f (0) is the minimum word size value, a is a base number, k is a constant, and n is a natural number.
In the embodiment of the specification, the predetermined value of the base number is a natural constant e or 1.618.
In the embodiments of the present specification, k is 1/5 and a is e.
In an embodiment of this specification, the table of ranks includes a first predetermined number of word size values, and the apparatus further includes:
a maximum word size determining module, configured to, when a request for displaying more word size values is received, obtain a maximum word size value of the first predetermined number of word size values;
the number determining module of the word size value is used for determining the calculated number n of the word size value corresponding to the maximum word size value according to the maximum word size value and the minimum word size value;
and the word size expansion module is used for sequentially calculating the (n + m) th word size value according to the calculated number n of the word size value corresponding to the maximum word size value and the minimum word size value to obtain m word size values so as to obtain a word order table comprising the n + m word size values, wherein m is a positive integer.
The embodiment of the present specification provides a processing apparatus for a word order table, which generates a word order table by obtaining a target word size value for representing the size of a font input by a user, and using the target word size value as a minimum word size value in the word order table of the user, where the word order table includes a plurality of different word size values, so that a user can generate a word order table including a plurality of different word size values according to the minimum word size value only by determining the minimum word size value in the word order table of the user, without sequentially setting different word size values according to personal experience, thereby greatly saving human resources and improving the efficiency of generating the word order table, and in addition, the word order table generated by the above method has the advantages that, as long as the minimum word size value is not changed, other word size values in the word order table are stable, and cannot be changed due to subjective factors of the user, and the word orders used by the user cannot be changed differently, the method has a good word-level table inheritance effect, the generated word-level table is high in attractiveness, and user experience is improved.
Example four
Based on the same idea, the apparatus for processing a vocabulary provided in the embodiments of the present specification further provides a device for processing a vocabulary, as shown in fig. 7.
The processing device of the word level table may be the terminal device or the server provided in the above embodiments.
The processing devices of the word level table may have large differences due to different configurations or performances, and may include one or more processors 701 and a memory 702, and one or more stored applications or data may be stored in the memory 702. Memory 702 may be, among other things, transient storage or persistent storage. The application program stored in memory 702 may include one or more modules (not shown), each of which may include a series of computer-executable instructions in a processing device for a spreadsheet. Still further, the processor 701 may be configured to communicate with the memory 702 to execute a series of computer-executable instructions in the memory 702 on a processing device of the word-level table. The processing apparatus of the word-level table may also include one or more power supplies 703, one or more wired or wireless network interfaces 704, one or more input-output interfaces 705, one or more keyboards 707.
In particular, in this embodiment, the processing device of the word-level table includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the processing device of the word-level table, and the one or more programs configured to be executed by the one or more processors include computer-executable instructions for:
acquiring a target font size value input by a user, wherein the target font size value is used for representing the size of a font;
and taking the target word size value as the minimum word size value in the word order table of the user to generate the word order table, wherein the word order table comprises a plurality of different word size values.
In an embodiment of this specification, the acquiring a target font size value input by a user includes:
when the word size value setting mechanism is triggered, displaying an input box of the word size value;
and when an input completion instruction is received, acquiring a target word size value input by a user from the input box.
In this embodiment of this specification, the generating the word-level table by using the target word size value as the minimum word size value in the word-level table of the user includes:
taking the target word size value as the minimum word size value in the word order table of the user;
and calculating to obtain a plurality of different word size values through a preset word order table generation algorithm according to the minimum word size value so as to generate the word order table.
In the embodiment of the present specification, the word-level-table generation algorithm is determined based on an exponential function with a predetermined number as a base.
In an embodiment of this specification, the calculating, according to the minimum word size value and through a preset word order table generating algorithm, to obtain a plurality of different word size values to generate the word order table includes:
according to the minimum word size value, the following formula is utilized
f(n)=f(0)*akn
And calculating to obtain a plurality of different word size values to generate the word order table, wherein f (n) is the nth word size value, f (0) is the minimum word size value, a is a base number, k is a constant, and n is a natural number.
In the embodiment of the specification, the predetermined value of the base number is a natural constant e or 1.618.
In the embodiments of the present specification, k is 1/5 and a is e.
In this embodiment of the present specification, the table of ranks includes a first predetermined number of word size values, and further includes:
when a request for displaying more word size values is received, acquiring the maximum word size value in the first preset number of word size values;
determining the calculated number n of the word size value corresponding to the maximum word size value according to the maximum word size value and the minimum word size value;
and sequentially calculating the (n + m) th word value according to the calculated number n of the word value corresponding to the maximum word value and the minimum word value to obtain m word values so as to obtain a word order table comprising the n + m word values, wherein m is a positive integer.
The embodiment of the present specification provides a processing apparatus for a word order table, which generates a word order table by obtaining a target word size value input by a user for representing the size of a font, and using the target word size value as a minimum word size value in the word order table of the user, where the word order table includes a plurality of different word size values, so that only the user needs to determine the minimum word size value in the word order table of the user, and a word order table including a plurality of different word size values can be generated according to the minimum word size value, and the user does not need to set different word size values in sequence according to personal experience, thereby greatly saving human resources and improving the efficiency of generating the word order table, and in addition, the word order table generated by the above method has the advantages that, as long as the minimum word size value is not changed, other word size values in the word order table are stable, and cannot be changed due to subjective factors of the user, and the word orders used by the user cannot be changed differently, the method has a good word-level table inheritance effect, the generated word-level table is high in attractiveness, and user experience is improved.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the various elements may be implemented in the same one or more software and/or hardware implementations in implementing one or more embodiments of the present description.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present description are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
One or more embodiments of the present description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present specification, and is not intended to limit the present specification. Various modifications and alterations to this description will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification should be included in the scope of the claims of the present specification.