A method and system for customizing calendar
Through the user setting of calendar type and month type, combined with table splitting and line segment combination technology, a flexible customized calendar is generated, which solves the problem that existing technology cannot meet the needs of various calendars, and realizes the generation of personalized calendar and the improvement of user experience.
Patent Information
- Application Number
- CN202111413776.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-25
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-11-25
AI Technical Summary
The existing technology cannot flexibly adapt to multiple calendar generation methods and cannot meet the needs of different users for calendar rules.
Provides a method for customizing calendars. Users can set calendar type instructions and month types to generate flexible customized calendars, including setting the calendar's display font, font spacing, font color, brush size, whether to display holidays and securities trading days, etc. The calendar grid is divided into one grid per day using table splitting and line segment combination techniques.
It realizes the generation of personalized calendars based on user preferences, improves user experience, and has the flexibility to meet different types of calendars and user needs.
Smart Images

Figure CN114417800B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer communication, and in particular to a method and system for customizing a calendar. Background Art
[0002] At present, calendars come in a variety of forms, and accordingly, the rules for making calendars are becoming more diverse and complex.
[0003] For example, the factory calendar, also known as the work calendar, is a special form of calendar used in enterprise production plants. It is formed by removing the weekly rest days, holidays, shutdowns and other non-production dates from the ordinary calendar, and is one of the bases for work. For example, the stock trading calendar is an important basis for stock trading practitioners and stockholders to conduct market transactions. Due to the t+1 of the Chinese stock market, many stocks need to be sold on the last day before the holiday to make profits; other examples include birthday reminder calendars for relatives and friends, personal schedules, travel arrangements, and many other situations;
[0004] At present, the calendars generated on the market are mainly divided into several forms, namely, year, month and day, and the month is divided into a row of 7 columns for one week, a row of 14 columns for two weeks, and a row of 21 columns for three weeks. There is no method for generating a variety of calendars in the prior art that can flexibly adapt to the needs of different users for calendar rules. Summary of the invention
[0005] To overcome the above problems, the purpose of the present invention is to provide a method for customizing calendars, which can flexibly adapt to the needs of different types of calendars and flexibly generate calendars required by users according to their preferences.
[0006] The present invention is implemented by the following scheme: a method for customizing a calendar, the method comprising the following steps:
[0007] Step S1, the user sets a calendar type instruction, the calendar type instruction including a calendar year type style instruction and a calendar month type style instruction;
[0008] Step S2, setting the month type of the calendar;
[0009] Step S3, generating a customized calendar according to the calendar type instruction and the month type of the calendar;
[0010] Step S4: The user sets the calendar type display interface in detail to generate a calendar.
[0011] Furthermore, the method also includes: step S5, breaking up the grids of the calendar into one grid per day, and setting a style for each date grid.
[0012] Furthermore, the step S2 is further specified as follows: setting the month type of the calendar, the month type includes a table with 7 columns set for one month, a table with 14 columns set for one month, or a table with 21 columns set for one month; wherein the setting method is specifically as follows: obtaining the month to be set currently; obtaining the day of the week of the first day of the month and the day of the week of the last day according to the month, and obtaining the first few days that need to be filled in, that is, filling the first few days of the current set month and the next month in the table of the calendar of the current month, wherein each date of the month is filled in according to the set number of columns in the table; partitioning the month table: into a header area, which displays the month; a week area, which displays the day of the week; and a date area, which displays the detailed date and corresponding holiday corresponding to the current format.
[0013] Furthermore, the user can make detailed settings including: setting the calendar display font to Simplified / Traditional / English, font spacing, font color, brush size, whether to add days before and after the month, whether to display holidays, or whether to display stock trading days and rest days.
[0014] Furthermore, in step S5, the calendar grids are broken up into one-grid-per-day format, specifically as follows: to break up the calendar grids, it is necessary to split the table, extract all small squares of each calendar grid to obtain the divided area, take the small square in the form of ABCD as an example, then the system is set according to the calendar type to generate the required line segment combination, and the area to be displayed is divided; all horizontal lines and vertical lines are obtained to form a line segment set S, and the line segment set S includes AB, AD, DC, and BC line segments; all line segments are split, that is, all line segments with intersections in the area are split, and AH, HD, HE, EI, DF, FC, BI, IC, and EF are obtained to form a new line segment set H; closed areas are extracted from the line segment set H, thereby dividing the area into one-grid-per-day format.
[0015] Furthermore, the specific implementation method of extracting the closed area from the line segment set H includes: step S51, traversing the line segment set H, distinguishing the outer frame edge line or the newly added small frame connection line, the outer frame edge line is the small square line segments AD, AB, DC, BC, wherein the line segments EF, HE, EI in the small square are the newly added small frame connection lines;
[0016] Step S52, marking the line segments in the line segment set H, that is, marking the outer frame line as 1, and the small frame line as 2, wherein the small frame line will be the common line of the two regions, that is, the EF small frame line, which is a component of both the DHEF region and the FEIC region;
[0017] Step S53, mark any line segment as the starting point line;
[0018] Step S54, searching for the next connecting line segment in a clockwise direction from the current starting line;
[0019] Step S55, repeating step S54 until a line segment without a connection point with the current starting point line is found;
[0020] Step S56: After step S55 is completed, the smallest clockwise connecting line is used as the next starting line, and step S54 is continued until it forms a closed area with the starting line in step S53;
[0021] Step S57, extract the found closed area into the area set M, and reduce the mark of the line segments that constitute the closed area by 1. If the mark is 0, remove the line segment set H and form a new line segment set Q. Continue to execute step S53 until all the segmented areas are found.
[0022] The present invention also provides a system for customizing a calendar, the system comprising an instruction setting module, a month type setting module, a calendar customization module, and a calendar generation module;
[0023] The instruction setting module is used for the user to set the calendar type instruction, and the calendar type instruction includes the calendar year type style instruction and the calendar month type style instruction;
[0024] The month type setting module is used to set the month type of the calendar;
[0025] The calendar customization module is used to generate a customized calendar according to the calendar type instruction and the month type of the calendar;
[0026] In the calendar generation module, the user sets the calendar type display interface in detail to generate a calendar.
[0027] Furthermore, the system also includes a grid style setting module, which is used to break up the grids of the calendar into one grid per day and set the style for each date grid.
[0028] Furthermore, the implementation method of the month type setting module is further specified as follows: setting the month type of the calendar, the month type including a table with 7 columns set for one month, a table with 14 columns set for one month, or a table with 21 columns set for one month; wherein the setting method is specifically as follows: obtaining the month to be set currently; obtaining the day of the week of the first day of the month and the day of the week of the last day according to the month, and obtaining the first few days that need to be filled in, that is, filling the first few days of the current set month and the next month in the table of the calendar of the current month, wherein each date of the month is filled in according to the set number of columns in the table; partitioning the month table: into a header area, which displays the month; a week area, which displays the day of the week; and a date area, which displays the detailed date and corresponding holiday corresponding to the current format.
[0029] Furthermore, the user can make detailed settings including: setting the calendar display font to Simplified / Traditional / English, font spacing, font color, brush size, whether to add days before and after the month, whether to display holidays, or whether to display stock trading days and rest days.
[0030] Furthermore, in the grid style setting module, the grids of the calendar are broken up into a grid-per-day format. Specifically, to break up the grids of the calendar, the table needs to be split, and all small squares of each calendar grid are extracted to obtain the divided areas. Taking the ABCD format of the small squares as an example, the system is set according to the calendar type to generate the required line segment combination to divide the area to be displayed; all horizontal lines and vertical lines are obtained to form a line segment set S, and the line segment set S includes AB, AD, DC, and BC line segments; all line segments are split, that is, all line segments with intersections in the area are split, and AH, HD, HE, EI, DF, FC, BI, IC, and EF are obtained to form a new line segment set H; closed areas are extracted from the line segment set H to divide it into a grid-per-day format.
[0031] Furthermore, the specific implementation method of extracting the closed area from the line segment set H includes: step S61, traversing the line segment set H, distinguishing the outer frame edge line or the newly added small frame connection line, the outer frame edge line is the small square line segments AD, AB, DC, BC, wherein the line segments EF, HE, EI in the small square are the newly added small frame connection lines;
[0032] Step S62, marking the line segments in the line segment set H, that is, marking the outer frame line as 1, and the small frame line as 2, wherein the small frame line will be the common line of the two regions, that is, the EF small frame line, which is a component of both the DHEF region and the FEIC region;
[0033] Step S63, mark any line segment as the starting point line;
[0034] Step S64, searching for the next connecting line segment in a clockwise direction from the current starting line;
[0035] Step S65, repeating step S64 until a line segment without a connection point with the current starting point line is found;
[0036] Step S66: After step S65 is completed, the smallest clockwise connecting line is used as the next starting line, and step S64 is continued until it forms a closed area with the starting line in step S63;
[0037] Step S67, extract the found closed area into the area set M, and reduce the mark of the line segments that constitute the closed area by 1. If the mark is 0, remove the line segment set H and form a new line segment set Q. Continue to execute step S63 until all the segmented areas are found.
[0038] The beneficial effects of the present invention are: the method for customizing calendars is used in computer systems, can flexibly adapt to the needs of different types of calendars and the needs of different users for calendar rules, and can flexibly generate calendars required by users according to user preferences; users only need to generate a personalized calendar suitable for themselves according to instruction parameters; and the user experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a schematic flow chart of the method of the present invention.
[0040] Figure 2 It is a schematic diagram of the calendar style types corresponding to the 7 columns of January according to an embodiment of the present invention.
[0041] Figure 3 It is a schematic diagram of the calendar style type corresponding to the 14th column of January according to an embodiment of the present invention.
[0042] Figure 4 It is a schematic diagram of the calendar style type corresponding to the January 21 column according to an embodiment of the present invention.
[0043] Figure 5 It is a schematic diagram of the division of regions of a calendar according to an embodiment of the present invention.
[0044] Figure 6 It is a schematic diagram of extracting small squares from a calendar area according to an embodiment of the present invention.
[0045] Figure 7 It is a system principle block diagram of the present invention. DETAILED DESCRIPTION
[0046] The present invention will be further described below in conjunction with the accompanying drawings.
[0047] See also Figure 1 As shown, a method for customizing a calendar of the present invention comprises the following steps:
[0048] Step S1, the user sets a calendar type instruction, the calendar type instruction including a calendar year type style instruction and a calendar month type style instruction;
[0049] Step S2, setting the month type of the calendar;
[0050] Step S3, generating a customized calendar according to the calendar type instruction and the month type of the calendar;
[0051] Step S4: The user sets the calendar type display interface in detail to generate a calendar.
[0052] Step S5, breaking up the calendar grids into one grid per day, and setting the style for each date grid.
[0053] The present invention will be further described below in conjunction with a specific embodiment:
[0054] A method for customizing a calendar mainly includes the following six steps:
[0055] 1. Calendar type instructions set by the user; the calendar type instructions include calendar year type style instructions and calendar month type style instructions; such as year, month. For example, the calendar type style of the year, the calendar type style of the month type of January 7 columns corresponds to Figure 2 As shown;
[0056] 2. Set the month type of the calendar, which includes a table with 7 columns, a table with 14 columns, or a table with 21 columns. For example, 7 columns for January corresponds to Figure 2 , January 14 column corresponds to Figure 3 , January 21 column corresponds to Figure 4 ;
[0057] Here we take the general January 7 columns as an example to describe how to generate a basic monthly calendar.
[0058] 2.1. Get the current month to be set;
[0059] 2.2. Calculate the first and last day of the month according to the month, and calculate the first few days that need to be added. For the sake of appearance, the first few days of the current month and the next month are usually added to the calendar of the current month;
[0060] 2.3. Divide the monthly table into sections, generally into the header section (displaying the month), the week section (displaying the day of the week), and the date section (displaying the detailed date and local holidays corresponding to the current format);
[0061] 3. Generate a customized calendar according to the instructions set by the user in 1 and 2 (for example, if the user needs a 7-column calendar for January, the system will generate the following Figure 2 Monthly calendar);
[0062] 4. The user can make corresponding settings (such as header output, month, year + month simplified / traditional, year + month simplified / traditional / English, year + month simplified / traditional / English, spacing, color, brush size, whether to fill in the front and back, display holidays, lunar calendar, user-defined rules, whether to display securities trading days and rest days);
[0063] User-defined rules such as: 9.16: Dad’s birthday; 10.24: Mom’s birthday, etc. The system can split the data according to the user’s input and add the current information to the specified position of the calendar, such as displaying it on the right side of the calendar grid, replacing the lunar calendar position, or the user-specified position, etc.
[0064] 5. If the user needs to further customize each grid, he can also break the layout of the existing system and make the month a grid unit, such as Figure 5 The Valentine's Day grid can be customized;
[0065] To convert the monthly calendar into a grid, you need to split the table. The splitting algorithm is as follows (such as Figure 2 The area that needs to be divided is Figure 5 In order to get each calendar grid, we need to Figure 5 Extract all the small squares. For a simpler explanation, take a smaller line (such as Figure 6 ) to illustrate, Figure 5 The principle is the same):
[0066] 1. Set the system according to the calendar type to generate the required line segment combination and divide the area to be displayed;
[0067] 2. Get Figure 6 All horizontal and vertical lines get the line segment set S (such as Figure 6 AB,AD,DC,BC);
[0068] 3. Split all line segments (that is, split all intersecting line segments to obtain AH, HD, HE, EI, DF, FC, BI, IC, EF to get a new line segment set H).
[0069] 4. Extract the closed area of the line segment set H.
[0070] This step mainly extracts the minimum area of the regional line segment set. The algorithm is as follows:
[0071] (1) Traverse the line segment set H and distinguish the outer frame edge lines or the newly added small frame lines (the outer frame edge lines are the original rectangular lines AD, AB, DC, BC, such as Figure 6 EF, HE, and EI in the video are newly added small boxes and lines)
[0072] (2) Mark the outer frame as 1 (because the outer frame will only be in a closed area, such as Figure 6 ,AH is a component of the smallest area AHBI area), the small box line is marked as 2 (the small box line may be a common line between two areas, such as Figure 6 ,EF small frame connection line is a component of both DHEF area and FEIC area)
[0073] (3) Take any line segment as the starting point (marked as the starting line)
[0074] (4) From the current starting line, search for the next connecting line segment in a clockwise direction
[0075] (5) Repeat (4) until a line segment is found that has no connection point with the current starting line.
[0076] (6) After step (5) is completed, take the smallest clockwise line as the next starting line and continue to execute step (4) until it forms a closed area with the starting line in step (3).
[0077] (7) Extract the found closed area into the area set M (e.g., divide the following rectangle ABCD into three smallest encapsulated rectangular areas: ABHI, HDEF, and EFIC), and reduce the marks of the constituent line segments by 1 (e.g., AH and EF are the line segments that constitute the closed area, where AH is the outer frame line and is marked as 1, and EF is the small frame line and is marked as 2. Then, after marking AH by -1, AH is marked as 0 and removed from the line segment set H. After marking EF by -1, EF is marked as 1 and is not removed). If the mark is 0, it is removed from the line segment set H, and a new line segment set Q is formed to continue executing step (3) until all the segmented areas are found.
[0078] 6. The user can further customize each calendar column generated in step 4, such as adding a base map, date and other related information (such as the current day, special days represented, colors, brushes, colors, etc.) to each one and then customize each column in detail.
[0079] The present invention also provides a system for customizing a calendar, the system comprising an instruction setting module, a month type setting module, a calendar customization module, and a calendar generation module;
[0080] The instruction setting module is used for the user to set the calendar type instruction, and the calendar type instruction includes the calendar year type style instruction and the calendar month type style instruction;
[0081] The month type setting module is used to set the month type of the calendar;
[0082] The calendar customization module is used to generate a customized calendar according to the calendar type instruction and the month type of the calendar;
[0083] In the calendar generation module, the user sets the calendar type display interface in detail to generate a calendar.
[0084] The system also includes a grid style setting module, which is used to break up the grids of the calendar into one grid per day and set the style for each date grid.
[0085] Among them, the implementation method of the month type setting module is further specified as follows: setting the month type of the calendar, the month type includes a table with 7 columns set for one month, a table with 14 columns set for one month, or a table with 21 columns set for one month; wherein the setting method is specifically as follows: obtaining the month to be set currently; obtaining the day of the week of the first day of this month and the day of the week of the last day according to the month, and obtaining the first few days that need to be filled in, that is, filling the first few days of the current set month and the next month in the table of the calendar of the current month, wherein each date of the month is filled in according to the set number of columns in the table; partitioning the month table: dividing it into a header area, which displays the month; a week area, which displays the day of the week; and a date area, which displays the detailed date and corresponding holiday corresponding to the current format.
[0086] The user can make detailed settings including: setting the calendar display font to Simplified / Traditional / English, font spacing, font color, brush size, whether to add days before and after the month, whether to display holidays, or whether to display stock trading days and rest days.
[0087] The grid style setting module breaks up the grids of the calendar into a grid-per-day format, specifically: to break up the grids of the calendar, it is necessary to split the table, extract all the small squares of each calendar grid, and obtain the subdivided area. Taking the ABCD format of the small square as an example, the system is set according to the calendar type to generate the required line segment combination to divide the area to be displayed; all horizontal lines and vertical lines are obtained to form a line segment set S, and the line segment set S includes AB, AD, DC, and BC segments; split all the line segments, that is, all the line segments with intersections in the area are split, and AH, HD, HE, EI, DF, FC, BI, IC, and EF are obtained to form a new line segment set H; the closed area of the line segment set H is extracted, so as to divide it into a grid-per-day format. The specific implementation method of extracting the closed area of the line segment set H includes: step S61, traversing the line segment set H, distinguishing between the outer frame edge line and the newly added small frame connection line, the outer frame edge line is the small square line segment AD, AB, DC, BC, and the line segments EF, HE, and EI in the small square are the newly added small frame connection lines;
[0088] Step S62, marking the line segments in the line segment set H, that is, marking the outer frame line as 1, and the small frame line as 2, wherein the small frame line will be the common line of the two regions, that is, the EF small frame line, which is a component of both the DHEF region and the FEIC region;
[0089] Step S63, mark any line segment as the starting point line;
[0090] Step S64, searching for the next connecting line segment in a clockwise direction from the current starting line;
[0091] Step S65, repeating step S64 until a line segment without a connection point with the current starting point line is found;
[0092] Step S66: After step S65 is completed, the smallest clockwise connecting line is used as the next starting line, and step S64 is continued until it forms a closed area with the starting line in step S63;
[0093] Step S67, extract the found closed area into the area set M, and reduce the mark of the line segments that constitute the closed area by 1. If the mark is 0, remove the line segment set H and form a new line segment set Q. Continue to execute step S63 until all the segmented areas are found.
[0094] The application scenarios of the present invention are as follows:
[0095] In an age of pursuit of individuality, traditional calendars cannot meet people's individual needs, and personalized and customized calendars show strong vitality.
[0096] For example, to make a calendar that suits him, he needs to include national statutory holidays, stock market trading days, birthdays of relatives and friends, and his annual plan days, such as travel plans, parent-child plans, accompanying parents, and study days. And on important holidays, it is necessary to add reminders, such as increasing the text color, adding background pictures, font size, and whether to draw circles. The traditional calendar making method is generally made with WORD or Photoshop. Because it is too professional, most users are blocked out. This system turns all operations into an instruction on the interface. Users only need to turn on and off the switch according to the instruction parameters to generate a personalized calendar that suits them.
[0097] The above description is only a preferred embodiment of the present invention. All equivalent changes and modifications made according to the scope of the patent application of the present invention should fall within the scope of the present invention.
Claims
1. A method for customizing a calendar, characterized by: The method comprises the following steps: Step S1: The user sets a calendar type instruction, which includes a calendar year type style instruction and a calendar month type style instruction; Step S2, setting the month type of the calendar; Step S3: Generate a customized calendar according to the calendar type instruction and the month type of the calendar; Step S4: The user sets the calendar type display interface in detail to generate a calendar; Step S5: Break up the calendar grid into one grid per day, and set the style for each date grid; In step S5, the calendar grids are broken up into a grid for each day. Specifically, to break up the calendar grids, the table needs to be split, all small squares of each calendar grid are extracted to obtain a subdivided area, the small squares are arranged in the form of ABCD, and the required line segment combination is generated according to the calendar type system setting to divide the area to be displayed; all horizontal lines and vertical lines are obtained to form a line segment set S, and the line segment set S includes AB, AD, DC, and BC line segments; all line segments are split, that is, all line segments with intersections in the area are split, and AH, HD, HE, EI, DF, FC, BI, IC, and EF are obtained to form a new line segment set H; closed areas are extracted from the line segment set H, thereby dividing the area into a grid for each day; The specific implementation method of extracting the closed area from the line segment set H includes: step S51, traversing the line segment set H, distinguishing between outer frame edges and newly added small frame lines, where the outer frame edges are the small square line segments AD, AB, DC, and BC, and the line segments EF, HE, and EI within the small square are the newly added small frame lines; Step S52: Mark the line segments in the line segment set H, i.e., mark the outer frame line as 1 and the small frame line as 2. The small frame line is the common line of the two regions, i.e., the EF small frame line is a component of both the DHEF region and the FEIC region. Step S53: Mark any line segment as the starting point line; Step S54: Search for the next connecting line segment in a clockwise direction from the current starting line; Step S55: Repeat step S54 until a line segment that has no connection point with the current starting point line is found; Step S56: After step S55 is completed, the smallest clockwise line is used as the next starting line, and step S54 is continued until it forms a closed area with the starting line in step S53; Step S57: Extract the found closed area into the area set M, and reduce the mark of the line segments that make up the closed area by 1. If the mark is 0, remove it from the line segment set H and form a new line segment set Q. Continue to execute step S53 until all the segmented areas are found.
2. The method for customizing a calendar according to claim 1, wherein: The step S2 is further specified as follows: setting the month type of the calendar, which includes a table with 7 columns set for one month, a table with 14 columns set for one month, or a table with 21 columns set for one month; wherein the setting method is specifically as follows: obtaining the month to be set currently; obtaining the day of the week of the first day of the month and the day of the week of the last day of the month according to the month, and obtaining the first few days that need to be filled in, that is, filling the first few days of the current set month and the next month in the table of the current month's calendar, wherein each date of the month is filled in according to the set number of columns in the table; partitioning the monthly table: into a header area, which displays the month; a week area, which displays the day of the week; and a date area, which displays the detailed date and corresponding holiday corresponding to the current format.
3. The method for customizing a calendar according to claim 1, wherein: The user can make detailed settings including: setting the calendar display font to Simplified / Traditional / English, font spacing, font color, brush size, whether to add days before and after the month, whether to display holidays, or whether to display securities trading days and rest days.
4. A system for customizing a calendar, characterized by: The system includes an instruction setting module, a month type setting module, a calendar customization module, and a calendar generation module; The instruction setting module is used for the user to set the calendar type instruction, which includes the calendar year type style instruction and the calendar month type style instruction; The month type setting module is used to set the month type of the calendar; The calendar customization module is used to generate a customized calendar according to the calendar type instruction and the month type of the calendar; The calendar generation module allows the user to set the calendar type display interface in detail to generate a calendar; The system further includes a grid style setting module, which is used to break up the grids of the calendar into one grid per day and set a style for each date grid; The grid style setting module breaks up the calendar grids into a grid-per-day format. Specifically, to break up the calendar grids, it is necessary to perform table splitting, extract all small squares of each calendar grid to obtain a subdivided area, the small squares are set in the form of ABCD, and the system is set according to the calendar type to generate the required line segment combination to divide the area to be displayed; all horizontal lines and vertical lines are obtained to form a line segment set S, and the line segment set S includes AB, AD, DC, and BC line segments; all line segments are split, that is, all line segments with intersections in the area are split to obtain AH, HD, HE, EI, DF, FC, BI, IC, and EF to form a new line segment set H; closed areas are extracted from the line segment set H to divide the area into a grid-per-day format; The specific implementation method of extracting the closed area from the line segment set H includes: step S61, traversing the line segment set H, distinguishing between outer frame edges and newly added small frame lines, where the outer frame edges are the small square line segments AD, AB, DC, and BC, and the line segments EF, HE, and EI within the small square are the newly added small frame lines; Step S62: Mark the line segments in the line segment set H, i.e., mark the outer frame line as 1 and the small frame line as 2. The small frame line is the common line of the two regions, i.e., the EF small frame line is a component of both the DHEF region and the FEIC region. Step S63: Mark any line segment as the starting point line; Step S64: Search for the next connected line segment in a clockwise direction from the current starting line; Step S65: Repeat step S64 until a line segment that has no connection point with the current starting point line is found; Step S66: After step S65 is completed, the smallest clockwise line is used as the next starting line, and step S64 is continued until it forms a closed area with the starting line in step S63; Step S67: Extract the found closed area into the area set M, and reduce the mark of the line segments that make up the closed area by 1. If the mark is 0, remove it from the line segment set H and form a new line segment set Q. Continue to execute step S63 until all the segmented areas are found.
5. A system for customizing a calendar according to claim 4, characterized in that: The implementation method of the month type setting module is further specifically as follows: setting the month type of the calendar, which includes a table with 7 columns set for one month, a table with 14 columns set for one month, or a table with 21 columns set for one month; wherein the setting method is specifically as follows: obtaining the current month to be set; obtaining the day of the week of the first day of the month and the day of the week of the last day of the month according to the month, and obtaining the first few days that need to be filled in, that is, filling the current set month and the first few days of the next month in the table of the current month calendar, wherein each date of the month is filled in according to the set number of columns in the table; partitioning the month table: into a header area, which displays the month; a week area, which displays the day of the week; and a date area, which displays the detailed date and corresponding holiday corresponding to the current format.
6. The system for customizing a calendar according to claim 4, characterized in that: The user can make detailed settings including: setting the calendar display font to Simplified / Traditional / English, font spacing, font color, brush size, whether to add days before and after the month, whether to display holidays, or whether to display securities trading days and rest days.
