CN106598934A - Electronic book data display method and device, and terminal equipment - Google Patents

Electronic book data display method and device, and terminal equipment Download PDF

Info

Publication number
CN106598934A
CN106598934A CN201611155964.9A CN201611155964A CN106598934A CN 106598934 A CN106598934 A CN 106598934A CN 201611155964 A CN201611155964 A CN 201611155964A CN 106598934 A CN106598934 A CN 106598934A
Authority
CN
China
Prior art keywords
phonetic notation
word
spelling
distance
region
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.)
Granted
Application number
CN201611155964.9A
Other languages
Chinese (zh)
Other versions
CN106598934B (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.)
Ireader Technology Co Ltd
Zhangyue Technology Co Ltd
Original Assignee
Zhangyue 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 Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN201611155964.9A priority Critical patent/CN106598934B/en
Publication of CN106598934A publication Critical patent/CN106598934A/en
Application granted granted Critical
Publication of CN106598934B publication Critical patent/CN106598934B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/189Automatic justification

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Portable Nailing Machines And Staplers (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the invention provides an electronic book data display method and device, and terminal equipment, wherein the electronic book data display method comprises the following steps of: obtaining a first spell phonetic notation character and a second spell phonetic notation character, which are adjacent, wherein the spell phonetic notation character comprises a character and the spell phonetic notation of the character; determining a first spell phonetic notation area and a first character area of the first spell phonetic notation character, and a second spell phonetic notation area and a second character area of the second spell phonetic notation character; and, adjusting the distance between the first spell phonetic notation character and the second spell phonetic notation character according to the first distance between the first spell phonetic notation area and the second spell phonetic notation area or the second distance between the first character area and the second character area. By means of the embodiment of the invention, the typesetting display effect of the first spell phonetic notation character and the second spell phonetic notation is optimized; and thus, the electronic book reading experience of users is improved.

Description

The display packing of electronic book data, device and terminal unit
Technical field
The present embodiments relate to technical field of data processing, more particularly to a kind of display packing of electronic book data, dress Put and terminal unit.
Background technology
With the popularization of terminal unit, on the terminal device the people of reading electronic book is more and more, is read by terminal unit The advantages of reading e-book and there is environmental protection, low-power consumption, amount of storage greatly, and facilitate user to carry.
With becoming increasingly prosperous for child e-book reading matter market, increasing e-book application is provided has child's characteristic E-book.In this electron-like book, generally there is word phonetic or phonetic notation (for ease of description, will have spelling in the application Sound or the word of phonetic notation are referred to as spelling phonetic notation word), such as Chinese and Chinese pinyin, Japanese and assumed name etc. analogue. In current such e-book reading matter, spell phonetic notation and corresponding word carries out typesetting as an entirety, that is, each spelling Phonetic notation word is to carry out typesetting according to the width of wider person in word and spelling phonetic notation.Therefore, Jing often occurs shared by adjacent word The very big situation of space difference, affects the typesetting quality of e-book, also causes the experience of user's reading electronic book poor.
The content of the invention
A kind of display packing of electronic book data, device and terminal unit are embodiments provided, to solve at present When carrying out typesetting to e-book, often there is difference very big situation in space shared by adjacent word in Jing, affects the row of e-book Version quality, the problem for also causing the experience of user's reading electronic book poor.
A kind of one side according to embodiments of the present invention, there is provided display packing of electronic book data, including:
Obtain adjacent the first spelling phonetic notation word and second and spell phonetic notation word, wherein, spelling phonetic notation word includes word and text The spelling phonetic notation of word;
Determine the first spelling phonetic notation region and first character area of the first spelling phonetic notation word, and, second spells phonetic notation word The second spelling phonetic notation region and the second character area;
Phonetic notation region and second is spelled according to described first spell the first distance between phonetic notation region, or, according to described the Second distance between one character area and the second character area, adjusts described first and spells phonetic notation word and the second spelling phonetic notation word The distance between.
A kind of another aspect according to embodiments of the present invention, there is provided display device of electronic book data, including:
Acquisition module, the first spelling phonetic notation word and second for obtaining adjacent spells phonetic notation word, wherein, spell phonetic notation word Including the spelling phonetic notation of word and word;
Determining module, for determining the first the first spelling phonetic notation region for spelling phonetic notation word and the first character area, and, the Two the second spelling phonetic notation regions for spelling phonetic notation word and the second character area;
Adjusting module, for spelling the first distance between phonetic notation region and the second spelling phonetic notation region according to described first, or Person, according to the second distance between first character area and the second character area, adjust described first spell phonetic notation word and Second spells the distance between phonetic notation word.
Another aspect according to embodiments of the present invention, additionally provides a kind of terminal unit, including:It is processor, memorizer, logical Letter interface and communication bus, the processor, the memorizer and the communication interface are completed mutually by the communication bus Between communication;
The memorizer is used to deposit an at least executable instruction, and the executable instruction makes the computing device as above The corresponding operation of display packing of described electronic book data.
Another further aspect according to embodiments of the present invention, additionally provides a kind of computer-readable recording medium, the computer Readable storage medium storing program for executing is stored with:For obtaining the executable instruction that adjacent first spells phonetic notation word and the second spelling phonetic notation word, Wherein, spelling phonetic notation word includes the spelling phonetic notation of word and word;For determining the first the first spelling phonetic notation region for spelling phonetic notation word With the first character area, and, second spell phonetic notation word second spelling phonetic notation region and the second character area executable instruction; For spelling the first distance between phonetic notation region and the second spelling phonetic notation region according to described first, or, it is literary according to described first Second distance between block domain and the second character area, adjusts described first and spells between phonetic notation word and the second spelling phonetic notation word Distance executable instruction.
A kind of display packing of the electronic book data for providing according to embodiments of the present invention, device and terminal unit, by obtaining Take adjacent the first spelling phonetic notation word and second and spell phonetic notation word;And then determine that the first of the first spelling phonetic notation word spells phonetic notation region With the first character area, and, second spells the second spelling phonetic notation region and the second character area of phonetic notation word;Note is spelled according to first The first distance between sound region and the second spelling phonetic notation region, or, according between the first character area and the second character area Second distance, adjustment first spells phonetic notation word and second and spells the distance between phonetic notation word.Compared with traditional type-setting mode, The viewing area of the first spelling phonetic notation word is divided into the first spelling phonetic notation region and the first character area by the embodiment of the present invention, by the The viewing area of two spelling phonetic notation words is divided into the second spelling phonetic notation region and the second character area, wherein, first spells phonetic notation region It is the first distance to spell the distance between phonetic notation region with second, and the distance between the first character area and the second character area are the Two distances, when typesetting is carried out to the first spelling phonetic notation word and the second spelling phonetic notation word, can be according to the first distance or second Distance adjustment first is spelled phonetic notation word and second and spells the distance between phonetic notation word, is shortened the first spelling phonetic notation word and second and is spelled The distance between phonetic notation word, optimizes the first spelling phonetic notation word and second and spells the typesetting display effect of phonetic notation word, improves The experience of user's reading electronic book.
Description of the drawings
The step of Fig. 1 is a kind of display packing of according to embodiments of the present invention one electronic book data flow chart;
The step of Fig. 2 is a kind of display packing of according to embodiments of the present invention two electronic book data flow chart;
Fig. 3 is a kind of structured flowchart of the display device of according to embodiments of the present invention three electronic book data;
Fig. 4 is a kind of structured flowchart of the display device of according to embodiments of the present invention four electronic book data;
Fig. 5 is a kind of structural representation of according to embodiments of the present invention five terminal unit.
Specific embodiment
Below in conjunction with the accompanying drawings (identical label represents identical element in some accompanying drawings) and embodiment, implement to the present invention The specific embodiment of example is described in further detail.Following examples are used to illustrate the present invention, but are not limited to the present invention Scope.
It will be understood by those skilled in the art that the term such as " first ", " second " in the embodiment of the present invention is only used for difference Different step, equipment or module etc., neither represent any particular technology implication, also do not indicate that the inevitable logic between them is suitable Sequence.
Embodiment one
With reference to Fig. 1, show according to embodiments of the present invention one a kind of electronic book data display packing the step of flow process Figure.
The display packing of the electronic book data in the present embodiment can be realized by arbitrarily appropriate terminal unit, such as intelligent handss Machine, panel computer or desktop computer etc., but not limited to this, other devices for possessing similar data processing function can refer to this reality The display packing that example realizes electronic book data is applied, the embodiment of the present invention is not restricted to this, the present embodiment is only with terminal unit Example is illustrated.
The display packing of the electronic book data of the present embodiment comprises the steps:
Adjacent the first spelling phonetic notation word and second of step S100, acquisition spells phonetic notation word.
In the present embodiment, spelling phonetic notation word includes the spelling phonetic notation of word and word, and spelling phonetic notation can mark four in word Side, such as marks in the top of word, bottom, left side or right side.The present embodiment as a example by spelling phonetic notation and mark in the top of word, The scheme that spelling phonetic notation is marked in the bottom of word is referred to the present embodiment.For example, first phonetic notation word is spelled including word " wide " With mark the phonetic " guang " in word " wide " top, the second spelling phonetic notation word includes word " big " and marks in word " big " The phonetic " da " on top.It should be noted that the word in the present embodiment in spelling phonetic notation word may be used also in addition to can be for Chinese character Think other words, such as Japanese, Korean, English, spell in the present embodiment spelling phonetic notation in phonetic notation word except can for phonetic it Outward, can also be other spelling phonetic notations, such as phonetic symbol, assumed name, other phonetics or phonetic notation, the present embodiment is in spelling phonetic notation word Word and the specific category of spelling phonetic notation are not limited.
In the present embodiment, adjacent the first spelling phonetic notation word and the second spelling phonetic notation word may be considered adjacent in a line First spells phonetic notation word and second spells phonetic notation word.In horizontal version mode, typesetting from left to right, then it is believed that second spells phonetic notation Word is located at first and spells phonetic notation word right side;But not limited to this, if typesetting from right to left, it is believed that second spells phonetic notation word position Phonetic notation word left side is spelled in first.In vertical type-setting mode, typesetting from top to bottom, then it is believed that second spells phonetic notation word and be located at the One spells phonetic notation word downside;But not limited to this, if typesetting from bottom to up, it is believed that second spells phonetic notation word positioned at the first spelling note Sound word upside.The embodiment of the present invention only by taking typesetting from left to right as an example, but it should be understood by those skilled in the art that for from the right side To left, type-setting mode from top to bottom or from bottom to up, embodiment of the present invention realization is can also refer to.
In this step, can by conventional identification, either analytical plan is identified to electronic book data or analyzes, Obtain the first spelling phonetic notation word and second adjacent in electronic book data and spell phonetic notation word, the present embodiment is to obtaining adjacent first The technological means that spelling phonetic notation word and the second spelling phonetic notation word are adopted are not limited.
Step S102, the first spelling phonetic notation region for determining the first spelling phonetic notation word and the first character area, and, second spells Second spelling phonetic notation region of phonetic notation word and the second character area.
Spell in phonetic notation word first, the viewing area for spelling phonetic notation place is the first spelling phonetic notation region, and it is aobvious that word is located Show that region is the first character area.Spell in phonetic notation word second, the viewing area for spelling phonetic notation place is the second spelling phonetic notation region, The viewing area that word is located is the second character area.As a example by spelling phonetic notation as phonetic, the rectangular display area that phonetic is located is First spells phonetic notation region or the second spelling phonetic notation region, and so that word is as Chinese character as an example, the square viewing area that Chinese character is located is First character area or the second character area.It is horizontal for a spelling phonetic notation word, its spelling phonetic notation region and character area Width is typically different, but there is also identical situation.
Step S104, phonetic notation region and the second the first distance spelled between phonetic notation region are spelled according to first, or, according to the Second distance between one character area and the second character area, adjustment first is spelled phonetic notation word and second and is spelled between phonetic notation word Distance.
In the present embodiment, the distance between the first spelling phonetic notation region and second spelling phonetic notation region referred to as the first distance, first The distance between character area and the second character area are referred to as second distance.According to the first distance or second distance adjustment first Spell phonetic notation word and second and spell the distance between phonetic notation word, specifically can spell phonetic notation word by first and spell phonetic notation word to second It is mobile, or by second phonetic notation word is spelled to the first spelling phonetic notation character motion.
Phonetic notation word and second is spelled by adjustment first and spells the distance between phonetic notation word, reduce the first spelling phonetic notation word The spacing for spelling phonetic notation word with second.
The display packing of a kind of electronic book data provided according to the present embodiment, by obtaining the first adjacent spelling phonetic notation text Word and second spells phonetic notation word, wherein, spelling phonetic notation word includes the spelling phonetic notation of word and word;And then determine that first spells phonetic notation text First spelling phonetic notation region and the first character area of word, and, second spells the second spelling phonetic notation region of phonetic notation word and second literary Block domain;The first distance between phonetic notation region is spelled according to the first spelling phonetic notation region and second, or, according to the first character area And second second distance between character area, adjustment first spells phonetic notation word and second and spells the distance between phonetic notation word.With Traditional to carry out type-setting mode to electronic book data and compare, the viewing area of the first spelling phonetic notation word is divided into the by the present embodiment One spells phonetic notation region and the first character area, and the viewing area of the second spelling phonetic notation word is divided into into the second spelling phonetic notation region and the Two character areas, wherein, first spells phonetic notation region and second spells the distance between phonetic notation region for the first distance, the first literal field The distance between domain and the second character area are second distance, and the first spelling phonetic notation word and the second spelling phonetic notation word are being arranged Version when, can according to first distance or second distance adjustment first spell phonetic notation word and second spell phonetic notation word between away from From, shorten the first spelling phonetic notation word and second and spell the distance between phonetic notation word, optimize the first spelling phonetic notation word and second The typesetting display effect of phonetic notation word is spelled, the experience of user's reading electronic book is improved.
Embodiment two
With reference to Fig. 2, show according to embodiments of the present invention two a kind of electronic book data display packing the step of flow process Figure.
The display packing of the electronic book data in the present embodiment can be realized by arbitrarily appropriate terminal unit, such as intelligent handss Machine, panel computer or desktop computer etc., but not limited to this, other devices for possessing similar data processing function can refer to this reality The display packing that example realizes electronic book data is applied, the embodiment of the present invention is not restricted to this, the present embodiment is still with terminal unit Example is illustrated.
The present embodiment emphasizes the difference with above-described embodiment on the basis of above-described embodiment, and something in common can be with With reference to introduction and explanation in above-described embodiment.
The display packing of the electronic book data of the present embodiment comprises the steps:
Adjacent the first spelling phonetic notation word and second of step S200, acquisition spells phonetic notation word.
In the present embodiment, spelling phonetic notation word includes word and marks the spelling note in word top, bottom, left side or right side Sound.When horizontal typesetting, i.e., from a left side to by or typesetting from right to left, spell phonetic notation mark in word top or bottom;When vertical When typesetting, i.e., from top to bottom or typesetting from bottom to up, spell phonetic notation and mark in word left side or right side.
Step S202, the first spelling phonetic notation region for determining the first spelling phonetic notation word and the first character area, and, second spells Second spelling phonetic notation region of phonetic notation word and the second character area.
This step S202 can be respectively directed to the first spelling phonetic notation word and second and spell phonetic notation word, determine the first spelling phonetic notation area Domain and the first character area, and the second spelling phonetic notation region and the second character area.
(1), the first spelling phonetic notation region and the first character area are determined for the first spelling phonetic notation word:
The coordinate information that phonetic notation position is spelled in phonetic notation word is spelled according to first, the first spelling phonetic notation region is determined;According to First spells in phonetic notation word, and the coordinate information of word position determines the first character area.
In the present embodiment, it is rectangular area to spell phonetic notation position, it is only necessary to obtains and spells the rectangular area that phonetic notation is located The coordinate information of a pair diagonal line endpoints can determine that spells the first spelling phonetic notation region that phonetic notation is located.For example, spell what phonetic notation was located Four vertex point coordinate informations of rectangular area are respectively point a (x1, y1), point b (x2, y1), point c (x1, y2) and point d (x2, y2), Wherein, point a and point d is a pair diagonal line endpoints, and point b and point c is another to diagonal line endpoints.Only need to according to point a's and point d Coordinate information can determine that spells the first spelling phonetic notation region that phonetic notation is located, or, it is only necessary to according to point b and the coordinate information of point c Can determine that and spell the first spelling phonetic notation region that phonetic notation is located.
In the present embodiment, the position that word is located is square area, it is only necessary to obtain the square area at word place A pair diagonal line endpoints coordinate information can determine that word be located the first character area.Instantiation is referred to above-mentioned It is determined that spelling the introduction and explanation in the first spelling phonetic notation region that phonetic notation is located, will not be described here.
(2), the second spelling phonetic notation region and the second character area are determined for the second spelling phonetic notation word:
The coordinate information that phonetic notation position is spelled in phonetic notation word is spelled according to second, the second spelling phonetic notation region is determined;According to Second spells in phonetic notation word, and the coordinate information of word position determines the second character area.
Determine that the second spelling phonetic notation region and the detailed process of the second character area are referred to the spelling phonetic notation of above-mentioned determination first Region and the introduction and explanation of the first character area, will not be described here.
Step S204, obtain first and spell phonetic notation region and the second the first distance spelled between phonetic notation region, and first literary Second distance between block domain and the second character area.
In this step S204, obtain first and spell phonetic notation region and the second the first distance spelled between phonetic notation region, with from a left side To right typesetting, the minimum abscissa information in the second spelling phonetic notation region can be deducted the maximum horizontal seat in the first spelling phonetic notation region Mark information, obtains the first distance.For example, the second minimum abscissa information for spelling phonetic notation region is x3, and first spells phonetic notation region Maximum abscissa information be x2, the first distance that x3-x2 is obtained.And if typesetting from right to left, need the second spelling phonetic notation region Maximum abscissa deduct the minimum abscissa in the first spelling phonetic notation region.If typesetting from top to bottom, need to spell phonetic notation area by second The maximum ordinate information in domain deducts the minimum vertical coordinate information in the first spelling phonetic notation region, obtains the first distance.For example, second spell The maximum ordinate information in phonetic notation region is y3, and the first minimum vertical coordinate information for spelling phonetic notation region is y2, and y3-y2 is obtained The first distance.If typesetting from bottom to up, need for the minimum vertical coordinate in the second spelling phonetic notation region to deduct the first spelling phonetic notation region Maximum ordinate.If result is negative, take absolute value.
In this step S204, the second distance between the first character area and the second character area is obtained, if from left to right Typesetting, the minimum abscissa information of the second character area can be deducted the maximum abscissa information of the first character area, be obtained Second distance.For example, the minimum abscissa information of the second character area be x3 ', the maximum abscissa information of the first character area For x2 ', the second distance that x3 '-x2 ' are obtained.And if typesetting from right to left, need the maximum abscissa of the second character area Deduct the minimum abscissa of the first character area.If typesetting from top to bottom, need to believe the maximum ordinate of the second character area Breath deducts the minimum vertical coordinate information of the first character area, obtains second distance.For example, the maximum ordinate of the second character area Information is y3 ', and the minimum vertical coordinate information of the first character area is y2 ', the second distance that y3 '-y2 ' are obtained.If from down to Upper typesetting, then need the maximum ordinate that the minimum vertical coordinate of the second character area is deducted the first character area.
It should be noted that above-mentioned x3 can be identical from x3 ' or different, above-mentioned x2 can be identical from x2 ' or different, Above-mentioned y3 can be identical from y3 ' or different, and above-mentioned y2 can be identical from y2 ' or different.If the result for obtaining is negative value, Its absolute value be can use as the first distance or second distance.
Step S206, the first distance and second distance are compared, the first distance and second is selected according to comparative result Less distance in distance.
The distance between step S208, the spelling phonetic notation word of distance adjustment first according to selection and second spelling phonetic notation word.
If the first distance is less than second distance, the distance for selecting is the first distance;If the first distance is more than second distance, The distance for then selecting is second distance;If first distance be equal to second distance, the distance for selecting can for first distance or Second distance.
In this step S208, according to select distance adjustment first spell phonetic notation word and second spell phonetic notation word between away from From the second spelling phonetic notation region and the second character area that specifically can spell phonetic notation word by second is spelled phonetic notation word and moved to first The distance of dynamic selection.
If first spells phonetic notation word is located at the second left side for spelling phonetic notation word, second can be spelled the second of phonetic notation word Spell phonetic notation region and the second character area the first distance for being moved to the left selection or the second distance for selecting.If second spells note Sound word is located at the first left side for spelling phonetic notation word, then the first spelling phonetic notation region and first that can spell phonetic notation word by first is literary Block domain is moved to the left the first distance of selection or the second distance of selection.If first spells phonetic notation word is located at the second spelling note The upside of sound word, then can move up choosing by the second spelling phonetic notation region of the second spelling phonetic notation word and the second character area The first distance selected or the second distance for selecting.If second spells phonetic notation word is located at the first upside for spelling phonetic notation word, can With by first spelling phonetic notation word first spelling phonetic notation region and the first character area move up selection first distance or The second distance of selection.
In order to prevent adjust distance after first spelling phonetic notation word edge with second spelling phonetic notation word coincident or Person is too close to the display effect of impact electronic book data in this step S208, according to the distance adjustment first for selecting phonetic notation is spelled Word and second spells the distance between phonetic notation word, can also specifically calculate the distance of selection and the difference of predetermined interval, according to Difference adjustment first is spelled phonetic notation word and second and spells the distance between phonetic notation word.By predetermined interval, and according to select away from Spell phonetic notation word and second from the difference adjustment first with predetermined interval and spell the distance between phonetic notation word, it is ensured that adjustment away from Retain certain intervals between the first spelling phonetic notation word and the second spelling phonetic notation word after, optimize the display effect of electronic book data Really, the reading experience of user's reading electronic book is improved.Wherein, predetermined interval can be by those skilled in the art according to actual need Suitably to set, the embodiment of the present invention is not restricted to this.
Step S210, judge to adjust whether the second spelling phonetic notation word after distance is located at end of line position or row tail position, if The second spelling phonetic notation word after adjustment distance is not located at end of line position or row tail position, then execution step S212;If adjustment distance The second spelling phonetic notation word afterwards is located at end of line position or row tail position, then directly return and perform above-mentioned steps S200.
If the second spelling phonetic notation word after adjustment distance is not located at end of line position, represent in current line, first phonetic notation is spelled Also there is spelling phonetic notation word after word or the second spelling phonetic notation word needs adjustment.If the second spelling phonetic notation text after adjustment distance Word is located at end of line position, represents in current line, there is no spelling note after the first spelling phonetic notation word or the second spelling phonetic notation word Sound word needs adjustment.If the second spelling phonetic notation word after adjustment distance is not located at row tail position, represent when in row row, first Spelling also presence spelling phonetic notation word after phonetic notation word or the second spelling phonetic notation word needs adjustment.If the second spelling after adjustment distance Phonetic notation word is located at row tail position, represents when arranging in row, does not deposit after the first spelling phonetic notation word or the second spelling phonetic notation word Adjustment is needed phonetic notation word is spelled.
Step S212, second is spelled phonetic notation word as new first spelling phonetic notation word, phonetic notation word phase will be spelled with second Adjacent spells phonetic notation word as the second new spelling phonetic notation word.
For example, second phonetic notation word is spelled including phonetic notation " da " and word " big " is spelled, it is adjacent after the second spelling phonetic notation word Spelling phonetic notation word include spelling phonetic notation " jia " and word " family ", this step S212 will be including spelling phonetic notation " da " and word " big " Second spells phonetic notation word as the first new spelling phonetic notation word, will be including the spelling phonetic notation word for spelling phonetic notation " jia " and word " family " As the second new spelling phonetic notation word.
After this step S212 is performed, return and perform above-mentioned steps S200.
It should be noted that above-mentioned explanation and introduction with regard to the present embodiment, is to spell phonetic notation word and second with first to spell Based on phonetic notation word is located at a line or same row.Adjustment first spell phonetic notation word and second spell phonetic notation word between away from From when, phonetic notation word can be spelled by first and spell the adjustment of phonetic notation words direction to second, phonetic notation word can also be spelled to the by second One spells the adjustment of phonetic notation words direction, and the present embodiment is not limited to the direction for adjusting distance.And, if the direction of adjustment distance is Adjust from right to left, then the first position for spelling phonetic notation word or the second spelling phonetic notation word put positioned at row first place remains stationary as; If the direction of adjustment distance is to adjust from left to right, positioned at the first spelling phonetic notation word or the second spelling phonetic notation text of end of line position The position of word remains stationary as.If the direction of adjustment distance is to adjust from bottom to top, positioned at the first spelling phonetic notation text that row first place is put The position of word or the second spelling phonetic notation word remains stationary as;If the direction of adjustment distance is to adjust from the top down, positioned at row tail The position of the first spelling phonetic notation word of position or the second spelling phonetic notation word remains stationary as.
If first spells phonetic notation word and second spells phonetic notation word positioned at two rows or two row, first spells phonetic notation word and second In spelling phonetic notation word, one is spelled the end of line position that phonetic notation word is located at a line, and another spells the row that phonetic notation word is located at another row First place is put, or one is spelled the row tail position that phonetic notation word is located at string, and another spells the row head that phonetic notation word is located at another row Position.If the direction of adjustment distance is for from right to left or from bottom to top, for the spelling positioned at end of line position or row tail position Phonetic notation word, can be to its adjacent previous spelling phonetic notation character motion;Note for putting positioned at row first place or arranging the first spelling put Sound word, can keep the position of the spelling phonetic notation word constant, spell phonetic notation word by latter be adjacent and move to it.Such as Head is put or arranged positioned at row first place from left to right or from the top down, then to introduce contrast with above-mentioned in the direction of fruit adjustment distance The phonetic notation word of spelling of position spells phonetic notation character motion to its adjacent next one, positioned at the spelling phonetic notation of end of line position or row tail position The position of word is constant.
For the punctuation mark in electronic book data, it is believed that it is integrated with the spelling phonetic notation word before punctuation mark, Processed as an entirety.The display packing of a kind of electronic book data provided according to the present embodiment, by obtaining Adjacent the first spelling phonetic notation word and second spells phonetic notation word;And then determine first spell phonetic notation word first spelling phonetic notation region and First character area, and, second spells the second spelling phonetic notation region of phonetic notation word and the second character area;Phonetic notation is spelled according to first The first distance between region and the second spelling phonetic notation region, or, according between the first character area and the second character area Second distance, adjustment first is spelled phonetic notation word and second and spells the distance between phonetic notation word.Compared with traditional type-setting mode, this The viewing area of the first spelling phonetic notation word is divided into the first spelling phonetic notation region and the first character area by embodiment, second is spelled and is noted The viewing area of sound word is divided into the second spelling phonetic notation region and the second character area, wherein, first spells phonetic notation region and second It is the first distance to spell the distance between phonetic notation region, the distance between the first character area and the second character area be second away from From, when typesetting is carried out to the first spelling phonetic notation word and the second spelling phonetic notation word, can be according to the first distance or second distance Adjustment first is spelled phonetic notation word and second and spells the distance between phonetic notation word, is shortened the first spelling phonetic notation word and second and is spelled phonetic notation The distance between word, optimizes the first spelling phonetic notation word and second and spells the typesetting display effect of phonetic notation word, improves user The experience of reading electronic book.
The present embodiment passes through predetermined interval, it is ensured that the first spelling phonetic notation word and second after adjustment distance spell phonetic notation word it Between distance be predetermined interval, it is to avoid adjustment distance after first spelling phonetic notation word position and second spell phonetic notation word position Too close to, the display effect of electronic book data is optimized, improve the reading experience of user's reading electronic book.
Embodiment three
With reference to Fig. 3, a kind of structured flowchart of the display device of according to embodiments of the present invention three electronic book data is shown.
The display device of the electronic book data of the present embodiment includes:Acquisition module 300, for obtaining the first adjacent spelling note Sound word and second spells phonetic notation word, wherein, spelling phonetic notation word includes that word and word spell phonetic notation;Determining module 302, for true Fixed first the first spelling phonetic notation region for spelling phonetic notation word and the first character area, and, second spells the second spelling note of phonetic notation word Sound region and the second character area;Adjusting module 304, spells between phonetic notation region for spelling phonetic notation region and second according to first First distance, or, according to the second distance between the first character area and the second character area, phonetic notation word is spelled in adjustment first The distance between phonetic notation word is spelled with second.
The display device of a kind of electronic book data provided according to the present embodiment, by obtaining the first adjacent spelling phonetic notation text Word and second spells phonetic notation word;And then determine the first the first spelling phonetic notation region for spelling phonetic notation word and the first character area, and, Second the second spelling phonetic notation region for spelling phonetic notation word and the second character area;Phonetic notation region and second is spelled according to first spell phonetic notation area The first distance between domain, or, according to the second distance between the first character area and the second character area, adjustment first is spelled Phonetic notation word and second spells the distance between phonetic notation word.Compared with traditional type-setting mode, the present embodiment spells phonetic notation by first The viewing area of word is divided into the first spelling phonetic notation region and the first character area, and the viewing area that second spells phonetic notation word is drawn Be divided into the second spelling phonetic notation region and the second character area, wherein, first spell phonetic notation region and second spell between phonetic notation region away from With a distance from for first, the distance between the first character area and the second character area are second distance, and phonetic notation text is being spelled to first Word and the second spelling phonetic notation word be when carrying out typesetting, can according to the first distance or second distance adjustment first spell phonetic notation word and Second spells the distance between phonetic notation word, shortens the first spelling phonetic notation word and second and spells the distance between phonetic notation word, optimization First spells phonetic notation word and second spells the typesetting display effect of phonetic notation word, improves the experience of user's reading electronic book.
The display device of the electronic book data of the present embodiment can be arranged at the appropriate equipment with data-handling capacity In, including but not limited to mobile terminal, desktop computer etc..
Example IV
With reference to Fig. 4, a kind of structured flowchart of the display device of according to embodiments of the present invention four electronic book data is shown.
The display device of the electronic book data of the present embodiment includes:Acquisition module 400, for obtaining the first adjacent spelling note Sound word and second spells phonetic notation word, wherein, spelling phonetic notation word includes the spelling phonetic notation of word and word;Determining module 402, is used for Determine the first spelling phonetic notation region and first character area of the first spelling phonetic notation word, and, second spells the second spelling of phonetic notation word Phonetic notation region and the second character area;Adjusting module 404, spells between phonetic notation region for spelling phonetic notation region and second according to first The first distance, or, according to the second distance between the first character area and the second character area, phonetic notation text is spelled in adjustment first Word and second spells the distance between phonetic notation word.
Optionally it is determined that module 402 includes:First area determining module 4020, for spelling in phonetic notation word according to first, The coordinate information of phonetic notation position is spelled, the first spelling phonetic notation region is determined;Spell in phonetic notation word according to first, word position Coordinate information, determine the first character area;And, second area determining module 4022, for spelling phonetic notation word according to second In, the coordinate information of phonetic notation position is spelled, determine the second spelling phonetic notation region;Spell in phonetic notation word according to second, word is located The coordinate information of position, determines the second character area.
Alternatively, adjusting module 404 includes:Apart from comparison module 4040, for the first distance to be carried out with second distance Relatively;Apart from selecting module 4042, for selecting less distance in the first distance and second distance according to comparative result;Distance Adjusting module 4044, for spelling phonetic notation word and second according to the distance adjustment first for selecting the distance between phonetic notation word is spelled.
Alternatively, include apart from adjusting module 4044:Region adjusting module, for spelling the second spelling of phonetic notation word by second Phonetic notation region and the second character area spell the distance that phonetic notation character motion is selected to first.
Alternatively, include apart from adjusting module 4044:Difference calculating module, for calculating the distance and predetermined interval of selection Difference;Difference adjusting module, for spelling phonetic notation word and second according to difference adjustment first the distance between phonetic notation word is spelled.
Alternatively, the display device of the electronic book data in the present embodiment also includes:Apart from acquisition module 406, for Adjusting module 404 spells the first distance between phonetic notation region according to the first spelling phonetic notation region and second, or, according to the first word Second distance between region and the second character area, adjustment first is spelled phonetic notation word and second and spells the distance between phonetic notation word Before, the minimum abscissa information in the second spelling phonetic notation region is deducted the maximum abscissa information in the first spelling phonetic notation region, is obtained First distance, by the minimum abscissa information of the second character area the maximum abscissa information of the first character area is deducted, and is obtained Second distance.
Alternatively, the display device of the electronic book data in the present embodiment also includes:Judge module 408, for judging to adjust Whether the second spelling phonetic notation word after whole distance is located at end of line position or row tail position;Performing module 410, if for adjusting distance The second spelling phonetic notation word afterwards is not located at end of line position or row tail position, then spell phonetic notation word as the first new spelling note using second Sound word, spells phonetic notation word, into acquisition module using the adjacent phonetic notation word of spelling of phonetic notation word is spelled with second as new second 400 continue executing with;If the second spelling phonetic notation word after adjustment distance is located at end of line position or row tail position, acquisition is directly entered Module 400 is continued executing with.
The display device of the electronic book data of the present embodiment is used to realize corresponding e-book number in aforesaid plurality of embodiment According to display packing, and with the beneficial effect of corresponding embodiment of the method, will not be described here.
Embodiment five
Fig. 5 is a kind of structural representation of terminal unit provided in an embodiment of the present invention, and the specific embodiment of the invention is not Implementing for terminal unit is limited.
As shown in figure 5, the terminal unit can include:Processor (processor) 510, communication interface (Communications Interface) 520, memorizer (memory) 530 and communication bus 540.
Wherein:
Processor 510, communication interface 520 and memorizer 530 complete mutual communication by communication bus 540.
Communication interface 520, for the net element communication with such as server or other terminal units etc..
Processor 510, for configuration processor 532, can specifically perform the correlation step in said method embodiment.
Specifically, program 532 can include program code, and the program code includes computer-managed instruction.
The possibly central processor CPU of processor 510, or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement one or more integrated electricity of the embodiment of the present invention Road.The one or more processors that terminal unit includes, can be same type of processors, such as one or more CPU;Also may be used To be different types of processor, such as one or more CPU and one or more ASIC.
Memorizer 530, for depositing the electronic book data and program 532 of correlation.Memorizer 530 may include high-speed RAM Memorizer, it is also possible to also including nonvolatile memory (non-volatile memory), for example, at least one disk storage Device.
Program 532 specifically can be used for so that processor 510 performs following operation:Obtain the first adjacent spelling phonetic notation word Phonetic notation word is spelled with second, wherein, spelling phonetic notation word includes the spelling phonetic notation of word and word;Determine the of the first spelling phonetic notation word One spells phonetic notation region and the first character area, and, second spells the second spelling phonetic notation region of phonetic notation word and the second character area; The first distance between phonetic notation region is spelled according to the first spelling phonetic notation region and second, or, according to the first character area and second Second distance between character area, adjustment first is spelled phonetic notation word and second and spells the distance between phonetic notation word.
In a kind of optional embodiment, program 532 is additionally operable to so that processor 510 is it is determined that first spells phonetic notation word The first spelling phonetic notation region and the first character area, and, second spells the second spelling phonetic notation region of phonetic notation word and the second word During region, the coordinate information that phonetic notation position is spelled in phonetic notation word is spelled according to first, determine the first spelling phonetic notation region;According to First spells in phonetic notation word, and the coordinate information of word position determines the first character area;And, spell phonetic notation according to second In word, the coordinate information of phonetic notation position is spelled, determine the second spelling phonetic notation region;Spell in phonetic notation word according to second, word The coordinate information of position, determines the second character area.
In a kind of optional embodiment, program 532 is additionally operable to so that processor 510 is spelling phonetic notation region according to first And second spell the first distance between phonetic notation region, or, according to second between the first character area and the second character area Distance, when the distance between phonetic notation word and second spelling phonetic notation word are spelled in adjustment first, the first distance is carried out with second distance Relatively;Less distance in first distance and second distance is selected according to comparative result;Distance adjustment first according to selecting is spelled Phonetic notation word and second spells the distance between phonetic notation word.
In a kind of optional embodiment, program 532 is additionally operable to cause processor 510 according to the distance adjustment for selecting First spells phonetic notation word and second when spelling the distance between phonetic notation word, the second spelling phonetic notation region for spelling phonetic notation word by second and Second character area spells the distance that phonetic notation character motion is selected to first.
In a kind of optional embodiment, program 532 is additionally operable to cause processor 510 according to the distance adjustment for selecting When the distance between the first spelling phonetic notation word and second spelling phonetic notation word, the distance of selection and the difference of predetermined interval are calculated;Press Phonetic notation word and second is spelled according to difference adjustment first spell the distance between phonetic notation word.
In a kind of optional embodiment, program 532 is additionally operable to so that processor 510 is spelling phonetic notation region according to first And second spell the first distance between phonetic notation region, or, according to second between the first character area and the second character area Distance, adjustment first is spelled phonetic notation word and second and is spelled before the distance between phonetic notation word, the minimum for spelling phonetic notation region by second Abscissa information deducts the maximum abscissa information in the first spelling phonetic notation region, or, the maximum for spelling phonetic notation region by second is vertical to sit Mark information deducts the minimum vertical coordinate information in the first spelling phonetic notation region, obtains the first distance;The minimum of the second character area is horizontal Coordinate information deducts the maximum abscissa information of the first character area, or, by the maximum ordinate information of the second character area The minimum vertical coordinate information of the first character area is deducted, second distance is obtained.
In a kind of optional embodiment, program 532 is additionally operable to second that processor 510 is judged after adjustment distance Spell whether phonetic notation word is located at end of line position or row tail position;If it is not, then spelling phonetic notation word as the first new spelling note using second Sound word, phonetic notation word is spelled using the adjacent phonetic notation word of spelling of phonetic notation word is spelled with second as new second, is returned and is obtained adjacent First spelling phonetic notation word and second spelling phonetic notation word the step of continue executing with;If so, then directly return and obtain adjacent first The step of spelling phonetic notation word and the second spelling phonetic notation word continues executing with.
In program 532 each step implement it is corresponding in the corresponding steps and unit that may refer in above-described embodiment Description, will not be described here.Those skilled in the art can be understood that, for convenience and simplicity of description, above-mentioned to retouch The equipment stated and the specific work process of module, may be referred to the corresponding process description in preceding method embodiment, and here is no longer Repeat.
The display packing of a kind of electronic book data provided according to the present embodiment, by obtaining the first adjacent spelling phonetic notation text Word and second spells phonetic notation word;And then determine the first the first spelling phonetic notation region for spelling phonetic notation word and the first character area, and, Second the second spelling phonetic notation region for spelling phonetic notation word and the second character area;Phonetic notation region and second is spelled according to first spell phonetic notation area The first distance between domain, or, according to the second distance between the first character area and the second character area, adjustment first is spelled Phonetic notation word and second spells the distance between phonetic notation word.Compared with traditional type-setting mode, the present embodiment spells phonetic notation by first The viewing area of word is divided into the first spelling phonetic notation region and the first character area, and the viewing area that second spells phonetic notation word is drawn Be divided into the second spelling phonetic notation region and the second character area, wherein, first spell phonetic notation region and second spell between phonetic notation region away from With a distance from for first, the distance between the first character area and the second character area are second distance, and phonetic notation text is being spelled to first Word and the second spelling phonetic notation word be when carrying out typesetting, can according to the first distance or second distance adjustment first spell phonetic notation word and Second spells the distance between phonetic notation word, shortens the first spelling phonetic notation word and second and spells the distance between phonetic notation word, optimization First spells phonetic notation word and second spells the typesetting display effect of phonetic notation word, improves the experience of user's reading electronic book.
It should be noted that the displaying scheme of electronic book data provided in an embodiment of the present invention, it is adaptable to use e-book Reading application carries out the scene that electronic book data shows, but not limited to this, and other similar scenes are equally applicable.
It may be noted that according to the needs implemented, all parts/step described in the embodiment of the present invention can be split as more Multi-part/step, also can be combined into new part/step by the part operation of two or more components/steps or components/steps Suddenly, realizing the purpose of the embodiment of the present invention.
Above-mentioned method according to embodiments of the present invention can be realized in hardware, firmware, or be implemented as being storable in note Software or computer code in recording medium (such as CD ROM, RAM, floppy disk, hard disk or magneto-optic disk), or it is implemented through net The original storage that network is downloaded is in long-range recording medium or nonvolatile machine readable media and will be stored in local recording medium In computer code, so as to method described here can be stored in using general purpose computer, application specific processor or can be compiled Such software processes in the recording medium of journey or specialized hardware (such as ASIC or FPGA).It is appreciated that computer, process (for example, device, microprocessor controller or programmable hardware include can storing or receive the storage assembly of software or computer code RAM, ROM, flash memory etc.), when the software or computer code are by computer, processor or hardware access and when performing, realize The display packing of electronic book data described here.Additionally, when general purpose computer accesses the display being shown in which for realization During code, general purpose computer is converted to the special-purpose computer for performing the display being shown in which for the execution of code.
Those of ordinary skill in the art are it is to be appreciated that the list of each example with reference to the embodiments described herein description Unit and method and step, being capable of being implemented in combination in electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Each specific application can be used different methods to realize described function, but this realization it is not considered that exceeding The scope of the embodiment of the present invention.
Embodiment of above is merely to illustrate the embodiment of the present invention, and not to the restriction of the embodiment of the present invention, relevant skill The those of ordinary skill in art field, in the case of the spirit and scope without departing from the embodiment of the present invention, can also make various Change and modification, therefore the technical scheme of all equivalents falls within the category of the embodiment of the present invention, the patent of the embodiment of the present invention Protection domain should be defined by the claims.
A1, a kind of display packing of electronic book data are embodiments provided, including:
Obtain adjacent the first spelling phonetic notation word and second and spell phonetic notation word, wherein, spelling phonetic notation word includes word and text The spelling phonetic notation of word;
Determine the first spelling phonetic notation region and first character area of the first spelling phonetic notation word, and, second spells phonetic notation word The second spelling phonetic notation region and the second character area;
Phonetic notation region and second is spelled according to described first spell the first distance between phonetic notation region, or, according to described the Second distance between one character area and the second character area, adjusts described first and spells phonetic notation word and the second spelling phonetic notation word The distance between.
A2, the method according to A1, wherein it is determined that first spells the first spelling phonetic notation region of phonetic notation word and the first word Region, and, second spells the second spelling phonetic notation region of phonetic notation word and the second character area, including:
The coordinate information that phonetic notation position is spelled in phonetic notation word is spelled according to first, the first spelling phonetic notation region is determined;According to First spells in phonetic notation word, and the coordinate information of word position determines the first character area;
And,
The coordinate information that phonetic notation position is spelled in phonetic notation word is spelled according to second, the second spelling phonetic notation region is determined;According to Second spells in phonetic notation word, and the coordinate information of word position determines the second character area.
A3, the method according to A1, wherein, spell phonetic notation region and second according to described first and spell between phonetic notation region First distance, or, according to the second distance between first character area and the second character area, adjust described first and spell Phonetic notation word and second spells the distance between phonetic notation word, including:
First distance and the second distance are compared;
Less distance in first distance and the second distance is selected according to comparative result;
Distance adjustment described first according to selecting is spelled phonetic notation word and second and spells the distance between phonetic notation word.
A4, the method according to A3, wherein, phonetic notation word and second is spelled according to the distance adjustment described first for selecting and is spelled The distance between phonetic notation word, including:
Phonetic notation is spelled in the second spelling phonetic notation region and the second character area for spelling phonetic notation word by described second to described first The distance that character motion is selected.
A5, the method according to A3, wherein, phonetic notation word and second is spelled according to the distance adjustment described first for selecting and is spelled The distance between phonetic notation word, including:
Calculate the distance of selection and the difference of predetermined interval;
Phonetic notation word and second is spelled according to difference adjustment described first spell the distance between phonetic notation word.
A6, the method according to A1, wherein, spell between phonetic notation region phonetic notation region and second is spelled according to described first The first distance, or, according to the second distance between first character area and the second character area, adjustment described first Spell phonetic notation word and second to spell before the distance between phonetic notation word, methods described also includes:
The minimum abscissa information in the described second spelling phonetic notation region is deducted into the described first maximum horizontal seat for spelling phonetic notation region Mark information, or, the maximum ordinate information in the described second spelling phonetic notation region is deducted into the described first minimum for spelling phonetic notation region Vertical coordinate information, obtains first distance;The minimum abscissa information of second character area is deducted into described first literary The maximum abscissa information in block domain, or, the maximum ordinate information of second character area is deducted into described first literary The minimum vertical coordinate information in block domain, obtains the second distance.
A7, the method according to A1, wherein, methods described also includes:
Judge to adjust whether the second spelling phonetic notation word after distance is located at end of line position or row tail position;
If it is not, then spelling phonetic notation word as the first new spelling phonetic notation word using described second, phonetic notation will be spelled with described second Word it is adjacent spell phonetic notation word as new second spelling phonetic notation word, return it is described obtain adjacent the first spelling phonetic notation word and The step of second spelling phonetic notation word, continues executing with;
If so, then directly return described acquisition the step of adjacent first spells phonetic notation word and the second spelling phonetic notation word to continue Perform.
The embodiment of the present invention additionally provides B8, a kind of display device of electronic book data, including:
Acquisition module, the first spelling phonetic notation word and second for obtaining adjacent spells phonetic notation word, wherein, spell phonetic notation word Including the spelling phonetic notation of word and word;
Determining module, for determining the first the first spelling phonetic notation region for spelling phonetic notation word and the first character area, and, the Two the second spelling phonetic notation regions for spelling phonetic notation word and the second character area;
Adjusting module, for spelling the first distance between phonetic notation region and the second spelling phonetic notation region according to described first, or Person, according to the second distance between first character area and the second character area, adjust described first spell phonetic notation word and Second spells the distance between phonetic notation word.
B9, the device according to B8, wherein, the determining module, including:
First area determining module, for spelling the coordinate information that phonetic notation position is spelled in phonetic notation word according to first, really Fixed first spells phonetic notation region;Spell in phonetic notation word according to first, the coordinate information of word position determines the first literal field Domain;
And,
Second area determining module, for spelling the coordinate information that phonetic notation position is spelled in phonetic notation word according to second, really Fixed second spells phonetic notation region;Spell in phonetic notation word according to second, the coordinate information of word position determines the second literal field Domain.
B10, the device according to B8, wherein, the adjusting module, including:
Apart from comparison module, for first distance and the second distance to be compared;
Apart from selecting module, for according to comparative result select in first distance and the second distance it is less away from From;
Apart from adjusting module, for spelling phonetic notation word and second according to the distance adjustment described first for selecting phonetic notation word is spelled The distance between.
B11, the device according to B10, wherein, it is described apart from adjusting module, including:
Region adjusting module, the second spelling phonetic notation region and the second character area for spelling phonetic notation word by described second is equal The distance that phonetic notation character motion is selected is spelled to described first.
B12, the device according to B10, wherein, it is described apart from adjusting module, including:
Difference calculating module, for calculating the distance of selection and the difference of predetermined interval;
Difference adjusting module, for according to difference adjustment described first spell phonetic notation word and second spell phonetic notation word it Between distance.
B13, the device according to B8, wherein, described device also includes:
Apart from acquisition module, for spelling phonetic notation region and second according to described first in the adjusting module phonetic notation region is spelled Between the first distance, or, according to the second distance between first character area and the second character area, adjustment is described First spells phonetic notation word and second spells before the distance between phonetic notation word, the minimum abscissa for spelling phonetic notation region by described second Information deducts the described first maximum abscissa information for spelling phonetic notation region, or, the maximum in the described second spelling phonetic notation region is indulged Coordinate information deducts the described first minimum vertical coordinate information for spelling phonetic notation region, obtains first distance, literary by described second The minimum abscissa information in block domain deducts the maximum abscissa information of first character area, or, it is literary by described second The maximum ordinate information in block domain deducts the minimum vertical coordinate information of first character area, obtains the second distance.
B14, the device according to B8, wherein, described device also includes:
Judge module, for judging to adjust whether the second spelling phonetic notation word after distance is located at end of line position or row tail Position;
Performing module, if spelling phonetic notation word for described second after adjustment distance is not located at end of line position or row tail position Put, then spell phonetic notation word as the first new spelling phonetic notation word using described second, it is adjacent by phonetic notation word is spelled with described second Phonetic notation word is spelled as the second new spelling phonetic notation word, is continued executing with into the acquisition module;If described after adjustment distance Second spells phonetic notation word is located at end of line position or row tail position, then be directly entered the acquisition module and continue executing with.
The embodiment of the present invention provides C15, a kind of terminal unit again, including:Processor, memorizer, communication interface and logical Letter bus, the processor, the memorizer and the communication interface complete mutual communication by the communication bus;
The memorizer is used to deposit an at least executable instruction, and the executable instruction makes the computing device such as The corresponding operation of display packing of the electronic book data described in any one of A1-A7.

Claims (10)

1. a kind of display packing of electronic book data, including:
Obtain adjacent first spelling phonetic notation word and second and spell phonetic notation word, wherein, spelling phonetic notation word includes word and word Spell phonetic notation;
Determine the first spelling phonetic notation region and the first character area of the first spelling phonetic notation word, and, second spells the of phonetic notation word Two spell phonetic notation region and the second character area;
The first distance between phonetic notation region is spelled according to the described first spelling phonetic notation region and second, or, it is literary according to described first Second distance between block domain and the second character area, adjusts described first and spells between phonetic notation word and the second spelling phonetic notation word Distance.
2. method according to claim 1, wherein it is determined that first spells the first spelling phonetic notation region of phonetic notation word and first literary Block domain, and, second spells the second spelling phonetic notation region of phonetic notation word and the second character area, including:
The coordinate information that phonetic notation position is spelled in phonetic notation word is spelled according to first, the first spelling phonetic notation region is determined;According to first In spelling phonetic notation word, the coordinate information of word position determines the first character area;
And,
The coordinate information that phonetic notation position is spelled in phonetic notation word is spelled according to second, the second spelling phonetic notation region is determined;According to second In spelling phonetic notation word, the coordinate information of word position determines the second character area.
3. method according to claim 1, wherein, spell phonetic notation region and second according to described first and spell between phonetic notation region The first distance, or, according to the second distance between first character area and the second character area, adjustment described first Spell phonetic notation word and second and spell the distance between phonetic notation word, including:
First distance and the second distance are compared;
Less distance in first distance and the second distance is selected according to comparative result;
Distance adjustment described first according to selecting is spelled phonetic notation word and second and spells the distance between phonetic notation word.
4. method according to claim 3, wherein, phonetic notation word and second is spelled according to the distance adjustment described first for selecting The distance between phonetic notation word is spelled, including:
Phonetic notation word is spelled in the second spelling phonetic notation region and the second character area for spelling phonetic notation word by described second to described first The distance of mobile selection.
5. method according to claim 3, wherein, phonetic notation word and second is spelled according to the distance adjustment described first for selecting The distance between phonetic notation word is spelled, including:
Calculate the distance of selection and the difference of predetermined interval;
Phonetic notation word and second is spelled according to difference adjustment described first spell the distance between phonetic notation word.
6. method according to claim 1, wherein, according to described first spell phonetic notation region and second spell phonetic notation region it Between the first distance, or, according to the second distance between first character area and the second character area, adjust described the One spells phonetic notation word and second spells before the distance between phonetic notation word, and methods described also includes:
The minimum abscissa information in the described second spelling phonetic notation region is deducted into the described first maximum abscissa letter for spelling phonetic notation region Breath, or, the maximum ordinate information in the described second spelling phonetic notation region is deducted into the described first vertical seat of minimum for spelling phonetic notation region Mark information, obtains first distance;The minimum abscissa information of second character area is deducted into first literal field The maximum abscissa information in domain, or, the maximum ordinate information of second character area is deducted into first literal field The minimum vertical coordinate information in domain, obtains the second distance.
7. method according to claim 1, wherein, methods described also includes:
Judge to adjust whether the second spelling phonetic notation word after distance is located at end of line position or row tail position;
If it is not, then spelling phonetic notation word as the first new spelling phonetic notation word using described second, phonetic notation word will be spelled with described second Adjacent spells phonetic notation word as the second new spelling phonetic notation word, returns the first adjacent spelling phonetic notation word and second of the acquisition The step of spelling phonetic notation word continues executing with;
If so, then directly return described acquisition the step of adjacent first spells phonetic notation word and the second spelling phonetic notation word to continue to hold OK.
8. a kind of display device of electronic book data, including:
Acquisition module, the first spelling phonetic notation word and second for obtaining adjacent spells phonetic notation word, wherein, spelling phonetic notation word includes The spelling phonetic notation of word and word;
Determining module, for determining the first the first spelling phonetic notation region for spelling phonetic notation word and the first character area, and, second spells Second spelling phonetic notation region of phonetic notation word and the second character area;
Adjusting module, for spelling the first distance between phonetic notation region and the second spelling phonetic notation region according to described first, or, root According to the second distance between first character area and the second character area, adjust described first and spell phonetic notation word and the second spelling The distance between phonetic notation word.
9. device according to claim 8, wherein, the determining module, including:
First area determining module, for spelling the coordinate information that phonetic notation position is spelled in phonetic notation word according to first, determines the One spells phonetic notation region;Spell in phonetic notation word according to first, the coordinate information of word position determines the first character area;
And,
Second area determining module, for spelling the coordinate information that phonetic notation position is spelled in phonetic notation word according to second, determines the Two spell phonetic notation region;Spell in phonetic notation word according to second, the coordinate information of word position determines the second character area.
10. a kind of terminal unit, including:Processor, memorizer, communication interface and communication bus, the processor, the storage Device and the communication interface complete mutual communication by the communication bus;
The memorizer is used to deposit an at least executable instruction, and the executable instruction wants the computing device such as right Ask the corresponding operation of display packing of the electronic book data described in any one of 1-7.
CN201611155964.9A 2016-12-14 2016-12-14 Display methods, device and the terminal device of electronic book data Active CN106598934B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611155964.9A CN106598934B (en) 2016-12-14 2016-12-14 Display methods, device and the terminal device of electronic book data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611155964.9A CN106598934B (en) 2016-12-14 2016-12-14 Display methods, device and the terminal device of electronic book data

Publications (2)

Publication Number Publication Date
CN106598934A true CN106598934A (en) 2017-04-26
CN106598934B CN106598934B (en) 2018-09-14

Family

ID=58801419

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611155964.9A Active CN106598934B (en) 2016-12-14 2016-12-14 Display methods, device and the terminal device of electronic book data

Country Status (1)

Country Link
CN (1) CN106598934B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107783956A (en) * 2017-11-23 2018-03-09 掌阅科技股份有限公司 Composition method, electronic equipment and the computer-readable storage medium of text information
CN109117463A (en) * 2018-07-26 2019-01-01 掌阅科技股份有限公司 Text pinyin marking method, electronic equipment, storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0222759A (en) * 1988-07-11 1990-01-25 Sharp Corp Chinese-language sentence preparing device
US20080163039A1 (en) * 2006-12-29 2008-07-03 Ryan Thomas A Invariant Referencing in Digital Works
CN103136186A (en) * 2011-12-05 2013-06-05 北大方正集团有限公司 Method and device of pinyin type setting
CN103150300A (en) * 2011-12-06 2013-06-12 北大方正集团有限公司 Pinyin typesetting method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0222759A (en) * 1988-07-11 1990-01-25 Sharp Corp Chinese-language sentence preparing device
US20080163039A1 (en) * 2006-12-29 2008-07-03 Ryan Thomas A Invariant Referencing in Digital Works
CN103136186A (en) * 2011-12-05 2013-06-05 北大方正集团有限公司 Method and device of pinyin type setting
CN103150300A (en) * 2011-12-06 2013-06-12 北大方正集团有限公司 Pinyin typesetting method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107783956A (en) * 2017-11-23 2018-03-09 掌阅科技股份有限公司 Composition method, electronic equipment and the computer-readable storage medium of text information
CN107783956B (en) * 2017-11-23 2019-03-15 掌阅科技股份有限公司 Composition method, electronic equipment and the computer storage medium of text information
CN109117463A (en) * 2018-07-26 2019-01-01 掌阅科技股份有限公司 Text pinyin marking method, electronic equipment, storage medium

Also Published As

Publication number Publication date
CN106598934B (en) 2018-09-14

Similar Documents

Publication Publication Date Title
US10984295B2 (en) Font recognition using text localization
US10699166B2 (en) Font attributes for font recognition and similarity
US10489682B1 (en) Optical character recognition employing deep learning with machine generated training data
US9824304B2 (en) Determination of font similarity
KR102107887B1 (en) Method and apparatus for generating a composite image
TWI475406B (en) Contextual input method
US11341322B2 (en) Table detection in spreadsheet
US11080464B2 (en) Correction techniques of overlapping digital glyphs
JP7170773B2 (en) Structured document information marking method, structured document information marking device, electronic device, computer-readable storage medium, and computer program
US20170199860A1 (en) Systems and methods for generating tables from print-ready digital source documents
US8386943B2 (en) Method for query based on layout information
US20230245361A1 (en) Technology for managing graphic design using metadata relationships
US10366142B2 (en) Identifier based glyph search
CN109783782B (en) Method, equipment, storage medium and device for generating electronic contract template
CN114419632A (en) OCR training sample generation method, device and system
WO2023016117A1 (en) Content typesetting method and apparatus, computer device, and storage medium
CN110705234B (en) Method and device for adaptive typesetting and paging of standard form
CN106598934B (en) Display methods, device and the terminal device of electronic book data
CN106776527B (en) Electronic book data display method and device and terminal equipment
US11138647B2 (en) Method, device, and computer-readable storage medium for managing variations of a graphic design within a framework
US11030388B2 (en) Live text glyph modifications
EP3654164A1 (en) Technology for enabling elastic graphic design
CN111144395A (en) Method and device for rapidly inversely labeling characters and graphs based on Cadence skip
CN113268209B (en) Method, device and computer equipment for creating custom document printing template
KR101651842B1 (en) Method and device for generating layout of electronic document

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