CN115879436B - Electronic book quality inspection method - Google Patents

Electronic book quality inspection method Download PDF

Info

Publication number
CN115879436B
CN115879436B CN202310186543.6A CN202310186543A CN115879436B CN 115879436 B CN115879436 B CN 115879436B CN 202310186543 A CN202310186543 A CN 202310186543A CN 115879436 B CN115879436 B CN 115879436B
Authority
CN
China
Prior art keywords
typesetting
picture
electronic
text
standard
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310186543.6A
Other languages
Chinese (zh)
Other versions
CN115879436A (en
Inventor
杜国宝
陈波
翟磊
孙继磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Petal Cloud Technology Co Ltd
Original Assignee
Petal Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Petal Cloud Technology Co Ltd filed Critical Petal Cloud Technology Co Ltd
Priority to CN202310186543.6A priority Critical patent/CN115879436B/en
Publication of CN115879436A publication Critical patent/CN115879436A/en
Application granted granted Critical
Publication of CN115879436B publication Critical patent/CN115879436B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The application provides an electronic book quality inspection method. The method comprises the following steps: the electronic equipment acquires a first electronic book; the electronic equipment acquires a first typesetting verification standard; the electronic equipment performs quality inspection on pages in the first electronic book based on the first typesetting verification standard; the electronic equipment acquires a first text typesetting problem existing in the pages of the first electronic book and/or a first picture typesetting problem existing in the pages of the first electronic book; and the electronic equipment sends the first text typesetting problem and/or the first picture typesetting problem to the server. By the method, the quality inspection of the character typesetting problem and the picture typesetting problem in the electronic book is automatically realized, and the quality inspection efficiency of the electronic book is improved.

Description

Electronic book quality inspection method
Technical Field
The application relates to the technical field of electronic equipment, in particular to an electronic book quality inspection method.
Background
With the development of terminal technology, the types of electronic devices are becoming more and more abundant. More and more users choose to read electronic books. The electronic book provides a more convenient, richer and diversified reading mode for users. The user may download the electronic book from the server through the device and read the electronic device book.
Before operators put the electronic equipment on shelf to the server, the typesetting quality of the electronic books needs to be checked so as not to influence the reading experience of users. At present, the method mainly relies on operators to check each chapter of an electronic book one by one, and after problems in the electronic book are found, the problems are summarized and recorded and then passed to technicians to solve the existing problems. The manner of relying on manpower is less efficient. How to improve the quality inspection efficiency of electronic books is yet to be further studied.
Disclosure of Invention
The application provides an electronic book quality inspection method. The quality inspection of the text typesetting problem and the picture typesetting problem in the electronic book is automatically realized, and the quality inspection efficiency of the electronic book is improved.
In a first aspect, the present application provides a method for quality inspection of an electronic book, including: the electronic equipment acquires a first electronic book; the electronic equipment acquires a first typesetting verification standard; the electronic equipment performs quality inspection on pages in the first electronic book based on the first typesetting verification standard; the electronic equipment acquires a first text typesetting problem existing in the pages of the first electronic book and/or a first picture typesetting problem existing in the pages of the first electronic book; and the electronic equipment sends the first text typesetting problem and/or the first picture typesetting problem to the server.
By the method, the electronic equipment can automatically carry out quality inspection on the character typesetting problem and the picture typesetting problem in the electronic book, and the quality inspection efficiency of the electronic book is improved.
With reference to the first aspect, in one possible implementation manner, before the electronic device obtains the first typesetting verification standard, the method further includes: the electronic equipment determines that the simulated equipment type is a first equipment type; the electronic equipment acquires a first typesetting verification standard, which specifically comprises the following steps: and the electronic equipment acquires a first typesetting verification standard corresponding to the first equipment type based on the first equipment type. Thus, the electronic device can acquire typesetting verification standards applicable to the simulated device type after determining the simulated device type.
With reference to the first aspect, in one possible implementation manner, the method further includes: the electronic equipment determines that the simulated equipment type is a second equipment type; the electronic equipment acquires a second typesetting verification standard corresponding to a second equipment type based on the second equipment type; the electronic equipment performs quality inspection on the pages of the first electronic book based on the second typesetting verification standard; the electronic equipment acquires a second text typesetting problem existing in the pages of the first electronic book and/or a second picture typesetting problem existing in the pages of the first electronic book; the electronic equipment sends the second text typesetting problem and/or the second picture typesetting problem to the server; the second equipment type is different from the first equipment type, and the second typesetting verification standard is different from the first typesetting verification standard. Thus, the electronic device can simulate different types of devices and detect typesetting problems of the same electronic book on the different types of devices. The typesetting problem of the same electronic book on different types of equipment is not required to be tested through the different types of electronic equipment.
With reference to the first aspect, in one possible implementation manner, the electronic device obtains, based on a first device type, a first typesetting verification standard corresponding to the first device type, including: the electronic equipment determines first equipment information corresponding to a first equipment type based on the first equipment type, wherein the first equipment information comprises one or more of the following items: screen width, screen height, screen resolution; the electronic device obtains a first typesetting verification standard based on the first device information.
With reference to the first aspect, in one possible implementation manner, the determining, by the electronic device, that the simulated device type is the first device type specifically includes: the electronic equipment displays a plurality of options, wherein the options comprise first options, and the first options are used for selecting a first equipment type; the electronic device receives a first operation for a first option; in response to the first operation, the electronic device determines that the simulated device type is the first device type. Thus, before the electronic device tests the typesetting problem of the electronic book, the electronic device can receive the user operation to determine the simulated device type.
With reference to the first aspect, in one possible implementation manner, after the electronic device sends the first text layout problem and/or the first picture layout problem to the server, the method further includes: the electronic device displays a first user interface; the electronic device receives a second operation of the user for a second option in the first user interface: and responding to the second operation, the electronic equipment displays a second user interface, wherein the second user interface comprises the serial number of the first page of the first electronic book, the content of the first page, and the text typesetting problem and/or the picture typesetting problem existing in the first page. Thus, the user can check the text typesetting problem and/or the picture typesetting problem in the detected electronic book through the electronic equipment.
With reference to the first aspect, in one possible implementation manner, the first typesetting verification criteria include a first text typesetting verification criterion and a first picture typesetting verification criterion; wherein the first typesetting verification criteria includes one or more of: font size standard, text blank standard in page, text indentation standard in page, background color and text color similarity standard in page, etc. The first picture composition verification criteria includes one or more of the following: picture size standard, picture definition standard, picture alignment standard, picture centering standard, picture overflow and underflow standard.
With reference to the first aspect, in one possible implementation manner, the first text layout problem includes one or more of the following: the typesetting problem that the size of the characters is unsuitable, the line spacing of the characters is unsuitable, the excessive typesetting problem that the characters remain white, the typesetting problem that the characters retract is unsuitable, and the background color of the page is similar to the color of the characters; the first picture composition problem includes one or more of: the problems of improper picture size typesetting, insufficient picture definition typesetting, misaligned picture typesetting, non-centered picture typesetting and overflow and underflow picture typesetting are solved.
In a second aspect, the present application provides an electronic device comprising a processor and a memory; the memory is coupled to the processor, the memory being for storing computer program code comprising computer instructions that the processor invokes to cause the electronic device to perform a fast application running method provided in any one of the possible implementations of the first aspect.
In a third aspect, the present application provides a computer readable storage medium storing computer instructions that, when executed on an electronic device, cause the electronic device to perform a fast application running method provided in any one of the possible implementations of the first aspect.
In a fourth aspect, the present application provides a computer program product for, when run on an electronic device, causing the electronic device to perform a fast application running method as provided in any one of the possible implementations of the first aspect.
For the description of the beneficial effects in the second aspect to the fourth aspect, reference may be made to the description of the beneficial effects in the first aspect, which is not repeated herein.
Drawings
FIG. 1 is a schematic flow chart of a method for generating an electronic book according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a system architecture according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present application;
fig. 4 is a software block diagram of an electronic device 100 according to an embodiment of the present application;
FIG. 5A is a schematic flow chart of a method for quality inspection of an electronic book according to an embodiment of the present application;
FIG. 5B is a schematic diagram of an electronic book with quality inspection according to an embodiment of the present application;
FIG. 5C is a schematic diagram of a typesetting quality inspection result of an electronic book according to an embodiment of the present application;
fig. 6 is a schematic diagram of method steps of an electronic device 100 for checking text layout problems existing in pages in an electronic book according to an embodiment of the present application;
FIGS. 7A-7E are schematic diagrams illustrating several text composition problems in a first electronic book;
fig. 8 is a schematic diagram of method steps of an electronic device 100 for checking a problem of typesetting of pictures in pages in an electronic book according to an embodiment of the present application;
9A-9F are schematic diagrams illustrating several types of layout questions presented in a first electronic book;
fig. 10 is a flowchart of a method for quality inspection of an electronic book according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and thoroughly described below with reference to the accompanying drawings. Wherein, in the description of the embodiments of the present application, "/" means or is meant unless otherwise indicated, for example, a/B may represent a or B; the text "and/or" is merely an association relation describing the associated object, and indicates that three relations may exist, for example, a and/or B may indicate: the three cases where a exists alone, a and B exist together, and B exists alone, and in addition, in the description of the embodiments of the present application, "plural" means two or more than two.
The terms "first," "second," and the like, are used below for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature, and in the description of embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
First, some concepts related to the present application will be specifically described.
The User Interface (UI) in the embodiments of the present application is a media interface for interaction and information exchange between an application program or an operating system and a user, and it implements conversion between an internal form of information and a form acceptable to the user. The user interface of the application program is source code written in a specific computer language such as java, extensible markup language (extensible markup language, XML) and the like, the interface source code is analyzed and rendered on the electronic equipment, and finally the interface source code is presented as content which can be identified by a user, such as a picture, characters, buttons and the like. Controls, which are basic elements of a user interface, are typically buttons (buttons), gadgets, toolbars, menu bars, text boxes, scroll bars, pictures, and text. The properties and content of the controls in the interface are defined by labels or nodes, such as XML specifies the controls contained in the interface by nodes like (Textview), (ImgView), (VideoView). One node corresponds to a control or attribute in the interface, and the node is rendered into visual content for a user after being analyzed and rendered. In addition, many applications, such as the interface of a hybrid application (hybrid application), typically include web pages. A web page, also referred to as a page, is understood to be a special control embedded in an application program interface, which is source code written in a specific computer language, such as hypertext markup language (hyper text markup language, HTML), cascading style sheets (cascading stylesheets, CSS), java script (JavaScript, JS), etc., and which can be loaded and displayed as user-recognizable content by a browser or web page display component similar to the browser's functionality. The specific content contained in a web page is also defined by tags or nodes in the source code of the web page, such as HTML by (p), (img), (video), (canvas) to define the elements and attributes of the web page. A commonly used presentation form of the user interface is a graphical user interface (graphic user interface, GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It may be an interface element such as a window, control, etc. displayed in a display screen of the electronic device.
FIG. 1 shows a schematic flow chart of a method for generating an electronic book.
1. Before the electronic book is put on shelf to the server, an operator acquires the original medium files, and then uses a manufacturing tool to check and edit the books one by one based on the original medium files, so that typesetting quality of the electronic book at the end side is ensured.
The original media file may be information including text content, pictures, etc. in the electronic book.
Alternatively, the operator may check whether the original media file has a typesetting problem by using a spot check method.
2. The electronic book making device generates an electronic book based on the original media file.
Alternatively, the electronic book making device may generate the electronic book based on the original media file modified by the operator.
3. After the operator confirms that the electronic books do not have typesetting problems, the operator shelves the electronic books to the server, so that the user can download the electronic equipment books from the server and read the electronic books.
4. The user device downloads the electronic book from the server.
The user may download the electronic book from the server through the user device. The user can read the electronic book through the user equipment.
As can be seen from the above steps, in the typesetting quality inspection stage, operators are required to spend a lot of time and manpower to find problems, and the books cannot be covered, so that the efficiency is low. In the stage of checking by operators, the acquired error information is few, typesetting problems tend to affect each other, the time spent for positioning and solving the problems is longer, and the error rate tends to be increased.
Fig. 2 is a schematic diagram of a system architecture according to an embodiment of the present application.
As shown in fig. 2, the system includes an electronic device 100 and a server 200.
The electronic device 100 may be an electronic device used by an operator. The operator can test whether the electronic book has a typesetting problem through the electronic device 100. The server 200 is a device storing the electronic book, and the user device may download the electronic book from the server 200 and read the electronic book.
Wherein, an operator can check the typesetting problem of the electronic book through the electronic device 100. Specifically, the electronic device 100 downloads an electronic book from the server 200, where the electronic book may be composed of a plurality of pages, each of which may be composed of text and/or pictures.
Alternatively, the electronic device 100 may check the layout problem of each page in the electronic book sequentially from front to back according to the page sequence number.
Typesetting problems in pages include, but are not limited to: a text typesetting problem in a page and a picture typesetting problem in the page.
Text composition problems in pages include, but are not limited to: the typesetting problems of unsuitable size of the characters in the page, unsuitable line spacing of the characters in the page, unsuitable white retention of the characters in the page, unsuitable retraction of the characters in the page, similar background color and character color in the page, and the like.
The layout of pictures in a page includes, but is not limited to: the typesetting problems of improper picture size in the page, insufficient picture definition in the page, misaligned picture in the page, non-centering picture in the page, overflow of picture in the page and the like.
After determining the layout problem in the page, the electronic device 100 may mark a corresponding text layout problem or a picture layout problem at a corresponding position in the page.
The operator can view the text typesetting problem and/or the picture typesetting problem in each chapter in the electronic book and each page in each chapter. And transmits the text layout questions and/or the picture layout questions present in each chapter and each page in each chapter in the electronic book to the server 200 through the electronic device 100.
Not limited to the electronic device 100 and the server 200, the system may include other and further electronic devices, which are not limited in this application.
The embodiment of the application can be suitable for an operator to check the typesetting of the electronic book through the electronic equipment 100 before the electronic equipment is put on shelf to the server 200 after the electronic book is obtained, so as to find the typesetting problem in the electronic book. The operator can correct the typesetting problem of the electronic book based on the typesetting problem in the electronic book, and then upload the electronic book with correct typesetting to the server 200, and the user equipment can download the electronic book with correct typesetting from the server 200.
The embodiment of the application can also be suitable for periodically or sporadically checking the typesetting of the electronic books on shelves after the electronic books are placed on shelves to the server 200 so as to find the typesetting problem in the electronic books. The operator can correct the typesetting problem of the electronic book based on the typesetting problem in the electronic book, and then the electronic book with typesetting problem is put off the shelf, and then the electronic book with correct typesetting is uploaded to the server 200, and the user equipment can download the electronic book with correct typesetting from the server 200.
The following describes an electronic device according to an embodiment of the present application.
Fig. 3 shows a schematic structural diagram of the electronic device 100.
The embodiment will be specifically described below taking the electronic device 100 as an example. It should be understood that the electronic device 100 shown in fig. 3 is only one example, and that the electronic device 100 may have more or fewer components than shown in fig. 3, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The electronic device 100 may be a cell phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer, UMPC, netbook, and cellular phone, personal digital assistant (personal digital assistant, PDA), augmented reality (augmented reality, AR) device, virtual Reality (VR) device, artificial intelligence (artificial intelligence, AI) device, wearable device, vehicle-mounted device, smart home device, and/or smart city device, and the specific type of the electronic device is not particularly limited in the embodiments of the present application. The embodiment of the present application will be described by taking the electronic device 100 as a mobile phone.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscr iberidentity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present invention is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noiseamplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also perform algorithm optimization on noise and brightness of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1. The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The internal memory 121 may include one or more random access memories (random access memory, RAM) and one or more non-volatile memories (NVM). The random access memory may include a static random-access memory (SRAM), a dynamic random-access memory (dynamic random access memory, DRAM), a synchronous dynamic random-access memory (synchronous dynamic random access memory, SDRAM), a double data rate synchronous dynamic random-access memory (double data rate synchronous dynamic random access memory, DDR SDRAM, such as fifth generation DDR SDRAM is commonly referred to as DDR5 SDRAM), etc.; the nonvolatile memory may include a disk storage device, a flash memory (flash memory). The FLASH memory may include NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. divided according to an operation principle, may include single-level memory (SLC), multi-level Memory (MLC), triple-level memory (TLC), quad-level memory (QLC), etc. divided according to a memory specification, may include universal FLASH memory (english: universal FLASH storage, UFS), embedded multimedia memory card (embedded multi media Card, eMMC), etc. divided according to a memory specification. The random access memory may be read directly from and written to by the processor 110, may be used to store executable programs (e.g., machine instructions) for an operating system or other on-the-fly programs, may also be used to store data for users and applications, and the like. The nonvolatile memory may store executable programs, store data of users and applications, and the like, and may be loaded into the random access memory in advance for the processor 110 to directly read and write.
The external memory interface 120 may be used to connect external non-volatile memory to enable expansion of the memory capabilities of the electronic device 100. The external nonvolatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and video are stored in an external nonvolatile memory.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular tele communications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. The air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip cover using the magnetic sensor 180D. The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications. A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, the electronic device 100 may range using the distance sensor 180F to achieve quick focus. The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The ambient light sensor 180L is used to sense ambient light level. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent false touches. The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc. The temperature sensor 180J is for detecting temperature. The touch sensor 180K, also referred to as a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The bone conduction sensor 180M may acquire a vibration signal.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, which may be used to indicate a state of charge, a change in charge, a message, a notification, etc.
The SIM card interface 195 is used to connect a SIM card.
The following describes a software system architecture of an electronic device provided in an embodiment of the present application.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the invention, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated. The system of the electronic device 100 may also be a hong system, an IOS system, etc., which is not limited by the embodiments of the present application. The software system may also vary with the type of electronic device 100.
Fig. 4 is a software configuration block diagram of the electronic device 100 according to the embodiment of the present invention.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 4, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, music, short messages, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 4, the application framework layer may include a window manager, a content provider, a telephony manager, a resource manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), two-dimensional graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The two-dimensional graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
Fig. 5A is a schematic flow chart of a method for quality inspection of an electronic book according to an embodiment of the present application.
S501, the server 200 creates an electronic book typesetting quality check task.
When the typesetting quality of the electronic equipment needs to be checked, an operator can create an electronic book typesetting quality check task at the server 200 side.
After the electronic book typesetting quality inspection task is created, an operator can see a message that the creation task item is successful at the server 200 side. Thereafter, other operators or testers may begin checking whether the electronic book has typesetting problems.
S502, the electronic device 100 sends a request for acquiring an electronic book to the server 200.
S503, in response to the request, the server 200 transmits the electronic book to the electronic device 100.
After the task item is successfully created at the server 200, the electronic device 100 can view the corresponding electronic book typesetting quality inspection task.
Alternatively, before the electronic device 100 sends a request for acquiring the electronic book to the server 200, the electronic device 100 may send a request for starting quality inspection of the electronic book to the server 200, the request being for querying whether an unprocessed electronic book typesetting quality inspection task exists at the time. After receiving the request, the server 200 may acquire an unprocessed electronic book layout quality inspection task and send the same to the electronic device 100.
After receiving the unprocessed electronic book typesetting quality inspection task sent by the server 200, the electronic device 100 may receive the operation of the operator to start inspecting the typesetting problem of the electronic book.
In response to an operation of the operator, the electronic device 100 may transmit a request to acquire an electronic book to the server 200. In response to the request, the server 200 may transmit the electronic book to the electronic device 100.
The electronic book sent to the electronic device 100 by the server 200 is the electronic device book to be inspected.
S504, the electronic equipment 100 starts typesetting quality inspection on the electronic books.
Alternatively, after the electronic book is started, the electronic device 100 may start checking the layout problem of each page in the electronic book in the order of page numbers.
The electronic device 100 starts to perform typesetting quality inspection on the electronic book, which may be that the electronic device 100 starts to perform quality inspection on typesetting problems of each page in the electronic book.
Typesetting problems in pages include, but are not limited to: a text typesetting problem in a page and a picture typesetting problem in the page.
Text composition problems in pages include, but are not limited to: the typesetting problems of unsuitable size of the characters in the page, unsuitable line spacing of the characters in the page, unsuitable white retention of the characters in the page, unsuitable retraction of the characters in the page, similar background color and character color in the page, and the like.
The layout of pictures in a page includes, but is not limited to: the typesetting problems of improper picture size in the page, insufficient picture definition in the page, misaligned picture in the page, non-centering picture in the page, overflow of picture in the page and the like.
For how the electronic device 100 determines text layout problems in a page, reference may be made to the description in the embodiment of fig. 6. This application is not described in detail herein.
For how the electronic device 100 determines the layout of the pictures in the page, reference may be made to the description in the embodiment of fig. 8. This application is not described in detail herein.
S505, obtaining typesetting quality inspection results of the electronic books.
After the electronic device 100 completes the checking of the typesetting problem of the electronic book, the electronic device 100 may obtain a typesetting quality check result of the electronic book.
The typesetting quality inspection result of the electronic book comprises the following steps: chapter number of typesetting abnormality, page number of typesetting abnormality, typesetting abnormality screenshot, etc. The typesetting abnormal screenshot can show places where typesetting problems occur in the pages and specific typesetting problem categories.
S506, the electronic device 100 checks the typesetting quality inspection result of the electronic book.
In some embodiments, after the electronic device 100 performs quality inspection on a plurality of electronic books, the electronic device may receive an operation of a user to check which electronic books have been only seen, and may check a typesetting quality inspection result of the electronic books that have been quality inspected.
By way of example, FIG. 5B shows a schematic diagram of an electronic book that has been inspected.
As shown in fig. 5B. A schematic of a listing of a plurality of inspected electronic books is shown in the user interface 5200. The operator can view the typesetting verification result of the checked electronic book in the user interface 5200. The user interface 5200 includes filtering information and electronic book list information that has been checked. Wherein the screening information includes, but is not limited to, one or more of the following: media asset name, book number, CP/SP, collation status, error code, collation record, creation time, update time, etc. An operator may screen the user interface 5200 for checked electronic books that need to be viewed.
The electronic book list information includes a plurality of electronic book information that has been checked. One of the pieces of information includes: media information "AAAAAAA", CP/SP "first reading", file format "epub", creation time "2320-1-1", completion time "2023-1-15", collation status "process completed", collation record "recorded", and user can also view typesetting quality inspection result of the electronic book through viewing control, for example, display user interface 5300 shown in FIG. 5C.
One of the pieces of information includes: media information "BBBBBBB", CP/SP "second reading", file format "epub", creation time "2323-1-1", completion time "2023-1-15", collation status "process completed", collation record "recorded", and user can also view typesetting quality inspection result of the electronic book through viewing control, for example, display user interface 5300 shown in FIG. 5C.
One of the pieces of information includes: media information "CCCC", CP/SP "third reading", file format "epub", creation time "2323-1-1", completion time "2023-1-15", collation status "process completed", collation record "recorded", and user can also view typesetting quality inspection result of the electronic book through viewing control, for example, display user interface 5300 shown in FIG. 5C.
One of the pieces of information includes: media information "DDDDDDD", CP/SP "fourth reading", file format "epub", creation time "2323-1-1", completion time "2023-1-15", collation status "process completed", collation record "recorded", and user can also view the typesetting quality inspection result of the electronic book through a view control, for example, display the user interface 5300 shown in fig. 5C.
One of the pieces of information includes: media information "EEEEEEE", CP/SP "fifth reading", file format "epub", creation time "2323-1-1", completion time "2023-1-15", collation status "process completed", collation record "recorded", and user can also view typesetting quality inspection result of the electronic book through viewing control, for example, display user interface 5300 shown in FIG. 5C.
Only a portion of the list of checked-out electronic books is shown in the user interface 5200, and the operator can also view other more lists of checked-out electronic books. The user interface 5200 is also merely exemplary of a display style showing a list of electronic books that have been checked, and in other embodiments the display style of the list of electronic books that have been checked may be different from the user interface 5200, which is not limited in this application.
In some embodiments, the electronic device 100 may receive a user operation to view the typesetting quality inspection result of the current book.
By way of example, FIG. 5C is a schematic diagram showing the results of the typesetting quality inspection of an electronic book.
As shown in fig. 5C. A plurality of typesetting results in the electronic book "AAAAAAAAA" are shown in the user interface 5300, and an operator can view typesetting verification results of the electronic book in the user interface 5300. The user interface 5300 includes basic information of the electronic book and collation result information of the electronic book. Wherein the basic information of the electronic book includes, but is not limited to, one or more of the following: book number "13845952462354", media title "AAAAAAAAA", timestamp "1669125365", CP/SP "first reading". The file format "epub".
The collation result information includes a plurality of typesetting check results. One typesetting check result comprises: the process ID "15777036798", the chapter ID "2", the model name "TAS-L29", the question page number "1", the erroneous description "the header line space is too large", the erroneous screenshot of the strip layout question, and the like. The user can delete the typesetting verification result through the deletion control.
One typesetting check result comprises: the process ID "15777036799", the chapter ID "2", the model name "TAS-L29", the question page number "1", the erroneous description "the title text is too large", the erroneous screenshot of the typesetting question of the strip, and the like. The user can delete the typesetting verification result through the deletion control.
One typesetting check result comprises: the process ID "15777036800", the chapter ID "2", the model name "TAS-L29", the question page number "1", the error description "illustration misalignment", the error screenshot of the bar layout question, and the like. The user can delete the typesetting verification result through the deletion control.
One typesetting check result comprises: the process ID "15777036801", the chapter ID "2", the model name "TAS-L29", the question page number "2", the error description "too large an illustration", the error screenshot of the strip layout question, and the like. The user can delete the typesetting verification result through the deletion control.
One typesetting check result comprises: the process ID "15777036802", the chapter ID "2", the model name "TAS-L29", the question page number "3", the error description "text is too large", the error screenshot of the typesetting question, and the like. The user can delete the typesetting verification result through the deletion control.
Only part of the typesetting verification results are shown in the user interface 5300, and operators can also view other more typesetting verification results. The user interface 5300 is also merely exemplary of a display style showing the typesetting verification result, and in other embodiments, the display style of the typesetting verification result may be different from the user interface 5300, which is not limited in this application.
S507, the electronic device 100 sends the typesetting quality inspection result of the electronic book to the server 200, so that the server 200 can save the typesetting quality inspection result of the electronic book.
Optionally, after the quality inspection of the typesetting problem of each chapter of the current electronic book is completed, the electronic device 100 may send the typesetting quality inspection result of each chapter to the server 200, so that the server 200 may save the typesetting quality inspection result of each chapter. Thereafter, the electronic device 100 may begin quality inspection of the typesetting problem for the next chapter in the current electronic book.
Optionally, after the quality inspection of the typesetting questions of all chapters of the current electronic book is completed, the electronic device 100 may send the typesetting quality inspection results of all chapters to the server 200, so that the server 200 may save the typesetting quality inspection results of all chapters.
Alternatively, after the layout problem of the pages in all chapters in the electronic book is checked, the electronic device 100 may automatically end the electronic book layout quality check task. When the operator starts to perform the composition quality inspection task of the next electronic book, the electronic device 100 may start to acquire the next electronic book and start to inspect the composition quality of the next electronic book.
Alternatively, when the electronic device 100 starts to check the typesetting problem of the current electronic book, the electronic device 100 may display the reading interface of the current electronic book. After the typesetting problem of the current reading interface is checked, the electronic device 100 may automatically switch to display the next reading interface, and start to check the typesetting problem of the next reading interface. When the electronic device 100 automatically exits the reading interface of the current electronic book, it indicates that all chapters in the current electronic book have been checked.
Next, it is described how the electronic device 100 determines the text layout problem existing in the pages of the electronic book.
Alternatively, there are a plurality of file formats of the electronic book, for example, epub file format, txt file format, pdf file format, MP3 file format, AZW3 file format, mobi file format, etc., and the definition of the typesetting problem in the electronic book may be the same or different for each file format of the electronic book, which is not limited in this application.
The types of user equipment used by different users are different, and the patterns displayed on the user equipment of different types by the same electronic book are also different. In order to ensure that the same electronic book does not have typesetting problems on user equipment of different types. In one possible implementation, an operator may test whether the electronic book has a typesetting problem through different types of user equipment, and find out the typesetting problem of the same electronic book on different types of user equipment, and correct the typesetting problem. In other possible implementation manners, an operator can simulate different types of user equipment through the same user equipment, test the typesetting problem of the electronic book through the simulated different types of user equipment, find out the typesetting problem of the same electronic book on the different types of user equipment, and correct the typesetting problem. Wherein the same user equipment simulates different types of user equipment, mainly simulates equipment information of the different types of user equipment, and the equipment information comprises, but is not limited to, one or more of the following items: information such as screen width, screen height, screen resolution, etc.
The embodiment of the application is used for carrying out exemplary explanation on how to determine the typesetting problem of the electronic book on one type of electronic equipment by using the electronic book in a file format.
When the electronic device 100 starts to check the typesetting problem in the electronic book, the electronic device 100 may receive the user operation to determine the type of the electronic device to be simulated, and further determine the device information of the electronic device to be simulated. The device information includes, but is not limited to, information of a screen width of the device, a screen height of the device, a screen resolution of the device, and the like.
After the equipment information of the electronic equipment to be simulated is determined, the electronic equipment can determine typesetting quality inspection standards of the electronic book based on the equipment information of the electronic equipment to be simulated. Then, the typesetting quality inspection standard of the electronic book is different for different types of electronic devices.
The typesetting quality inspection standards of the electronic books comprise, but are not limited to, quality inspection standards such as font size standards in pages, text blank standards in pages, text indentation standards in pages, background color and text color similarity standards in pages and the like.
The text may be divided into title, text, quotation, annotation, etc. The text may consist of paragraphs. Each paragraph may include one or more lines of text. The font sizes of the different types of text are also different. The title may be divided into a plurality of levels of title such as a primary title, a secondary title, a tertiary title, a quaternary title, a penta-level title, and a hexa-level title. The font size criteria for the titles at different levels are also different.
Fig. 6 is a schematic diagram showing the steps of the method for checking the text layout problem existing in the pages of the electronic book by the electronic device 100.
S601, the electronic device 100 acquires a first typesetting verification standard based on a first device type, wherein the first typesetting verification standard comprises a first text verification standard and a first picture verification standard.
The first device type may be the same as the device type to which the electronic device 100 belongs, or may be different from the device type described in the electronic device 100, which is not limited in this application.
The first device type may be a device type of the electronic device that the user desires to simulate. Thus, only one electronic device is needed to test the typesetting problem of the same electronic book on different types of electronic devices.
After determining the first device type, the electronic device 100 may obtain a first typesetting verification standard based on the first device type, where the first typesetting verification standard includes a first text verification standard and a first picture verification standard.
Wherein the first typesetting verification criteria may be pre-stored on the electronic device 100. Or may be downloaded from the server by the electronic device 100 after determining the first device type. The present application is not limited in this regard.
The calibration standards for the same electronic book quality inspection may be different for different types of electronic devices. For example, when the electronic device 100 determines that the simulated device type is the second device type, the electronic device 100 may obtain a second typesetting verification standard, where the second typesetting verification standard includes a second text verification standard and a second picture verification standard. The second equipment type is different from the first equipment type, and the second typesetting verification standard is different from the first typesetting verification standard.
In other embodiments, the device types of the electronic devices may not be distinguished, and the typesetting verification criteria of the electronic book may be the same for different types of electronic devices. The present application is not limited in this regard.
S602, the electronic device 100 acquires a first electronic book.
The first electronic book may be an electronic book to be inspected.
It should be noted that S601 may be executed after S602, and S601 and S602 may be executed simultaneously, which is not limited in this application.
S603, the electronic equipment 100 verifies the character typesetting problem in the first electronic book based on the first character verification standard.
The electronic device 100 checks the text composition problem in the first electronic book based on the first text check standard, mainly including but not limited to the following steps:
1. The electronic device 100 classifies the text in the pages of the electronic book to obtain different types of text. The text types include, but are not limited to: title text, body text, citation description text, endorsement text, etc.
2. The electronic device 100 may perform quality inspection on different types of characters based on the first character verification standard, so as to obtain quality inspection results of the different types of characters.
The first text verification standard also comprises different types of text verification standards. According to the text type in step 1, then the first text verification criteria may include, but are not limited to, the following types of text verification criteria: title text verification criteria, citation description text verification criteria, endorsement text verification criteria, and the like.
The electronic device 100 may verify typesetting problems for different types of text according to different text verification criteria.
The title word verification standard is not limited to the following: title text font size standard, title text line spacing standard, title text blank standard, title text indentation standard, etc.
Text verification criteria include, but are not limited to, the following: text font size standard, text line spacing standard, text blank standard, text indentation standard, etc.
The reference specification text verification criteria include, but are not limited to, the following: reference specification text font size criteria, reference specification text line spacing criteria, reference specification text blank criteria, reference specification text indentation criteria, and the like.
The annotation text verification criteria include, but are not limited to, the following: the size standard of the endorsement characters, the line spacing standard of the endorsement characters, the white standard of the endorsement characters, the indentation standard of the endorsement characters, etc.
The title text check standard, the reference description text check standard and the endorsement text check standard may be defined, and the title text check standard, the reference description text check standard and the endorsement text check standard may be identical, or partially identical, or completely different, which is not limited in this application.
In some embodiments, the operator may also modify the check criteria in the title word check criteria, the text word check criteria, the reference caption word check criteria, and the endorsement word check criteria. And checking the text typesetting problem of the electronic book based on the modified verification standard.
Details of the respective text verification standards are described below in one example.
TABLE 1
Figure SMS_1
Table 1 illustrates font size criteria for a different type of text.
If the first device type is a device type of the electronic device 100, the device font size may be a font size displayed in the electronic device 100. If the first device type is not the device type of the electronic device 100, the device font size may be a device font in the device type emulated by the electronic device 100.
The device font size may also be different for different user groups for the same type of electronic device. Before the electronic device 100 obtains the first typesetting verification standard, the electronic device 100 needs to obtain the font size displayed by the electronic device in the first device type, and obtain the first typesetting verification standard based on the first device type and the font size displayed by the electronic device in the first device type. That is, for electronic devices of the same device type, the typesetting verification criteria of the electronic book may also be different if the font sizes of the display fonts in the electronic devices are different.
Optionally, when the electronic device 100 receives a user operation to simulate the electronic device of the first device type, the electronic device 100 may also receive the user operation to determine the font size of the simulation in the electronic device of the first device type.
Wherein the title may be divided into a plurality of levels of title, such as a primary title, a secondary title, a tertiary title, a quaternary title, a penta title, etc. The secondary title may be a sub-title of the primary title, the tertiary title may be a sub-title of the secondary title, the quaternary title may be a sub-title of the tertiary title, and the five-stage title may be a sub-title of the quaternary title. The font size standards corresponding to titles of different levels are different. For example, the font size standard for the primary title may be a 2x2x device font size. The font size standard for the secondary title may be a 2x1.2x device font size. The font size standard for the tertiary title may be a 2x1.17x device font size. The font size standard for the four-level title may be a 2x1x device font size. The font size standard for the five-level title may be a 2x0.83x device font size. The font size standard for the six-level title may be a 2x0.67x device font size. Note that the symbol "x" represents multiplication.
The font size standard for text may be a 2x1x device font size.
The font size standard for the reference specification text may be a 2x1x device font size.
The endorsement word font size criteria may be a 2x1x device font size.
In some embodiments, when the actual font size exceeds m times the font size standard, it may be determined that the actual font is too large. When the actual font size is less than n times the font size standard, it can be determined that the actual font is too small. When the actual font size is between n times of the font size standard and m times of the font size standard, the proper actual font size can be determined. Wherein n is less than m. Illustratively, m may be 2 and n may be 0.5. The actual font size may refer to a font size in an electronic book actually displayed by the electronic device 100.
It should be noted that table 1 is only for exemplary explanation of font size standards corresponding to different types of characters in the present application, and should not be construed as limiting. In other embodiments, the font size criteria for the same type of text may also be other values.
TABLE 2
Figure SMS_2
Table 2 illustrates the text line spacing for one different type of text.
Wherein the text line spacing criteria is related to a standard text size. Standard text sizes may be referred to as described in table 1, which is not limited in this application.
The text line distance standard of the primary title may be a font size standard of 1.4x primary title.
The text line distance standard for the secondary title may be a font size standard for the 1.4x secondary title.
The text line distance standard for the tertiary title may be a font size standard for the 1.4x tertiary title.
The text line distance standard for the level four headlines may be a font size standard for the level 1.4x level four headlines.
The font distance standard for the five-level title may be a font size standard for the 1.4x five-level title.
The font distance standard for the six-level title may be a font size standard for the 1.4x six-level title.
The text distance standard for text may be a font size standard for 1.9x text.
The font distance standard for the reference specification text may be a font size standard for the reference specification text of 1.9 x.
The word distance standard of the annotation word may be a standard word size of 1.9x annotation words.
In some embodiments, when the actual text line spacing exceeds p times the text line spacing criteria, it may be determined that the actual text line spacing is too large. When the actual text line spacing is smaller than q times of the text line spacing standard, the fact that the actual text line spacing is too small can be determined. When the actual text line spacing is between q times of the text line spacing standard and p times of the text line spacing standard, the proper actual text line spacing can be determined. Wherein q is less than p. Illustratively, p may be 1.4 and q may be 0.6. The actual text line space may refer to a text line space in an electronic book actually displayed by the electronic device 100.
It should be noted that table 2 is only used for exemplary explanation of the text line spacing standard corresponding to different types of text in the present application, and should not be construed as limiting. In other embodiments, the text line spacing criteria for the same type of text may also be other values.
TABLE 3 Table 3
Figure SMS_3
Table 3 illustrates the text line spacing for one different type of text.
Wherein the margin size criteria is related to the text line spacing criteria. The text distance standard may refer to the description in table 2, which is not limited in this application.
The standard of the white space size between the top of the page and the primary title is the standard of the line space of the characters of the primary title of 3 x.
The white space size standard between the primary title and the secondary title is the text line spacing standard of the 2x secondary title.
The white space size standard between the secondary title and the tertiary title is the text line spacing standard of the 2x tertiary title.
The white space size standard between the three-level title and the four-level title is the text line spacing standard of the 2x four-level title.
The blank size standard between the four-level title and the five-level title is the text line spacing standard of the 2x five-level title.
The white space size standard between the five-level title and the six-level title is the text line spacing standard of the 2x six-level title.
The margin size criterion between the six-level title and the text paragraph is the text line spacing criterion of the 1.5x text paragraph.
The margin size criterion between text paragraphs is the word line spacing criterion of 1x text paragraphs.
The margin size criterion between the text paragraph and the reference specification is the text line spacing criterion of 1.5x reference specification.
In some embodiments, when the actual white space size exceeds a times the white space size standard, it may be determined that the actual white space size is too large. When the actual white retention size is smaller than b times of the white retention size standard, the actual white retention size can be determined to be too small. When the actual white retention size is between b times of the white retention size standard and a times of the white retention size standard, the proper actual white retention size can be determined. Wherein b is less than a. Illustratively, a may be 1.3 and n may be 0.7. The actual size of the margin may refer to the size of the margin in the electronic book actually displayed by the electronic device 100.
In some embodiments, the electronic device 100 may take the last character information of the current page and determine the tag type to which the last character information belongs. If the last character of the current page is the last character of the label, judging whether the distance between the last character and the bottom of the current page is larger than the line-height of the current label font + the tail outer space (margin-bottom) +the tail inner space (padding-bottom) of the label section, and if the distance is larger than the specification margin. If the last character of the current page is not the last character of the label, judging whether the distance between the last character and the bottom of the edition center is larger than the line-height of the current label font, if so, setting down a line of characters and leaving too large white. If there is too much margin, report [ paragraph scene: excessive white left. Tag types include, but are not limited to: title, body, citation description, endorsement, etc.
It should be noted that table 3 is only for exemplary explanation of the white space size standard corresponding to different types of characters in the present application, and should not be construed as limiting. In other embodiments, the white-keeping size criteria corresponding to the same type of text may also be other values.
TABLE 4 Table 4
Figure SMS_4
Table 4 illustrates one different type of text indentation criteria for text correspondence.
Wherein the text indentation criteria is related to the font size criteria. The font size criteria may be described with reference to table 1, which is not limited in this application.
Wherein the text indentation criterion of the primary title may be 0 in size and 2 times the font size criterion.
The text indentation criterion for the secondary title may be 0 in size and 2 times the font size criterion.
The text indentation criteria for a three-level title may be 0 in size and 2 times the font size criteria.
The text indentation criteria for a four level title may be 0 in size and 2 times the font size criteria.
The text indentation criteria for a five-level title may be 0 in size and 2 times the font size criteria.
The text indentation criteria for a six-level title may be 0 in size and 2 times the font size criteria.
The text indentation criterion for text may be 0 in size and 2 times the font size criterion.
The text indentation standard for the reference specification text may be 0 in size and 2 times the font size standard.
The text indentation standard for endorsed text may be 0 in size and 2 times the font size standard.
In some embodiments, when the actual text indentation is less than 0, or greater than 0 but not 2 times the font size standard, a text indentation error may be determined. The actual text indentation may refer to text indentation in the electronic book actually displayed by the electronic device 100.
It should be noted that table 4 is only for exemplary explanation of the text indentation criteria corresponding to different types of text in the present application, and should not be construed as limiting. In other embodiments, the text indentation criteria for the same type of text may also be other values.
Based on the descriptions in tables 1 to 4, the electronic device 100 may determine that a text composition problem exists in the first electronic book.
S604, the electronic equipment 100 displays the text typesetting problem in the first electronic book.
After the electronic device 100 obtains the text composition problem in the first electronic book, the electronic device 100 may cache the text composition problem in the first electronic book. The electronic device 100 may receive a user operation to display a text composition problem in the first electronic book, so that an operator may view the text composition problem in the first electronic book.
Fig. 7A-7E are schematic diagrams illustrating several text layout problems in the first electronic book.
Fig. 7A illustrates a text layout problem of oversized title text in the first electronic book.
As shown in fig. 7A, the electronic device 100 may frame the title text in the page.
Optionally, the electronic device 100 may also display the annotation "title text is too large" to prompt the user for a typesetting problem on the page.
Fig. 7B shows a text layout problem of an excessive text line spacing of text present in the first electronic book.
As shown in fig. 7B, the electronic device 100 may frame text with an excessive text line space in the page.
Optionally, the electronic device 100 may also display the annotation "text line space is too large" to prompt the user about the typesetting problem of the page.
FIG. 7C illustrates the question of text composition with excessive whitespace between the title and text passage present in the first electronic book.
As shown in fig. 7C, the electronic device 100 may frame the area that is too much left white in the page.
Optionally, the electronic device 100 may also display the annotation "too much white" to prompt the user for typesetting problems with the page.
FIG. 7D illustrates the text layout problem of text indentation errors in text present in the first electronic book.
As shown in fig. 7D, the electronic device 100 may frame the region of text indentation error in the page.
Optionally, the electronic device 100 may also display the annotation "text is indented too much" to prompt the user for typesetting problems with the page.
Fig. 7E shows the text layout problem of the text present in the first electronic book, where the text color is similar to the background color.
As shown in fig. 7E, the electronic device 100 may frame the area of text in the page that has a text color that is similar to the background color.
Optionally, the electronic device 100 may also display the annotation "the text color is similar to the background color" to prompt the user for the typesetting problem of the page.
It should be noted that fig. 7A-7E are only used for illustrating the present application, and should not be construed as limiting.
S605, the electronic device 100 sends the text typesetting problem in the first electronic book to the server 200.
After the electronic device 100 obtains the text composition problem in the first electronic book, the electronic device 100 may send the text composition problem in the first electronic book to the server 200. Therefore, other operators can modify the first electronic book based on the character typesetting problem in the first electronic book, obtain a modified first electronic book, put the first modified electronic book on a shelf to a server, and the user equipment can download and modify the first electronic book.
Alternatively, S605 may be executed before S604, and S605 may be executed simultaneously with S604, which is not limited in this application.
Optionally, in some embodiments, the text composition questions may also include a background color similar to the text color question. If the similarity between the background color of the page in the electronic book and the Chinese color in the page is larger than the similarity standard value, the problem of typesetting of the characters can be determined to be similar to the color of the fonts.
Next, it is described how the electronic device 100 determines the picture layout problem existing in the pages of the electronic book.
Alternatively, there are a plurality of file formats of the electronic book, for example, epub file format, txt file format, pdf file format, MP3 file format, AZW3 file format, mobi file format, etc., and the definition of the typesetting problem in the electronic book may be the same or different for each file format of the electronic book, which is not limited in this application.
The types of user equipment used by different users are different, and the patterns displayed on the user equipment of different types by the same electronic book are also different. In order to ensure that the same electronic book does not have typesetting problems on user equipment of different types. In one possible implementation, an operator may test whether the electronic book has a typesetting problem through different types of user equipment, and find out the typesetting problem of the same electronic book on different types of user equipment, and correct the typesetting problem. In other possible implementation manners, an operator can simulate different types of user equipment through the same user equipment, test the typesetting problem of the electronic book through the simulated different types of user equipment, find out the typesetting problem of the same electronic book on the different types of user equipment, and correct the typesetting problem. Wherein the same user equipment simulates different types of user equipment, mainly simulates equipment information of the different types of user equipment, and the equipment information comprises, but is not limited to, one or more of the following items: information such as screen width, screen height, screen resolution, etc.
The embodiment of the application is used for carrying out exemplary explanation on how to determine the typesetting problem of the electronic book on one type of electronic equipment by using the electronic book in a file format.
When the electronic device 100 starts to check the typesetting problem in the electronic book, the electronic device 100 may receive the user operation to determine the type of the electronic device to be simulated, and further determine the device information of the electronic device to be simulated. The device information includes, but is not limited to, information of a screen width of the device, a screen height of the device, a screen resolution of the device, and the like.
After the equipment information of the electronic equipment to be simulated is determined, the electronic equipment can determine typesetting quality inspection standards of the electronic book based on the equipment information of the electronic equipment to be simulated. Then, the typesetting quality inspection standard of the electronic book is different for different types of electronic devices.
The layout of pictures in a page includes, but is not limited to: the typesetting problems of improper picture size in the page, insufficient picture definition in the page, misaligned picture in the page, non-centering picture in the page, overflow of picture in the page and the like. The alignment of the pictures in the page may mean that the pictures in the page do not exceed the left edge of the display area of the electronic device and the right edge of the display area of the electronic device. The picture in the page does not overflow up and down, which may mean that the picture in the page does not exceed the upper edge of the display area of the electronic device and the lower edge of the display area of the electronic device.
Fig. 8 is a schematic diagram showing the method steps of the electronic device 100 for checking the layout of pictures existing in the pages of the electronic book.
It should be noted that, the electronic device 100 checks the text layout problem in the first electronic book, and the electronic device 100 checks the picture layout problem in the first electronic book, which may be executed at the same time, that is, S601 and S602, and S801 and S802 may be executed only once. S603 and S803 may be performed simultaneously, and S605 and S805 may be performed simultaneously or separately, which is not limited in this application.
The descriptions of S801 and S802 may refer to the descriptions of S601 and S602 in fig. 6, and are not described herein.
S803, the electronic device 100 verifies the picture typesetting problem in the first electronic book based on the first picture verification standard.
The electronic device 100 checks the text composition problem in the first electronic book based on the first text check standard, mainly including but not limited to the following steps:
1. the electronic device 100 classifies pictures in pages of an electronic book to obtain different types of pictures. The types of pictures include, but are not limited to: background pictures, illustrations, etc. Wherein, the illustration can refer to the illustration laid out between the characters.
2. The electronic device 100 may perform quality inspection on different types of pictures in the electronic book page based on the first picture verification standard, to obtain quality inspection results of different types of pictures in the electronic book page.
Wherein the first picture check criteria also includes different types of picture check criteria. According to the picture type in step 1, then the first picture check criteria may include, but are not limited to, the following types of picture check criteria: background picture check criteria, illustration check criteria, etc.
The electronic device 100 may verify typesetting problems for different types of pictures according to different picture verification criteria.
The background picture verification standard comprises the following contents, namely: background picture size standard, background picture definition standard, background picture alignment standard, background picture centering standard, background picture overflow and overflow standard, etc.
The illustration verification criteria include, but are not limited to, the following: the illustration size criteria, the illustration definition criteria, the illustration alignment criteria, the illustration centering criteria, the illustration overflow and overflow criteria, etc.
The background picture calibration standard and the illustration calibration standard may be defined, and the background picture calibration standard and the illustration calibration standard may be the same, partially the same, or completely different, which is not limited in this application.
In some embodiments, the operator may also modify the background picture check criteria, the illustration check criteria. And checking the picture typesetting problem of the electronic book based on the modified verification standard.
Details of the respective picture check standards are described below in one example.
Before displaying the picture in the page of the electronic book, the electronic device obtains a preset size of the picture to be displayed, wherein the preset size of the picture to be displayed comprises a preset length and a preset width of the picture to be displayed. When the electronic device displays a picture to be displayed, the electronic device obtains the real size of the picture, wherein the real size of the picture comprises the real length and the real width of the picture. And scaling the picture to be displayed to obtain the picture which is actually displayed. The true length and true width of the picture that is actually displayed will vary.
In some embodiments, when the electronic device cannot obtain the true length and the true width of the picture, or the true length and the true width are both 0, it indicates that the picture is not displayed, and the electronic device may determine that the picture is lost.
TABLE 5
Figure SMS_5
Table 5 illustrates the size criteria for a different type of picture.
If the first device type is a device type of the electronic device 100, the device may be wide in the electronic device 100. If the first device type is not the device type of the electronic device 100, the width of the device may be the width of the device type emulated by the electronic device 100. Similarly, if the first device type is the device type of the electronic device 100, the length of the device may be the length of the electronic device 100. If the first device type is not the device type of the electronic device 100, the length of the device may be the length of the device type that the electronic device 100 emulates.
The size standard of the background picture can be that the real width of the background picture is larger than 0.4x and smaller than the width of the device. The true length of the background picture is greater than 0.6x the length of the device is less than the length of the device.
The dimensional criteria for the artwork may be that the actual width of the artwork is greater than 0.4x the width of the device and less than the width of the device. The true length of the illustration is greater than 0.6x the length of the device is less than the length of the device.
In some embodiments, when the real width of the picture is smaller than a certain value (e.g. 96 pixels) or the real length of the picture is smaller than a certain value (e.g. 128 pixels), the size of the picture can no longer be checked, and the picture is directly indicated to be too small.
In some embodiments, the size of the picture may be determined to be undersized when the true width of the picture is less than the width of the 0.4x device and/or the true length of the picture is less than the length of the 0.6x device.
In some embodiments, when the actual width of the picture is greater than the width of the device and/or the actual length of the picture is greater than the length of the device, then it may be determined that the picture is oversized.
It should be noted that table 5 is only for exemplary explanation of the size criteria corresponding to different types of pictures in the present application, and should not be construed as limiting. In other embodiments, the size criteria corresponding to the same type of picture may also be other values. The size criteria for different types of pictures may also be different.
TABLE 6
Figure SMS_6
Table 6 illustrates sharpness criteria for a different type of picture.
The real display picture in the page of the electronic book can be obtained by enlarging or reducing the picture to be displayed.
When the background picture actually displayed in the page of the electronic book is obtained by amplifying the background picture to be displayed, then the definition standard of the background picture actually displayed in the page of the electronic book may be that the preset width of the background picture is less than the real width of the background picture of 0.6x, and the preset length of the background picture is less than the real length of the background picture of 0.6 x. When the background picture actually displayed in the page of the electronic book is obtained by shrinking the background picture to be displayed, then the definition standard of the background picture actually displayed in the page of the electronic book may be that the preset width of the background picture is greater than the real width of the 4x background picture, and the preset length of the background picture is greater than the real length of the 4x background picture.
When the illustration actually displayed in the page of the electronic book is enlarged on the illustration to be displayed, then the definition standard actually displayed in the page of the electronic book may be that the preset width of the illustration is <0.6x the actual width of the illustration, and the preset length of the illustration is <0.6x the actual length of the illustration. When the illustration actually displayed in the page of the electronic book is zoomed out on the illustration to be displayed, then the definition standard of the illustration actually displayed in the page of the electronic book may be that the preset width of the illustration is >4x the actual width of the illustration, and the preset length of the illustration is >4x the actual length of the illustration.
In some embodiments, the electronic device may determine that the picture is not sufficiently clear when the true height or true width of the picture does not meet the conditions in table 6.
It should be noted that table 6 is only used for exemplary explanation of definition standards corresponding to different types of pictures in the present application, and should not be construed as limiting. In other embodiments, the sharpness criteria corresponding to the same type of picture may also be other values. The sharpness criteria may also be different for different types of pictures.
TABLE 7
Figure SMS_7
Table 7 illustrates alignment criteria corresponding to one different type of picture.
If the first device type is a device type of the electronic device 100, the device may be wide in the electronic device 100. If the first device type is not the device type of the electronic device 100, the width of the device may be the width of the device type emulated by the electronic device 100.
Wherein the number of left panels of the picture is equal to the maximum integer of left shift of the picture/device width. The number of right panels of the picture is equal to the maximum integer of the right shift of the picture/device width. The left shift of the picture may refer to a minimum shift that the right edge of the picture moves to the left edge of the screen of the device to be invisible. The picture right shift may refer to a minimum shift of the picture left edge to the device's screen right edge to be invisible.
When the number of left screens of the picture is equal to the number of right screens of the picture, the right edge of the picture and the left edge of the picture are both in a visible area of the electronic device. That is, the pictures are aligned without cross-screen.
The alignment standard of the background picture may be that the real width of the background picture is smaller than the device width, and the left screen number of the background picture=the right screen number of the background picture.
The alignment standard of the illustration may be true width of the illustration < device width, and left screen number of the illustration = right screen number of the illustration.
In some embodiments, when the actual width of a picture is greater than the device width, it is interpreted that the picture is across-screen. Or if the real width of the picture is smaller than the equipment width, but the left screen number of the picture is not equal to the right screen number of the picture, the picture is indicated to cross the screen. In this case, the electronic device may determine that the picture is not aligned.
It should be noted that table 7 is only for exemplary explanation of alignment standards corresponding to different types of pictures in the present application, and should not be construed as limiting. In other embodiments, the alignment criteria corresponding to the same type of picture may also be other values. The alignment criteria for different types of pictures may also be different.
TABLE 8
Figure SMS_8
Table 8 illustrates centering criteria for a different type of picture.
If the first device type is a device type of the electronic device 100, the device width may be a width in the electronic device 100. If the first device type is not the device type of the electronic device 100, the device width may be the width of a device of the device type that the electronic device 100 emulates.
The left shift of the picture may refer to a minimum shift that the right edge of the picture moves to the left edge of the screen of the device to be invisible. The picture right shift may refer to a minimum shift of the picture left edge to the device's screen right edge to be invisible.
The centering standard of the background picture may refer to that the left displacement of the background picture minus half of the real width of the background picture is equal to half of the device width. Or centering criteria for the background picture, may also refer to the right displacement of the background picture minus half the true width of the background picture being equal to half the device width.
Centering criteria for an illustration may refer to the left displacement of the illustration minus half the true width of the illustration being equal to half the device width. Or the centering criteria of the artwork may also refer to the right displacement of the artwork minus half the true width of the background artwork being equal to half the device width.
In some embodiments, when the left or right shift of a picture minus half the true width of the background picture is greater than the device width, it is indicated that the picture is not centered.
It should be noted that table 8 is only used for exemplary explanation of centering criteria corresponding to different types of pictures in the present application, and should not be construed as limiting. In other embodiments, the centering criteria corresponding to the same type of picture may also be other values. The centering criteria for different types of pictures may also be different.
TABLE 9
Figure SMS_9
Table 9 illustrates the no overflow criteria for a different type of picture.
When the electronic device 100 displays a picture in an electronic book, the electronic device 100 may obtain a top offset and a bottom offset of the displayed picture. When the picture is overlapped with the upper edge of the display area of the electronic device, the top offset of the picture is equal to 0. When the picture coincides with the lower edge of the display area of the electronic device, the bottom offset of the picture is equal to 0. When the picture exceeds the upper edge of the display area of the electronic device, the top offset of the picture is less than 0. When the picture exceeds the lower edge of the display area of the electronic device, the bottom offset of the picture is less than 0. When the picture does not exceed the upper edge of the display area of the electronic device, then the top offset of the picture is greater than 0. When the picture does not exceed the lower edge of the display area of the electronic device, the bottom of the picture is offset by more than 0.
The standard that the top and bottom of the background picture do not overflow may refer to that the top offset of the background picture is greater than or equal to 0 and the bottom offset of the background picture is greater than or equal to 0.
The upper and lower non-overflow criteria of an illustration may refer to an illustration having a top offset of 0 or more and an illustration having a bottom offset of 0 or more.
In some embodiments, when the top offset of a picture is less than 0 or the bottom offset of a picture is less than 0, this is an indication that the picture overflows.
It should be noted that, table 9 is only used for exemplary explanation of the standard that the pictures of different types correspond to and do not overflow, and should not be construed as limiting. In other embodiments, the up-down non-overflow criterion corresponding to the same type of picture may be other values. The standard of not overflowing the top and bottom of different types of pictures can also be different.
S804, the electronic device 100 displays the picture typesetting problem in the first electronic book.
After the electronic device 100 obtains the picture layout problem in the first electronic book, the electronic device 100 may cache the picture layout problem in the first electronic book. The electronic device 100 may receive a user operation to display a picture layout problem in the first electronic book, so that an operator may view the picture layout problem in the first electronic book.
Fig. 9A-9F are schematic diagrams illustrating several types of picture composition problems in the first electronic book.
Fig. 9A illustrates a picture layout problem of oversized illustration in the first electronic book.
As shown in fig. 9A, the electronic device 100 may frame the oversized illustration in the page.
Optionally, the electronic device 100 may also display the annotation "the illustration is oversized" to prompt the user for a layout problem for the page.
Fig. 9B shows a picture layout problem of insufficient definition of an illustration existing in the first electronic book.
As shown in fig. 9B, the electronic device 100 may frame the illustration of the lack of clarity in the page.
Optionally, the electronic device 100 may also display the annotation "the definition of the illustration is insufficient" to prompt the user about the layout problem of the picture on the page.
Fig. 9C shows a picture layout problem of the misalignment of the illustrations existing in the first electronic book.
As shown in fig. 9C, the electronic device 100 may frame the misaligned illustration in the page. In fig. 9C, the illustration portion beyond the display area is not displayed.
Optionally, the electronic device 100 may also display the annotation "illustration is not aligned" to prompt the user for a layout problem for the page.
Fig. 9D shows a picture layout problem in which the illustration is not centered in the first electronic book.
As shown in fig. 9D, the electronic device 100 may box the non-centered illustration in the page.
Optionally, the electronic device 100 may also display the annotation "the illustration is not centered" to prompt the user for a layout problem for the page.
Fig. 9E shows a picture layout problem of the overflow of the illustrations existing in the first electronic book.
As shown in fig. 9E, the electronic device 100 may display an overflow illustration in the page.
Optionally, the electronic device 100 may also display the annotation "illustration overflow" to prompt the user for a layout problem for the page.
Fig. 9F shows a picture layout problem of the illustration loss existing in the first electronic book.
As shown in fig. 9F, the electronic device 100 may frame the display area where the missing artwork is located in the page.
Optionally, the electronic device 100 may also display the annotation "illustration lost" to prompt the user for a layout problem for the page.
It should be noted that fig. 9A to 9F are only for illustrating the present application, and should not be construed as limiting.
S805, the electronic device 100 sends the picture typesetting problem in the first electronic book to the server 200.
After the electronic device 100 obtains the picture composition problem in the first electronic book, the electronic device 100 may send the picture composition problem in the first electronic book to the server 200. Therefore, other operators can modify the first electronic book based on the picture typesetting problem in the first electronic book, obtain a modified first electronic book, put the first modified electronic book on a shelf to a server, and the user equipment can download and modify the first electronic book.
Alternatively, S805 may be performed before S804, and S805 may be performed simultaneously with S804, which is not limited in this application.
Fig. 10 is a flowchart of a method for quality inspection of an electronic book according to an embodiment of the present application.
S1001, the electronic equipment acquires a first electronic book.
S1002, the electronic equipment acquires a first typesetting verification standard.
In one possible implementation manner, before the electronic device obtains the first typesetting verification standard, the method further includes: the electronic equipment determines that the simulated equipment type is a first equipment type; the electronic equipment acquires a first typesetting verification standard, which specifically comprises the following steps: and the electronic equipment acquires a first typesetting verification standard corresponding to the first equipment type based on the first equipment type. Thus, the electronic device can acquire typesetting verification standards applicable to the simulated device type after determining the simulated device type.
In one possible implementation, the method further includes: the electronic equipment determines that the simulated equipment type is a second equipment type; the electronic equipment acquires a second typesetting verification standard corresponding to a second equipment type based on the second equipment type; the electronic equipment performs quality inspection on the pages of the first electronic book based on the second typesetting verification standard; the electronic equipment acquires a second text typesetting problem existing in the pages of the first electronic book and/or a second picture typesetting problem existing in the pages of the first electronic book; the electronic equipment sends the second text typesetting problem and/or the second picture typesetting problem to the server; the second equipment type is different from the first equipment type, and the second typesetting verification standard is different from the first typesetting verification standard. Thus, the electronic device can simulate different types of devices and detect typesetting problems of the same electronic book on the different types of devices. The typesetting problem of the same electronic book on different types of equipment is not required to be tested through the different types of electronic equipment.
In one possible implementation manner, the electronic device obtains a first typesetting verification standard corresponding to a first device type based on the first device type, and specifically includes: the electronic equipment determines first equipment information corresponding to a first equipment type based on the first equipment type, wherein the first equipment information comprises one or more of the following items: screen width, screen height, screen resolution; the electronic device obtains a first typesetting verification standard based on the first device information.
In one possible implementation manner, the electronic device determines that the simulated device type is the first device type, and specifically includes: the electronic equipment displays a plurality of options, wherein the options comprise first options, and the first options are used for selecting a first equipment type; the electronic device receives a first operation for a first option; in response to the first operation, the electronic device determines that the simulated device type is the first device type. Thus, before the electronic device tests the typesetting problem of the electronic book, the electronic device can receive the user operation to determine the simulated device type.
S1003, the electronic equipment performs quality inspection on pages in the first electronic book based on the first typesetting verification standard.
In one possible implementation, the first typesetting verification criteria include a first text typesetting verification criteria and a first picture typesetting verification criteria; wherein the first typesetting verification criteria includes one or more of: font size standard, text blank standard in page, text indentation standard in page, background color and text color similarity standard in page, etc. The first picture composition verification criteria includes one or more of the following: picture size standard, picture definition standard, picture alignment standard, picture centering standard, picture overflow and underflow standard.
S1004, the electronic equipment acquires a first text typesetting problem existing in the pages of the first electronic book and/or a first picture typesetting problem existing in the pages of the first electronic book.
In one possible implementation, the first text composition question includes one or more of the following: the typesetting problem that the size of the characters is unsuitable, the line spacing of the characters is unsuitable, the excessive typesetting problem that the characters remain white, the typesetting problem that the characters retract is unsuitable, and the background color of the page is similar to the color of the characters; the first picture composition problem includes one or more of: the problems of improper picture size typesetting, insufficient picture definition typesetting, misaligned picture typesetting, non-centered picture typesetting and overflow and underflow picture typesetting are solved.
S1005, the electronic equipment sends the first text typesetting problem and/or the first picture typesetting problem to the server.
In one possible implementation manner, after the electronic device sends the first text layout problem and/or the first picture layout problem to the server, the method further includes: the electronic device displays a first user interface; the electronic device receives a second operation of the user for a second option in the first user interface: and responding to the second operation, the electronic equipment displays a second user interface, wherein the second user interface comprises the serial number of the first page of the first electronic book, the content of the first page, and the text typesetting problem and/or the picture typesetting problem existing in the first page. Thus, the user can check the text typesetting problem and/or the picture typesetting problem in the detected electronic book through the electronic equipment.
By the method, the quality inspection APP can be triggered to be combined with the reading APP, so that the character typesetting problem and the picture typesetting problem in the electronic book are automatically inspected, and the quality inspection efficiency of the electronic book is improved.
The embodiments of the present application may be arbitrarily combined to achieve different technical effects.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.
In summary, the foregoing description is only exemplary embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. A method for quality inspection of an electronic book, the method comprising:
the electronic equipment receives a first operation of a user;
responding to the first operation, the electronic equipment sends a first request to a server, wherein the first request is used for indicating the server to send a first electronic book to the electronic equipment;
the electronic equipment receives and acquires the first electronic book sent by the server;
The electronic equipment acquires a first typesetting verification standard, wherein the first typesetting verification standard comprises a first text typesetting verification standard and a first picture typesetting verification standard; wherein the first typesetting verification criteria include one or more of the following: font size standard, text blank standard in page, text indentation standard in page, background color and text color similarity standard quality inspection standard in page; the first picture typesetting verification standard comprises one or more of the following: picture size standard, picture definition standard, picture alignment standard, picture centering standard, picture overflow and overflow standard;
the electronic equipment detects a first text typesetting problem existing in pages in a first electronic book based on the first typesetting verification standard, and/or a first picture typesetting problem existing in the pages of the first electronic book;
the electronic equipment sends the first text typesetting problem and/or the first picture typesetting problem to a server; the first text typesetting problem and/or the first picture typesetting problem are used for modifying typesetting problems existing in the first electronic book to obtain a first modified electronic book, and the first modified electronic book does not comprise the first text typesetting problem and/or the first picture typesetting problem.
2. The method of claim 1, wherein before the electronic device obtains the first typesetting verification criteria, the method further comprises:
the electronic equipment determines that the simulated equipment type is a first equipment type;
the electronic equipment acquires a first typesetting verification standard, which specifically comprises the following steps:
and the electronic equipment acquires the first typesetting verification standard corresponding to the first equipment type based on the first equipment type.
3. The method according to claim 2, wherein the method further comprises:
the electronic equipment determines that the simulated equipment type is a second equipment type;
the electronic equipment acquires a second typesetting verification standard corresponding to the second equipment type based on the second equipment type;
the electronic equipment performs quality inspection on the pages of the first electronic book based on the second typesetting verification standard;
the electronic equipment acquires a second text typesetting problem existing in the pages of the first electronic book and/or a second picture typesetting problem existing in the pages of the first electronic book;
the electronic equipment sends the second text typesetting problem and/or the second picture typesetting problem to the server;
The second equipment type is different from the first equipment type, and the second typesetting verification standard is different from the first typesetting verification standard.
4. A method according to claim 2 or 3, wherein the electronic device obtains the first typesetting verification standard corresponding to the first device type based on the first device type, specifically including:
the electronic equipment determines first equipment information corresponding to the first equipment type based on the first equipment type, wherein the first equipment information comprises one or more of the following items: screen width, screen height, screen resolution;
and the electronic equipment acquires the first typesetting verification standard based on the first equipment information.
5. A method according to claim 2 or 3, wherein the electronic device determines that the simulated device type is a first device type, and in particular comprising:
the electronic equipment displays a plurality of options, wherein the plurality of options comprise a first option which is used for selecting the first equipment type;
the electronic device receiving a first operation for the first option;
and responding to the first operation, and determining that the simulated equipment type is a first equipment type by the electronic equipment.
6. A method according to any of claims 1-3, characterized in that after the electronic device sends the first text composition question and/or the first picture composition question to a server, the method further comprises:
the electronic equipment displays a first user interface;
the electronic device receives a second operation by a user for a second option in the first user interface:
and responding to the second operation, the electronic equipment displays a second user interface, wherein the second user interface comprises a serial number of a first page of the first electronic book, the content of the first page, and a text typesetting problem and/or a picture typesetting problem existing in the first page.
7. A method according to any one of claims 1-3, wherein the first text composition question comprises one or more of: the typesetting problem that the size of the characters is unsuitable, the line spacing of the characters is unsuitable, the excessive typesetting problem that the characters remain white, the typesetting problem that the characters retract is unsuitable, and the background color of the page is similar to the color of the characters;
the first picture composition problem includes one or more of the following: the problems of improper picture size typesetting, insufficient picture definition typesetting, misaligned picture typesetting, non-centered picture typesetting and overflow and underflow picture typesetting are solved.
8. An electronic device comprising a processor and a memory; the memory is coupled to the processor for storing computer program code comprising computer instructions that the processor invokes to cause the electronic device to perform the method of any of the preceding claims 1-7.
9. A computer readable storage medium storing computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any one of the preceding claims 1-7.
CN202310186543.6A 2023-03-02 2023-03-02 Electronic book quality inspection method Active CN115879436B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310186543.6A CN115879436B (en) 2023-03-02 2023-03-02 Electronic book quality inspection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310186543.6A CN115879436B (en) 2023-03-02 2023-03-02 Electronic book quality inspection method

Publications (2)

Publication Number Publication Date
CN115879436A CN115879436A (en) 2023-03-31
CN115879436B true CN115879436B (en) 2023-05-23

Family

ID=85761735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310186543.6A Active CN115879436B (en) 2023-03-02 2023-03-02 Electronic book quality inspection method

Country Status (1)

Country Link
CN (1) CN115879436B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912519A (en) * 2016-05-27 2016-08-31 北京京东尚科信息技术有限公司 Electronic document typesetting method and typesetting device
CN112364632A (en) * 2020-11-27 2021-02-12 北京北大方正电子有限公司 Book checking method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914442A (en) * 2013-01-09 2014-07-09 北大方正集团有限公司 Layout information checking method and device
CN104239284A (en) * 2014-09-15 2014-12-24 广州市西美信息科技有限公司 Method and device for automatic image-text composition
CN109359245A (en) * 2018-11-14 2019-02-19 北京汉迪移动互联网科技股份有限公司 Information-pushing method, device, server and storage medium
CN112215284A (en) * 2020-10-12 2021-01-12 北京乐学帮网络技术有限公司 Typesetting error checking method and device, electronic equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912519A (en) * 2016-05-27 2016-08-31 北京京东尚科信息技术有限公司 Electronic document typesetting method and typesetting device
CN112364632A (en) * 2020-11-27 2021-02-12 北京北大方正电子有限公司 Book checking method and device

Also Published As

Publication number Publication date
CN115879436A (en) 2023-03-31

Similar Documents

Publication Publication Date Title
CN115473957B (en) Image processing method and electronic equipment
CN110597512A (en) Method for displaying user interface and electronic equipment
US20220301328A1 (en) Text recognition method and apparatus
CN116048933B (en) Fluency detection method
WO2023071482A1 (en) Video editing method and electronic device
CN114222187B (en) Video editing method and electronic equipment
WO2021031862A1 (en) Data processing method and apparatus thereof
CN116467221A (en) Pile inserting method and system based on interpreter and related electronic equipment
CN115879436B (en) Electronic book quality inspection method
CN115145457B (en) Method and device for scrolling screen capturing
CN117290004A (en) Component preview method and electronic equipment
CN117690147B (en) Text recognition method and electronic equipment
EP4425451A1 (en) Text recognition method and related apparatus
CN115205868B (en) Image verification method
CN115802144B (en) Video shooting method and related equipment
CN116193275B (en) Video processing method and related equipment
CN113986406B (en) Method, device, electronic equipment and storage medium for generating doodle pattern
CN118568380A (en) Man-machine interaction method, electronic equipment and system
CN114942741B (en) Data transmission method and electronic equipment
CN117764853B (en) Face image enhancement method and electronic equipment
CN117692723A (en) Video editing method and electronic equipment
CN118445007A (en) Widget display method and electronic equipment
CN117667278A (en) Interface display method, device and system
CN117695625A (en) Frame inserting method, device, electronic equipment and readable storage medium
CN117692714A (en) Video display method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant