[go: up one dir, main page]

CN107301157A - A kind of reading model switching position localization method and device - Google Patents

A kind of reading model switching position localization method and device Download PDF

Info

Publication number
CN107301157A
CN107301157A CN201610234749.1A CN201610234749A CN107301157A CN 107301157 A CN107301157 A CN 107301157A CN 201610234749 A CN201610234749 A CN 201610234749A CN 107301157 A CN107301157 A CN 107301157A
Authority
CN
China
Prior art keywords
reading
last
picture
document
read
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.)
Pending
Application number
CN201610234749.1A
Other languages
Chinese (zh)
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.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Jinshan Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Jinshan Mobile 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 Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Jinshan Mobile Technology Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201610234749.1A priority Critical patent/CN107301157A/en
Publication of CN107301157A publication Critical patent/CN107301157A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing

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)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention discloses a kind of reading model switching position localization method and device, current user is solved when two kinds of pattern switchings for reading word or file, caused each switching is required for returning to the place that document most starts, or wants to return to last time and browse the technical problem that position is accomplished by waiting.Reading model switching position localization method of the embodiment of the present invention includes:The instruction of word or file pattern switching is read when getting, last reading position is recorded;Document content interception to last reading position is picture;Picture is cached.

Description

一种阅读模式切换位置定位方法及装置A reading mode switching position positioning method and device

技术领域technical field

本发明涉及办公软件技术领域,尤其涉及一种阅读模式切换位置定位方法及装置。The present invention relates to the technical field of office software, in particular to a reading mode switching position positioning method and device.

背景技术Background technique

办公软件指可以进行文字处理、表格制作、幻灯片制作、图形图像处理、简单数据库的处理等方面工作的软件。尤其对于文字处理应用程序,给用户提供了用于创建专业而优雅的文档工具,帮助用户节省时间,并得到优雅美观的结果,不仅提供了许多易于使用的文档创建工具,同时也提供了丰富的功能集供创建复杂的文档使用。哪怕只使用文字处理应用程序,例如Word应用一点文本格式化操作或图片处理,也可以使简单的文档变得比只使用纯文本更具吸引力。Office software refers to software that can perform word processing, form production, slide production, graphics and image processing, and simple database processing. Especially for word processing applications, it provides users with tools for creating professional and elegant documents, helping users save time and get elegant and beautiful results. It not only provides many easy-to-use document creation tools, but also provides rich Feature set for creating complex documents. Even just using a word processing application, such as Word, applying a little text formatting or image manipulation can make a simple document more attractive than just plain text.

当前在应用内提供了两种阅读文字文档的模式,普通和自动换行(能字体放大自动换行),而当前文档的排版方式只能从头到尾顺序排版(因为文字文档的数据储存结构是一个队列型,后面的排版会依赖于前面的结果),就导致用户在这两个模式间切换的时候,每次切换都需要回到文档最开始的地方,或想要回到上次浏览位置就需要等待,而这种等待的时间会根据文档的大小出现大范围的波动。Currently, there are two modes for reading text documents in the application, normal and automatic line wrapping (capable of enlarging fonts and automatically wrapping lines), but the current document typesetting method can only be typeset sequentially from beginning to end (because the data storage structure of text documents is a queue Type, the subsequent typesetting will depend on the previous results), which causes the user to go back to the beginning of the document every time when switching between these two modes, or to go back to the last browsing position. Wait, and the waiting time will fluctuate widely according to the size of the document.

上述提及的用户在两种阅读文字文档的模式切换的时候,导致的每次切换都需要回到文档最开始的地方,或想要回到上次浏览位置就需要等待的技术问题,已成为本领域技术人员亟待解决的技术问题。As mentioned above, when the user switches between the two modes of reading text documents, the technical problem that each switch needs to go back to the beginning of the document, or to return to the last browsing position, has become a technical problem. A technical problem to be solved urgently by those skilled in the art.

发明内容Contents of the invention

本发明实施例提供的一种阅读模式切换位置定位方法及装置,解决了目前用户在两种阅读文字文档的模式切换的时候,导致的每次切换都需要回到文档最开始的地方,或想要回到上次浏览位置就需要等待的技术问题。The embodiment of the present invention provides a reading mode switching position positioning method and device, which solves the problem that the user needs to go back to the beginning of the document every time when switching between the two modes of reading text documents, or want to A technical issue that requires waiting to return to the last browsing location.

本发明实施例提供的一种阅读模式切换位置定位方法,包括:A reading mode switching position positioning method provided by an embodiment of the present invention includes:

当获取到阅读文字文档模式切换指令,记录最后阅读位置;When the command to switch the reading text document mode is obtained, record the last reading position;

对所述最后阅读位置的文档内容截取为图片;Intercepting the content of the document at the last reading position as a picture;

将所述图片进行缓存。The picture is cached.

可选地,当获取到阅读文字文档模式切换指令,记录最后阅读位置具体包括:Optionally, when the reading text document mode switching instruction is obtained, the recording of the last reading position specifically includes:

当获取到阅读文字文档模式切换指令,并记录当前阅读模式阅读到的所述最后阅读位置。When the reading text document mode switching instruction is obtained, the last reading position read in the current reading mode is recorded.

可选地,当获取到阅读文字文档模式切换指令,记录最后阅读位置具体包括:Optionally, when the reading text document mode switching instruction is obtained, the recording of the last reading position specifically includes:

当获取到阅读文字文档模式切换指令,实时记录当前阅读模式阅读到的阅读位置,并根据最后更新时间确定所述最后阅读位置。When the text document reading mode switching instruction is obtained, the reading position read in the current reading mode is recorded in real time, and the final reading position is determined according to the last update time.

可选地,对所述最后阅读位置的文档内容截取为图片具体包括:Optionally, intercepting the content of the document at the last reading position as a picture specifically includes:

对当前阅读模式阅读到的所述最后阅读位置的文档内容进行可视区域及其前后预置区域的图片截取。The content of the document at the last reading position read in the current reading mode is captured by the visible area and the picture of the preset area before and after.

可选地,将所述图片进行缓存之后还包括:Optionally, after caching the picture, it also includes:

根据切换到的另一阅读文字文档模式,从缓存中提取所述图片并展示,同时对所述文档重头开始排版或从所述最后浏览位置开始排版。According to another mode of reading the text document switched, the picture is extracted from the cache and displayed, and at the same time, the typesetting of the document is restarted or typesetting is started from the last browsing position.

本发明实施例提供的一种阅读模式切换位置定位装置,包括:A reading mode switching position positioning device provided by an embodiment of the present invention includes:

记录单元,用于当获取到阅读文字文档模式切换指令,记录最后阅读位置;The recording unit is used to record the last reading position when the reading text document mode switching instruction is acquired;

图片截取单元,用于对所述最后阅读位置的文档内容截取为图片;a picture intercepting unit, configured to capture the content of the document at the last reading position as a picture;

缓存单元,用于将所述图片进行缓存。The cache unit is configured to cache the picture.

可选地,记录单元具体包括:Optionally, the recording unit specifically includes:

第一记录子单元,用于当获取到阅读文字文档模式切换指令,并记录当前阅读模式阅读到的所述最后阅读位置。The first recording subunit is configured to record the last reading position read in the current reading mode when the switching instruction for reading text documents is acquired.

可选地,记录单元具体包括:Optionally, the recording unit specifically includes:

第二记录子单元,用于当获取到阅读文字文档模式切换指令,实时记录当前阅读模式阅读到的阅读位置,并根据最后更新时间确定所述最后阅读位置。The second recording subunit is configured to record the reading position read in the current reading mode in real time when the text document reading mode switching instruction is acquired, and determine the final reading position according to the last update time.

可选地,图片截取单元,具体用于对当前阅读模式阅读到的所述最后阅读位置的文档内容进行可视区域及其前后预置区域的图片截取。Optionally, the picture capture unit is specifically configured to capture pictures of the visible area and the preset areas before and after the content of the document at the last reading position read in the current reading mode.

可选地,所述阅读模式切换位置定位装置还包括:Optionally, the reading mode switching position positioning device further includes:

提取单元,用于根据切换到的另一阅读文字文档模式,从缓存中提取所述图片并展示,同时对所述文档重头开始排版或从所述最后浏览位置开始排版。The extraction unit is configured to extract the picture from the cache and display it according to another mode of reading the text document switched to, and at the same time start typesetting the document from the beginning or from the last browsing position.

从以上技术方案可以看出,本发明实施例具有以下优点:It can be seen from the above technical solutions that the embodiments of the present invention have the following advantages:

本发明实施例提供的一种阅读模式切换位置定位方法及装置,其中,阅读模式切换位置定位方法包括:当获取到阅读文字文档模式切换指令,记录最后阅读位置;对最后阅读位置的文档内容截取为图片;将图片进行缓存。本实施例中,通过当获取到阅读文字文档模式切换指令,记录最后阅读位置;对最后阅读位置的文档内容截取为图片;将图片进行缓存,解决了目前用户在两种阅读文字文档的模式切换的时候,导致的每次切换都需要回到文档最开始的地方,或想要回到上次浏览位置就需要等待的技术问题。A method and device for locating a reading mode switching position provided by an embodiment of the present invention, wherein the reading mode switching position locating method includes: recording the last reading position when the reading text document mode switching instruction is obtained; intercepting the document content of the last reading position It is a picture; the picture is cached. In this embodiment, when the mode switching instruction for reading text documents is obtained, the last reading position is recorded; the content of the document at the last reading position is intercepted as a picture; Sometimes, every time you switch, you need to go back to the beginning of the document, or you need to wait for technical problems if you want to go back to the last browsing position.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings on the premise of not paying creative efforts.

图1为本发明实施例提供的一种阅读模式切换位置定位方法的一个实施例的流程示意图;FIG. 1 is a schematic flowchart of an embodiment of a reading mode switching position positioning method provided by an embodiment of the present invention;

图2为本发明实施例提供的一种阅读模式切换位置定位方法的另一个实施例的流程示意图;Fig. 2 is a schematic flowchart of another embodiment of a reading mode switching position locating method provided by an embodiment of the present invention;

图3为本发明实施例提供的一种阅读模式切换位置定位装置的一个实施例的结构示意图;Fig. 3 is a schematic structural diagram of an embodiment of a reading mode switching position positioning device provided by an embodiment of the present invention;

图4为本发明实施例提供的一种阅读模式切换位置定位装置的另一个实施例的结构示意图。Fig. 4 is a schematic structural diagram of another embodiment of a reading mode switching position locating device provided by an embodiment of the present invention.

具体实施方式detailed description

本发明实施例提供的一种阅读模式切换位置定位方法及装置,解决了目前用户在两种阅读文字文档的模式切换的时候,导致的每次切换都需要回到文档最开始的地方,或想要回到上次浏览位置就需要等待的技术问题。The embodiment of the present invention provides a reading mode switching position positioning method and device, which solves the problem that the user needs to go back to the beginning of the document every time when switching between the two modes of reading text documents, or want to A technical issue that requires waiting to return to the last browsing location.

为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,下面所描述的实施例仅仅是本发明一部分实施例,而非全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the following The described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

请参阅图1,本发明实施例提供的一种阅读模式切换位置定位方法的一个实施例包括:Please refer to FIG. 1 , an embodiment of a reading mode switching position positioning method provided by an embodiment of the present invention includes:

101、当获取到阅读文字文档模式切换指令,记录最后阅读位置;101. When the reading text document mode switching instruction is obtained, record the last reading position;

本实施例中,当用户在这两个模式间切换的时候,每次切换都需要回到文档最开始的地方,或想要回到上次浏览位置,首先需当获取到阅读文字文档模式切换指令,记录最后阅读位置。In this embodiment, when the user switches between these two modes, each switch needs to return to the beginning of the document, or wants to return to the last browsing position, first of all, when the mode of reading the text document is obtained command to record the last read position.

102、对最后阅读位置的文档内容截取为图片;102. Intercept the content of the document at the last reading position as a picture;

当获取到阅读文字文档模式切换指令,记录最后阅读位置之后,需要对最后阅读位置的文档内容截取为图片。After obtaining the mode switching command for reading text documents and recording the last reading position, it is necessary to capture the content of the document at the last reading position as a picture.

103、将图片进行缓存。103. Cache the picture.

当对最后阅读位置的文档内容截取为图片之后,需要将图片进行缓存。After the content of the document at the last reading position is captured as a picture, the picture needs to be cached.

本实施例中,通过当获取到阅读文字文档模式切换指令,记录最后阅读位置;对最后阅读位置的文档内容截取为图片;将图片进行缓存,解决了目前用户在两种阅读文字文档的模式切换的时候,导致的每次切换都需要回到文档最开始的地方,或想要回到上次浏览位置就需要等待的技术问题。In this embodiment, when the mode switching instruction for reading text documents is obtained, the last reading position is recorded; the content of the document at the last reading position is intercepted as a picture; Sometimes, every time you switch, you need to go back to the beginning of the document, or you need to wait for technical problems if you want to go back to the last browsing position.

上面是对阅读模式切换位置定位方法的过程进行详细的描述,下面将对各步骤具体过程进行详细的描述,请参阅图2,本发明实施例提供的一种阅读模式切换位置定位方法的另一个实施例包括:The above is a detailed description of the process of the reading mode switching position positioning method. The specific process of each step will be described in detail below. Please refer to FIG. 2, another example of a reading mode switching position positioning method provided by the embodiment of the present invention Examples include:

201、当获取到阅读文字文档模式切换指令,记录当前阅读模式阅读到的最后阅读位置或实时记录当前阅读模式阅读到的阅读位置,并根据最后更新时间确定最后阅读位置;201. When the reading text document mode switching instruction is obtained, record the last reading position read in the current reading mode or record the reading position read in the current reading mode in real time, and determine the final reading position according to the last update time;

本实施例中,当用户在这两个模式间切换的时候,每次切换都需要回到文档最开始的地方,或想要回到上次浏览位置,首先需要当获取到阅读文字文档模式切换指令,记录当前阅读模式阅读到的最后阅读位置或实时记录当前阅读模式阅读到的阅读位置,并根据最后更新时间确定最后阅读位置。In this embodiment, when the user switches between these two modes, each switch needs to go back to the beginning of the document, or wants to go back to the last browsing position, first of all, when the mode of reading the text document is obtained, it needs to switch Instructions, record the last reading position read in the current reading mode or record the reading position read in the current reading mode in real time, and determine the last reading position according to the last update time.

例如获知用户进行阅读文字文档模式切换后,记录当前浏览位置(也可实时的记录当前的浏览位置)。For example, after it is learned that the user has switched the reading mode of the text document, the current browsing position is recorded (the current browsing position can also be recorded in real time).

202、对当前阅读模式阅读到的最后阅读位置的文档内容进行可视区域及其前后预置区域的图片截取;202. Intercepting the images of the visible area and its front and rear preset areas for the content of the document at the last reading position read in the current reading mode;

当当获取到阅读文字文档模式切换指令,记录当前阅读模式阅读到的最后阅读位置或实时记录当前阅读模式阅读到的阅读位置,并根据最后更新时间确定最后阅读位置之后,需要对当前阅读模式阅读到的最后阅读位置的文档内容进行可视区域及其前后预置区域的图片截取。When the reading text document mode switching command is obtained, the last reading position read in the current reading mode is recorded or the reading position read in the current reading mode is recorded in real time, and the final reading position is determined according to the last update time, the current reading mode needs to be read. The content of the document at the last reading position of the document is intercepted in the visible area and the picture of the preset area before and after.

例如将可视区域在内的前后区域截图缓存在应用中(具体截取多少可自定义),并记录截图对应的文档。For example, cache screenshots of the front and rear areas including the visible area in the application (the specific amount of screenshots can be customized), and record the corresponding documents of the screenshots.

203、将图片进行缓存;203. Cache the picture;

当对当前阅读模式阅读到的最后阅读位置的文档内容进行可视区域及其前后预置区域的图片截取之后,需要将图片进行缓存。After the content of the document at the last reading position read in the current reading mode is captured in the visible area and the pictures of the preset areas before and after, the pictures need to be cached.

204、根据切换到的另一阅读文字文档模式,从缓存中提取图片并展示,同时对文档重头开始排版或从最后浏览位置开始排版。204. According to another mode of reading the text document switched to, extract the picture from the cache and display it, and at the same time start typesetting the document from the beginning or from the last browsing position.

当将图片进行缓存之后,需要根据切换到的另一阅读文字文档模式,从缓存中提取图片并展示,同时对文档重头开始排版或从最后浏览位置开始排版。After the picture is cached, it is necessary to extract the picture from the cache and display it according to another mode of reading the text document switched to, and at the same time, typesetting the document from the beginning or from the last browsing position.

例如切换阅读模式后,在缓存中读取此文档之前截取的图片并展示。同时文档在后台继续从头开始排版。或者是图片记录上次打开位置的同时也可以将记录字符作为可选项,即打开文档的时候显示截图部分,然后后台其实是在从上次记录的字符处开始排版。For example, after switching the reading mode, read and display the pictures captured before this document in the cache. Meanwhile the document continues to be typeset from scratch in the background. Or you can also record the recorded characters as an option while recording the last opened position of the picture, that is, the screenshot part is displayed when the document is opened, and then the background is actually typesetting from the last recorded character.

本实施例中,通过当获取到阅读文字文档模式切换指令,记录最后阅读位置;对最后阅读位置的文档内容截取为图片;将图片进行缓存,解决了目前用户在两种阅读文字文档的模式切换的时候,导致的每次切换都需要回到文档最开始的地方,或想要回到上次浏览位置就需要等待的技术问题。In this embodiment, when the mode switching instruction for reading text documents is obtained, the last reading position is recorded; the content of the document at the last reading position is intercepted as a picture; Sometimes, every time you switch, you need to go back to the beginning of the document, or you need to wait for technical problems if you want to go back to the last browsing position.

请参阅图3,本发明实施例中提供的一种阅读模式切换位置定位装置的一个实施例包括:Please refer to FIG. 3 , an embodiment of a reading mode switching position positioning device provided in an embodiment of the present invention includes:

记录单元301,用于当获取到阅读文字文档模式切换指令,记录最后阅读位置;The recording unit 301 is used to record the last reading position when the mode switching instruction for reading text documents is acquired;

图片截取单元302,用于对最后阅读位置的文档内容截取为图片;A picture intercepting unit 302, configured to capture the content of the document at the last reading position as a picture;

缓存单元303,用于将图片进行缓存。The cache unit 303 is configured to cache the pictures.

本实施例中,通过记录单元301当获取到阅读文字文档模式切换指令,记录最后阅读位置;图片截取单元302对最后阅读位置的文档内容截取为图片;缓存单元303将图片进行缓存,解决了目前用户在两种阅读文字文档的模式切换的时候,导致的每次切换都需要回到文档最开始的地方,或想要回到上次浏览位置就需要等待的技术问题。In this embodiment, when the reading text document mode switching instruction is acquired by the recording unit 301, the last reading position is recorded; the picture interception unit 302 intercepts the content of the document at the last reading position as a picture; the cache unit 303 caches the picture, solving the current problem When the user switches between the two modes of reading the text document, each switch needs to return to the beginning of the document, or the technical problem that needs to be waited to return to the last browsing position.

上面是对阅读模式切换位置定位装置的各单元进行详细的描述,下面将对子单元进行详细的描述,请参阅图4,本发明实施例中提供的一种阅读模式切换位置定位装置的另一个实施例包括:The above is a detailed description of each unit of the reading mode switching position positioning device, and the subunits will be described in detail below. Please refer to FIG. 4, another example of a reading mode switching position positioning device provided in an embodiment of the present invention Examples include:

记录单元401,用于当获取到阅读文字文档模式切换指令,记录最后阅读位置;The recording unit 401 is used to record the last reading position when the mode switching instruction for reading text documents is acquired;

记录单元具体包括:The recording unit specifically includes:

第一记录子单元4011,用于当获取到阅读文字文档模式切换指令,并记录当前阅读模式阅读到的最后阅读位置。The first recording subunit 4011 is configured to record the last reading position read in the current reading mode when the switching instruction for reading text documents is acquired.

第二记录子单元4012,当获取到阅读文字文档模式切换指令,实时记录当前阅读模式阅读到的阅读位置,并根据最后更新时间确定最后阅读位置。The second recording subunit 4012, when acquiring the text document reading mode switching instruction, records the reading position read in the current reading mode in real time, and determines the final reading position according to the last update time.

图片截取单元402,用于对最后阅读位置的文档内容截取为图片,图片截取单元402,具体用于对当前阅读模式阅读到的最后阅读位置的文档内容进行可视区域及其前后预置区域的图片截取。The picture intercepting unit 402 is used to intercept the document content of the last reading position as a picture, and the picture intercepting unit 402 is specifically used to carry out the visual area and the preset area before and after the document content of the last reading position read by the current reading mode Image capture.

缓存单元403,用于将图片进行缓存。The cache unit 403 is configured to cache the pictures.

提取单元403,用于根据切换到的另一阅读文字文档模式,从缓存中提取图片并展示,同时对文档重头开始排版或从最后浏览位置开始排版。The extracting unit 403 is configured to extract pictures from the cache and display them according to another text document reading mode switched to, and at the same time, start typesetting the document from the beginning or from the last browsing position.

本实施例中,通过记录单元401当获取到阅读文字文档模式切换指令,记录最后阅读位置;图片截取单元402对最后阅读位置的文档内容截取为图片;缓存单元403将图片进行缓存,解决了目前用户在两种阅读文字文档的模式切换的时候,导致的每次切换都需要回到文档最开始的地方,或想要回到上次浏览位置就需要等待的技术问题。In this embodiment, when the reading text document mode switching instruction is acquired by the recording unit 401, the last reading position is recorded; the picture interception unit 402 intercepts the document content of the last reading position as a picture; the cache unit 403 caches the picture, solving the current problem When the user switches between the two modes of reading the text document, each switch needs to return to the beginning of the document, or the technical problem that needs to be waited to return to the last browsing position.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes.

以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still understand the foregoing The technical solutions recorded in each embodiment are modified, or some of the technical features are replaced equivalently; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (10)

1. a kind of reading model switching position localization method, it is characterised in that including:
The instruction of word or file pattern switching is read when getting, last reading position is recorded;
Document content interception to the last reading position is picture;
The picture is cached.
2. reading model switching position localization method according to claim 1, it is characterised in that when The pattern switching instruction of reading word or file is got, last reading position is recorded and specifically includes:
The instruction of word or file pattern switching is read when getting, and records the institute that current reading model is read State last reading position.
3. reading model switching position localization method according to claim 1, it is characterised in that when The pattern switching instruction of reading word or file is got, last reading position is recorded and specifically includes:
The instruction of word or file pattern switching is read when getting, records what current reading model was read in real time Reading position, and the last reading position is determined according to the final updating time.
4. reading model switching position localization method according to claim 3, it is characterised in that right The document content interception of the last reading position specifically includes for picture:
The document content of the last reading position read to current reading model carry out viewing area and The picture interception of its front and rear preset regions.
5. reading model switching position localization method according to claim 4, it is characterised in that will The picture also includes after being cached:
According to another reading word or file pattern being switched to, the picture is extracted from caching and is shown, The document accent is started simultaneously typesetting or since it is described it is last browse position typesetting.
6. a kind of reading model switching position positioner, it is characterised in that including:
Recording unit, for when getting the pattern switching instruction of reading word or file, record is last to read position Put;
Picture interception unit, is picture for the document content interception to the last reading position;
Buffer unit, for the picture to be cached.
7. reading model switching position positioner according to claim 6, it is characterised in that note Record unit is specifically included:
First record subelement, the pattern switching instruction of reading word or file is got for working as, and record is worked as The last reading position that preceding reading model is read.
8. reading model switching position positioner according to claim 6, it is characterised in that note Record unit is specifically included:
Second record subelement, gets the pattern switching instruction of reading word or file, in real time record for working as The reading position that current reading model is read, and the last reading position is determined according to the final updating time Put.
9. reading model switching position positioner according to claim 8, it is characterised in that figure Piece interception unit, specifically in the document of the last reading position read to current reading model Hold the picture interception for carrying out viewing area and its front and rear preset regions.
10. reading model switching position positioner according to claim 8, it is characterised in that The reading model switching position positioner also includes:
Extraction unit, for according to another reading word or file pattern being switched to, institute to be extracted from caching State picture and show, at the same the document accent is started typesetting or since it is described it is last browse position arrange Version.
CN201610234749.1A 2016-04-14 2016-04-14 A kind of reading model switching position localization method and device Pending CN107301157A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610234749.1A CN107301157A (en) 2016-04-14 2016-04-14 A kind of reading model switching position localization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610234749.1A CN107301157A (en) 2016-04-14 2016-04-14 A kind of reading model switching position localization method and device

Publications (1)

Publication Number Publication Date
CN107301157A true CN107301157A (en) 2017-10-27

Family

ID=60136892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610234749.1A Pending CN107301157A (en) 2016-04-14 2016-04-14 A kind of reading model switching position localization method and device

Country Status (1)

Country Link
CN (1) CN107301157A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070055885A1 (en) * 2005-09-08 2007-03-08 Canon Kabushiki Kaisha Information processing apparatus, information processing method, and computer readable storage medium
CN101840298A (en) * 2010-02-26 2010-09-22 汉王科技股份有限公司 Method and device for switching and displaying in electronic reader
CN102902680A (en) * 2011-07-26 2013-01-30 中兴通讯股份有限公司 Touch-screen terminal and method for locating E-documents in touch-screen terminal
CN103294650A (en) * 2012-02-29 2013-09-11 北大方正集团有限公司 Method and device for displaying electronic document
CN104537123A (en) * 2015-01-27 2015-04-22 三星电子(中国)研发中心 Method and device for quickly browsing document
CN105117367A (en) * 2015-09-21 2015-12-02 联想(北京)有限公司 Electronic book switching method and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070055885A1 (en) * 2005-09-08 2007-03-08 Canon Kabushiki Kaisha Information processing apparatus, information processing method, and computer readable storage medium
CN101840298A (en) * 2010-02-26 2010-09-22 汉王科技股份有限公司 Method and device for switching and displaying in electronic reader
CN102902680A (en) * 2011-07-26 2013-01-30 中兴通讯股份有限公司 Touch-screen terminal and method for locating E-documents in touch-screen terminal
CN103294650A (en) * 2012-02-29 2013-09-11 北大方正集团有限公司 Method and device for displaying electronic document
CN104537123A (en) * 2015-01-27 2015-04-22 三星电子(中国)研发中心 Method and device for quickly browsing document
CN105117367A (en) * 2015-09-21 2015-12-02 联想(北京)有限公司 Electronic book switching method and electronic equipment

Similar Documents

Publication Publication Date Title
US20120131520A1 (en) Gesture-based Text Identification and Selection in Images
CN110674814A (en) A picture recognition and translation method, terminal and medium
CN107992246A (en) Video editing method and device and intelligent terminal
CN114564131B (en) Content publishing method, device, computer equipment and storage medium
CN104808903B (en) Text selection method and device
CN103098001B (en) User interface processing method and electronic device
WO2016101717A1 (en) Touch interaction-based search method and device
CN113705156B (en) Character processing method and device
US20170205980A1 (en) Method and an apparatus for providing a multitasking view
CN107025100A (en) Play method, interface rendering intent and device, the equipment of multi-medium data
US10120539B2 (en) Method and device for setting user interface
WO2017206248A1 (en) Method and device for inputting information
US9934610B2 (en) Techniques for rendering and caching graphics assets
CN112235632A (en) Video processing method and device and server
WO2018113220A1 (en) Method and apparatus for displaying large-screen content on small screen
CN113849713A (en) Search result display method and device, computer equipment and storage medium
CN113592872A (en) Picture display method and device and computer storage medium
US12197707B2 (en) Content sharing method and apparatus, device, and storage medium
CN107301161A (en) A kind of reading model switching position localization method and device
TW201820112A (en) Information displayed while information is scrolled on a terminal screen
CN107301157A (en) A kind of reading model switching position localization method and device
CN107133204A (en) A kind of terminal shortcut input method
CN106295632A (en) Method and device for adjusting content of search questions
CN107544985A (en) A kind of presentation file special-effect matching process and device
CN107301036A (en) A kind of method and device of quick screening lantern slide

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171027