CN102646089B - Text hiding and displaying method and device for electronic reader - Google Patents

Text hiding and displaying method and device for electronic reader Download PDF

Info

Publication number
CN102646089B
CN102646089B CN 201110039120 CN201110039120A CN102646089B CN 102646089 B CN102646089 B CN 102646089B CN 201110039120 CN201110039120 CN 201110039120 CN 201110039120 A CN201110039120 A CN 201110039120A CN 102646089 B CN102646089 B CN 102646089B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
text
hidden
characters
rule
rules
Prior art date
Application number
CN 201110039120
Other languages
Chinese (zh)
Other versions
CN102646089A (en )
Inventor
宋征轩
Original Assignee
汉王科技股份有限公司
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
Grant date

Links

Abstract

本发明属于电子阅读器领域,公开一种电子阅读器文字的隐藏和显示方法,及隐藏和显示装置,主要是为了实现不同类型文本的各部分内容的隐藏和显示而设计。 The present invention is in the field of an electronic reader, discloses a method of hiding and displaying electronic text reader, and the display device and to hide, primarily in order to achieve the various parts of different types of hidden text and display design. 本发明所述的隐藏方法包括以下步骤:首先,依据用户需求制定至少一个当前显示文档的文字隐藏规则;然后,依据上述文字隐藏规则查找出所有符合隐藏规则的字符,并计算出符合隐藏规则的所有字符所构成的矩形区域;最后,隐藏上述的矩形区域。 Concealment method according to the present invention comprises the following steps: First, to develop rules based on user needs to hide the text currently displayed at least one document; then, to find all the hidden characters in line with the rules in accordance with the above text hidden rules and calculated in line with the hidden rules a rectangular region composed of all the characters; Finally, the above-described rectangular area hidden. 本发明通过用户自定义文字隐藏规则,来精确控制电子阅读器中显示内容的部分隐藏和显示,使得电子阅读器更加灵活的适应各种文本的各部分内容的隐藏和显示。 The present invention is custom text hiding rule, to precisely control the electronic reader display content and the display is partially hidden by the user, so that more flexible electronic reader adapted to hide and show the contents of the various portions of the text.

Description

电子阅读器文字的隐藏和显示方法,及隐藏和显示装置 Hide display method of an electronic reader and text, and the display device and to hide

技术领域 FIELD

[0001] 本发明涉及电子阅读器领域,尤其涉及一种电子阅读器文字的隐藏和显示方法,及隐藏和显示装置。 [0001] The present invention relates to the field of electronic reader, and more particularly relates to an electronic reader hidden text and display method, and a display device, and hide.

背景技术 Background technique

[0002] 用户在使用电子阅读器时,特别是阅读中英双语对照类或直接带有解答答案的益智读物时,有些读者会为了自我考察期望能够将文档中的一些段落隐藏,在用户认为合适的时候再指定阅读器显示出隐藏的部分内容。 [0002] users in the use of e-readers, particularly when reading English bilingual class or puzzle books with a direct answer answers, some readers will expect to be able to self-examine some of the paragraphs in the document hidden in the user thinks the right time and specify the reader shows part hidden. 但是,用户使用电子阅读器阅读的内容多种多样,其希望隐藏的文本也是多种多样。 However, users use e-reader to read the content varied, they wish to hide text is varied. 而目前电子阅读器对文本内容的控制方式单一,只能对部分文本的内容实现简单的摘抄或者隐藏操作,对于对照文档和带有解答答案的益智读物中的隐藏操作往往无法支持。 At present, a single e-reader control text content, only part of the contents of simple text excerpt or hide the operation for the control document and operating with a hidden puzzle books answer in the answer often can not support.

发明内容 SUMMARY

[0003] 针对上述问题,本发明所要解决的技术问题是提供一种电子阅读器文字的隐藏和显示方法,及隐藏和显示系统,以适应用户阅读不同种类文档的部分内容隐藏和显示的需求。 [0003] In response to these problems, the present invention is to solve the technical problem is to provide an electronic reader text to hide and display method, and hide and display systems to meet the user to read parts of hide different types of documents and needs to display.

[0004] 为达到上述目的,本发明电子阅读器文字的隐藏方法,包括以下步骤: [0004] To achieve the above object, the hidden text method for an electronic reader of the present invention, comprising the steps of:

[0005] 依据用户需求制定至少一个当前显示文档的文字隐藏规则; [0005] formulated the text hidden rules of at least one current document is displayed according to user needs;

[0006] 依据上述文字隐藏规则查找出所有符合隐藏规则的字符,并计算出符合隐藏规则的所有字符所构成的矩形区域; [0006] According to the above text to find hidden characters in line with the rules of all the hidden rules, and calculate the rectangular area in line with all the characters hidden rules constituted;

[0007] 隐藏上述的矩形区域。 [0007] The above-described rectangular area hidden.

[0008] 特别地,所述的文字隐藏规则包括确定锚点、划定匹配查找范围以及指定目标隐藏文本;其中, [0008] In particular, the hidden text rule comprises determining anchors, and the delineation of the scope of targeting match lookup hidden text; wherein,

[0009] 所述的确定锚点,基于正则表达式描述用户所选择的文字内容; Determining anchor [0009], wherein, based on regular expressions described text selected by a user;

[0010] 所述的划定匹配查找范围,以所述锚点为查找起始点划定匹配查找的范围; Delineated [0010] The matching range lookup, to find the starting point is designated the anchor to find matching range;

[0011] 所述的指定目标隐藏文本,基于正则表达式描述在所述匹配查找范围内用户欲隐藏的目标文字内容。 [0011] The targeting of the hidden text, based on a regular expression matching is described within the scope of the user is to find a hidden target text.

[0012] 进一步地,依据用户需求制定至少一个当前显示文档的文字隐藏规则时,依据用户需求依次指定或通过鼠标设备在当前页面上框选出的部分内容来确定锚点、划定匹配查找范围以及指定目标隐藏文本。 [0012] Further, according to user needs to develop at least one of the currently displayed text hidden rules of the document, according to the part of the user requirements in order to specify the mouse device or through a box selected on the current page to determine the anchor match delineation Look and targeting hidden text.

[0013] 进一步地,所述的隐藏方法还包括:将制定好的文字隐藏规则保存到当前显示文档对应的数据库中,以备下次打开该文档时直接调用。 [0013] Further, the hiding method further comprises: the development of good hiding rule text currently displayed document is saved to the database corresponding to prepare for the next call directly open the document.

[0014] 进一步地,依据所述的文字隐藏规则查找出所有符合隐藏规则的字符,并计算出符合隐藏规则的所有字符所构成的矩形区域,其具体实现步骤如下: [0014] Further, according to the text to find the hiding rule hidden character matches all rules, and calculates a rectangular region in line with all the characters of the hiding rule constituted, the specific steps are as follows:

[0015] S1:提取当前页面上所有文字字符以及每一个字符所在的矩形区域,并解析出当前页面上所有字符所组成的段落结构或依据换行符、行间距和/或行首字符的缩进值的大小确定出当前页面上所有字符所组成的段落结构; [0015] S1: extract all the text characters on the current page, and a rectangular region of each character is located, and parsing the paragraph structure composed of all of the characters based on the current page or line breaks, line spacing, and / or the first character of the indentation size value determined paragraph structure composed of all characters on the current page;

[0016] S2:读取已制定的当前显示文档的文字隐藏规则中的一条未调用的文字隐藏规贝U,并调用正则表达式引擎根据当前页面上所有字符所组成的段落结构在当前显示页面中查找符合当前读取的文字隐藏规则中锚点的所有字符,若能查找出,则进行步骤S3;若未能查找出,则进行步骤S4 ;调用NDUA [0016] S2: read the text currently displayed text hidden in a rule document has not called hidden rules established by Tony U, and call the regular expression engine in accordance with paragraph structure consisting of all characters on the current page displayed in the current page Find all the characters in line with the rules currently read text hidden in the anchor, if we find out, go to step S3; if not to find out, go to step S4; call NDUA

[0017] S3:继续在当前读取的文字隐藏规则指定的匹配查找范围内的所有段落中查找与所述目标隐藏文本相匹配的所有字符;若能查找出,则计算出各段落中与目标隐藏文本相匹配的所有字符所占据的矩形区域,并计算出各矩形区域所在的具体位置;然后,将各矩形区域位置和大小记录在当前页面对应的隐藏区域列表中,并继续进行步骤S4 ;若未能找出,则继续进行步骤S4 ; [0017] S3: all paragraphs in the specified text within continue hiding rule currently read range match lookup to find all the characters of the hidden text matches the target; find out if, in the calculated target paragraphs Hide rectangular region all characters match the text occupied, and calculating the specific location of each rectangular area is located; then, each of the rectangular area location and size of the recording current hidden area list page corresponding to, and proceeds to step S4; Failure to identify, proceed to step S4;

[0018] S4:判断是否还存在未调用的文字隐藏规则,是,返回步骤S2 ;否则,结束。 [0018] S4: to determine whether there is hidden text of the rules is not called, yes, returns to step S2; otherwise, the end.

[0019] 本发明所述采用权利要求1所述的方法隐藏的文字内容的显示方法,包括: [0019] The present invention is the method as claimed in claim 1 hidden text display method, comprising:

[0020] 接收键盘或触摸屏的触发信号,并判断该触发信号是否在所述隐藏的文字内容所在的矩形区域内,是,电子阅读器显示出该矩形区域内隐藏的文字内容;否则,不显示。 [0020] receiving a keyboard or touch screen trigger signal, and determines whether the trigger signal is within the rectangular area of ​​the hidden text is located, it is an electronic viewer displays hidden within the rectangular area text; otherwise, do not show .

[0021] 本发明所述电子阅读器文字的隐藏装置,包括:文字隐藏规则制定模块、规则匹配计算模块和隐藏执行模块;其中, [0021] The present invention is an electronic device hidden text reader, comprising: a rule decision block hidden text, and a rule matching calculation module hidden execution module; wherein,

[0022] 所述文字隐藏规则制定模块,用于制定符合用户需求的至少一个当前显示文档的文字隐藏规则; [0022] The rule-making module hidden text, hidden text rules for the development of at least one of the currently displayed document in line with user needs;

[0023] 所述规则匹配计算模块,用于匹配查找出符合所述文字隐藏规则制定模块指定的文字隐藏规则的所有字符,并计算出所有匹配字符所构成的矩形区域; [0023] The calculation rule matching means for matching to find all the hidden text characters conforming to the rule-making module hidden text specified rule, and calculates a rectangular region consisting of all matching characters;

[0024] 所述隐藏执行模块,隐藏所述规则匹配计算模块计算得出的矩形区域。 [0024] The execution module is hidden, the hidden area of ​​the rectangular rule matching calculation module calculated.

[0025] 进一步地,所述的文字隐藏规则制定模块,包括确定锚点单元、划定匹配查找范围单元以及指定目标隐藏文本单元;其中, [0025] Further, the hidden text rule-making module comprising an anchor determination unit, designated match lookup scope unit and targeting hidden text unit; wherein,

[0026] 所述确定锚点单元,基于正则表达式描述用户所选择的文字内容; [0026] The anchor unit determining, based on regular expressions described text selected by a user;

[0027] 所述划定匹配查找范围单元,以确定锚点单元确定出的锚点为查找起始点划定匹配查找的范围; [0027] The scope unit delineated match lookup to determine the anchor unit determines that the designated starting point for finding the anchor points of the range-match lookup;

[0028] 所述指定目标隐藏文本单元,基于正则表达式描述指定在所述划定匹配查找范围单元划定的范围内用户欲隐藏的目标文字内容。 [0028] The targeting hidden text unit, designated designated unit match lookup in a range designated target range of the user's text to be hidden based on the regular expression is described.

[0029] 进一步地,所述规则匹配计算模块,包括如下单元: [0029] Further, the rule matching calculation module, comprising the following units:

[0030] 提取解析单元:提取当前页面上所有文字字符以及每一个字符所在的矩形区域,并解析出当前页面上所有字符所组成的段落结构或依据换行符、行间距和/或行首字符的缩进值的大小确定出当前页面上所有字符所组成的段落结构; [0030] The parsing unit extraction: extract all the text characters on the current page, and a rectangular region of each character is located, and parsing the paragraph structure composed of all of the characters based on the current page or line breaks, line spacing, and / or the first character in the determining the size of indents paragraph structure composed of all characters on the current page;

[0031] 调用查找单元:调用正则表达式引擎在当前显示页面中查找出符合当前读取的文字隐藏规则中锚点的所有字符,以及在匹配查找范围内的所有段落中与所述目标隐藏文本相匹配的所有字符;以及, [0031] calls the finding unit: call the regular expression engine in the currently displayed page to find out in line with the target hidden text hidden text all of the characters in the anchor reads the current rules, as well as all the paragraphs in the match in the Look matches all characters; and,

[0032] 矩形区域计算单元:计算出各段落中与目标隐藏文本相匹配的所有字符所占据的矩形区域,并计算出各矩形区域所在的具体位置;然后,将各矩形区域位置和大小记录在当前页面对应的隐藏区域列表中。 [0032] The rectangular area calculation unit: calculates a rectangular region of all of the characters in each paragraph and the target hidden text matches occupied, and calculating the specific location of each rectangular area is located; Then, each of the rectangular area location and size of the records currently hidden area list page corresponding.

[0033] 进一步地,所述的隐藏装置还包括:[0034] 隐藏规则存储模块,将制定好的文字隐藏规则保存到当前显示文档对应的数据库中,以备下次打开该文档时直接调用。 [0033] Further, the apparatus further comprising Hide: [0034] Hide rule storage module, the hidden text to develop a good rule to save the currently displayed document database corresponding, called directly for the next open the document.

[0035] 本发明所述将采用权利要求1所述的方法隐藏的文字内容显示出的显示装置,包括:接收判定模块和显示执行模块;其中, [0035] The display device of the present invention will employ the method as claimed in claim 1 hidden text exhibited, comprising: determining receiving module and the display module execution; wherein,

[0036] 所述接收判定模块,用于接收键盘或触摸屏的触发信号,并判断该触发信号是否在所述隐藏的文字内容所在的矩形区域内; [0036] The reception determination module, receiving a trigger signal for a touch screen or a keyboard, and determines whether or not the rectangular area of ​​the trigger signal in the hidden text is located;

[0037] 所述显示执行模块,用于显示被触发的所述矩形区域内的隐藏的文字内容。 [0037] performing the display module for displaying hidden within the rectangular region of text to be triggered.

[0038] 本发明的有益效果是:本发明通过用户自定义文字隐藏规则,来精确控制电子阅读器中显示内容的部分隐藏和显示,使得电子阅读器更加灵活的适应各种文本的各部分内容的隐藏和显示。 [0038] Advantageous effects of the present invention are: the present invention is a user-defined character by hiding rule, to precisely control the display contents of an electronic reader and the display is partially hidden, so that the electronic reader more flexible adaptation of the text content of the various portions of Hide and display.

附图说明 BRIEF DESCRIPTION

[0039] 图1为本发明所述电子阅读器文字的隐藏方法的流程图; [0039] FIG. 1 is a flowchart of the present invention, the method of hidden text of the electronic reader;

[0040]图2为本发明依据已制定的文字隐藏规则查找所有符合规则的字符并计算其所占矩形区域的流程图; According to the [0040] 2 of the present invention has been developed to find all the words hidden rules comply with the rules of the character and its share is calculated flow chart of the rectangular area;

[0041] 图3为本发明所述电子阅读器文字的隐藏装置的结构示意图; [0041] FIG. 3 is an electronic reader device the hidden text structural diagram;

[0042] 图4为将采用本发明所述文字内容隐藏方法的文字内容显示出的显示装置的结构示意图。 Schematic structural diagram of a display device [0042] FIG. 4 is a hidden text will use the method of the present invention exhibited text.

[0043] 图5为本发明实施例1电子阅读器当前显示内容中部分内容未被隐藏的示意图; [0043] FIG 5 Example 1 e-reader not hidden part of the contents of the current display of the present invention, a schematic diagram;

[0044] 图6为本发明实施例1电子阅读器调用文字隐藏功能模块制定文字隐藏规则的示意图; [0044] Fig 6 a schematic diagram of an electronic reader 1 concealment function call text character hiding rule developed embodiment of the invention;

[0045] 图7为本发明实施例1电子阅读器当前显示内容中所有中文字符以遮盖的形式隐减的不意图; [0045] FIG. 7 is not intended contents cover all Chinese characters in the form of hidden Example 1 minus the current display electronic reader embodiment of the present invention;

[0046] 图8为本发明实施例1电子阅读器当前显示内容中所有中文字符以反转的形式隐减的不意图; [0046] FIG. 8 is not the content intended for all Chinese characters in inverted implicit form of Example 1 minus the current display electronic reader embodiment of the present invention;

[0047] 图9为本发明实施例2电子阅读器当前显示内容中部分内容未被隐藏的示意图; [0047] Example 2 FIG. 9 electronic reader not hidden part of the content currently being displayed is a schematic diagram of the present invention;

[0048] 图10为本发明实施例2通过鼠标设备框选确定锚点的示意图; [0048] Example 2 FIG. 10 is determined by a mouse device marquee anchor schematic embodiment of the present invention;

[0049] 图11为本发明实施例2制定文字隐藏规则的示意图; [0049] FIG 2 is a schematic developed according to the rules of the text invisible embodiment of the present invention;

[0050]图12为本发明实施例2电子阅读器当前显示内容中符合隐藏规则的所有字符被隐减的不意图; [0050] Example 2 FIG. 12 electronic reader all of the characters that match the contents of the hiding rule is not intended to be implicitly Save the current display of the present invention;

[0051] 图13为本发明实施例2电子阅读器部分显示隐藏内容的示意图。 [0051] FIG 13 a schematic view of part of an electronic reader Example 2 show hidden contents embodiment of the invention.

具体实施方式 detailed description

[0052] 下面结合附图对本发明的具体实施方式做详细描述。 [0052] The following description of the drawings in detail specific embodiments of the present invention binds.

[0053] 如图1所示为本发明所述电子阅读器文字的隐藏和显示方法的流程图。 [0053] As shown in FIG 1 is a flowchart of a display method and a hidden electronic reader of the text of the present invention. 本发明公开的方法具体步骤描述如下: The method disclosed in the present invention specific steps are described as follows:

[0054] 依据用户需求制定至少一个当前显示文档的文字隐藏规则; [0054] formulated the text hidden rules of at least one current document is displayed according to user needs;

[0055] 依据上述文字隐藏规则查找出所有符合隐藏规则的字符,并计算出符合隐藏规则的所有字符所构成的矩形区域;[0056] 隐藏上述的矩形区域。 [0055] According to the above text to find hidden characters in line with the rules of all the hidden rules, and calculate the rectangular area in line with all the characters hidden rules constituted; [0056] hidden above the rectangular area.

[0057] 其中,所述的文字隐藏规则包括确定锚点、划定匹配查找范围以及指定目标隐藏文本;所述的确定锚点,基于正则表达式描述用户所选择的文字内容;所述的划定匹配查找范围,以所述锚点为查找起始点划定匹配查找的范围;所述的指定目标隐藏文本,基于正则表达式描述在所述匹配查找范围内用户欲隐藏的目标文字内容。 [0057] wherein said rule comprises determining hidden text anchors, and delineation of the scope of targeting match lookup hidden text; determining the anchor point, based on regular expressions described text selected by the user; the scribe match lookup predetermined range, to the anchor as the starting point for finding a designated range-match lookup; targeting the hidden text, based on a regular expression matching is described within the scope of the user is to find a hidden target text.

[0058] 上述文字隐藏规则在被调用执行或被保存时通常会被转化为三元组〈P,R, M>形式进行描述。 [0058] The rules stored in the hidden text is performed or invoked conversions are generally described as triple <P, R, M> form. 其中,P(pattern),即为锚点,表示用户所选择的文字内容;R即为匹配范围,表示在哪些范围内搜索M;M(match)即为目标隐藏文本,表示用户欲隐藏的目标文字内容。 Wherein, P (pattern), that is anchor text represents the selected user; R & lt matching is the range, in which M represents a search range; M (match) hidden text is the target, the user indicates the target to be hidden text. P和M都采用正则表达式来描述,例如:描述英文单词的正则表达式为“ [A-Za-z]+”;描述中文字符的正则表达式为“ [\u4e00-\u9fa5] ”。 P and M are described using regular expressions, for example: description of English words regular expression "[A-Za-z] +"; described in Chinese characters regular expression "[\ u4e00- \ u9fa5]". 当R取不同的值时,即代表了需要在页面或文档的不同位置来搜索出M并将M隐藏,如:R可以取在锚点P出现的位置之后、或锚点P出现的位置之前、或者锚点P出现的位置之后紧邻的一个段落、或者整篇文档等等。 R may be taken until after the position of the anchor point P occurred, or the position of the anchor point P appear: when the different values ​​of R, which represents the required page or document in a different location to search for the hidden M and M, such as a paragraph immediately after, or P appear anchor position, or the entire document, and so on. 当一个文字隐藏规则中P的值为任意字符时(即正则表达式描述为”),此时该规则的R只能指定为整个页面,该规则的意义是在整个页面的范围内搜寻M的出现并将其隐藏;当一个文字隐藏规则中M的值为任意字符时,则是将R指定的范围内所有的字符隐藏。 When a character is any hidden text P rule (i.e., the regular expression is described as "), when R of the rule can be specified only for the entire page, meaning that the search rule is in the range of M whole page appear and hide; when a character is any character hiding rule of M, R sucked within the specified range all the hidden characters.

[0059] 其中,依据用户需求制定至少一个当前显示文档的文字隐藏规则时,依据用户需求依次指定或通过鼠标设备在当前页面上框选出的部分内容来确定锚点、划定匹配查找范围以及指定目标隐藏文本。 [0059] in which, according to user needs to develop at least one of the currently displayed text hidden rules of the document, according to the part of the user requirements in order to specify the mouse device or through a box selected on the current page to determine the anchor, and delineation of matching the Look target hidden text.

[0060] 采用鼠标设备框选部分内容来制定文字隐藏规则时,电子阅读器会检索当前字符规则库中所有能够与该框选出的内容相匹配的规则,这些检索出来的规则连同该框选出的内容,共同构成了该锚点、匹配查找范围和/或目标隐藏文本的可选集合,供用户从该集合中选择一规则作为该框选出的内容的匹配规则。 [0060] When using a mouse device marquee part to develop rules to hide text, e-reader retrieves the current character rules in the rule base can select all the contents of the box match these rules retrieved along with the marquee the contents, constitute the anchor match for the optional set of range and / or target hidden text for the user to select a matching rule as a rule the contents of the selected frame from the collection.

[0061] 如图2所示,依据所述的文字隐藏规则查找出所有符合隐藏规则的字符,并计算出符合隐藏规则的所有字符所构成的矩形区域的流程图,其具体步骤描述如下: [0061] 2, to find the hidden text based on the rules of the hidden character matches all rules, and calculates a flowchart of a rectangular region in line with all of the characters constituting the hiding rule, the specific steps are described as follows:

[0062] S1:提取当前页面上所有文字字符以及每一个字符所在的矩形区域,并解析出当前页面上所有字符所组成的段落结构,若当前文档解析软件不能解析出当前页面上字符所组成的段落结构,则根据换行符、行间距和/或行首字符的缩进值的大小来确定出页面上所有文字的段落结构; [0062] S1: extract all current text characters on the page and a rectangular region of each character is located, and parsing the paragraph structure composed of all characters on the current page, if the current document analysis software can not resolve the current page of characters consisting of paragraph structure, according to the size of the indents line breaks, line spacing, and / or the first character of the paragraph structure to determine all the text on the page;

[0063] S2:读取已制定的当前显示文档的文字隐藏规则中的一条未调用的文字隐藏规贝U,并调用正则表达式引擎根据当前页面上所有字符所组成的段落结构在当前显示页面中查找符合当前读取的文字隐藏规则中锚点的所有字符,若能查找出,则进行步骤S3;若未能查找出,则进行步骤S4 ;调用NDUA [0063] S2: read the text currently displayed text hidden in a rule document has not called hidden rules established by Tony U, and call the regular expression engine in accordance with paragraph structure consisting of all characters on the current page displayed in the current page Find all the characters in line with the rules currently read text hidden in the anchor, if we find out, go to step S3; if not to find out, go to step S4; call NDUA

[0064] S3:继续在当前读取的文字隐藏规则指定的匹配查找范围内的所有段落中查找与所述目标隐藏文本相匹配的所有字符;若能查找出,则计算出各段落中与目标隐藏文本相匹配的所有字符所占据的矩形区域,并计算出各矩形区域所在的具体位置;然后,将各矩形区域位置和大小记录在当前页面对应的隐藏区域列表中,并继续进行步骤S4 ;若未能找出,则继续进行步骤S4 ; [0064] S3: all paragraphs in the specified text within continue hiding rule currently read range match lookup to find all the characters of the hidden text matches the target; find out if, in the calculated target paragraphs Hide rectangular region all characters match the text occupied, and calculating the specific location of each rectangular area is located; then, each of the rectangular area location and size of the recording current hidden area list page corresponding to, and proceeds to step S4; Failure to identify, proceed to step S4;

[0065] S4:判断是否还存在未调用的文字隐藏规则,是,返回步骤S2 ;否则,结束。 [0065] S4: to determine whether there is hidden text of the rules is not called, yes, returns to step S2; otherwise, the end.

[0066] 进一步地,为避免电子阅读器下次再加载并打开同一文档时还需重新制定文字隐藏规则,本发明所述的电子阅读器文字的隐藏方法还包括:将制定好的文字隐藏规则保存到当前显示文档对应的数据库中,以备下次打开该文档时直接调用。 [0066] Further, in order to avoid electronic reader next time you load and need to re-enact rules to hide the text when you open the same document, e-reader text concealment methods according to the present invention further includes: the development of good character hiding rule save the document currently displayed in the corresponding database, called directly for the next open the document.

[0067] 本发明所述采用上述的方法隐藏的文字内容进行显示的方法,包括: [0067] The present invention is a method of the above-described hidden text display method, comprising:

[0068] 接收键盘或触摸屏的触发信号,并判断该触发信号是否在所述隐藏的文字内容所在的矩形区域内,是,电子阅读器显示出该矩形区域内隐藏的文字内容;否则,不显示。 [0068] receiving a keyboard or touch screen trigger signal, and determines whether the trigger signal is within the rectangular area of ​​the hidden text is located, it is an electronic viewer displays hidden within the rectangular area text; otherwise, do not show .

[0069] 如图3所示,本发明电子阅读器文字的隐藏装置,包括:文字隐藏规则制定模块101、规则匹配计算模块102和隐藏执行模块103 ;其中, [0069] As shown, the text of the e-reader device 3 of the present invention is hidden, comprising: a text hiding rule decision block 101, calculation module 102 and a rule matching module 103 performs hidden; wherein,

[0070] 所述文字隐藏规则制定模块101,用于制定符合用户需求的至少一个当前显示文档的文字隐藏规则; [0070] The rule-making module 101 hidden text, hidden text rules for the development of at least one of the currently displayed document in line with user needs;

[0071] 所述规则匹配计算模块102,用于匹配查找出符合所述文字隐藏规则制定模块指定的文字隐藏规则的所有字符,并计算出所有匹配字符所构成的矩形区域; [0071] The calculation rule matching module 102, for all characters match lookup hidden text conforms to the rule-making module hidden text specified rule, and calculates a rectangular region consisting of all matching characters;

[0072] 所述隐藏执行模块103,隐藏所述规则匹配计算模块计算得出的矩形区域。 [0072] The hidden execution module 103, the hiding rule matching calculation module calculates the rectangular area obtained.

[0073] 进一步地,所述的文字隐藏规则制定模块101,包括确定锚点单元、划定匹配查找范围单元以及指定目标隐藏文本单元;其中, [0073] Further, the hidden text rule-making module 101, the anchor unit comprises determining delineate the scope of the matching unit and targeting to find hidden text unit; wherein,

[0074] 所述确定锚点单元,基于正则表达式描述用户所选择的文字内容; [0074] The anchor unit determining, based on regular expressions described text selected by a user;

[0075] 所述划定匹配查找范围单元,以确定锚点单元确定出的锚点为查找起始点划定匹配查找的范围; [0075] The scope unit delineated match lookup to determine the anchor unit determines that the designated starting point for finding the anchor points of the range-match lookup;

[0076] 所述指定目标隐藏文本单元,基于正则表达式描述指定在所述划定匹配查找范围单元划定的范围内用户欲隐藏的目标文字内容。 The [0076] Targeting hidden text unit, based on a regular expression match lookup delineated described specified area delineated by the range of the user unit to be hidden in the target text.

[0077] 所述规则匹配计算模块102,包括如下单元: [0077] The calculation rule matching module 102, comprising the following units:

[0078] 提取解析单元:提取当前页面上所有文字字符以及每一个字符所在的矩形区域,并解析出当前页面上所有字符所组成的段落结构或依据换行符、行间距和/或行首字符的缩进值的大小确定出当前页面上所有字符所组成的段落结构; [0078] The parsing unit extraction: extract all the text characters on the current page, and a rectangular region of each character is located, and parsing the paragraph structure composed of all of the characters based on the current page or line breaks, line spacing, and / or the first character in the determining the size of indents paragraph structure composed of all characters on the current page;

[0079] 调用查找单元:调用正则表达式引擎在当前显示页面中查找出符合当前读取的文字隐藏规则中锚点的所有字符,以及在匹配查找范围内的所有段落中与所述目标隐藏文本相匹配的所有字符;以及, [0079] calls the finding unit: call the regular expression engine in the currently displayed page to find out in line with the target hidden text hidden text all of the characters in the anchor reads the current rules, as well as all the paragraphs in the match in the Look matches all characters; and,

[0080] 矩形区域计算单元:计算出各段落中与目标隐藏文本相匹配的所有字符所占据的矩形区域,并计算出各矩形区域所在的具体位置;然后,将各矩形区域位置和大小记录在当前页面对应的隐藏区域列表中。 [0080] The rectangular area calculation unit: calculates a rectangular region of all of the characters in each paragraph and the target hidden text matches occupied, and calculating the specific location of each rectangular area is located; Then, each of the rectangular area location and size of the records currently hidden area list page corresponding.

[0081] 作为本发明的进一步实施例,所述的电子阅读器文字的隐藏装置还包括:隐藏规则存储模块(图中未示出),将制定好的文字隐藏规则保存到当前显示文档对应的数据库中,以备下次打开该文档时直接调用。 [0081] As a further embodiment of the present invention, the electronic reader device hidden text further comprising: hiding rule storage module (not shown), to develop a good hiding rule stored text document corresponding to the currently displayed database to prepare for the next time you open the document called directly.

[0082] 如图4所示,本发明将采用电子阅读器文字的隐藏方法隐藏的文字内容进行显示的显示系统,包括:接收判定模块201和显示执行模块202。 [0082] As shown in FIG 4, the present invention is the use of hidden text Electronic reader hidden text display system for display, comprising: a receiving module 201 and a determining module 202 performs the display.

[0083] 所述接收判定模块201,用于接收键盘或触摸屏的触发信号,并判断该触发信号是否在所述隐藏的文字内容所在的矩形区域内; [0083] The reception determination module 201, a trigger signal for receiving keyboard or touch screen, and determines whether or not the rectangular area of ​​the trigger signal in the hidden text is located;

[0084] 所述显示执行模块202,用于显示被触发的所述矩形区域内隐藏的文字内容。 [0084] The execution module 202 displays, for displaying hidden within the rectangular region of text to be triggered.

[0085] 下面结合具体的实施例对本发明所述的电子阅读器文字的隐藏和显示方法作进一步的说明。 [0085] Next, with reference to specific embodiments of the method of hiding and displaying electronic text reader according to the present invention will be further described. [0086] 实施例1 [0086] Example 1

[0087] 本实施例中电子阅读器加载并打开一中英文对照读物(如图5所示),当前页面含有中文字符,英文字符和图片。 [0087] The present embodiment loads an electronic reader and open a bilingual books (shown in FIG. 5) embodiment, the current page contains Chinese characters, English characters and pictures.

[0088] 首先,依据用户需求制定文字隐藏规则,并将其保存到相应的数据库中。 [0088] First, to develop rules based on user needs to hide the text and save it to the appropriate database. 当电子阅读器接收到用户需要隐藏当前页面的某一部分内容的隐藏请求时,电子阅读器会调用文字隐藏功能模块(如图6所示)。 When the electronic reader receives the request of a user to hide the hidden part of the current page, the text will be called an electronic reader concealment function (Figure 6). 该功能模块会读取数据库中存储的文字隐藏规则以备用户选择。 This function module reads text hiding rule stored in the database for future user selection. 本实施例中用户选中并确定其中“隐藏'当前页面中'所有的中文字符”这一规则,电子阅读器将上述规则转化为三元组描述,该描述具体为:锚点P为任意位置;匹配查找范围R为整个页面;目标隐藏文本M为中文字符;锚点P,匹配查找范围R以及目标隐藏文本M均采用正则表达式进行描述。 In the present embodiment the user to select and determine the embodiment wherein the "Hide" current page "all the Chinese character" rule, an electronic reader to the above described conversion rule triplets, which is described specifically as follows: P for the anchor point an arbitrary position; look for the entire match R page; goal hidden text M is the Chinese character; anchors P, R, and the target matching look hidden text M are described using regular expressions.

[0089] 然后,依据上述的“隐藏'当前页面中'所有的中文字符”规则查找出所有符合该规则的字符,并计算出符合该隐藏规则的所有字符所构成的矩形区域,具体实现如下: [0089] Then, according to the above-described "hidden" current page "all the Chinese character" rule to find out all characters match the rule, and calculates a rectangular region all the characters matches the hiding rule constituted, in particular to achieve the following:

[0090] S1:电子阅读器调用文档解析软件的文字内容访问器,提取当前页面(图5所示的显示页面)上的所有文字字符以及每一个字符所在的矩形区域,并解析出所有字符所组成的段落结构;如果当前文档解析软件不能解析出当前页面上字符所组成的段落结构,则根据换行符、行间距和/或行首字符的缩进值的大小来确定出页面上所有文字的段落结构,本实施例中所有的英文字符和中文字符均只有一段。 [0090] S1: all the text characters on a rectangular region (display page shown in FIG. 5) calls the electronic reader text document access analysis software that extracts each character and the current page is located, and all the characters are parsed paragraph structure thereof; if the current document analysis software can parse out the characters on the current page consisting paragraph structure, according to the size of the indents line breaks, line spacing / or the first character of the text and to identify all the pages paragraph structure, all of the examples of Chinese characters and English characters are just some of the present embodiment.

[0091] S2:读取上述的“隐藏'当前页面中'所有的中文字符”规则,并调用正则表达式引擎根据当前页面上所有字符所组成的段落结构在当前显示页面中查找符合当前读取的文字隐藏规则三元组描述中锚点P的所有字符,本实施例中锚点P为任意位置。 [0091] S2: read the above "Hide 'current page' for all the Chinese characters" rule, and call the regular expression engine in accordance with paragraph structure consisting of all characters on the current page in the currently displayed page looks in line with the current read All characters in the text description hiding rule triple P's anchor points, in the present embodiment the anchor Example P arbitrary position. 调用NDUA Call NDUA

[0092] S3:在当前读取的文字隐藏规则三元组描述中的匹配查找范围R即整个页面内的所有段落中查找与所述目标隐藏文本M即中文字符相匹配的所有字符,在本实施例中显示页面中右上角段落中的所有中文字符均与目标隐藏文本M相匹配;查找完成后,依据步骤SI中提取的每一个字符所在的矩形区域计算出该段落中所有中文字符所占据的矩形区域,并计算出该矩形区域所在的具体位置;再将各矩形区域位置和大小记录在当前页面对应的隐藏区域列表中;其中,所述的矩形区域的位置可用其左上角坐标来表示。 [0092] S3: R-match lookup in the range of triplet character hiding rule described in the currently read, i.e. all the paragraphs of the entire page to find all the characters in the target text hidden i.e. M Chinese characters match, in the present Example display of all pages in the top right corner of Chinese characters paragraphs are hidden text matches the target M; after completing the search, is calculated in this paragraph all Chinese characters according to the rectangular area extracted in step SI where each character occupies rectangular area, and calculating the specific location of the rectangular region is located; then the position and size of each rectangular region is recorded in the hidden area corresponding to the current page in the list; wherein, the position of the rectangular area which can be used to represent the coordinates of the upper left corner . 随后,再判断是否还存在未调用的文字隐藏规则,本实施例如图6中所示已不存在未调用的规则,则矩形区域计算完毕。 Subsequently, then determines whether or not there is text called hiding rule, the present embodiment has, for example, the rule does not exist yet not shown in FIG. 6, the rectangular area has been calculated.

[0093] 最后,隐藏上述步骤计算得出的矩形区域,其中,本发明文字隐藏可采取多种形式,如图7所示,为本实施例采用遮盖的形式进行隐藏的示意图;如图8所示,为本实施例采用文字反转的形式进行隐藏的示意图。 [0093] Finally, the step of calculating the above-described rectangular area hidden obtained, wherein the hidden text of the present invention may take various forms, as shown in FIG. 7, the present embodiment takes the form of a schematic view of the cover will be hidden; FIG. 8 shown, using hidden text in the form of an inverted schematic diagrams of the present embodiment.

[0094] 当电子阅读器接收到通过键盘或触摸屏在被隐藏或反转显示的矩形区域内的触发指令时,电子阅读器将该矩形区域内被隐藏的文字内容显示出来或将该矩形区域内的被反转显示的文字内容转回正向。 [0094] When the electronic reader is received by triggering instruction keyboard or touch screen or hidden in the inverted display of the rectangular area, the electronic reader rectangular area hidden text is displayed inside the rectangular area or the text is displayed in reverse back to forward.

[0095] 这里需要说明的是,本实施例中文档中显示的图片无法适用本发明所述的方法进行隐藏和显示,本发明所述的方法只适用于字符。 [0095] It is noted that the picture display example of the document according to the present embodiment of the method according to the present invention can not be applied to hide and display, according to the method of the invention applies only to characters.

[0096] 实施例2 [0096] Example 2

[0097] 本实施例中,电子阅读器加载并打开一象棋习题集文档(如图9所示),其中习题部分和解答部分的位置过于接近,很容易影响用户的独立思考。 [0097] In this embodiment, the electronic reader think for loading a chess problem set and open the document (9), wherein the location part exercises and answers portion too close easily affect the user. 若用户需要将解答部分隐藏,此时电子阅读器中已存储的文字隐藏规则中没有符合该需求的隐藏规则时,用户可以自定义创建一个隐藏规则来隐藏棋谱中的解答部分。 If the user needs to answer some hidden text hidden rules of e-readers at this time already stored in hiding rule does not meet that requirement, the user can customize to create a hidden rule to hide the answer section of chess.

[0098] 首先,当接收到用户创建新文字隐藏规则指令时,如图6所示的文字隐藏功能模块窗口中“Add New Rule”功能键时,电子阅读器会调用相应的创建新规则的功能模块,以提示用户如何进行创建。 [0098] First, when receiving a user command to create a new rule hidden text, text concealment function window shown in FIG. 6, "Add New Rule" function key, the electronic reader will call the appropriate function to create a new rule module to prompt the user how to create. 其中,锚点和目标隐藏文本可通过鼠标或触摸屏框选指定的方式来确定。 Among them, the anchor and target hidden text that can be specified by mouse or touch screen marquee ways to determine. 如图10所示,本实施例锚点被框选为当前页面上显示字符“【答】”;阅读解析器软件提取该框选出的内容“【答】”,并检索当前字符规则库中所有能够与该字符“【答】”相匹配的字符规则,将检索到的所有与该字符“【答】”相匹配的字符规则连同用户框选出的文本“【答】”,共同组成了锚点的可选集合,即作为“当以下锚点出现时”下拉列表中的待选项,本实施例中用户在该下拉列表中指定了字符“【答】”为匹配规则,表明字符“【答】”即为锚点。 10, displays the character "[A]" is the anchor of the present embodiment, the current page marquee; reading frame parser software to extract the selected content "[A]", and retrieves the current character rulebase All can "[a]" and the character matches the character rule, retrieved all the characters "[a]" text that matches the character rules along with the user box selected, "[a]", a common component optionally set the anchor, i.e., as "the anchor when a" drop-down list of options to be, in the present embodiment, the drop-down list in the user specifies the character "[a]" is a matching rule, indicating the character "[ A] "is the anchor.

[0099] 如图11所示,匹配范围划定为“锚点之后”;目标隐藏文本指定为“所有文字”。 "After anchor" [0099] As shown, the matching range designated as 11; certain hidden text designated as "all text." 其中,所述的匹配范围和目标隐藏文本也可以通过框选指定的方式来确定,若采用框选指定其确定方式同上述的锚点确定方法。 Wherein the matching target range and hidden text may be specified by the marquee way to determine, the use of a marquee with the determined manner specified above to determine its anchor method. 电子阅读器将上述制定好的隐藏规则转化为三元组〈P, R, M>形式的描述,该描述具体为:? The above-described electronic reader develop a good hiding rule into triple <P, R, M> in the form of description, the description is specifically:? :“【答】”洱:锚点“【答】”之后;M:所有字符。 After the anchor "[A]"; M::: "[A] 'er all the characters.

[0100] 然后,电子阅读器调用文档解析软件的文字内容访问器,提取当前页面上的所有文字字符以及每一个字符所在的矩形区域,并解析出所述字符所组成的段落结构。 [0100] Then, the e-reader to call the document parsing software text content access device, extract all the text characters in a rectangular area on the page, and each character's current location, and parse out the paragraph structure composed of the characters.

[0101] 读取上述步骤制定的文字隐藏规则,并调用正则表达式引擎根据当前页面上所有字符所组成的段落结构在当前显示页面中查找出符合当前读取的文字隐藏规则三元组描述中锚点P “【答】”的字符; [0101] reading the above steps to develop rules to hide text, and call the regular expression engine to display pages to find out the current accord in accordance with paragraph structure consisting of all characters on the current page of text hidden rules triples describe the current reading in anchor P "[a]" characters;

[0102] 查找到与锚点匹配的字符后,调用NDUA,,,,,,,在当前读取的文字隐藏规则三元组描述中的锚点“【答】”之后的所有段落中查找所述目标隐藏文本M即所有字符;然后,依据上述访问器提取出的每一个字符所在的矩形区域,计算出锚点“【答】”之后的各段落所占据的矩形区域,并计算出各矩形区域所在的具体位置;再将各矩形区域位置和大小记录在当前页面对应的隐藏区域列表中;最后,判断是否还存在未调用的文字隐藏规则,本实施例中只制定了一个文字隐藏规则,因此矩形区域计算完毕。 After all the paragraphs of [0102] After finding the characters and the anchor match, call NDUA ,,,,,,, anchor text hidden rules triples describe the current reading of the "[A]" Find the said target i.e. all hidden text character M; rectangular region of each paragraph and, based on the rectangular area of ​​the accessor extracted where each character is calculated anchor "[a]" after occupied, and calculates each rectangular specific location area ID; then the position and size of each rectangular region is recorded in the hidden area corresponding to the current page in the list; Finally, it is determined whether there are hidden characters of the rule is not invoked, the present embodiment only developed a hiding rule text, Thus it has been calculated rectangular region.

[0103] 其中,所述的各矩形区域的位置可按其左上角坐标来表示,进而可以判定出各矩形区域间的水平方向和竖直方向上的相对位置。 [0103] wherein, in each position of the rectangular area which can be represented by the top left corner coordinates, and thus can be determined that the relative position between the horizontal and vertical directions of each rectangular area.

[0104] 最后,对应隐藏区域列表中的每一个矩形区域,对当前页面相应的区域分别执行隐藏操作,隐藏各矩形区域,如图12所示。 [0104] Finally, each corresponding to a rectangular area list hidden area, an area corresponding to the current page are performed hide operation, the hidden each rectangular area, as shown in Fig.

[0105]当电子阅读器接收到键盘或触摸屏在被隐藏的矩形区域内的触发指令时,电子阅读器将该矩形区域内被隐藏的文字内容显示出来,如图13所示。 [0105] When the reader receives the electronic keyboard or touch screen is hidden within the instruction triggering the rectangular area, the electronic reader rectangular area hidden text is displayed, as shown in Fig. 当电子阅读器接收到在第一段所在矩形区域内的触发指令时,电子阅读器即将该段落的内容显示出来。 When the electronic reader receives the trigger command in the rectangular area where the first segment, the contents of the e-reader soon paragraph is displayed. 另外,当用户选择通过键盘上的方向键来选择触发隐藏的矩形区域时,电子阅读器会读取当前页面对应隐藏区域列表中存储的各矩形区域的位置来确定当前方向键输入的触发指令具体指定的是哪一位置上的隐藏的矩形区域。 Further, when the user selects to trigger the selected rectangular region hidden by the arrow keys on the keyboard, an electronic reader reads the position of the current page corresponding to each rectangular area stored in the hidden area of ​​the list to determine the trigger command current input a direction key specific specified rectangular region is hidden on which position.

[0106] 本发明提供了一种在电子阅读器中文字内容隐藏和显示的方法,方便了用户在阅读时进行自我考察和独立思考,提高了用户使用电子阅读器时的方便性。 [0106] The present invention provides a method for hiding and displaying text in an electronic reader, to facilitate user self Investigation Thoughts and independent upon reading, improving the convenience of the user when using an electronic reader.

[0107] 此外,本发明的文字隐藏规则的添加、存储、匹配的过程均作为独立的模块可以被各个解析器使用,减少了各种解析器软件在应用层实现本发明中的隐藏和显示功能的工作量。 [0107] Further, hiding rule to add text to the present invention, a memory, each matching process may be used as separate modules each parser, the parser software reduces the hide and show various functions in the application layer of the present invention workload.

[0108] 以上,仅为本发明的较佳实施例,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。 Changes or [0108] above are only preferred embodiments of the present invention, but the scope of the present invention is not limited thereto, any skilled in the art in the art within the scope of the invention disclosed can be easily thought of Alternatively, it shall fall within the protection scope of the present invention. 因此,本发明的保护范围应该以权利要求所界定的保护范围为准。 Accordingly, the scope of the present invention should be in the scope of the claims and their equivalents.

Claims (5)

  1. 1.一种电子阅读器文字的隐藏方法,其特征在于,包括以下步骤: 依据用户需求制定至少一个当前显示文档的文字隐藏规则,并将制定好的文字隐藏规则保存到当前显示文档对应的数据库中,以备下次打开该文档时直接调用;所述的文字隐藏规则包括确定锚点、划定匹配查找范围以及指定目标隐藏文本;其中, 所述的确定锚点,基于正则表达式描述用户所选择的文字内容; 所述的划定匹配查找范围,以所述锚点为查找起始点划定匹配查找的范围; 所述的指定目标隐藏文本,基于正则表达式描述在所述匹配查找范围内用户欲隐藏的目标文字内容; 依据上述文字隐藏规则查找出所有符合隐藏规则的字符,并计算出符合隐藏规则的所有字符所构成的矩形区域; 隐藏上述的矩形区域。 Hiding An electronic text reader, characterized in that it comprises the following steps: developing at least one current display text documents hidden rules based on user needs, and to develop good character hiding rule to save the currently displayed document corresponding database called directly in order to prepare for the next open the document; hidden text of the rule comprises determining anchors, and the delineation of the scope of targeting match lookup hidden text; wherein said anchor point is determined, based on regular expressions described user the selected text; the range delimitation match lookup, to find the starting point for the anchor is designated range-match lookup; targeting the hidden text, based on the description in the regular expression match lookup range To hide the target users within text; based on the above text to find hidden characters in line with the rules of all the hidden rules, and calculate all the characters in a rectangular area in line with rules posed by hidden; hidden above the rectangular area.
  2. 2.根据权利要求1所述电子阅读器文字的隐藏方法,其特征在于,依据用户需求制定至少一个当前显示文档的文字隐藏规则时,依据用户需求依次指定或通过鼠标设备在当前页面上框选出的部分内容来确定锚点、划定匹配查找范围以及指定目标隐藏文本。 2. A method according to claim 1 hidden text electronic reader as claimed in claim, wherein at least a hiding rule formulated text currently displayed document based on user needs, the marquee or sequentially designated by a mouse on the current page device based on user needs part of the anchor to determine, delimit the look and match targeting hidden text.
  3. 3.根据权利要求1所述电子阅读器文字的隐藏方法,其特征在于,依据所述的文字隐藏规则查找出所有符合隐藏规则的字符,并计算出符合隐藏规则的所有字符所构成的矩形区域,其具体实现步骤如下: S1:提取当前页面上所有文字字符以及每一个字符所在的矩形区域,并解析出当前页面上所有字符所组成的段落结构或依据换行符、行间距和/或行首字符的缩进值的大小确定出当前页面上所有字符所组成的段落结构; S2:读取已制定的当前显示文档的文字隐藏规则中的一条未调用的文字隐藏规则,并调用正则表达式引擎根据当前页面上所有字符所组成的段落结构在当前显示页面中查找符合当前读取的文字隐藏规则中锚点的所有字符,若能查找出,则进行步骤S3;若未能查找出,则进行步骤S4; 53:继续在当前读取的文字隐藏规则指定的匹配查找范围内的所有段 3. The method of claim 1 hidden text electronic reader as claimed in claim, characterized in that, to find the hidden text based on the rules of the hidden character matches all rules, and calculates a rectangular region in line with all the characters of the hiding rule constituted , specific implementation steps are as follows: S1: extract all the text characters on the current page, and a rectangular region of each character is located, and parsing the paragraph structure composed of all of the characters based on the current page or line breaks, line spacing, and / or the first row the size of the indent value to determine the character of the paragraph structure consisting of all characters on the current page; S2: read the established rules currently displayed text hidden text hidden in a rule document does not call, and call the regular expression engine Find according to paragraph structure consisting of all characters on the current page in the currently displayed page in line with all the characters in the text hidden rules currently read in the anchor, if we find out, go to step S3; if not find out, is performed step S4; 53: continue hiding rule specified in the text read by the current matching to find all segments within the scope of 中查找与所述目标隐藏文本相匹配的所有字符;若能查找出,则计算出各段落中与目标隐藏文本相匹配的所有字符所占据的矩形区域,并计算出各矩形区域所在的具体位置;然后,将各矩形区域位置和大小记录在当前页面对应的隐藏区域列表中,并继续进行步骤S4 ;若未能找出,则继续进行步骤S4 ; 54:判断是否还存在未调用的文字隐藏规则,是,返回步骤S2 ;否则,结束。 Find all the characters in the hidden text matches the target; find out if, the rectangular region is calculated all the characters in each paragraph and the hidden text matches a target occupied, and calculating the specific location of each rectangular area is located ; then, the position and size of each rectangular area in the current record corresponding to a page listing the concealed region and continues to step S4; if not located, then proceeds to step S4; 54: determining whether there is not called hidden text rule, yes, returns to step S2; otherwise, the end.
  4. 4.一种电子阅读器文字的隐藏装置,其特征在于,包括:文字隐藏规则制定模块、规则匹配计算模块和隐藏执行模块;其中, 所述文字隐藏规则制定模块,用于制定符合用户需求的至少一个当前显示文档的文字隐藏规则;所述的文字隐藏规则制定模块,包括确定锚点单元、划定匹配查找范围单元以及指定目标隐藏文本单元;其中,所述确定锚点单元,基于正则表达式描述用户所选择的文字内容;所述划定匹配查找范围单元,以确定锚点单元确定出的锚点为查找起始点划定匹配查找的范围;所述指定目标隐藏文本单元,基于正则表达式描述指定在所述划定匹配查找范围单元划定的范围内用户欲隐藏的目标文字内容; 隐藏规则存储模块,用于将制定好的文字隐藏规则保存到当前显示文档对应的数据库中,以备下次打开该文档时直接调用; 所述规则匹配 An electronic device hidden text reader, characterized by comprising: a rule decision block hidden text, and a rule matching calculation module hidden execution module; wherein the hidden text rule-making module, configured to meet the needs of users to develop at least one current hiding rule display text document; hidden text of the rule-making module comprising an anchor determination unit, designated match lookup scope unit and targeting hidden text unit; wherein the anchor means determining, based on regular expression content type description text selected by a user; delineation of the scope unit match lookup to determine the anchor unit determines that the designated starting point for finding the anchor points of the range-match lookup; targeting the hidden text unit, based on regular expression Specifies the type described in the scope unit designated match lookup designated target range of the user's text to be hidden; hiding rule storage module, configured to develop a good hiding rule is saved to the character database corresponding to the current display, to direct prepare for the next call to open the document; the rule matching 算模块,用于匹配查找出符合所述文字隐藏规则制定模块指定的文字隐藏规则的所有字符,并计算出所有匹配字符所构成的矩形区域; 所述隐藏执行模块,隐藏所述规则匹配计算模块计算得出的矩形区域。 Calculation module configured to find out all characters matching the text conforms to the rule-making module hidden hidden text specified rule, and calculates a rectangular region consisting of all matching characters; the hidden execution module, the hiding rule matching calculation module calculation of the rectangular area obtained.
  5. 5.根据权利要求4所述电子阅读器文字的隐藏装置,其特征在于,所述规则匹配计算模块,包括如下单元: 提取解析单元:提取当前页面上所有文字字符以及每一个字符所在的矩形区域,并解析出当前页面上所有字符所组成的段落结构或依据换行符、行间距和/或行首字符的缩进值的大小确定出当前页面上所有字符所组成的段落结构; 调用查找单元:调用正则表达式引擎在当前显示页面中查找出符合当前读取的文字隐藏规则中锚点的所有字符,以及在匹配查找范围内的所有段落中与所述目标隐藏文本相匹配的所有字符;以及, 矩形区域计算单元:计算出各段落中与目标隐藏文本相匹配的所有字符所占据的矩形区域,并计算出各矩形区域所在的具体位置;然后,将各矩形区域位置和大小记录在当前页面对应的隐藏区域列表中。 5. The four-electron character reader apparatus according to claim Hide, wherein the rule matching calculation module, comprising the following units: a parsing unit extraction: extract all the text characters in the rectangular regions on the page, and the current location of each character and parse out the paragraph structure consisting of all characters on the current page or line breaks based on the size of indents, line spacing and / or the first character in the paragraph to determine the structure consisting of all characters on the current page; call lookup unit: call the regular expression engine to find pages that meet all the characters of all the characters currently read text hidden rules in anchors, as well as all the paragraphs in the match to find the target in the range of hidden text that matches the current display; and rectangular area calculation unit: calculates a rectangular region of all of the characters in each paragraph and the target hidden text matches occupied, and calculating the specific location of each rectangular area is located; then, each of the rectangular area location and size of the recording sheet in the current corresponding hidden area list.
CN 201110039120 2011-02-16 2011-02-16 Text hiding and displaying method and device for electronic reader CN102646089B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110039120 CN102646089B (en) 2011-02-16 2011-02-16 Text hiding and displaying method and device for electronic reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110039120 CN102646089B (en) 2011-02-16 2011-02-16 Text hiding and displaying method and device for electronic reader

Publications (2)

Publication Number Publication Date
CN102646089A true CN102646089A (en) 2012-08-22
CN102646089B true CN102646089B (en) 2014-08-27

Family

ID=46658913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110039120 CN102646089B (en) 2011-02-16 2011-02-16 Text hiding and displaying method and device for electronic reader

Country Status (1)

Country Link
CN (1) CN102646089B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034468B (en) * 2012-12-18 2016-02-24 小米科技有限责任公司 A method and apparatus for displaying text
CN104317520B (en) * 2014-10-23 2017-08-01 小米科技有限责任公司 Display region of the content processing method and apparatus
CN104866785A (en) * 2015-05-18 2015-08-26 上海交通大学 Non-congestion window-based information security system and method in combination with eye tracking

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5999177A (en) 1997-07-07 1999-12-07 International Business Machines Corporation Method and system for controlling content on a display screen in a computer system
US7479968B2 (en) 2006-01-31 2009-01-20 Microsoft Corporation Semi-transparent highlighting of selected objects in electronic documents
CN101626451A (en) 2008-07-10 2010-01-13 富士施乐株式会社 Image processing system and image processing program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5999177A (en) 1997-07-07 1999-12-07 International Business Machines Corporation Method and system for controlling content on a display screen in a computer system
US7479968B2 (en) 2006-01-31 2009-01-20 Microsoft Corporation Semi-transparent highlighting of selected objects in electronic documents
CN101626451A (en) 2008-07-10 2010-01-13 富士施乐株式会社 Image processing system and image processing program

Also Published As

Publication number Publication date Type
CN102646089A (en) 2012-08-22 application

Similar Documents

Publication Publication Date Title
US20100172590A1 (en) Combined Image and Text Document
US20100218135A1 (en) Cursor thumbnail displaying page layout
US20060197782A1 (en) Method and system for zooming in and out of paginated content
US6435880B1 (en) Learning-support device and learning-support method
JP2006107048A (en) Controller and control method associated with line-of-sight
US20120235933A1 (en) Mobile terminal and recording medium
JP2007265171A (en) Input device and method thereof
CN101256467A (en) Electronic device and method capable of embodiment of electric document page-turning effect
JP2008250948A (en) Information processing device, information processing method, information processing program, storage medium recording information processing program, and information display device
US20070180362A1 (en) Method and algorithm for content layout across diverse and dynamic displays
CN103019609A (en) Screen region-dividing displaying method, device and touch screen terminal
US20090112474A1 (en) View-Independent Tagging of Geospatial Entities in Images
US20130066902A1 (en) Information processing apparatus, information processing method, and computer-readable storage medium
US20120005626A1 (en) Method and system for performing a web search via a client-side module
JP2002207754A (en) Electronic dictionary system and electronic dictionary system program therefor
CN103605739A (en) Method and device for displaying thermodynamic diagrams
CN102915425A (en) Confidential display method and confidential display device
US20120127192A1 (en) Method and apparatus for selective display
US20080193015A1 (en) Contextual input method
US9342233B1 (en) Dynamic dictionary based on context
JP2005063185A (en) Document retrieval system, question-answering system, and document retrieval method
CN102819416A (en) Method and device for realizing content display of component
JP2012123093A (en) Electronic book display device, method and program
US20120317476A1 (en) Digital Content Enhancement Platform
EP2503442A2 (en) Method and apparatus of managing items on clipboard of portable terminal

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted