CN106970897A - The method to set up and equipment of text formatting - Google Patents
The method to set up and equipment of text formatting Download PDFInfo
- Publication number
- CN106970897A CN106970897A CN201710218360.2A CN201710218360A CN106970897A CN 106970897 A CN106970897 A CN 106970897A CN 201710218360 A CN201710218360 A CN 201710218360A CN 106970897 A CN106970897 A CN 106970897A
- Authority
- CN
- China
- Prior art keywords
- text formatting
- default
- destination document
- replaced
- text
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/106—Display of layout of documents; Previewing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/109—Font handling; Temporal or kinetic typography
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
Abstract
The disclosure provides a kind of method to set up and equipment of text formatting, and the method to set up of text formatting includes:Destination document is obtained, destination document is document to be shown on an electronic device;Detect the first input operation of user and generate configuration information, configuration information is used to indicate default text formatting, and the first input operation is used to input default text formatting;According to predetermined fraction of the configuration information according to default text formatting display target document.Because user can only change the text formatting of predetermined fraction in destination document, different users can set different text formattings, meet the demand of different user, and, destination document is not configured integrally, the style that the producer of destination document is arranged in pairs or groups to destination document using kinds of words form is remained, Consumer's Experience is improved.
Description
Technical field
This disclosure relates to electronic technology field, more particularly to text formatting method to set up and equipment.
Background technology
In today that science and technology is with rapid changepl. never-ending changes and improvements, the reading habit of people is no longer confined to traditional publication made of paper and read
Read, read and increasingly popularized using electronic equipment.Such as, use smart mobile phone, E-book reader electronics set
Standby to be read, because these electronic equipments are easy to carry, people can be read using the chip time in life, such as
Take bus, subway when, or even can also be read in a few minutes clock time queued up for tickets.
In order to meet user Geng Gao demand, many e-book are all using the collocation display of kinds of words form.But, in electricity
The text formatting set in philosophical works manufacturing process can not be modified respectively, it is impossible to met the demand of different user, reduced use
Experience at family.
The content of the invention
The embodiment of the present disclosure provides a kind of method to set up and equipment of text formatting.The technical scheme is as follows:
According to the first aspect of the embodiment of the present disclosure there is provided a kind of method to set up of text formatting, applied to electronic equipment,
This method includes:
Destination document is obtained, destination document is document to be shown on an electronic device;
Detect the first input operation of user and generate configuration information, configuration information is used to indicate default text formatting,
First input operation is used to input default text formatting;
According to predetermined fraction of the configuration information according to default text formatting display target document.
Because user can only change the text formatting of predetermined fraction in destination document, different users can set difference
Text formatting, meet the demand of different user, moreover, be not configured integrally to destination document, remain target text
The style that the producer of shelves is arranged in pairs or groups to destination document using kinds of words form, improves Consumer's Experience.
In one embodiment, this method also includes:
The text formatting of destination document acquiescence is determined, the text formatting of acquiescence includes at least one text formatting;
Text formatting to be replaced is determined at least one text formatting, text formatting to be replaced belongs at least one
Text formatting;
The corresponding part of text formatting to be replaced in destination document is defined as predetermined fraction.
The text formatting of destination document acquiescence is arranged in pairs or groups using kinds of words form, can be with according to different text formattings
Destination document is divided into different parts, the adjustment of text formatting can be thus carried out respectively to different parts, to meet
The demand of user.
In one embodiment, text formatting to be replaced is determined at least one text formatting, including:
In at least one text formatting, the ratio highest text formatting occupied in destination document is defined as waiting to replace
The text formatting changed.
Generally, document body part can use identical text formatting, what body part was occupied in a document
Ratio is also highest, and user can only be adjusted to the text formatting of body part, both remain kinds of words form and take
Effect with display, meets the personal demand to body part again.
In one embodiment, text formatting to be replaced is determined at least one text formatting, including:
Second input operation of detection user's input simultaneously generates selection information, and selection information is used to indicate word to be replaced
Form, the second input operation is used to determine text formatting to be replaced;
Text formatting to be replaced is determined at least one text formatting according to selection information.
The text formatting of destination document acquiescence is arranged in pairs or groups using kinds of words form, different text formatting correspondence targets
The different part of document, determines which is partly that predetermined fraction is adjusted according to the input of user so that user is to target text
The flexibility of the text formatting adjustment of shelves is bigger, can more meet user's request.
In one embodiment, default text formatting include default font, default font size, default word space,
At least one of in default text color.
According to the second aspect of the embodiment of the present disclosure there is provided a kind of electronic equipment, including:Acquisition module, setup module and
Display module;
Acquisition module, for obtaining destination document, destination document is document to be shown on an electronic device;
Setup module, for detecting the first input operation of user and generating configuration information, configuration information is pre- for indicating
If text formatting, the first input operation be used for input default text formatting;
Display module, for according to predetermined fraction of the configuration information according to default text formatting display target document.
In one embodiment, electronic equipment also includes:Determining module, replacement module and predetermined fraction module;
Determining module, the text formatting for determining destination document acquiescence, the text formatting of acquiescence includes at least one text
Word format;
Replacement module, for determining text formatting to be replaced, word lattice to be replaced at least one text formatting
Formula belongs at least one text formatting;
Predetermined fraction module, for the corresponding part of text formatting to be replaced in destination document to be defined as into default portion
Point.
In one embodiment, replacement module includes ratio submodule;
Ratio submodule, at least one text formatting, by the ratio highest occupied in destination document text
Word format is defined as text formatting to be replaced.
In one embodiment, replacement module includes detection sub-module and selection submodule;
Detection sub-module, for detecting the second input operation of user's input and generating selection information, selection information is used for
Text formatting to be replaced is indicated, the second input operation is used to determine text formatting to be replaced;
Submodule is selected, for determining text formatting to be replaced at least one text formatting according to selection information.
In one embodiment, default text formatting include default font, default font size, default word space,
At least one of in default text color.
According to the third aspect of the embodiment of the present disclosure there is provided a kind of electronic equipment, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, processor is configured as:
Destination document is obtained, destination document is document to be shown on an electronic device;
Detect the first input operation of user and generate configuration information, configuration information is used to indicate default text formatting,
First input operation is used to input default text formatting;
According to predetermined fraction of the configuration information according to default text formatting display target document.
In one embodiment, processor can be additionally configured to:
The text formatting of destination document acquiescence is determined, the text formatting of acquiescence includes at least one text formatting;
Text formatting to be replaced is determined at least one text formatting, text formatting to be replaced belongs at least one
Text formatting;
The corresponding part of text formatting to be replaced in destination document is defined as predetermined fraction.
In one embodiment, processor can be additionally configured to:
In at least one text formatting, the ratio highest text formatting occupied in destination document is defined as waiting to replace
The text formatting changed.
In one embodiment, processor can be additionally configured to:
Second input operation of detection user's input simultaneously generates selection information, and selection information is used to indicate word to be replaced
Form, the second input operation is used to determine text formatting to be replaced;
Text formatting to be replaced is determined at least one text formatting according to selection information.
In one embodiment, default text formatting include default font, default font size, default word space,
At least one of in default text color.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not
The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosure
Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart of the method to set up of text formatting according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of the method to set up of text formatting according to an exemplary embodiment;
Fig. 3 is that a kind of text formatting according to an exemplary embodiment sets effect diagram;
Fig. 4 is the block diagram of a kind of electronic equipment according to an exemplary embodiment;
Fig. 5 is the block diagram of a kind of electronic equipment according to an exemplary embodiment;
Fig. 6 is the block diagram of a kind of electronic equipment according to an exemplary embodiment;
Fig. 7 is the block diagram of a kind of electronic equipment according to an exemplary embodiment;
Fig. 8 is the block diagram of a kind of electronic equipment according to an exemplary embodiment;
Fig. 9 is a kind of block diagram of terminal device according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
At present, many e-book are used all using the collocation display of kinds of words form for the different part of e-book
Different text formattings are shown.But, the text formatting set in e-book manufacturing process can not be modified respectively,
The demand of different user can not be met, Consumer's Experience is reduced.The technical scheme that the embodiment of the present disclosure is provided, obtains target text
Shelves, destination document is document to be shown on an electronic device;Detect the first input operation of user and generate configuration information, if
Confidence is ceased for indicating default text formatting, and the first input operation is used to input default text formatting;According to configuration information
According to the predetermined fraction of default text formatting display target document.Because user can only change predetermined fraction in destination document
Text formatting, different users can set different text formattings, meet the demand of different user, moreover, not right
Destination document is integrally configured, and the producer for remaining destination document is arranged in pairs or groups to destination document using kinds of words form
Style, improve Consumer's Experience.
Fig. 1 is a kind of flow chart of the method to set up of text formatting according to an exemplary embodiment, and this method should
For electronic equipment, the electronic equipment can be smart mobile phone, tablet personal computer, E-book reader etc..As shown in figure 1, this article
The method to set up of word format includes step 101-103:
In a step 101, destination document is obtained.
Destination document is document to be shown on an electronic device.For example, destination document can be e-book.
In a step 102, detect the first input operation of user and generate configuration information.
Configuration information is used to indicate default text formatting, and the first input operation is used to input default text formatting.
Text formatting can include font, font size, word space, text color etc., specifically, font can include regular script,
Song typeface etc.;Font size represents word size, can include No. three, No. four etc., naturally it is also possible to unit, such as 20 pounds, 30 are made of pound
Pound etc., one pound is 1/72 inch, equal to 0.3527 millimeter;Word space represents the spacing between word, can also be with units of pound
Weighed;Text color can include black, blueness etc..
In one embodiment, default text formatting include default font, default font size, default word space,
At least one of in default text color.
In step 103, according to predetermined fraction of the configuration information according to default text formatting display target document.
In one embodiment, before step 103, this method can also include:Determine the word of destination document acquiescence
Form, the text formatting of acquiescence includes at least one text formatting;Word to be replaced is determined at least one text formatting
Form, text formatting to be replaced belongs at least one text formatting;Text formatting to be replaced in destination document is corresponding
Part is defined as predetermined fraction.
The text formatting of destination document acquiescence can include at least two text formattings, you can to use kinds of words form
Arranged in pairs or groups, destination document can be divided into according to different text formattings by different parts, thus can be to different portions
Divide the adjustment for carrying out text formatting respectively, to meet the demand of user.For example, generally, destination document can be divided into chapter
Different text formattings are respectively adopted in several parts such as section header, text, note, these parts, and user can be respectively to this
The text formatting of several parts is adjusted.
Wherein it is determined that text formatting to be replaced can have various ways, two kinds of specific examples provided herein are illustrated:
In first example, text formatting to be replaced is determined at least one text formatting, including:At least one
Plant in text formatting, the ratio highest text formatting occupied in destination document is defined as text formatting to be replaced.
Generally, document body part can use identical text formatting, what body part was occupied in a document
Ratio is also highest, and user can only be adjusted to the text formatting of body part, both remain kinds of words form and take
Effect with display, meets the personal demand to body part again.
In second example, text formatting to be replaced is determined at least one text formatting, including:Detect user
Second input operation of input simultaneously generates selection information, and selection information is used to indicate text formatting to be replaced, the second input behaviour
Act on and determine text formatting to be replaced;Word lattice to be replaced are determined at least one text formatting according to selection information
Formula.
The text formatting of destination document acquiescence is arranged in pairs or groups using kinds of words form, different text formatting correspondence targets
The different part of document, determines which is partly that predetermined fraction is adjusted according to the input of user so that user is to target text
The flexibility of the text formatting adjustment of shelves is bigger, can more meet user's request.
The method to set up for the text formatting that the embodiment of the present disclosure is provided, obtains destination document, destination document is set in electronics
Standby document to be shown;Detect the first input operation of user and generate configuration information, configuration information is default for indicating
Text formatting, the first input operation is used to input default text formatting;It is aobvious according to default text formatting according to configuration information
Show the predetermined fraction of destination document.Because user can only change the text formatting of predetermined fraction in destination document, different use
Family can set different text formattings, meet the demand of different user, moreover, not set integrally to destination document
Put, remain the style that the producer of destination document is arranged in pairs or groups to destination document using kinds of words form, improve user
Experience.
The method to set up of the text formatting provided based on the corresponding embodiments of above-mentioned Fig. 1, Fig. 2 is according to an exemplary implementation
A kind of flow chart of the method to set up of the text formatting exemplified, the method to set up of the text formatting shown in Fig. 2 is to set font
Exemplified by illustrate, shown in reference picture 2, the present embodiment provide text formatting method to set up include step 201-206:
In step 201, destination document is obtained.
Destination document is document to be shown on an electronic device.
In step 202., the font of destination document acquiescence is determined.
The font of acquiescence includes at least two fonts.The font of acquiescence can be that the producer of destination document is making target
Set font during document, can be shown to destination document using multiple fonts collocation.For example, destination document can be wrapped
Include several parts such as chapter title, text, note.
In step 203, the ratio highest font occupied in destination document is defined as at least two fonts
Font to be replaced.
Font to be replaced is one kind in the font of destination document acquiescence.Occupy ratio highest font in destination document
The as font of destination document body part.
In step 204, the corresponding part of font to be replaced in destination document is defined as predetermined fraction.
In step 205, detect the first input operation of user and generate configuration information.
Configuration information is used to indicate default font, and the first input operation is used to input default font.With smart mobile phone
Exemplified by, at e-book reading interface, user can eject setting options after clicking on setting, when user will set font in interface to select
After item modification, you can generate configuration information according to the selection of user, font is modified.For example, user selection by font by
The Song typeface is revised as regular script, then e-book body part was Song typeface originally, is just all changed to be shown with regular script word.
In step 206, according to predetermined fraction of the configuration information according to default font display target document.
As shown in figure 3, Fig. 3 is a kind of text formatting setting effect diagram according to an exemplary embodiment;Fig. 3
In with destination document be e-book《The The Romance of the Three Kingdoms》Exemplified by, Fig. 3 shows e-book《The The Romance of the Three Kingdoms》A part, a portions in Fig. 3
Divide the effect before being progress text formatting setting, e-book body part is Song typeface, and chapter title is boldface type;B in Fig. 3
Part is to carry out the effect after text formatting setting, for example, body part is set to regular script word by user, chapter title remains unchanged
Remain the boldface type of e-book producer setting;Both the demand that user is set to font had been met, multiple fonts are also remained
The aesthetic feeling of collocation display, does not destroy the original intention of e-book producer.
Following is disclosure apparatus embodiments, can be used for performing method of disclosure embodiment.
Fig. 4 is the block diagram of a kind of electronic equipment according to an exemplary embodiment, and the equipment can be by software, hard
Being implemented in combination with for part or both is some or all of as electronic equipment, and the electronic equipment is used to perform above-mentioned Fig. 1 and Fig. 2
The method to set up of text formatting described in corresponding embodiment.As shown in figure 4, the electronic equipment 40 includes:Acquisition module
401st, setup module 402 and display module 403;
Acquisition module 401, for obtaining destination document, destination document is document to be shown on an electronic device;
Setup module 402, for detecting the first input operation of user and generating configuration information, configuration information is used to indicate
Default text formatting, the first input operation is used to input default text formatting;
Display module 403, for according to predetermined fraction of the configuration information according to default text formatting display target document.
In one embodiment, as shown in figure 5, electronic equipment 40 also includes:Determining module 404, replacement module 405 and pre-
If part of module 406;
Determining module 404, the text formatting for determining destination document acquiescence, the text formatting of acquiescence includes at least one
Text formatting;
Replacement module 405, for determining text formatting to be replaced, word to be replaced at least one text formatting
Form belongs at least one text formatting;
Predetermined fraction module 406, for the corresponding part of text formatting to be replaced in destination document to be defined as presetting
Part.
In one embodiment, as shown in fig. 6, replacement module 405 includes ratio submodule 4051;
Ratio submodule, at least one text formatting, by the ratio highest occupied in destination document text
Word format is defined as text formatting to be replaced.
In one embodiment, as shown in fig. 7, replacement module 405 includes detection sub-module 4052 and selection submodule
4053;
Detection sub-module 4052, for detecting the second input operation of user's input and generating selection information, selects information
For indicating text formatting to be replaced, the second input operation is used to determine text formatting to be replaced;
Submodule 4053 is selected, for determining word lattice to be replaced at least one text formatting according to selection information
Formula.
In one embodiment, default text formatting include default font, default font size, default word space,
At least one of in default text color.
The electronic equipment that the embodiment of the present disclosure is provided, obtains destination document, destination document is to be shown on an electronic device
Document;Detect the first input operation of user and generate configuration information, configuration information is used to indicate default text formatting, the
One input operation is used to input default text formatting;According to configuration information according to default text formatting display target document
Predetermined fraction.Because user can only change the text formatting of predetermined fraction in destination document, different users can be set not
Same text formatting, meets the demand of different user, moreover, not being configured integrally to destination document, remains target
The style that the producer of document is arranged in pairs or groups to destination document using kinds of words form, improves Consumer's Experience.
Fig. 8 is the block diagram of a kind of electronic equipment according to an exemplary embodiment, and the equipment can be by software, hard
Being implemented in combination with for part or both is some or all of as electronic equipment, and the electronic equipment is used to perform above-mentioned Fig. 1 and Fig. 2
The method to set up of text formatting described in corresponding embodiment.As shown in figure 8, the electronic equipment 80 includes:
Processor 801;
Memory 802 for storing the executable instruction of processor 801;
Wherein, processor 801 is configured as:
Destination document is obtained, destination document is document to be shown on an electronic device;
Detect the first input operation of user and generate configuration information, configuration information is used to indicate default text formatting,
First input operation is used to input default text formatting;
According to predetermined fraction of the configuration information according to default text formatting display target document.
In one embodiment, processor 80 can be additionally configured to:
The text formatting of destination document acquiescence is determined, the text formatting of acquiescence includes at least one text formatting;
Text formatting to be replaced is determined at least one text formatting, text formatting to be replaced belongs at least one
Text formatting;
The corresponding part of text formatting to be replaced in destination document is defined as predetermined fraction.
In one embodiment, processor 80 can be additionally configured to:
In at least one text formatting, the ratio highest text formatting occupied in destination document is defined as waiting to replace
The text formatting changed.
In one embodiment, processor 80 can be additionally configured to:
Second input operation of detection user's input simultaneously generates selection information, and selection information is used to indicate word to be replaced
Form, the second input operation is used to determine text formatting to be replaced;
Text formatting to be replaced is determined at least one text formatting according to selection information.
In one embodiment, default text formatting include default font, default font size, default word space,
At least one of in default text color.
The electronic equipment that the embodiment of the present disclosure is provided, obtains destination document, destination document is to be shown on an electronic device
Document;Detect the first input operation of user and generate configuration information, configuration information is used to indicate default text formatting, the
One input operation is used to input default text formatting;According to configuration information according to default text formatting display target document
Predetermined fraction.Because user can only change the text formatting of predetermined fraction in destination document, different users can be set not
Same text formatting, meets the demand of different user, moreover, not being configured integrally to destination document, remains target
The style that the producer of document is arranged in pairs or groups to destination document using kinds of words form, improves Consumer's Experience.
The electronic equipment that the embodiment of the present disclosure is provided can be a terminal device as shown in Figure 9, and Fig. 9 is shown according to one
Example property implements a kind of block diagram of the terminal device exemplified, and the terminal device 90 can be smart mobile phone, tablet personal computer etc., the end
End equipment 90 is used for the method to set up for performing the text formatting described in the corresponding embodiments of above-mentioned Fig. 1 and Fig. 2.
Terminal device 90 can include following one or more assemblies:Processing assembly 901, memory 902, power supply module
903, multimedia groupware 904, audio-frequency assembly 905, the interface 906 of input/output (I/O), sensor cluster 907, and communication
Component 908.
The integrated operation of the usual control terminal equipment 90 of processing assembly 901, such as with display, call, data communication,
The camera operation operation associated with record operation.Processing assembly 901 can include one or more processors 9011 to perform
Instruction, to complete all or part of step of above-mentioned method.In addition, processing assembly 901 can include one or more modules,
It is easy to the interaction between processing assembly 901 and other assemblies.For example, processing assembly 901 can include multi-media module, with convenient
Interaction between multimedia groupware 904 and processing assembly 901.
Memory 902 is configured as storing various types of data supporting the operation in terminal device 90.These data
Example include the instruction of any application program or method for being used to operate on terminal device 90, contact data, telephone directory
Data, message, picture, video etc..Memory 902 can by any kind of volatibility or non-volatile memory device or it
Combination realize, such as static RAM (English:Static Random Access Memory, SRAM), electricity can
Erasable programmable read-only memory (EPROM) (English:Electrically Erasable Programmable Read Only
Memory, EEPROM), Erasable Programmable Read Only Memory EPROM (English:Erasable Programmable Read Only
Memory, EPROM), programmable read only memory (English:Programmable Read Only Memory, PROM), it is read-only
Memory (English:Read Only Memory, ROM), magnetic memory, flash memory, disk or CD.
Power supply module 903 provides electric power for the various assemblies of terminal device 90.Power supply module 903 can include power management
System, one or more power supplys, and other components associated with generating, managing and distributing electric power for terminal device 90.
Multimedia groupware 904 is included in the screen of one output interface of offer between terminal device 90 and user.One
In a little embodiments, screen can include liquid crystal display (English:Liquid Crystal Display, LCD) and touch panel
(English:Touch Panel, TP).If screen includes touch panel, screen may be implemented as touch-screen, be come from receiving
The input signal of user.Touch panel includes one or more touch sensors with sensing touch, slip and touch panel
Gesture.Touch sensor can not only sensing touch or sliding action border, but also detection and touch or slide phase
The duration of pass and pressure.In certain embodiments, multimedia groupware 904 includes a front camera and/or rearmounted taken the photograph
As head.When terminal device 90 is in operator scheme, such as screening-mode or during video mode, front camera and/or rearmounted shooting
Head can receive the multi-medium data of outside.Each front camera and rear camera can be a fixed optical lenses
System or with focusing and optical zoom capabilities.
Audio-frequency assembly 905 is configured as output and/or input audio signal.For example, audio-frequency assembly 905 includes a Mike
Wind (English:Microphone, MIC), when terminal device 90 is in operator scheme, such as call model, logging mode and voice are known
During other pattern, microphone is configured as receiving external audio signal.The audio signal received, which can be further stored, is depositing
Reservoir 902 is sent via communication component 908.In certain embodiments, audio-frequency assembly 905 also includes a loudspeaker, is used for
Exports audio signal.
I/O interfaces 906 is provide interface between processing assembly 901 and peripheral interface module, above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor cluster 907 includes one or more sensors, the state for providing various aspects for terminal device 90
Assess.For example, sensor cluster 907 can detect opening/closed mode of terminal device 90, the relative positioning of component, example
Component is the display and keypad of terminal device 90 as described, and sensor cluster 907 can also detect terminal device 90 or whole
The position of 90 1 components of end equipment changes, the existence or non-existence that user contacts with terminal device 90, the orientation of terminal device 90
Or acceleration/deceleration and the temperature change of terminal device 90.Sensor cluster 907 can include proximity transducer, be configured to
The presence of object near being detected in not any physical contact.Sensor cluster 907 can also include optical sensor, such as mutually
Mend metal-oxide semiconductor (MOS) (English:Complementary Metal Oxide Semiconductor, CMOS) or electric charge coupling
Close element (English:Charge Coupled Device, CCD) imaging sensor, for being used in imaging applications.At some
In embodiment, the sensor cluster 907 can also include acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensing
Device or temperature sensor.
Communication component 908 is configured to facilitate the communication of wired or wireless way between terminal device 90 and other equipment.
Terminal device 90 can access the wireless network based on communication standard, such as Wireless Fidelity (English:Wireless-Fidelity,
WiFi), 2G or 3G, or combinations thereof.In one exemplary embodiment, communication component 908 comes via broadcast channel reception
From the broadcast singal or broadcast related information of external broadcasting management system.In one exemplary embodiment, communication component 908 is gone back
Including near-field communication (English:Near Field Communication, NFC) module, to promote junction service.For example, in NFC
Module can be based on radio frequency identification (English:Radio Frequency Identification, RFID) technology, Infrared Data Association
(English:Infrared Data Association, IrDA) technology, ultra wide band (English:Ultra Wideband, UWB) skill
Art, bluetooth (English:Bluetooth, BT) technology and other technologies realize.
In the exemplary embodiment, terminal device 90 can be by one or more application specific integrated circuits (English:
Application Specific Integrated Circuit, ASIC), digital signal processor (English:Digital
Signal Processing, DSP), digital signal processing appts (English:Digital Signal Processing
Device, DSPD), PLD (English:Programmable Logic Device, PLD), field programmable gate
Array (English:Field Programmable Gate Array, FPGA), controller, microcontroller, microprocessor or other
Electronic component realization, the method to set up for performing the text formatting described in the corresponding embodiments of above-mentioned Fig. 1 and Fig. 2.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory 902 of instruction, above-mentioned instruction can be performed to complete the above method by the processing assembly 901 of terminal device 90.
For example, non-transitorycomputer readable storage medium can be ROM, random access memory (English:Random Access
Memory, RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..When the instruction in the storage medium is set by terminal
When standby 90 processing assembly 901 is performed so that terminal device 90 is able to carry out being retouched in the corresponding embodiments of above-mentioned Fig. 1 and Fig. 2
The method to set up for the text formatting stated, this method includes:
Destination document is obtained, destination document is document to be shown on an electronic device;
Detect the first input operation of user and generate configuration information, configuration information is used to indicate default text formatting,
First input operation is used to input default text formatting;
According to predetermined fraction of the configuration information according to default text formatting display target document.
In one embodiment, this method also includes:
The text formatting of destination document acquiescence is determined, the text formatting of acquiescence includes at least one text formatting;
Text formatting to be replaced is determined at least one text formatting, text formatting to be replaced belongs at least one
Text formatting;
The corresponding part of text formatting to be replaced in destination document is defined as predetermined fraction.
In one embodiment, text formatting to be replaced is determined at least one text formatting, including:
In at least one text formatting, the ratio highest text formatting occupied in destination document is defined as waiting to replace
The text formatting changed.
In one embodiment, text formatting to be replaced is determined at least one text formatting, including:
Second input operation of detection user's input simultaneously generates selection information, and selection information is used to indicate word to be replaced
Form, the second input operation is used to determine text formatting to be replaced;
Text formatting to be replaced is determined at least one text formatting according to selection information.
In one embodiment, default text formatting include default font, default font size, default word space,
At least one of in default text color.
The electronic equipment that the embodiment of the present disclosure is provided, obtains destination document, destination document is to be shown on an electronic device
Document;Detect the first input operation of user and generate configuration information, configuration information is used to indicate default text formatting, the
One input operation is used to input default text formatting;According to configuration information according to default text formatting display target document
Predetermined fraction.Because user can only change the text formatting of predetermined fraction in destination document, different users can be set not
Same text formatting, meets the demand of different user, moreover, not being configured integrally to destination document, remains target
The style that the producer of document is arranged in pairs or groups to destination document using kinds of words form, improves Consumer's Experience.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice disclosure disclosed herein
Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or
Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following
Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.
Claims (11)
1. a kind of method to set up of text formatting, it is characterised in that applied to electronic equipment, methods described includes:
Destination document is obtained, the destination document is document to be shown on the electronic equipment;
Detect the first input operation of user and generate configuration information, the configuration information is used to indicate default text formatting,
First input operation is used to input default text formatting;
The predetermined fraction of the destination document is shown according to the default text formatting according to the configuration information.
2. according to the method described in claim 1, it is characterised in that methods described also includes:
The text formatting of the destination document acquiescence is determined, the text formatting of the acquiescence includes at least one text formatting;
Text formatting to be replaced is determined at least one text formatting, the text formatting to be replaced belongs to described
At least one text formatting;
The corresponding part of text formatting to be replaced described in the destination document is defined as the predetermined fraction.
3. method according to claim 2, it is characterised in that determined at least one text formatting to be replaced
Text formatting, including:
In at least one text formatting, the ratio highest text formatting occupied in the destination document is defined as
The text formatting to be replaced.
4. method according to claim 2, it is characterised in that determined at least one text formatting to be replaced
Text formatting, including:
Second input operation of detection user's input simultaneously generates selection information, and the selection information is used to indicate word to be replaced
Form, second input operation is used to determine text formatting to be replaced;
The text formatting to be replaced is determined at least one text formatting according to the selection information.
5. the method according to claim any one of 1-4, it is characterised in that
The default text formatting is included in default font, default font size, default word space, default text color
At least one of.
6. a kind of electronic equipment, it is characterised in that including:Acquisition module, setup module and display module;
The acquisition module, for obtaining destination document, the destination document is document to be shown on the electronic equipment;
The setup module, for detecting the first input operation of user and generating configuration information, the configuration information is used to refer to
Show default text formatting, first input operation is used to input default text formatting;
The display module, for showing the destination document according to the default text formatting according to the configuration information
Predetermined fraction.
7. equipment according to claim 6, it is characterised in that the electronic equipment also includes:Determining module, replacement module
With predetermined fraction module;
The determining module, the text formatting for determining the destination document acquiescence, the text formatting of the acquiescence is included extremely
A kind of few text formatting;
The replacement module, it is described to be replaced for determining text formatting to be replaced at least one text formatting
Text formatting belong at least one text formatting;
The predetermined fraction module, for the corresponding part of text formatting to be replaced described in the destination document to be defined as
The predetermined fraction.
8. equipment according to claim 7, it is characterised in that the replacement module includes ratio submodule;
The ratio submodule, at least one text formatting, the ratio that will occupy in the destination document
Highest text formatting is defined as the text formatting to be replaced.
9. equipment according to claim 7, it is characterised in that the replacement module includes detection sub-module and selection submodule
Block;
The detection sub-module, for detecting the second input operation of user's input and generating selection information, the selection information
For indicating text formatting to be replaced, second input operation is used to determine text formatting to be replaced;
The selection submodule, it is described to be replaced for being determined according to the selection information at least one text formatting
Text formatting.
10. the equipment according to claim any one of 6-9, it is characterised in that
The default text formatting is included in default font, default font size, default word space, default text color
At least one of.
11. a kind of electronic equipment, it is characterised in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Destination document is obtained, the destination document is document to be shown on the electronic equipment;
Detect the first input operation of user and generate configuration information, the configuration information is used to indicate default text formatting,
First input operation is used to input default text formatting;
The predetermined fraction of the destination document is shown according to the default text formatting according to the configuration information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710218360.2A CN106970897A (en) | 2017-04-05 | 2017-04-05 | The method to set up and equipment of text formatting |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710218360.2A CN106970897A (en) | 2017-04-05 | 2017-04-05 | The method to set up and equipment of text formatting |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106970897A true CN106970897A (en) | 2017-07-21 |
Family
ID=59336079
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710218360.2A Pending CN106970897A (en) | 2017-04-05 | 2017-04-05 | The method to set up and equipment of text formatting |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106970897A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108491078A (en) * | 2018-03-19 | 2018-09-04 | 广州视源电子科技股份有限公司 | A kind of literal processing method, device, terminal device and storage medium |
CN109992759A (en) * | 2017-12-29 | 2019-07-09 | 珠海金山办公软件有限公司 | Table objects edit methods, device, electronic equipment and storage medium |
CN109992751A (en) * | 2017-12-29 | 2019-07-09 | 珠海金山办公软件有限公司 | Amplification display method, device, electronic equipment and the storage medium of table objects |
CN111131000A (en) * | 2019-12-24 | 2020-05-08 | 北京达佳互联信息技术有限公司 | Information transmission method, device, server and terminal |
US20210049304A1 (en) * | 2019-08-12 | 2021-02-18 | International Business Machines Corporation | Character fingerprinting in text compositions |
CN113177390A (en) * | 2021-05-07 | 2021-07-27 | 深圳市欧瑞博科技股份有限公司 | Intelligent document processing method and device, computer readable medium and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050010869A1 (en) * | 2000-11-29 | 2005-01-13 | Microsoft Corporation | Force feedback mechanism for gamepad device |
CN103472972A (en) * | 2012-06-06 | 2013-12-25 | 联发科技(新加坡)私人有限公司 | Text display format setting unit and text display format setting method for mobile terminals and mobile terminal |
CN104850316A (en) * | 2015-04-29 | 2015-08-19 | 小米科技有限责任公司 | Method and device for adjusting fonts of electronic books |
-
2017
- 2017-04-05 CN CN201710218360.2A patent/CN106970897A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050010869A1 (en) * | 2000-11-29 | 2005-01-13 | Microsoft Corporation | Force feedback mechanism for gamepad device |
CN103472972A (en) * | 2012-06-06 | 2013-12-25 | 联发科技(新加坡)私人有限公司 | Text display format setting unit and text display format setting method for mobile terminals and mobile terminal |
CN104850316A (en) * | 2015-04-29 | 2015-08-19 | 小米科技有限责任公司 | Method and device for adjusting fonts of electronic books |
Non-Patent Citations (1)
Title |
---|
QQ675495787: "word怎样批量更改字体颜色", 《HTTPS://JINGYAN.BAIDU.COM/ARTICLE/0EB457E5625CF903F1A9051C.HTML》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109992759A (en) * | 2017-12-29 | 2019-07-09 | 珠海金山办公软件有限公司 | Table objects edit methods, device, electronic equipment and storage medium |
CN109992751A (en) * | 2017-12-29 | 2019-07-09 | 珠海金山办公软件有限公司 | Amplification display method, device, electronic equipment and the storage medium of table objects |
CN109992759B (en) * | 2017-12-29 | 2023-12-01 | 珠海金山办公软件有限公司 | Table object editing method and device, electronic equipment and storage medium |
CN109992751B (en) * | 2017-12-29 | 2023-12-01 | 珠海金山办公软件有限公司 | Method and device for magnifying and displaying table objects, electronic equipment and storage medium |
CN108491078A (en) * | 2018-03-19 | 2018-09-04 | 广州视源电子科技股份有限公司 | A kind of literal processing method, device, terminal device and storage medium |
CN108491078B (en) * | 2018-03-19 | 2021-06-15 | 广州视源电子科技股份有限公司 | Word processing method, device, terminal equipment and storage medium |
US20210049304A1 (en) * | 2019-08-12 | 2021-02-18 | International Business Machines Corporation | Character fingerprinting in text compositions |
CN111131000A (en) * | 2019-12-24 | 2020-05-08 | 北京达佳互联信息技术有限公司 | Information transmission method, device, server and terminal |
CN113177390A (en) * | 2021-05-07 | 2021-07-27 | 深圳市欧瑞博科技股份有限公司 | Intelligent document processing method and device, computer readable medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106970897A (en) | The method to set up and equipment of text formatting | |
CN106528252B (en) | Object starts method and device | |
CN104536935B (en) | Calculate display methods, calculate edit methods and device | |
CN104486451B (en) | Application program recommends method and device | |
CN105337847A (en) | Instant messaging information processing method, device and equipment | |
CN104281432A (en) | Method and device for regulating sound effect | |
CN104978200A (en) | Application program display method and device | |
CN104731688A (en) | Method and device for prompting reading schedule | |
CN104850849A (en) | Method, device and terminal for sending character | |
CN105487805A (en) | Object operating method and device | |
CN103914148A (en) | Function interface display method and device and terminal equipment | |
CN105335198A (en) | Font addition method and device | |
CN106503131A (en) | Obtain the method and device of interest information | |
CN104602275A (en) | Subscriber Identity Module (SIM) card switching method and device | |
CN105488829A (en) | Method and device for generating head portrait | |
CN105677164A (en) | Page selection method and device | |
CN105205153A (en) | File storage method and device | |
CN104636064A (en) | Gesture generating method and device | |
CN107404429A (en) | Circle of friends answering method, device and computer-readable recording medium | |
CN104750478B (en) | The display methods and device of application interface | |
CN105677215A (en) | Application control method and apparatus | |
CN105430194A (en) | Method for making calls, device and terminal | |
CN104836880A (en) | Method and device for processing contact person head portrait | |
CN104504026A (en) | Method and device for recommending friends | |
CN104219648A (en) | Method and device for prompting top-up information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
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 |
Application publication date: 20170721 |
|
RJ01 | Rejection of invention patent application after publication |