CN106227713B - The processing method and processing device of document - Google Patents

The processing method and processing device of document Download PDF

Info

Publication number
CN106227713B
CN106227713B CN201610795938.6A CN201610795938A CN106227713B CN 106227713 B CN106227713 B CN 106227713B CN 201610795938 A CN201610795938 A CN 201610795938A CN 106227713 B CN106227713 B CN 106227713B
Authority
CN
China
Prior art keywords
attribute
attribute information
document
value
information
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.)
Active
Application number
CN201610795938.6A
Other languages
Chinese (zh)
Other versions
CN106227713A (en
Inventor
陈民敬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201610795938.6A priority Critical patent/CN106227713B/en
Publication of CN106227713A publication Critical patent/CN106227713A/en
Priority to PCT/CN2016/113398 priority patent/WO2018040439A1/en
Application granted granted Critical
Publication of CN106227713B publication Critical patent/CN106227713B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities

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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a kind for the treatment of method and apparatus of document, including:Obtain the displaying request of document;According to the first attribute information of element in document described in the displaying request analysis;If parsing does not obtain first attribute information, the exhibition method of the element is then determined according to the second attribute information of element described in the first application program, wherein, second attribute information is the corresponding attribute definition information of the affiliated element of the first attribute information described in first application program.Not the case where embodiment of the present invention does not obtain the first attribute information of element in document for parsing, the exhibition method of element is determined according to the second attribute information of element in the first application program, second attribute information is that the attribute of an element defines information, in this way, when document can not be parsed completely, also it can farthest show the element in document, improve the compatibility that document uses.

Description

The processing method and processing device of document
Technical field
The present embodiments relate to computer application technologies, more particularly to the processing method and dress of a kind of document It sets.
Background technology
Electronic document refers to the file being stored in data mode in computer, and electronic document is referred to as document below.Text Shelves include several elements, such as picture, audio, video etc., and element includes several attributes, by taking picture as an example, may include It is such as properties:Picture source and picture transparency etc..In general, software (application program) when being operated to document, needs pair The attribute of each element in document is parsed, and then, corresponding feature operation is executed to the element after parsing.Work as software reinstallation Or when software upgrading, it is possible to attribute parsing failure can be caused, and then cause element that can not show, can not also be executed again Corresponding feature operation.
Invention content
In view of this, the present invention proposes a kind of processing method and processing device of document, the compatibility that document uses is improved.
In a first aspect, an embodiment of the present invention provides a kind of processing methods of document, including:The displaying for obtaining document is asked It asks;According to the first attribute information of element in document described in the displaying request analysis;Belong to if parsing does not obtain described first Property information, then determine the exhibition method of the element according to the second attribute information of element described in the first application program, wherein Second attribute information is the corresponding attribute definition letter of the affiliated element of the first attribute information described in first application program Breath.
In second aspect, an embodiment of the present invention provides a kind of processing units of document, including:Acquisition request unit is used In the displaying request for obtaining document;Resolution unit is connected with the acquisition request unit, for according to the displaying request analysis First attribute information of element in the document;Display unit is connected with the resolution unit, if not obtaining institute for parsing The first attribute information is stated, then determines the displaying side of the element according to the second attribute information of element described in the first application program Formula, wherein second attribute information is the corresponding category of the affiliated element of the first attribute information described in first application program Property defines information.
In the prior art, corresponding when showing document if parsing does not obtain the first attribute information of element in document Element will show miscue symbol, such as " error " printed words etc..Using the technical solution of the embodiment of the present invention, if do not solved Analysis obtains the first attribute information of element in document, then belongs to according to second of element in the first application program for showing document Property information determines the exhibition method of element, and the second attribute information is that the attribute of an element defines information, in this way, can not be complete When parsing document, the element in document also can be farthest shown, improve the compatibility that document uses.
Description of the drawings
Fig. 1 is the flow chart of the processing method for the document that the embodiment of the present invention one provides;
Fig. 2 is the flow chart of the processing method of document provided by Embodiment 2 of the present invention;
Fig. 3 is the structural schematic diagram of the processing unit for the document that the embodiment of the present invention four provides.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It should also be noted that, for the ease of retouching It states, only some but not all contents related to the present invention are shown in the drawings.It also should be noted that for the ease of saying It is bright, example related to the present invention is shown in following embodiment, these examples are only as the principle for illustrating the embodiment of the present invention It is used, it is not intended as the restriction to the embodiment of the present invention, meanwhile, these exemplary concrete numerical values can be according to different application environments It is different and different with the parameter of device or component.
The processing method and processing device of document provided in an embodiment of the present invention is applied in client computing devices.Document is by each Class application program generate, editor, application program include but be not limited to Microsoft Office (Microsoft exploitation based on The office software of Windows operating system is set with), Adobe Acrobat (be a portable text developed by Adobe companies Shelves format ((Portable Document Format, PDF) software for editing) etc., the client computing devices can be used for The PC for running the application of documents editing class can also be the mobile terminal for running the application of documents editing class.Wherein, institute It includes tablet computer, personal digital assistant and smart mobile phone to state mobile terminal.
Embodiment one
Fig. 1 is the flow chart of the processing method for the document that the embodiment of the present invention one provides, and the present embodiment is applicable to use A kind of software opens the case where document by another software development, be equally applicable to open using a kind of software of version by The case where document that other versions of same software make, this method can be executed by the processing unit of document, which can With by software and/or hardware mode realization, which can be integrated in any equipment for opening document, such as be typically Subscriber terminal equipment, such as mobile phone, computer etc..Wherein, the first application program is different from the type of the second application program, and/or, First application program is different from the version number of the second application program.Document can be by being given birth to mounted on the second local application program At can also be to download or share to local after being generated by the second application program, and then by first application rollouts this article Shelves.
This method includes:Step S110, step S120 and step S130.
Step S110, the displaying request of document is obtained.
The extension name of document files can include but is not limited to:The document of txt, the extension name can be soft by word processing Part or editing machine are opened;The document of doc, the extension name can pass through the word processor application of Microsoft's exploitation Microsoft Office Word are opened, or the office software WPS openings etc. researched and developed by Kingsoft software limited liability company Deng;The document of hlp, the extension name can be opened by the application program adobe acrobat reader that Adobe companies develop; Wps, the office software WPS that the document of the extension name can be researched and developed by Kingsoft software limited liability company are opened;Rtf, the expansion Opening up the document of name can be opened by the word processor application Microsoft Office Word of Microsoft's exploitation, Or opened by the office software WPS that Kingsoft software limited liability company researches and develops etc.;Html, the document of the extension name can be with It is opened by various browsers;Pdf, the document of the extension name can be by application program adobe that Adobe companies develop Acrobat reader openings etc..
The mode for obtaining the displaying request of document can include but is not limited to:The double click operation to document is got, alternatively, The operation of the displaying interactive controls of document is obtained in the operation interface of application program, for example, displaying interactive controls may include " opening " interactive controls or " open " interactive controls etc..
Step S120, according to the first attribute information of element in document described in the displaying request analysis.
Document includes several elements, such as picture, audio, video etc., and element includes several attributes, the first attribute letter Breath includes Property Name and attribute value, and by taking picture as an example, Property Name can include but is not limited to picture source (Source), picture Transparency (Alpha) and locking (IsLocked) etc.;By taking audio as an example, audio-source (url), bit can include but is not limited to Rate etc..Wherein, the source of picture source-representation picture can be network linking address either picture in local storage address Deng.The source of audio source-representation audio can be network linking address either audio in local storage address etc..
If step S130, parsing does not obtain first attribute information, according to element described in the first application program The second attribute information determine the exhibition method of the element, wherein second attribute information is first application program Described in the corresponding attribute definition information of the affiliated element of the first attribute information.
The parsing does not obtain first attribute information and includes:It is sky to receive element property title and/or attribute value Identifier, for example, receiving " null " identifier;Or element property title and/or attribute value are received as the mark of mistake Symbol is known, for example, receiving " error " identifier.
In the prior art, corresponding when showing document if parsing does not obtain the first attribute information of element in document Element will show miscue symbol, for example, the corresponding position of the element shows " error " printed words etc. on a display screen.It adopts With the technical solution of the present embodiment, if not parsing to obtain the first attribute information of element in document, basis is for showing text The second attribute information of element determines the exhibition method of element in first application program of shelves, and second attribute information is described Attribute of an element defines information, in this way, when that can not parse document completely, also can farthest show the element in document, Improve the compatibility that document uses.
Embodiment two
Fig. 2 is the flow chart of the processing method of document provided by Embodiment 2 of the present invention, and the processing method of document passes through One application rollouts document, for the step S130 in embodiment one, according to the second attribute of element in the first application program Information determines that the exhibition method of element includes:It is searched according to the Property Name in the first attribute information identical in the second attribute information The corresponding attribute type of Property Name;If attribute type is the indispensable attributes such as data source, element is deleted;If Attribute class Type is non necessary attribute, then shows element according to default property value.
Wherein, the first application program is different from the type of the second application program, and/or, the first application program is answered with second It is different with the version number of program.Document can be by being generated mounted on the second local application program, can also be to be answered by second With local is downloaded or shared to after Program Generating, and then by first application rollouts the document.The document of the present embodiment Processing method includes the following steps:Step S210, step S220, step S230, step S240 and step S250.Wherein, step S220 is identical as the step S110 in embodiment one;Step identical, identical as the step S120 in embodiment one step S230 It repeats no more.
Step S210, document is generated by the second application program, the first attribute information of element is carried in document, first belongs to Property information includes Property Name and attribute value.
First attribute information is formed during the second application program generates document, and the second application program is installed in system When, Property Name and attribute-value ranges are carried in the second application program, during generating document, in the first attribute information Property Name is consistent with the Property Name carried in the second application program, and the attribute value in the first attribute information applies journey second In the attribute-value ranges that sequence carries, and the edited result of element is determined according to user.For example, picture (element) in document Three attributes, Property Name are respectively picture source, picture transparency and locking, and the attribute value in wherein picture source is File://..../1.png;The attribute value of picture transparency is 0.5, indicates opaque with picture transparency for 1, picture is transparent Degree indicates transparent for 0, then the transparency of picture is that 0.5 expression is translucent;The attribute value of locking is true, and the attribute value of locking is False indicates unlocked, and the attribute value of locking is that true indicates locked.
Step S220, the displaying request of document is obtained.
In the editing interface of the first application program, the displaying that document is obtained by displaying control is asked;Alternatively, in document Storage location, by unfolding mode selection obtain document displaying ask, for example, equipment C disk storages it is entitled Click right on the document of 1.doc pops up " unfolding mode ", the first application program is selected from the drop-down menu of unfolding mode, First application program is used to show the document of 1.doc.
Step S230, according to the first attribute information of element in displaying request analysis document.
If step S240, parsing does not obtain the first attribute information of element in document, according to the first attribute in document Property Name in information searches in the first application program the corresponding category of identical Property Name in the second attribute information of element Property type;Second attribute information includes Property Name, attribute type, attribute-value ranges and default property value.If parsing obtains First attribute information then determines the displaying side of the element according to first attribute information and second attribute information Formula.
The embodiment of the present invention pre-sets the default property value corresponding to each Property Name in the first application program. Since different attribute is different to the influence degree of element, some attributes loss, which directly contributes element, to be rendered, some attributes are lost Losing only can cause style difference, some attributes loss can cause behavioral difference.By taking picture as an example, if picture source resolution fails, Picture will be unable to render;Fail when transparency parses, the transparency of picture (parses incorrect the picture of failure and be parsed into There is the differences of the pattern of transparency for the picture of work();When locking information parses mistake, the locked behavior of picture will be incorrect (parse failure picture and successfully resolved picture there is whether the difference in the behavior locked).The present embodiment is by attribute Type is divided into indispensable attributes and non necessary attribute, and indispensable attributes, which refer to loss, can directly result in the attribute type that element can not render, Non necessary attribute refers to the attribute type lost and will not cause element that can not render.The present embodiment is given respectively in the first application program Default property value is arranged in non necessary attribute.
Wherein, the exhibition method that the element is determined according to first attribute information and second attribute information Including:Identical Property Name in second attribute information is searched according to the Property Name in first attribute information to correspond to Attribute-value ranges;If the corresponding attribute value model in second attribute information of the attribute value in first attribute information In enclosing, then the element is shown according to the attribute value;If the attribute value in first attribute information is not described second In attribute information in corresponding attribute-value ranges, then the element is shown according to the default property value.
If step S250, attribute type is the indispensable attributes such as data source, element is deleted;If attribute type be it is non-must Attribute is wanted, then element is shown according to default property value.
When parsing the attribute error in element, if the attribute type of attribute is the indispensable attributes such as data source, element is deleted It removes, if the attribute type of attribute is non necessary attribute, by the corresponding acquiescence of the Property Name of the attribute in the first application program Attribute value is assigned to the attribute value in document in the first attribute information in Property Name as analysis result, and according to the acquiescence category Property value show element.
Using the technical solution of the present embodiment, it is arranged in the second attribute information of element in the first application program in advance silent Attribute value is recognized, when being parsed to document using the first application program, if do not parse to obtain element in document first belongs to Property information, then be shown using default property value as analysis result, also can be maximum in this way, when document can not be parsed completely It shows to degree the element in document, improves the compatibility that document uses.
Further, when being parsed to document using the first application program, if parsing obtains element in document First attribute information, for the attribute value in the first attribute information be more than in the first application program corresponding Property Name it is corresponding When attribute-value ranges, also it is shown using default property value as analysis result, in this way, when document can not be parsed completely, It can farthest show the element in document, improve the compatibility that document uses.
Embodiment three
The present embodiment is the application of the technical solution of embodiment one and embodiment two.In the present embodiment, in document For element to be illustrated for picture, the principle of other elements is identical.For the ease of operation, using indispensable attributes and inessential category Property attribute type is distinguished, wherein the corresponding attribute type of data source be indispensable attributes, the corresponding Attribute class of other attributes Type is non necessary attribute.In the present embodiment, the attribute-value ranges in the attribute of an element information of application program are omitted, i.e., at this In the scheme of embodiment, the attribute of an element value parsed from document is given tacit consent to all in the application program for showing document Within the scope of attribute of an element value;For the attribute of an element value that is parsed from document not in the application journey for showing document Situation within the scope of the attribute of an element value of sequence shows the member in document according to the default property value of the element in application program Element.
The attribute information of picture in 1.0 versions of A softwares is as shown in table 1, wherein picture element includes three attributes: Picture source (Source), picture transparency (Alpha) and locking (IsLocked), wherein picture source is indispensable attributes, acquiescence Value is sky, and picture transparency is non necessary attribute, default value 1;It is locked as non necessary attribute, default value is that false is (i.e. unlocked It is fixed).
Attribute Explanation Classification Default value
Source Picture source Indispensable attributes -
Alpha Picture transparency Non necessary attribute 1
IsLocked Whether lock Non necessary attribute false
The attribute information list of picture in 1.0 versions of 1 A softwares of table
Document B is made using 1.0 versions of A softwares, the attribute information of the picture in document B is as shown in table 2, wherein Picture element includes three attributes:Picture source (Source), picture transparency (Alpha) and locking (IsLocked), it is therein The attribute value in picture source is " File:// ... the attribute value of/1.png ", picture transparency are " 0.5 ", and the attribute value of locking is " true " (i.e. locked, can not to be operated).
Source File://..../1.png
Alpha 0.5
IsLocked True
The attribute information list of picture in 2 document B of table
When A software upgradings are to 2.0 version, the attribute information of wherein picture is as shown in table 3, wherein picture element includes five A attribute:Picture source (Source), brightness (Brightness), contrast (Contrast), saturation degree (Saturation) and It locks (IsLocked), wherein picture source is indispensable attributes, and default value is sky;Brightness is non necessary attribute, default value 0.5; Contrast is non necessary attribute, default value 0.5;Saturation degree is non necessary attribute, default value 0.5;It is locked as inessential category Property, default value is false (i.e. unlocked, can be operated).
Attribute Explanation Classification Default value
Source Picture source Indispensable attributes -
Brightness Brightness Non necessary attribute 0.5
Contrast Contrast Non necessary attribute 0.5
Saturation Saturation degree Non necessary attribute 0.5
IsLocked Whether lock Non necessary attribute false
The attribute information list of picture in 2.0 versions of 3 A softwares of table
Document C is made using 2.0 versions of A softwares, the attribute information of the picture in document C is as shown in table 4, wherein Picture element includes five attributes:Picture source (Source), brightness (Brightness), contrast (Contrast), saturation degree (Saturation) and (IsLocked) is locked, the attribute value in picture source therein is " File:// .../1.png ", brightness Attribute value is " 0.8 ", and the attribute value of contrast is " 0.8 ", and the attribute value of saturation degree is " 0.8 ", and the attribute value of locking is " false " (i.e. unlocked, can be operated).
The attribute information list of picture in 4 document C of table
The document C that 2.0 versions of A softwares generate, finally obtained picture after parsing are opened using 1.0 versions of A softwares Attribute is as shown in table 5, and picture attribute includes picture source, picture transparency and locking, and the attribute value in picture source therein is document C In attribute value " File:// .../1.png ", the attribute value of locking are the attribute value " false " in document C, picture transparency Attribute value be A softwares 1.0 versions in default property value " 1 ".
Source File://..../1.png
Alpha 1
IsLocked false
The attribute information list of picture in the document C that 1.0 versions of 5 A softwares of table are opened
The document B that 1.0 versions of A softwares generate, final picture attribute such as 6 institute of table are opened using 2.0 versions of A softwares Show, picture element includes five attributes:Picture source (Source), brightness (Brightness), contrast (Contrast), saturation (Saturation) and locking (IsLocked) are spent, the attribute value in picture source therein is the attribute value in picture B "File:// ... the attribute value of/1.png ", brightness are the default property value " 0.5 " in 2.0 versions of A softwares, contrast Attribute value is the default property value " 0.5 " in 2.0 versions of A softwares, and the attribute value of saturation degree is in 2.0 version of A softwares Default property value " 0.5 ", the attribute value of locking are the attribute value " true " in picture B.
The attribute information list of picture in the document B that 2.0 versions of 6 A softwares of table are opened
Example IV
Fig. 3 is the structural schematic diagram of the processing unit for the document that the embodiment of the present invention four provides, and the device is for executing reality Apply the processing method of the document in example one to three.The device includes:Acquisition request unit 310, resolution unit 320 and display unit 330。
Acquisition request unit 310, the displaying for obtaining document are asked.
Resolution unit 320 is connected with the acquisition request unit, for according in document described in the displaying request analysis First attribute information of element.
Display unit 330 is connected with the resolution unit, if not obtaining first attribute information for parsing, The exhibition method of the element is determined according to the second attribute information of element described in the first application program, wherein described second Attribute information is the corresponding attribute definition information of the affiliated element of the first attribute information described in first application program.
Not the case where embodiment of the present invention does not obtain the first attribute information of element in document for parsing, according to the first application The second attribute information of element determines the exhibition method of element in program, in this way, when document can not be parsed completely, it also can be maximum It shows to degree the element in document, improves the compatibility that document uses.
More specifically, first attribute information includes Property Name and attribute value, and second attribute information includes belonging to Property title, attribute type, attribute-value ranges and default property value.
More specifically, the resolution unit is specifically used for the mark for receiving element property title and/or attribute value is sky Symbol, or element property title and/or attribute value are received as the identifier of mistake.
More specifically, the display unit is specifically used for according to described in the Property Name lookup in first attribute information The corresponding attribute type of identical Property Name in second attribute information;Also, if the attribute type is that data source etc. must Attribute is wanted, then deletes the element;If the attribute type is non necessary attribute, institute is shown according to the default property value State element.
More specifically, if the display unit is additionally operable to parsing and obtains first attribute information, according to described the One attribute information and second attribute information determine the exhibition method of the element.
More specifically, the display unit is specifically used for according to described in the Property Name lookup in first attribute information The corresponding attribute-value ranges of identical Property Name in second attribute information;And if the attribute in first attribute information Value in corresponding attribute-value ranges, then shows the element in second attribute information according to the attribute value;If institute The attribute value in the first attribute information is stated not in second attribute information in corresponding attribute-value ranges, then according to described silent Recognize attribute value and shows the element.
In the present embodiment, after parsing obtains first attribute information, also judge the information whether in the second attribute In information in the attribute-value ranges of attribute of the same name, then it is shown in this range according to the first attribute information, not in this range Then it is shown according to the default property value of attribute of the same name in the second attribute information.Ensure that the information one of displaying is scheduled on second in this way In the attribute-value ranges being arranged in attribute information, different users can carry out personalized setting, and it is diversified to meet user It is required that.
More specifically, which can also include:Generation unit is connected with the acquisition request unit, for passing through the Two application programs generate the document, and the first attribute information of the element is carried in the document.
More specifically, first application program is different from the type of the second application program, and/or, described first Application program is different from the version number of the second application program.
The processing unit for the document that the embodiment of the present invention is provided can be used for executing what any embodiment of the present invention was provided The processing method of document has and executes the corresponding function of this method and advantageous effect.
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (8)

1. a kind of processing method of document, which is characterized in that including:
Obtain the displaying request of document;
According to the first attribute information of element in document described in the displaying request analysis;
If parsing does not obtain first attribute information, according to the second attribute information of element described in the first application program Determine the exhibition method of the element, wherein second attribute information is the first attribute described in first application program The corresponding attribute definition information of the affiliated element of information;
Wherein, first attribute information includes Property Name and attribute value, and second attribute information includes Property Name, belongs to Property type, attribute-value ranges and default property value;
Identical Property Name in second attribute information is searched according to the Property Name in first attribute information to correspond to Attribute type;
If the attribute type is indispensable attributes, the element is deleted;If the attribute type is non necessary attribute, The element is shown according to the default property value.
2. the processing method of document according to claim 1, which is characterized in that the parsing does not obtain first attribute Information includes:
It receives element property title and/or attribute value is the identifier of sky, or receive element property title and/or attribute Value is wrong identifier.
3. the processing method of document according to claim 1, which is characterized in that further include:
If parsing obtains first attribute information, determined according to first attribute information and second attribute information The exhibition method of the element.
4. the processing method of document according to claim 3, which is characterized in that it is described according to first attribute information and Second attribute information determines that the exhibition method of the element includes:
Identical Property Name in second attribute information is searched according to the Property Name in first attribute information to correspond to Attribute-value ranges;
If the attribute value in first attribute information is in second attribute information in corresponding attribute-value ranges, root The element is shown according to the attribute value;If the attribute value in first attribute information is not in second attribute information In corresponding attribute-value ranges, then the element is shown according to the default property value.
5. a kind of processing unit of document, which is characterized in that including:
Acquisition request unit, the displaying for obtaining document are asked;
Resolution unit is connected with the acquisition request unit, for according to element in document described in the displaying request analysis First attribute information;
Display unit is connected with the resolution unit, if first attribute information is not obtained for parsing, according to first Second attribute information of element described in application program determines the exhibition method of the element, wherein second attribute information It is the corresponding attribute definition information of the affiliated element of the first attribute information described in first application program;
First attribute information includes Property Name and attribute value, and second attribute information includes Property Name, Attribute class Type, attribute-value ranges and default property value;
The display unit is specifically used for searching second attribute information according to the Property Name in first attribute information In the corresponding attribute type of identical Property Name;Also, if the attribute type is indispensable attributes, delete the member Element;If the attribute type is non necessary attribute, the element is shown according to the default property value.
6. the processing unit of document according to claim 5, which is characterized in that the resolution unit is specifically used for receiving Element property title and/or attribute value are the identifier of sky, or it is wrong to receive element property title and/or attribute value Identifier.
7. the processing unit of document according to claim 5, which is characterized in that if the display unit is additionally operable to parsing First attribute information is obtained, then determines the exhibition of the element according to first attribute information and second attribute information Show mode.
8. the processing unit of document according to claim 7, which is characterized in that the display unit is specifically used for according to institute It states Property Name in the first attribute information and searches the corresponding attribute value model of identical Property Name in second attribute information It encloses;And if the attribute value in first attribute information is in second attribute information in corresponding attribute-value ranges, The element is then shown according to the attribute value;If the attribute value in first attribute information is not believed in second attribute In breath in corresponding attribute-value ranges, then the element is shown according to the default property value.
CN201610795938.6A 2016-08-31 2016-08-31 The processing method and processing device of document Active CN106227713B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610795938.6A CN106227713B (en) 2016-08-31 2016-08-31 The processing method and processing device of document
PCT/CN2016/113398 WO2018040439A1 (en) 2016-08-31 2016-12-30 Document processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610795938.6A CN106227713B (en) 2016-08-31 2016-08-31 The processing method and processing device of document

Publications (2)

Publication Number Publication Date
CN106227713A CN106227713A (en) 2016-12-14
CN106227713B true CN106227713B (en) 2018-11-06

Family

ID=58075293

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610795938.6A Active CN106227713B (en) 2016-08-31 2016-08-31 The processing method and processing device of document

Country Status (2)

Country Link
CN (1) CN106227713B (en)
WO (1) WO2018040439A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106227713B (en) * 2016-08-31 2018-11-06 广州视睿电子科技有限公司 The processing method and processing device of document
CN114218441B (en) * 2021-11-22 2022-07-12 慧之安信息技术股份有限公司 Method for calling and displaying UOF document

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6298353B1 (en) * 1998-11-19 2001-10-02 International Business Machines Corporation Checking serialization compatibility between versions of java classes
WO2000075784A1 (en) * 1999-06-03 2000-12-14 Sycamore Networks, Inc. Software translation using metadata
CN101165682A (en) * 2006-10-20 2008-04-23 北京北大方正电子有限公司 Document file processing method and system
CN101685394A (en) * 2008-09-26 2010-03-31 国际商业机器公司 Method and device for providing inter-version document compatibility
CN101937426A (en) * 2010-08-31 2011-01-05 北京红旗贰仟软件技术有限公司 Method and device for processing incompatible data
CN106227713B (en) * 2016-08-31 2018-11-06 广州视睿电子科技有限公司 The processing method and processing device of document

Also Published As

Publication number Publication date
WO2018040439A1 (en) 2018-03-08
CN106227713A (en) 2016-12-14

Similar Documents

Publication Publication Date Title
US7877251B2 (en) Document translation system
US10565293B2 (en) Synchronizing DOM element references
KR100936204B1 (en) Copy and paste processing method, apparatus, and storage medium
CN111026470B (en) System and method for verification and conversion of input data
CN105511873B (en) User interface control display method and device
US20110289407A1 (en) Font recommendation engine
US9817811B2 (en) Web server system, dictionary system, dictionary call method, screen control display method, and demonstration application generation method
US20110264705A1 (en) Method and system for interactive generation of presentations
CN108762743B (en) Data table operation code generation method and device
CN106569900A (en) Application processing method and device
KR20070110341A (en) Resource authoring incorporating ontology
JP2008123394A (en) Program, character input editing method and device
US20120167041A1 (en) Selectively enabling runtime editing of an application
US20130124969A1 (en) Xml editor within a wysiwyg application
CN111104123A (en) Automatic deployment of applications
CN111984262A (en) WeChat cascading style sheet file processing method, device, equipment and storage medium
CN106227713B (en) The processing method and processing device of document
CN102193789B (en) Method and equipment for realizing configurable skip link
US10140278B2 (en) Computer-implemented methods and systems for associating files with cells of a collaborative spreadsheet
US10445290B1 (en) System and method for a smart configurable high performance interactive log file viewer
CN112015497B (en) Skin changing method and device
CN113268232B (en) Page skin generation method and device and computer readable storage medium
US11119975B2 (en) Digital design application plugin for content updates and delivery
CN107408104A (en) The statement cascade rearrangement of pattern
JP2014059699A (en) Demo application generation system and demo application generation program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant