CN101923535A - Method for processing word size of rich text formatted file - Google Patents

Method for processing word size of rich text formatted file Download PDF

Info

Publication number
CN101923535A
CN101923535A CN2009100574024A CN200910057402A CN101923535A CN 101923535 A CN101923535 A CN 101923535A CN 2009100574024 A CN2009100574024 A CN 2009100574024A CN 200910057402 A CN200910057402 A CN 200910057402A CN 101923535 A CN101923535 A CN 101923535A
Authority
CN
China
Prior art keywords
file
size
font size
font
electronic reading
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
CN2009100574024A
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.)
Shanghai Shengxuan Network Technology Co., Ltd.
Original Assignee
Shanda Computer Shanghai 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 Shanda Computer Shanghai Co Ltd filed Critical Shanda Computer Shanghai Co Ltd
Priority to CN2009100574024A priority Critical patent/CN101923535A/en
Publication of CN101923535A publication Critical patent/CN101923535A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Document Processing Apparatus (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a method for processing the word size of a rich text formatted file, comprising the following steps of: (1) obtaining the word size currently set by a user in a configuration file on an electronic reading device; (2) counting the occurrence frequency of the word sizes in the source file text; (3) converting the word size in the source file with the highest frequency according to the size configured by the user on the electronic reading device in the file conversion process, scaling the other corresponding fonts in equal ratio according to the relevant pixel size, or replacing with the proximate word size; (4) recomposing the converted file according to the size of a screen of the electronic reading device, and maintaining the file format; and (5) obtaining the optimum reading mode on the electronic reading device for the file after format conversion of file word size. The invention solves the problem of display of the font size of characters in different application platforms.

Description

The implementation method that rich text formatted file font size is handled
Technical field
The present invention relates to a kind of literal processing method, particularly relate to the implementation method that a kind of rich text formatted file font size is handled.
Background technology
Along with the development of technology, handheld device is more and more, such as e-book, PDA (Personal Digital Assistant, personal digital assistant), PSP (PlayStation Portable, handheld device), mobile phone etc.A lot of hand-hold electronic equipments are supported the manual copy of user or download the file on the electronic equipment automatically to read whenever and wherever possible in reading process.Present electronic equipment can support that the file layout of reading is more and more, and great majority are supported the file of TXT form.But the form of current file in download has PDF, HTML, DOC, RTF etc. to have the file of Rich Media's form, these formatted files resolution when being applied to PC (computing machine) and going up is 1024 * 768, when on some specific electron product, using, resolution is 600 * 800, when the document that PC go up is shown as the user was directly downloaded to and uses on the specific electron product, the demonstration of literal will go wrong.
Based on above-mentioned problem, need a kind of energy of exploitation to solve the implementation method that the font demonstration is regulated in different application platforms.
Summary of the invention
The technical problem to be solved in the present invention provides the implementation method that a kind of rich text formatted file font size is handled, to solve the problem that shows in different electronic reading equipment application platform Chinese words font sizes.
For solving the problems of the technologies described above, the implementation method that rich text formatted file font size of the present invention is handled comprises step:
The first step is obtained the font size of the current setting of user the configuration file from electronic reading equipment, obtain the size that the most suitable each user reads font;
Second step, the frequency that various font sizes occur in the statistics source file text;
The 3rd step, the font size that obtaining on the highest font size and the electronic reading equipment appears in source file text medium frequency is mated, in the document transfer process, the size of the font size that the frequency of occurrences is the highest in the source file is changed according to user configured size on the electronic reading equipment, other corresponding font sizes (the highest font size of non-frequency that occurs in the source file), can carry out uniform zoom according to relevant pixel size, perhaps find immediate font size to replace;
In the 4th step, the document after the conversion is set type again according to the screen size of electronic reading equipment, and the file layout of document is constant;
The 5th the step, finish document font size format conversion after, the document on electronic reading equipment, obtains the best reading model.
Described electronic reading equipment comprises e-book, PDA, PSP, mobile phone.
Described source file comprises that from manual copy of user or automatic downloaded files PDF, HTML, DOC, RTF etc. have the file of Rich Media's form.
By adopting said method, the invention solves the problem that shows in different electronic reading equipment application platform Chinese words font sizes, conveniently browse and read.
Description of drawings
The present invention is further detailed explanation below in conjunction with accompanying drawing and embodiment:
Fig. 1 is the process flow diagram to the processing of rich text formatted file font size that the present invention realizes.
Embodiment
Below by adopting the inventive method, it is example that the document (pdf document that has Rich Media's form) that the solution user upward shows PC downloads to the character script size demonstration problem that occurs on the e-book reading device, with technical characterictic and the function characteristics of understanding the inventive method.
For solving the character script size demonstration problem that above-mentioned document occurs, the implementation method that the rich text formatted file font size that adopts in the present embodiment is handled as shown in Figure 1, specifically may further comprise the steps:
The first step is obtained the font size of the current setting of user the configuration file from e-book reading device, obtain the size that the most suitable user reads font;
Second step, the frequency that various font sizes occur in the statistics source file text;
The 3rd step, the font size that obtaining on the highest font size and the e-book reading device appears in source file text medium frequency is mated, in the document transfer process, the size of the font size that the source file medium frequency is the highest is changed according to user configured size on the e-book reading device, other corresponding font sizes in the source file, can carry out uniform zoom according to relevant pixel size, perhaps find immediate font size to replace;
In the 4th step, the document after the conversion is set type again according to the screen size of e-book reading device, but the file layout of document constant (still being PDF);
In the 5th step, finish document font size format conversion.
By above-mentioned steps, the document just can obtain best reading model on e-book reading device.

Claims (5)

1. the implementation method handled of a rich text formatted file font size, step comprises:
The first step is obtained the font size of the current setting of user the configuration file from electronic reading equipment;
Second step, the frequency that various font sizes occur in the statistics source file text;
The 3rd step, the font size that obtaining on the highest font size and the electronic reading equipment appears in source file text medium frequency is mated, in the document transfer process, the size of the font size that the source file medium frequency is the highest is changed according to user configured size on the electronic reading equipment, other corresponding font sizes carry out uniform zoom according to relevant pixel size in the source file, perhaps find immediate font size to replace;
In the 4th step, the document after the conversion is set type again according to the screen size of electronic reading equipment;
In the 5th step, finish document font size format conversion.
2. the implementation method that rich text formatted file font size as claimed in claim 1 is handled, it is characterized in that: described electronic reading equipment comprises e-book, PDA, PSP, mobile phone.
3. the implementation method that rich text formatted file font size as claimed in claim 1 is handled, it is characterized in that: the font size in the described first step is best suited for the size that each user reads font.
4. the implementation method of rich text formatted file font size processing as claimed in claim 1 is characterized in that: the source file in described second step is PDF, HTML, DOC or the RTF file that has Rich Media's form that comprise from manual copy of user or automatic download.
5. the implementation method that rich text formatted file font size as claimed in claim 1 is handled is characterized in that: the file layout of the document in described the 4th step is constant.
CN2009100574024A 2009-06-11 2009-06-11 Method for processing word size of rich text formatted file Pending CN101923535A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100574024A CN101923535A (en) 2009-06-11 2009-06-11 Method for processing word size of rich text formatted file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100574024A CN101923535A (en) 2009-06-11 2009-06-11 Method for processing word size of rich text formatted file

Publications (1)

Publication Number Publication Date
CN101923535A true CN101923535A (en) 2010-12-22

Family

ID=43338479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100574024A Pending CN101923535A (en) 2009-06-11 2009-06-11 Method for processing word size of rich text formatted file

Country Status (1)

Country Link
CN (1) CN101923535A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662928A (en) * 2012-03-28 2012-09-12 福建榕基软件股份有限公司 Rich text editing method for importing documents and device thereof
CN102681980A (en) * 2011-03-17 2012-09-19 珠海全志科技股份有限公司 Typesetting processing method and device based on original document
CN103200218A (en) * 2013-02-04 2013-07-10 百度在线网络技术(北京)有限公司 Electronic document providing method, electronic document providing system and mother book server
CN103280208A (en) * 2013-06-07 2013-09-04 珠海金山办公软件有限公司 Method and device for automatically adjusting text display size
CN104850316A (en) * 2015-04-29 2015-08-19 小米科技有限责任公司 Method and device for adjusting fonts of electronic books
CN106445320A (en) * 2016-09-08 2017-02-22 广东源恒软件科技有限公司 Method and device for manufacturing and displaying contents of electronic book
CN110059299A (en) * 2019-03-29 2019-07-26 惠州Tcl移动通信有限公司 E-book character style control method, device, electronic equipment and storage medium

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681980A (en) * 2011-03-17 2012-09-19 珠海全志科技股份有限公司 Typesetting processing method and device based on original document
CN102681980B (en) * 2011-03-17 2014-08-13 珠海全志科技股份有限公司 Typesetting processing method and device based on original document
CN102662928A (en) * 2012-03-28 2012-09-12 福建榕基软件股份有限公司 Rich text editing method for importing documents and device thereof
CN103200218A (en) * 2013-02-04 2013-07-10 百度在线网络技术(北京)有限公司 Electronic document providing method, electronic document providing system and mother book server
CN103200218B (en) * 2013-02-04 2017-06-20 百度在线网络技术(北京)有限公司 The offer method of electronic document, system and mother book server
CN103280208A (en) * 2013-06-07 2013-09-04 珠海金山办公软件有限公司 Method and device for automatically adjusting text display size
CN103280208B (en) * 2013-06-07 2015-12-09 珠海金山办公软件有限公司 A kind of method of automatic adjustment text importing size and device
CN104850316A (en) * 2015-04-29 2015-08-19 小米科技有限责任公司 Method and device for adjusting fonts of electronic books
CN106445320A (en) * 2016-09-08 2017-02-22 广东源恒软件科技有限公司 Method and device for manufacturing and displaying contents of electronic book
CN110059299A (en) * 2019-03-29 2019-07-26 惠州Tcl移动通信有限公司 E-book character style control method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN101923535A (en) Method for processing word size of rich text formatted file
CN100383783C (en) Presenting html content on a small screen terminal display
CN101364216B (en) Method and device for displaying electronic book documentary on mobile terminal
CN102165393B (en) Editing 2D structures using natural input
Uther Mobile Internet usability: What can'mobile learning'learn from the past?
CN101882055A (en) Method and device for displaying page in zoomed mode on terminal
CN101695198B (en) Method and system for realizing optimizing page pictures of wireless application protocol
CN111783414A (en) Label printing template generation method and device
US9117314B2 (en) Information output apparatus, method, and recording medium for displaying information on a video display
CN102831154B (en) The method and apparatus of data in the Text Entry of preservation and display web page
CN103118107A (en) Electronic specification implementation method based on cloud end
CN102402500A (en) Method and system for conversion of PDF (Portable Document Format) file into SWF (Shock Wave Flash) file
CN106020504A (en) Information output method and device
CN102314499A (en) Method and equipment for processing webpage content
CN102567031A (en) Video special effect extension method and video special effect extension system
CN103870444A (en) Image cutting method and system for image type texts
CN102955852A (en) Method, device and equipment for webpage resource processing
CN104216868B (en) A kind of adaptation method and device of document display format
JP2012048555A (en) Document display method, document display device and document display program
CN105824951A (en) Retrieval method and retrieval device
CN102467385A (en) Method and device for software interface to adapt to different resolutions
CN101923452A (en) Method and device for printing webpage contents based on mobile terminal
CN103886086A (en) Cross-browser file-displaying system and method
CN101702149B (en) Method for displaying electronic book with movable terminal and device thereof
CN102637159A (en) Document display method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: SHANGHAI GUOKE ELECTRONIC CO., LTD.

Free format text: FORMER OWNER: SHANDA COMPUTER (SHANGHAI) CO., LTD.

Effective date: 20120709

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20120709

Address after: Shanghai city Pudong New Area 201203 GuoShouJing Road No. 356

Applicant after: Shanghai Guoke Electronic Co., Ltd.

Address before: Shanghai city Pudong New Area 201203 GuoShouJing Road No. 356

Applicant before: Shanda computer (Shanghai) Co., Ltd.

ASS Succession or assignment of patent right

Owner name: SHANGHAI SHENGXUAN NETWORK TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: SHANGHAI GUOKE ELECTRONIC CO., LTD.

Effective date: 20130304

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20130304

Address after: 201203 Shanghai Guo Shou Jing Road, Zhangjiang hi tech Park No. 356 building 3 room 126

Applicant after: Shanghai Shengxuan Network Technology Co., Ltd.

Address before: Shanghai city Pudong New Area 201203 GuoShouJing Road No. 356

Applicant before: Shanghai Guoke Electronic Co., Ltd.

C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20101222