A local magnification method and device for digital teaching materials

By partially enlarging the target area of ​​PDF format in digital textbooks and moving the enlarged area to the center of the screen, the problem that partial enlarging of digital textbooks will cause content to become virtual, and the content is clearly displayed and the teaching and learning effect is improved.

CN114418859BActive Publication Date: 2025-03-11BEIJING RENJIAO HOPE NETWORK INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210099957.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-27
Publication Date
2025-03-11
Estimated Expiration
2042-01-27

AI Technical Summary

Technical Problem

When digital textbooks are partially enlarged, the content may become unclear, which will affect the teaching and learning effect.

Method used

Digital teaching materials in PDF format, select the target area by boxing and converting coordinates, gradually enlarge the target area until the maximum length or width of the screen is reached, and move the enlarged area to the center of the screen.

Benefits of technology

It ensures that the content in the enlarged area is clear, which facilitates teaching and improves learning results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114418859B_ABST
    Figure CN114418859B_ABST
Patent Text Reader

Abstract

The present invention discloses a local magnification method and device for digital teaching materials, which obtains digital teaching materials in PDF format, selects a target area to be magnified from the digital teaching materials and determines the area coordinates, and when receiving a magnification instruction, converts the area coordinates into PDF page coordinates to obtain a PDF area corresponding to the target area, and gradually magnifies the PDF area according to a preset magnification amplitude until the magnified area reaches the maximum length and / or maximum width that the screen can accommodate, stops the magnification operation, and moves the magnified area to the center of the screen. The digital teaching materials in the present invention use PDF as a carrier, and magnify the PDF area corresponding to the target area to achieve magnification of the target area. Since the fonts in the digital teaching materials in PDF format are vector fonts, and the actual size of the vector fonts can be arbitrarily scaled without deformation or blurring, the present invention can also ensure that the content in the magnified area is clear after the target area is magnified, thereby facilitating teaching and learning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of digital teaching technology, and more specifically, to a method and device for partially magnifying digital teaching materials. Background Art

[0002] Digital textbooks are digitized textbooks. Different from traditional textbooks, digital textbooks use multimedia technology to digitize traditional paper content and transform it into interactive textbooks suitable for various electronic terminals.

[0003] In actual application scenarios, users usually need to zoom in on parts of digital teaching materials to facilitate teaching and learning. However, most digital teaching materials use pictures as carriers. When zooming in on parts of the pictures, the zoomed content will become blurry and unclear, thus affecting the teaching and learning effects. Summary of the invention

[0004] In view of this, the present invention discloses a method and device for partial magnification of a digital teaching material, so as to realize partial magnification of the digital teaching material and ensure that the content in the magnified area is clear.

[0005] A local magnification method for a digital teaching material, comprising:

[0006] Get digital textbooks in PDF format;

[0007] Selecting a target area to be enlarged from the digital teaching material, and determining the area coordinates corresponding to the target area;

[0008] When a zoom-in instruction is received, the region coordinates are converted into PDF page coordinates to obtain a PDF region corresponding to the target region;

[0009] The PDF area is gradually enlarged according to a preset enlargement amplitude until the enlarged area corresponding to the target area reaches the maximum length and / or maximum width that can be accommodated by the screen, and the enlargement operation is stopped;

[0010] Move the magnified area to the center of the screen.

[0011] Optionally, selecting a target area to be enlarged from the digital teaching material and determining area coordinates corresponding to the target area includes:

[0012] Selecting an original area to be enlarged from the digital teaching material;

[0013] Adding functional sub-elements to the original area to obtain the target area;

[0014] The region coordinates corresponding to the target region are determined, wherein the region coordinates include: region coordinates corresponding to the original region and region coordinates corresponding to the functional sub-element.

[0015] Optionally, after selecting a target area to be enlarged from the digital teaching material and determining the area coordinates corresponding to the target area, the method further includes:

[0016] When receiving a save instruction, converting the region coordinates into the PDF page coordinates;

[0017] The target area and the corresponding PDF page coordinates are saved as dynamic screenshot data.

[0018] Optionally, converting the area coordinates into the PDF page coordinates includes:

[0019] The region coordinates are converted to screen coordinates, and the screen coordinates are converted to the PDF page coordinates.

[0020] Optionally, when a functional sub-element is added to the target area, the method further includes:

[0021] Loading the dynamic screenshot data;

[0022] Reading the regional page coordinates and the functional submodule page coordinates from the dynamic screenshot data;

[0023] Converting the regional page coordinates into regional screen coordinates, and converting the functional submodule page coordinates into functional submodule screen coordinates;

[0024] Loading the corresponding target area according to the area screen coordinates, and loading the corresponding functional sub-element according to the functional sub-module screen coordinates;

[0025] A preset operation is performed on the loaded target area and the functional sub-element, wherein the preset operation is any one or more of: editing, saving, canceling and playing the animation sub-element.

[0026] Optionally, when the enlarged area includes a functional sub-element, after the step of moving the enlarged area to the center of the screen, the method further includes:

[0027] Recalculating the latest screen coordinates according to the page coordinates of the enlarged area, wherein the latest screen coordinates include: the latest area screen coordinates and the latest sub-element screen coordinates;

[0028] The position of the functional sub-element in the magnified area is reset according to the latest screen coordinates to complete the local magnification operation.

[0029] Optionally, moving the enlarged area to the center of the screen includes:

[0030] Determine, according to the size of the magnified area and the size of the screen, a horizontal offset and a vertical offset of a current position of the magnified area relative to a center position of the screen;

[0031] The enlarged area is moved according to the horizontal offset and the vertical offset so that the enlarged area is located at the center of the screen.

[0032] A local magnification device for a digital teaching material, comprising:

[0033] The acquisition unit is used to obtain digital teaching materials in PDF format;

[0034] An area determination unit, used to select a target area to be enlarged from the digital teaching material, and determine the area coordinates corresponding to the target area;

[0035] A first coordinate conversion unit, configured to convert the region coordinates into PDF page coordinates to obtain a PDF region corresponding to the target region when receiving a zoom-in instruction;

[0036] an enlargement unit, configured to gradually enlarge the PDF area according to a preset enlargement amplitude until the enlarged area corresponding to the target area reaches a maximum length and / or a maximum width that can be accommodated by the screen, and then stop the enlargement operation;

[0037] The moving unit is used to move the magnified area to the center of the screen.

[0038] Optionally, the area determination unit is specifically used to:

[0039] Selecting an original area to be enlarged from the digital teaching material;

[0040] Adding functional sub-elements to the original area to obtain the target area;

[0041] The region coordinates corresponding to the target region are determined, wherein the region coordinates include: region coordinates corresponding to the original region and region coordinates corresponding to the functional sub-element.

[0042] Optionally, also include:

[0043] A second coordinate conversion unit is used for converting the region coordinates into the PDF page coordinates when receiving a save instruction after the region determination unit selects the target region to be enlarged from the digital teaching material and determines the region coordinates corresponding to the target region;

[0044] The saving unit is used to save the target area and the corresponding PDF page coordinates as dynamic screenshot data.

[0045] Optionally, also include:

[0046] A first loading unit, configured to load the dynamic screenshot data when a functional sub-element is added to the target area;

[0047] A coordinate reading unit, used for reading the regional page coordinates and the functional submodule page coordinates from the dynamic screenshot data;

[0048] A third coordinate conversion unit, used for converting the regional page coordinates into regional screen coordinates, and converting the functional submodule page coordinates into functional submodule screen coordinates;

[0049] A second loading unit, configured to load the corresponding target area according to the area screen coordinates, and load the corresponding functional sub-element according to the functional sub-module screen coordinates;

[0050] The operation unit is used to perform preset operations on the loaded target area and the functional sub-element, and the preset operations are: any one or more of editing, saving, canceling and playing animation sub-elements.

[0051] Optionally, also include:

[0052] a calculation unit, configured to, when the magnified area includes a functional sub-element, recalculate the latest screen coordinates according to the page coordinates of the magnified area after the moving unit moves the magnified area to the center of the screen, wherein the latest screen coordinates include: the latest area screen coordinates and the latest sub-element screen coordinates;

[0053] The resetting unit is used to reset the position of the functional sub-element in the magnification area according to the latest screen coordinates to complete the local magnification operation.

[0054] As can be seen from the above technical solution, the present invention discloses a method and device for partial magnification of digital teaching materials, obtains digital teaching materials in PDF format, selects a target area to be magnified from the digital teaching materials, and determines the area coordinates corresponding to the target area. When receiving a zoom-in instruction, the area coordinates are converted into PDF page coordinates to obtain a PDF area corresponding to the target area, and the PDF area is gradually magnified according to a preset magnification amplitude until the magnified area corresponding to the target area reaches the maximum length and / or maximum width that the screen can accommodate, stops the magnification operation, and moves the magnified area to the center of the screen. The digital teaching materials in the present invention use PDF as a carrier, and the PDF area corresponding to the framed target area is magnified to achieve the magnification of the target area. Since the font in the digital teaching materials in PDF format is a vector font, and the actual size of the vector font can be arbitrarily scaled without deformation or blurring, the present invention can also ensure that the content in the magnified area is clear after the target area is magnified, thereby facilitating teaching and improving learning effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the disclosed drawings without paying creative work.

[0056] Figure 1 A flow chart of a local magnification method of a digital teaching material disclosed in an embodiment of the present invention;

[0057] Figure 2 A flow chart of another local magnification method of a digital teaching material disclosed in an embodiment of the present invention;

[0058] Figure 3 A flow chart of a method for reverse loading dynamic screenshot data disclosed in an embodiment of the present invention;

[0059] Figure 4 The present invention is a schematic structural diagram of a local magnification device for a digital teaching material disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0061] The embodiment of the present invention discloses a local magnification method and device for digital teaching materials, which obtains a digital teaching material in PDF format, selects a target area to be magnified from the digital teaching material, and determines the area coordinates corresponding to the target area. When a zoom-in instruction is received, the area coordinates are converted into PDF page coordinates to obtain a PDF area corresponding to the target area, and the PDF area is gradually magnified according to a preset magnification amplitude until the magnified area corresponding to the target area reaches the maximum length and / or maximum width that the screen can accommodate, and the magnification operation is stopped, and the magnified area is moved to the center of the screen. The digital teaching material in the present invention uses PDF as a carrier, and the PDF area corresponding to the framed target area is magnified to achieve the magnification of the target area. Since the font in the digital teaching material in PDF format is a vector font, and the actual size of the vector font can be arbitrarily scaled without deformation or blurring, after the target area is magnified, the present invention can also ensure that the content in the magnified area is clear, thereby facilitating teaching and improving learning effects.

[0062] See also Figure 1, a flow chart of a local magnification method of a digital teaching material disclosed in an embodiment of the present invention, the method comprising:

[0063] Step S101, obtaining digital teaching materials in PDF format;

[0064] Compared with digital teaching materials in picture format, the fonts in digital teaching materials in PDF format are vector fonts (Vectorfont). Each glyph in the vector font is described by a mathematical curve, which contains key points on the glyph boundary, derivative information of the connecting line, etc. The rendering engine of the font reads these mathematical vectors and then performs certain mathematical operations to render. The advantage of this type of font is that the actual size of the font can be arbitrarily scaled without deformation or blur. Based on this, the digital teaching materials in the present invention use PDF as a carrier.

[0065] Step S102: select a target area to be enlarged from the digital teaching material, and determine the area coordinates corresponding to the target area;

[0066] In actual applications, the target area to be enlarged is a rectangular area, and the rectangular area is determined according to the area selection instruction sent by the user.

[0067] The area coordinates corresponding to the target area generally refer to the upper left position coordinates and the lower right position coordinates.

[0068] Step S103: when a zoom-in instruction is received, converting the area coordinates into PDF page coordinates to obtain a PDF area corresponding to the target area;

[0069] Specifically, when a zoom-in instruction is received, the region coordinates are first converted into screen coordinates, and then the screen coordinates are converted into the PDF page coordinates.

[0070] If the target area selected by the user exceeds the valid area of ​​the page, the target area selected by the user is corrected back to the PDF page area.

[0071] It should be noted that the conversion of area coordinates into screen coordinates and the conversion of screen coordinates into PDF coordinates can both be implemented by using coordinate conversion functions.

[0072] Step S104, gradually enlarging the PDF area according to a preset enlargement amplitude until the enlarged area corresponding to the target area reaches the maximum length and / or maximum width that can be accommodated by the screen, and then stopping the enlargement operation;

[0073] When the present invention magnifies the target area, it magnifies it step by step according to the preset magnification range, rather than magnifying it in one step until the magnified area obtained step by step reaches the maximum length and / or maximum width that the screen can accommodate.

[0074] The value of the preset amplification amplitude is determined according to actual needs, such as 25%, and the present invention does not limit it here.

[0075] In actual applications, the upper left corner screen coordinates and the lower right corner screen coordinates of the magnified area can be obtained in real time according to the coordinate conversion function, until the height of the magnified area reaches the maximum height of the screen, or the width of the magnified area reaches the maximum width of the screen, the magnification operation is stopped.

[0076] Considering that the width of the screen is greater than the height, during the process of zooming in the target area, the maximum height of the screen may be given priority, that is, when the height of the zoomed-in area reaches the maximum height of the screen, the zooming-in operation is stopped.

[0077] Step S105: Move the enlarged area to the center of the screen.

[0078] In summary, the present invention discloses a method for partial magnification of a digital textbook, obtains a digital textbook in PDF format, selects a target area to be magnified from the digital textbook, and determines the area coordinates corresponding to the target area. When a zoom-in instruction is received, the area coordinates are converted into PDF page coordinates to obtain a PDF area corresponding to the target area, and the PDF area is gradually magnified according to a preset magnification amplitude until the magnified area corresponding to the target area reaches the maximum length and / or maximum width that the screen can accommodate, stops the magnification operation, and moves the magnified area to the center of the screen. The digital textbook in the present invention uses PDF as a carrier, and the PDF area corresponding to the framed target area is magnified to achieve magnification of the target area. Since the font in the digital textbook in PDF format is a vector font, and the actual size of the vector font can be arbitrarily scaled without deformation or blurring, the present invention can also ensure that the content in the magnified area is clear after the target area is magnified, thereby facilitating teaching and improving learning effects.

[0079] In actual applications, to facilitate user teaching, after selecting the target area to be enlarged on the digital teaching material, the user can also combine the usage scenarios of digital teaching, add graphics, area occlusion animations and other functional sub-elements to the target area, and then enlarge the target area and functional sub-elements for teaching or use.

[0080] Therefore, to further optimize the above embodiment, step S102 may specifically include:

[0081] Select the original area to be enlarged from the digital teaching material;

[0082] Adding functional sub-elements to the original area to obtain the target area;

[0083] The region coordinates corresponding to the target region are determined.

[0084] The region coordinates include: region coordinates corresponding to the original region and region coordinates corresponding to the functional sub-element.

[0085] It should be noted that in actual applications, when the user adds a functional sub-element to the original area to be enlarged, the region coordinates of the original area and the region coordinates of the functional sub-element need to be determined at the same time. In addition, the subsequent processing of the region coordinates includes both the original area and the functional sub-module.

[0086] To further optimize the above embodiment, when the magnified area includes a functional sub-element, after step S105, the following steps may also be included:

[0087] Recalculating the latest screen coordinates according to the page coordinates of the enlarged area, wherein the latest screen coordinates include: the latest area screen coordinates and the latest sub-element screen coordinates;

[0088] The position of the functional sub-element in the magnified area is reset according to the latest screen coordinates to complete the local magnification operation.

[0089] To understand the process of adding sub-elements and enlarging sub-elements in the area selected by the user, see Figure 2 , a flow chart of another local magnification method of a digital teaching material disclosed in an embodiment of the present invention, the method comprising:

[0090] Step S201, selecting an original area to be enlarged from the digital teaching material;

[0091] Step S202, adding functional sub-elements to the original area to obtain a target area;

[0092] The functional sub-elements in this embodiment may be color blocks (regular color blocks and irregular color blocks), area occlusion animations, and the like.

[0093] Step S203, determining the area coordinates corresponding to the target area;

[0094] The region coordinates include: region coordinates corresponding to the original region and region coordinates corresponding to the functional sub-element.

[0095] Step S204: when a zoom-in instruction is received, the region coordinates are converted into PDF page coordinates to obtain a PDF region corresponding to the target region;

[0096] Step S205, gradually enlarging the PDF area according to a preset enlargement amplitude until the enlarged area corresponding to the target area reaches the maximum length and / or maximum width that can be accommodated by the screen, and then stopping the enlargement operation;

[0097] Step S206, moving the enlarged area to the center of the screen;

[0098] Step S207, recalculating the latest screen coordinates according to the page coordinates of the enlarged area;

[0099] The latest screen coordinates include: the latest area screen coordinates and the latest sub-element screen coordinates.

[0100] Step S208: reset the position of the functional sub-element in the magnified area according to the latest screen coordinates, and complete the local magnification operation.

[0101] In summary, the local magnification method of the digital teaching material disclosed in the present invention uses PDF as a carrier, and the PDF area corresponding to the framed target area is magnified to achieve the magnification of the target area. Since the font in the digital teaching material in PDF format is a vector font, and the actual size of the vector font can be arbitrarily scaled without deformation or blur, after the present invention magnifies the target area, it can also ensure that the content in the magnified area is clear, thereby facilitating teaching and improving learning effects. In addition, the present invention improves the freshness of teaching and learning interest by adding functional sub-elements such as color blocks, area occlusion animations, etc. in the target area.

[0102] To further optimize the above embodiment, the process of moving the enlarged area to the center of the screen in step S105 and step S206 specifically includes:

[0103] Determine, according to the size of the magnified area and the size of the screen, a horizontal offset and a vertical offset of a current position of the magnified area relative to a center position of the screen;

[0104] The enlarged area is moved according to the horizontal offset and the vertical offset so that the enlarged area is located at the center of the screen.

[0105] In practical applications, in addition to amplifying the target area selected by the user, the present invention can also save the target area so as to continue to process the target area later, such as continuing editing and saving operations.

[0106] Therefore, in order to further optimize the above embodiment, after step S102, the following may also be included:

[0107] When receiving a save instruction, converting the region coordinates into the PDF page coordinates;

[0108] The target area and the corresponding PDF page coordinates are saved as dynamic screenshot data.

[0109] It should be noted that, when a functional sub-element is added to the target area, the area coordinates in this embodiment include both the area coordinates of the original area selected by the frame and the area coordinates of the functional sub-element.

[0110] It should also be noted that, in the present invention, the region coordinates are not directly converted into PDF page coordinates, but the region coordinates are converted into screen coordinates, and then the screen coordinates are converted into PDF page coordinates.

[0111] In practical applications, the present invention can also load the saved dynamic screenshot data, and perform continued editing and saving operations based on the loaded dynamic screenshot data.

[0112] When functional sub-elements are added to the target area, see Figure 3 , a flow chart of a method for reverse loading dynamic screenshot data disclosed in an embodiment of the present invention, the method comprising:

[0113] Step S301, loading dynamic screenshot data;

[0114] The dynamic screenshot data in this embodiment includes a target area and a corresponding PDF page coordinate. The target area here is a target area with a functional sub-element added. Therefore, the PDF page coordinate includes the area page coordinate and the functional sub-module page coordinate.

[0115] Step S302, reading the region page coordinates and the function submodule page coordinates from the dynamic screenshot data;

[0116] Step S303, converting the regional page coordinates into regional screen coordinates, and converting the functional submodule page coordinates into functional submodule screen coordinates;

[0117] In practical applications, coordinate conversion functions can be used to achieve conversion between coordinates.

[0118] Step S304, loading the corresponding target area according to the area screen coordinates, and loading the corresponding functional sub-element according to the functional sub-module screen coordinates;

[0119] Step S305: performing a preset operation on the loaded target area and functional sub-elements.

[0120] The preset operations are: any one or more of: edit, save, cancel and play animation sub-elements.

[0121] Since the present invention can repeatedly edit dynamic screenshot data, it greatly facilitates users.

[0122] Corresponding to the above method embodiment, the present invention also discloses a local magnification device for digital teaching materials.

[0123] See also Figure 4 , a structural schematic diagram of a local magnification device for a digital teaching material disclosed in an embodiment of the present invention, the device comprises:

[0124] An acquisition unit 401 is used to acquire digital teaching materials in PDF format;

[0125] Compared with digital teaching materials in picture format, the fonts in digital teaching materials in PDF format are vector fonts (Vectorfont). Each glyph in the vector font is described by a mathematical curve, which contains key points on the glyph boundary, derivative information of the connecting line, etc. The rendering engine of the font reads these mathematical vectors and then performs certain mathematical operations to render. The advantage of this type of font is that the actual size of the font can be arbitrarily scaled without deformation or blur. Based on this, the digital teaching materials in the present invention use PDF as a carrier.

[0126] The region determination unit 402 is used to select a target region to be enlarged from the digital teaching material and determine the region coordinates corresponding to the target region;

[0127] In actual applications, the target area to be enlarged is a rectangular area, and the rectangular area is determined according to the area selection instruction sent by the user.

[0128] The area coordinates corresponding to the target area generally refer to the upper left position coordinates and the lower right position coordinates.

[0129] A first coordinate conversion unit 403 is used to convert the area coordinates into PDF page coordinates to obtain a PDF area corresponding to the target area when receiving a zoom-in instruction;

[0130] Specifically, when a zoom-in instruction is received, the region coordinates are first converted into screen coordinates, and then the screen coordinates are converted into the PDF page coordinates.

[0131] If the target area selected by the user exceeds the valid area of ​​the page, the target area selected by the user is corrected back to the PDF page area.

[0132] It should be noted that the conversion of area coordinates into screen coordinates and the conversion of screen coordinates into PDF coordinates can both be implemented by using coordinate conversion functions.

[0133] The enlargement unit 404 is used to gradually enlarge the PDF area according to a preset enlargement amplitude until the enlarged area corresponding to the target area reaches the maximum length and / or maximum width that can be accommodated by the screen, and then stop the enlargement operation;

[0134] When the present invention magnifies the target area, it magnifies it step by step according to the preset magnification range, rather than magnifying it in one step until the magnified area obtained step by step reaches the maximum length and / or maximum width that the screen can accommodate.

[0135] The value of the preset amplification amplitude is determined according to actual needs, such as 25%, and the present invention does not limit it here.

[0136] In actual applications, the upper left corner screen coordinates and the lower right corner screen coordinates of the magnified area can be obtained in real time according to the coordinate conversion function, until the height of the magnified area reaches the maximum height of the screen, or the width of the magnified area reaches the maximum width of the screen, the magnification operation is stopped.

[0137] Considering that the width of the screen is greater than the height, during the process of zooming in the target area, the maximum height of the screen may be given priority, that is, when the height of the zoomed-in area reaches the maximum height of the screen, the zooming-in operation is stopped.

[0138] The moving unit 405 is used to move the enlarged area to the center of the screen.

[0139] In summary, the present invention discloses a local magnification device for digital teaching materials, obtains digital teaching materials in PDF format, selects a target area to be magnified from the digital teaching materials, and determines the area coordinates corresponding to the target area. When a magnification instruction is received, the area coordinates are converted into PDF page coordinates to obtain a PDF area corresponding to the target area, and the PDF area is gradually magnified according to a preset magnification amplitude until the magnified area corresponding to the target area reaches the maximum length and / or maximum width that the screen can accommodate, stops the magnification operation, and moves the magnified area to the center of the screen. The digital teaching materials in the present invention use PDF as a carrier, and the PDF area corresponding to the framed target area is magnified to achieve magnification of the target area. Since the font in the digital teaching materials in PDF format is a vector font, and the actual size of the vector font can be arbitrarily scaled without deformation or blurring, the present invention can also ensure that the content in the magnified area is clear after the target area is magnified, thereby facilitating teaching and improving learning effects.

[0140] To further optimize the above embodiment, the region determination unit 402 is specifically used for:

[0141] Selecting an original area to be enlarged from the digital teaching material;

[0142] Adding functional sub-elements to the original area to obtain the target area;

[0143] The region coordinates corresponding to the target region are determined, wherein the region coordinates include: region coordinates corresponding to the original region and region coordinates corresponding to the functional sub-element.

[0144] To further optimize the above embodiment, the local amplification device may further include:

[0145] A second coordinate conversion unit is used for converting the region coordinates into the PDF page coordinates when receiving a save instruction after the region determination unit 402 selects the target region to be enlarged from the digital teaching material and determines the region coordinates corresponding to the target region;

[0146] The saving unit is used to save the target area and the corresponding PDF page coordinates as dynamic screenshot data.

[0147] To further optimize the above embodiment, the local amplification device may further include:

[0148] A first loading unit, configured to load the dynamic screenshot data when a functional sub-element is added to the target area;

[0149] A coordinate reading unit, used for reading the regional page coordinates and the functional submodule page coordinates from the dynamic screenshot data;

[0150] A third coordinate conversion unit, used for converting the regional page coordinates into regional screen coordinates, and converting the functional submodule page coordinates into functional submodule screen coordinates;

[0151] A second loading unit, configured to load the corresponding target area according to the area screen coordinates, and load the corresponding functional sub-element according to the functional sub-module screen coordinates;

[0152] The operation unit is used to perform preset operations on the loaded target area and the functional sub-element, and the preset operations are: any one or more of editing, saving, canceling and playing animation sub-elements.

[0153] To further optimize the above embodiment, the local amplification device may further include:

[0154] a calculation unit, configured to, when the magnified area includes a functional sub-element, recalculate the latest screen coordinates according to the page coordinates of the magnified area after the moving unit moves the magnified area to the center of the screen, wherein the latest screen coordinates include: the latest area screen coordinates and the latest sub-element screen coordinates;

[0155] The resetting unit is used to reset the position of the functional sub-element in the magnification area according to the latest screen coordinates to complete the local magnification operation.

[0156] It should be noted that for the specific working principles of each component in the device embodiment, please refer to the corresponding part of the method embodiment, which will not be repeated here.

[0157] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0158] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0159] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for partial magnification of a digital teaching material, characterized in that: include: Get digital textbooks in PDF format; Selecting a target area to be enlarged from the digital teaching material and determining the area coordinates corresponding to the target area includes: selecting an original area to be enlarged from the digital teaching material; adding a functional sub-element to the original area to obtain the target area; determining the area coordinates corresponding to the target area, wherein the area coordinates include: the area coordinates corresponding to the original area and the area coordinates corresponding to the functional sub-element; When a zoom-in instruction is received, the region coordinates are converted into PDF page coordinates to obtain a PDF region corresponding to the target region; The PDF area is gradually enlarged according to a preset enlargement amplitude until the enlarged area corresponding to the target area reaches the maximum length and / or maximum width that can be accommodated by the screen, and the enlargement operation is stopped; Move the magnified area to the center of the screen.

2. The local magnification method according to claim 1, characterized in that: After selecting the target area to be enlarged from the digital teaching material and determining the area coordinates corresponding to the target area, the method further includes: When receiving a save instruction, converting the region coordinates into PDF page coordinates; The target area and the corresponding PDF page coordinates are saved as dynamic screenshot data.

3. The local magnification method according to claim 1 or 2, characterized in that: The converting the area coordinates into PDF page coordinates comprises: The region coordinates are converted to screen coordinates, and the screen coordinates are converted to PDF page coordinates.

4. The local magnification method according to claim 2, characterized in that: When a functional sub-element is added to the target area, it also includes: Loading the dynamic screenshot data; Reading the regional page coordinates and the functional submodule page coordinates from the dynamic screenshot data; Converting the regional page coordinates into regional screen coordinates, and converting the functional submodule page coordinates into functional submodule screen coordinates; Loading the corresponding target area according to the area screen coordinates, and loading the corresponding functional sub-element according to the functional sub-module screen coordinates; A preset operation is performed on the loaded target area and the functional sub-element, wherein the preset operation is any one or more of: editing, saving, canceling and playing the animation sub-element.

5. The local magnification method according to claim 1, characterized in that: When the magnified area includes a functional sub-element, after moving the magnified area to the center of the screen, the method further includes: Recalculating the latest screen coordinates according to the page coordinates of the enlarged area, wherein the latest screen coordinates include: the latest area screen coordinates and the latest sub-element screen coordinates; The position of the functional sub-element in the magnified area is reset according to the latest screen coordinates to complete the local magnification operation.

6. The local magnification method according to claim 1, characterized in that: The step of moving the magnified area to the center of the screen comprises: Determine, according to the size of the magnified area and the size of the screen, a horizontal offset and a vertical offset of a current position of the magnified area relative to a center position of the screen; The enlarged area is moved according to the horizontal offset and the vertical offset so that the enlarged area is located at the center of the screen.

7. A local magnification device for digital teaching materials, characterized in that: include: The acquisition unit is used to obtain digital teaching materials in PDF format; An area determination unit, used to select a target area to be enlarged from the digital teaching material, and determine the area coordinates corresponding to the target area; A first coordinate conversion unit, configured to convert the region coordinates into PDF page coordinates to obtain a PDF region corresponding to the target region when receiving a zoom-in instruction; an enlargement unit, configured to gradually enlarge the PDF area according to a preset enlargement amplitude until the enlarged area corresponding to the target area reaches a maximum length and / or a maximum width that can be accommodated by the screen, and then stop the enlargement operation; A moving unit, used for moving the magnified area to the center of the screen; The area determination unit is specifically used for: Selecting an original area to be enlarged from the digital teaching material; Adding functional sub-elements to the original area to obtain the target area; The region coordinates corresponding to the target region are determined, wherein the region coordinates include: region coordinates corresponding to the original region and region coordinates corresponding to the functional sub-element.

8. The local amplification device according to claim 7, characterized in that: Also includes: A second coordinate conversion unit is used for converting the region coordinates into the PDF page coordinates when receiving a save instruction after the region determination unit selects the target region to be enlarged from the digital teaching material and determines the region coordinates corresponding to the target region; The saving unit is used to save the target area and the corresponding PDF page coordinates as dynamic screenshot data.

9. The local amplification device according to claim 8, characterized in that: Also includes: A first loading unit, configured to load the dynamic screenshot data when a functional sub-element is added to the target area; A coordinate reading unit, used for reading the regional page coordinates and the functional submodule page coordinates from the dynamic screenshot data; A third coordinate conversion unit, used for converting the regional page coordinates into regional screen coordinates, and converting the functional submodule page coordinates into functional submodule screen coordinates; A second loading unit, configured to load the corresponding target area according to the area screen coordinates, and load the corresponding functional sub-element according to the functional sub-module screen coordinates; The operation unit is used to perform preset operations on the loaded target area and the functional sub-element, and the preset operations are: any one or more of editing, saving, canceling and playing animation sub-elements.

10. The local amplification device according to claim 7, characterized in that: Also includes: a calculation unit, configured to, when the magnified area includes a functional sub-element, recalculate the latest screen coordinates according to the page coordinates of the magnified area after the moving unit moves the magnified area to the center of the screen, wherein the latest screen coordinates include: the latest area screen coordinates and the latest sub-element screen coordinates; The resetting unit is used to reset the position of the functional sub-element in the magnification area according to the latest screen coordinates to complete the local magnification operation.

Citation Information

Patent Citations

  • Electronic book display method and device

    CN113190147A