WO2011116717A2 - 定制资料的生成方法和装置 - Google Patents

定制资料的生成方法和装置 Download PDF

Info

Publication number
WO2011116717A2
WO2011116717A2 PCT/CN2011/073466 CN2011073466W WO2011116717A2 WO 2011116717 A2 WO2011116717 A2 WO 2011116717A2 CN 2011073466 W CN2011073466 W CN 2011073466W WO 2011116717 A2 WO2011116717 A2 WO 2011116717A2
Authority
WO
WIPO (PCT)
Prior art keywords
configuration file
user
template
character
icon
Prior art date
Application number
PCT/CN2011/073466
Other languages
English (en)
French (fr)
Other versions
WO2011116717A3 (zh
Inventor
尹杰
洪太亮
Original Assignee
华为终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为终端有限公司 filed Critical 华为终端有限公司
Priority to PCT/CN2011/073466 priority Critical patent/WO2011116717A2/zh
Priority to CN201180000231.7A priority patent/CN102171696B/zh
Publication of WO2011116717A2 publication Critical patent/WO2011116717A2/zh
Publication of WO2011116717A3 publication Critical patent/WO2011116717A3/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements

Definitions

  • the present invention relates to the field of data development, and in particular, to a method and an apparatus for generating customized data.
  • the prior art requires the use of word processing software for processing when generating customized data for different customers.
  • the data development engineer needs to delete the description of the GPS function in the customized data of Carrier A one by one and replace all the "SMS" one by one with "Text”. Message”.
  • SMS Short Message
  • Embodiments of the present invention provide a method and apparatus for automatically generating customized data, which can improve development efficiency.
  • a method for automatically generating customized data including:
  • a device for generating customized materials comprising:
  • a configuration file obtaining unit configured to acquire a configuration file preset for the user
  • a template content modification unit configured to modify a preset homology data template content according to the configuration file
  • the customized data saving unit is configured to save the modified homology data template as customized data corresponding to the user.
  • the method and device for generating the customized data provided by the embodiment of the present invention can be used to modify the content of the homology data template by using different configuration files, so as to generate corresponding to the user, compared with the prior art.
  • Customized data improves the processing efficiency of custom data and avoids modification errors that occur when manual document modifications are made.
  • Embodiment 1 is a flowchart of a method for generating customized data in Embodiment 1 of the present invention
  • FIG. 2 is a block diagram of a device for generating customized data in Embodiment 1 of the present invention
  • Embodiment 3 is a flowchart of a method for generating customized data in Embodiment 2 of the present invention.
  • FIG. 4 is a block diagram of a device for generating customized data in Embodiment 3 of the present invention.
  • Figure 5 is a block diagram further illustrating the apparatus in Embodiment 3 of the present invention.
  • Figure 6 is a block diagram further illustrating the apparatus in Embodiment 3 of the present invention.
  • the embodiment of the invention provides a method for generating customized data, as shown in FIG. 1 .
  • the method includes the following steps:
  • the configuration file may be stored in a computer or a server, or may be stored in a mobile device such as a mobile phone.
  • the configuration file is not limited, and may be determined according to the needs of the user.
  • the corresponding configuration file is read from the computer or the server according to the storage condition of the configuration file.
  • the homology data template can be pre-written by the data developer and saved in a computer or a server. After the configuration file is read, the content of the configuration file is imported into the homology data template to modify the content of the homology data template.
  • the saving the modified homology data template to the customized data corresponding to the user may be: after completing the modification of the content of the homology data template, saving the modification result and generating a customization corresponding to the user. data.
  • a copy of the homology data template is usually downloaded to a local or specified path, and a copy of the homology data template is modified and generated by the configuration file.
  • the customized data can also be generated by modifying the copy without modifying the homology data template itself.
  • the embodiment of the present invention further provides a device for generating customized data.
  • the method includes: a configuration file acquiring unit 2, a template content modifying unit 2, and a customized data saving unit 23.
  • the configuration file obtaining unit 2 1 is configured to acquire a configuration file preset for the user.
  • the template content modification unit 2 2 is configured to modify the preset homology data template content according to the configuration file.
  • the customized data saving unit 2 3 is configured to save the modified homology data template as a customized data corresponding to the user.
  • the device for generating customized data in the embodiment of the present invention may be integrated into a computer/server computer or a server, and the configuration file obtaining unit 2 1 obtains the configuration file from a storage medium of a computer/server computer or a server.
  • the modification of the homology material template content is then performed by the template content modification unit 2 2 .
  • Custom data save list Meta 23 saves the modified results and generates custom data.
  • the generated customized data may be saved to the storage medium or may be displayed by the output device.
  • different users can use different configuration files to modify the content of the homology data template, thereby generating customized data corresponding to the user, improving the development efficiency of the customized data, and avoiding manual documenting. Modification errors that occurred during the modification.
  • An embodiment of the present invention provides a method for generating customized data. As shown in FIG. 3, the method includes the following steps:
  • the user information corresponding to different users may be pre-written by the data developer and stored in a computer or a server, or may be filled in by the user and uploaded to a computer or a server.
  • the generation process of the customized material for the user is started, the user information of the user is first searched for and acquired.
  • the corresponding configuration file may be automatically generated according to different user information, and when the customized data is generated, the configuration file corresponding to the user information is found according to the user information.
  • the user information may be assigned a keyword, and the keyword may be assigned to the configuration file corresponding to the user information, or a correspondence table between the user information and the configuration file may be established, so that The keyword or correspondence table gets the matching configuration file.
  • the language of the customized data of different users may be different, it is necessary to preset a homology data template of multiple languages; at the same time, the language information of the user needs to be recorded in the user information.
  • the homology data template of the same language corresponding to the language information is searched for and obtained.
  • step 303 may also be performed before step 302.
  • the embodiment of the present invention does not limit this.
  • 304. Modify the content of the preset homology data template according to the configuration file.
  • the configuration file generally includes: a combination of one or more of a character configuration file, a function configuration file, and an icon configuration file.
  • the character configuration file records an identifier of a character and a specific user character value corresponding to the identifier of the character; the function configuration file records function description information that needs to be retained or deleted in the homology material template.
  • the icon profile records a storage path of a particular user icon for replacing an existing icon of the cognate material template.
  • the homologous data template when the homologous data template is written, for the character with the possibility of being modified, an identifier (recorded in the character configuration file) is recorded. And the identifier and the specific user character value corresponding to the identifier are represented; and the entire homology data template may be constructed according to a structured document (for example, using an XML language), and the same in the homology data template The document information is marked by a module, thereby making the identification and processing of the function description information simpler.
  • the modification of the content of the homologous data template can generally include the following three cases:
  • the configuration file is a character configuration file
  • the content of the homology data template is modified to: import a specific user character value in the character configuration file into the homology data template and correspond to the specific user character value.
  • the location of the character's identity is set to complete the replacement of the identity.
  • modifying the content of the homology data template is: searching for the description information that is required to be deleted in the function configuration file from the homology data template, and the found description information is found.
  • Delete it For example, the same source material template can be constructed in the form of a structured document, in which case the chapters and paragraphs in the homogenous material template are marked.
  • the tag of the chapter or paragraph where the description information to be deleted is located is searched from the function configuration file, and the chapter where the description information to be deleted is located according to the mark of the chapter or paragraph Or the paragraph is deleted.
  • modifying the content of the homology data template is: acquiring a specific user icon from a computer or a server according to the icon storage path recorded in the icon configuration file, and the specific User icon replaces the homologous data The corresponding existing icon in the template.
  • the saving of the modified homology data template to the customized data corresponding to the user may be: performing the modification of the content of the homology data template described in step 304, but in actual application, the A copy of the homology data template is downloaded to a local or specified path, and a copy of the homogenous data template is modified and generated using the configuration file. In this way, the customized data can also be generated by modifying the copy without modifying the homology data template itself.
  • Carrier A and Carrier B purchase the same mobile phone product X (or two mobile phones with similar models of the same mobile operating system).
  • the developer of mobile phone product X needs to develop a mobile phone for each of the two operators.
  • the product requirements of Carrier A and Carrier B have the following characteristics: 1. Both require English mobile phone user manual; 2. The specific user icons of the two are different, and the specific user icon of operator A is icon A, the operator The specific user icon of B is icon B; 3. Operator A supports GPS function, and Carrier B does not support GPS function; 4. Operator A requests that the word "SMS" be represented by "SMS" in the mobile phone user manual. Operator B requires the word “sms" to be indicated in the mobile phone's instruction manual by "Mes sa ge".
  • the data development engineer needs to use the word processing software (such as WORD software) to find the specific user trademark, the word "sms", and the GPS-related description information and perform corresponding replacement and deletion operations. . It may be assumed that the method provided by the embodiment of the present invention is performed by a data generation tool, which may be integrated in a software form on a computer or a server.
  • WORD software such as WORD software
  • a homologous data template of the mobile phone product X needs to be written, and the homologous data template of the mobile phone product X is constructed using an XML language, wherein the identifier of the word "sms" in the homologous data template is : ###_ ###XFrameP lug in_ I DS _XFRAME_Mes sa ge###_ * * *, and in the homologous data template, the word "sms" is replaced by its identifier; the homologous data The location of the specific user icon displayed in the template uses a default icon; and the description information of the GPS function has been written in the homology profile. After the homology data template is generated and stored, the user information of the operator and the operator B is also obtained.
  • the data generating tool is configured to enable the data generating tool to obtain user information of the operator A (of course, the data generating tool can also be automatically activated according to a preset trigger condition), and according to the user information of the operator A Obtain the homology data template for the English version of the mobile phone product X.
  • the data generation tool generates a corresponding configuration file according to the user information of the operator A. From the configuration file of the operator A, the data generation tool reads out the specific user character value corresponding to ###_###XFramePlugin_IDS_XFRAME_Message###_*** and replaces the value with "SMS".
  • the data generation tool reads the trademark A from the storage path of the specific user icon of the operator A and replaces the default icon in the homology data template.
  • the modified document is saved to the specified path, thereby generating the customized data of the operator A (the mobile phone user manual).
  • the generation of the mobile phone user manual of the operator B is similar to that of the operator A, and the data generation tool replaces ###_###XFramePlugin_IDS_XFRAME_Message###_*** with "Message” and introduces the trademark B.
  • the business B does not support the GPS function, the description information of the GPS function written in the homology profile is deleted when the mobile phone user manual of the operator B is generated. Thereby, customized materials of the operator A and the operator B are respectively generated.
  • customized data may need to be embedded in the product software as a function module, and sometimes it is necessary to embed customized materials in multiple languages. In this case, when developing customized data, it is necessary to generate corresponding languages for multiple languages. Version of the customized material.
  • the content of the homology data template can be modified by using different configuration files, and the customized data corresponding to different users can be automatically generated, thereby improving the processing efficiency of the customized data and avoiding the manual.
  • constructing the homology data template in a structured document manner also makes the modification of the homology data template simpler.
  • the embodiment of the present invention provides a device for generating customized data. As shown in FIG. 4, the configuration file acquisition unit 41, the template content modification unit 42, the customized data storage unit 43, and the same language template acquisition unit 44 are provided.
  • the configuration file obtaining unit 41 is configured to acquire a configuration file preset for the user.
  • the configuration file may be any one of a character configuration file, a function configuration file, and an icon configuration file, or any combination thereof.
  • the character of the character is recorded in the character configuration file And a specific user character value corresponding to the identifier of the character;
  • the function profile records function description information that needs to be retained or deleted in the homology profile;
  • the icon profile records The storage path of the specific user icon of the existing icon of the homology data template.
  • the template content modification unit 42 is configured to modify the preset homology data template content according to the configuration file.
  • the customized data saving unit 43 is configured to save the modified homology data template as customized data corresponding to the user.
  • the synonym template acquiring unit 44 is configured to obtain a homology data template of the same language corresponding to the language information according to the language information in the user information.
  • the configuration file obtaining unit 41 further includes: a user information acquiring module 41 1 and a configuration file acquiring module 412.
  • the user information obtaining module 41 1 is configured to acquire user information of the user.
  • the configuration file obtaining module 412 is configured to generate a configuration file corresponding to the user information according to the user information.
  • the template content modification unit 42 further includes: a character modification module 421, a function modification module 422, and an icon modification module 423.
  • the character modification module 421 is configured to: when the configuration file is a character configuration file, import a specific user character value in the character configuration file into a location where the identifier of the character in the preset homology data template is located.
  • the function modification module 422 is configured to: when the configuration file is a function configuration file, retain or delete corresponding function description information of the homology data template according to the function configuration file.
  • the icon modification module 423 is configured to replace an existing icon of the same-origin data template with the specific user icon according to the icon configuration file when the configuration file is an icon configuration file.
  • the device for generating customized data in the embodiment of the present invention may be integrated into a computer or a server, or may be integrated into a mobile device such as a mobile phone.
  • the configuration file obtaining unit 41 acquires the configuration file from the storage medium of the computer or the server
  • the same language template acquiring unit 44 acquires the language information from the storage medium of the computer or the server.
  • Corresponding homologous data templates for the same language The template content modifying unit 42 performs the repair of the content of the homogenous data template according to the configuration file. Change.
  • the customized material holding unit 43 saves the modified result and generates customized data.
  • the generated customized data may be saved to the storage medium or may be displayed by the output device.
  • different users can use different configuration files to modify the content of the homology data template, and automatically generate customized data corresponding to different users, thereby improving the processing efficiency of the customized data and avoiding manual processing.
  • a modification error occurred while the document was modified.
  • constructing the homology data template according to the structured document facilitates automatic identification and modification, so that the modification of the homology data template is simpler.
  • the present invention can be implemented by means of software plus necessary general hardware, and of course, by hardware, but in many cases, the former is a better implementation. .
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer.
  • a hard disk or optical disk, etc. includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Document Processing Apparatus (AREA)
  • User Interface Of Digital Computer (AREA)

Description

定制资料的生成方法和装置 技术领域
本发明涉及资料开发领域, 尤其涉及一种定制资料的生成方法和装 置。
背景技术
随着信息技术及电子行业的发展, 资料开发已成为产品开发过程中 的重要组成部分。 为满足客户差异化的要求, 产品开发者通常为不同的 客户分别定制不同的资料文档。
例如, 两个手机运营商 (运营商 A和运营商 B ) 对同一款手机有不 同要求。 其中,运营商 A支持 GPS功能, 因而需要在资料文档中保留 GPS 功能描述, 运营商 B则不需要 GPS功能描述; 另外, 运营商 A要求在资 料文档中将 "短信"翻译为 "SMS" ,运营商 B要求将 "短信"翻译为 "Text Message" 。
现有技术在执行不同客户的定制资料的生成时, 需要使用文字处理 软件进行处理。 比如, 要将运营商 A的定制资料修改为运营商 B的定制 资料, 资料开发工程师需要将运营商 A的定制资料中有关 GPS功能的描 述逐一删除并将所有的 "SMS" 逐一替换为 "Text Message" 。 当有关 GPS或 SMS的描述在运营商 A的定制资料中出现次数很多时, 人工删除、 替换的工作量将极为巨大, 从而导致开发的效率低下。
发明内容
本发明的实施例提供一种定制资料的自动生成方法和装置, 能够提 高开发效率。
为达到上述目的, 本发明的实施例采用如下技术方案:
一种定制资料的自动生成方法, 包括:
获取为用户预置的配置文件; 根据所述配置文件对预置的同源资料模板内容进行修改; 将修改后的同源资料模板保存为对应所述用户的定制资料。
一种定制资料的生成装置, 包括:
配置文件获取单元, 用于获取为用户预置的配置文件;
模板内容修改单元, 用于根据所述配置文件对预置的同源资料模板 内容进行修改;
定制资料保存单元, 用于将修改后的同源资料模板保存为对应所述 用户的定制资料。
本发明实施例提供的定制资料的生成方法和装置,与现有技术相比, 在针对不同的用户时, 可以使用不同的配置文件对同源资料模板的内容 进行修改, 从而生成与用户对应的定制资料, 提升了定制资料的处理效 率, 并避免了人工进行文档修改时出现的修改错误。
附图说明
图 1为本发明实施例 1 中定制资料的生成方法的流程图;
图 2为本发明实施例 1 中定制资料的生成装置的框图;
图 3为本发明实施例 2中定制资料的生成方法的流程图;
图 4为本发明实施例 3中定制资料的生成装置的框图;
图 5为对本发明实施例 3中的装置进一步说明的框图;
图 6为对本发明实施例 3中的装置进一步说明的框图。
具体实施方式
下面结合本发明实施例的附图对本发明实施例的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全 部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。 实施例 1 :
本发明实施例提供了一种定制资料的生成方法, 如图 1所示, 所 述方法包括以下步骤:
1 01、 获取为用户预置的配置文件。
其中, 所述配置文件可以存储在计算机、 服务器中, 也可以存储在 手机等移动设备中, 具体实施时本发明实施例对此不进行限制, 可以根 据用户的需求确定。 当需要为用户生成定制资料时,根据所述配置文件 的存储情况, 相应的从计算机或服务器中读取出对应的配置文件。
1 02、 根据所述配置文件对预置的同源资料模板内容进行修改。 其中,所述同源资料模板可以由资料开发人员预先进行编写并保存 在计算机或服务器中。在所述配置文件被读取出来后,将所述配置文件 的内容导入到所述同源资料模板,以便对所述同源资料模板内容进行修 改。
1 0 3、 将修改后的同源资料模板保存为对应所述用户的定制资料。 其中, 所述将修改后的同源资料模板保存为对应所述用户的定制 资料具体可以为: 在完成对所述同源资料模板内容的修改后,保存修改 结果并生成对应所述用户的定制资料。
而实际应用中, 通常是将所述同源资料模板的副本下载到本地或 指定的路径中,并使用所述配置文件对所述同源资料模板的副本进行修 改并生成所述定制资料。这样,在所述同源资料模板本身不进行修改的 前提下, 通过对所述副本的修改也可以生成所述定制资料。
本发明实施例还提供了一种定制资料的生成装置, 如图 2 所示, 包括: 配置文件获取单元 2 1、 模板内容修改单元 2 2、 定制资料保存单 元 2 3。
配置文件获取单元 2 1 , 用于获取为用户预置的配置文件。
模板内容修改单元 2 2 , 用于根据所述配置文件对预置的同源资料 模板内容进行修改。
定制资料保存单元 2 3 , 用于将修改后的同源资料模板保存为对应 所述用户的定制资料。
一般情况下, 本发明实施例中的定制资料的生成装置可以集成在 计算机 /服务器计算机或服务器中,配置文件获取单元 2 1 从计算机 /服 务器计算机或服务器的存储介质中获取到所述配置文件,然后由模板内 容修改单元 2 2执行对所述同源资料模板内容的修改。 定制资料保存单 元 23保存修改结果并生成定制资料。 所述生成的定制资料可以保存到 存储介质中, 也可以通过输出设备进行显示, 具体实施时本发明实施例 对此不进行限制。
本发明实施例中, 针对不同的用户, 可以使用不同的配置文件对 同源资料模板的内容进行修改,从而生成与用户对应的定制资料,提升 了定制资料的开发效率, 并避免了人工进行文档修改时出现的修改错 误。
实施例 2 :
本发明实施例提供了一种定制资料的生成方法, 如图 3 所示, 所 述方法包括以下步骤:
301、 获取所述用户的用户信息。
其中, 对应不同用户的用户信息可以由资料开发人员预先编写并 存储在计算机或服务器中,也可以由用户自行填写并上传至计算机或服 务器。 当针对所述用户的定制资料的生成过程启动时, 首先查找并获取 所述用户的用户信息。
302、 根据所述用户信息生成与所述用户信息对应的配置文件。 在实施本发明实施例时, 可以根据不同的用户信息, 自动生成对 应的配置文件, 并在生成定制资料时,根据所述用户信息查找到与所述 用户信息对应的配置文件。 具体实现时, 可以为所述用户信息分配一个 关键字, 并将该关键字分配给所述用户信息对应的配置文件, 或者建立 所述用户信息与配置文件间的对应关系表,从而可以根据该关键字或对 应关系表获取匹配的配置文件。
303、 根据所述用户信息中的语种信息, 获取与所述语种信息对应 的同语种的同源资料模板。
其中, 由于不同用户的定制资料的语种可能不同, 因此需要预置 多个语种的同源资料模板;同时所述用户信息中需要记录所述用户的语 种信息。在步骤 301获取到所述用户信息后, 查找并获取与所述语种信 息对应的同语种的同源资料模板。
另外, 需要说明的是, 本步骤 303 也可以在步骤 302之前执行, 在具体实施时, 本发明实施例对此不进行限制。 304、 根据所述配置文件对预置的同源资料模板内容进行修改。 一般的, 对于同一款产品, 不同用户所需要的定制资料的不同之 处主要在于: 产品的部分功能的增删、部分文字表述的不同以及使用的 图标的不同。 因此, 所述配置文件一般包括: 字符配置文件、 功能配置 文件和图标配置文件中的一种或多种的组合。
其中, 所述字符配置文件中记录有字符的标识以及所述字符的标 识对应的特定用户字符值;所述功能配置文件记录有需要在所述同源资 料模板中保留或删除的功能描述信息。所述图标配置文件记录有用于替 换所述同源资料模板的已有图标的特定用户图标的存储路径。
相应的, 为对所述同源资料模板中的内容进行修改, 在编写所述 同源资料模板时, 对于存在被修改可能性的字符, 将以一个标识(在所 述字符配置文件中记录了所述标识以及与所述标识对应的特定用户字 符值)进行表示; 并且整个同源资料模板可以按照结构化文档的方式来 构建(比如, 使用 XML语言) , 将所述同源资料模板中的文档信息按照 模块来标记,从而使得对所述功能描述信息的识别与处理更为简单。 所 述对同源资料模板内容进行修改一般可以包括以下三种情况:
当所述配置文件为字符配置文件时, 对同源资料模板内容进行修 改具体为:将所述字符配置文件中的特定用户字符值导入所述同源资料 模板中与所述特定用户字符值对应的字符的标识所在的位置,从而完成 对所述标识的替换。
当所述配置文件为功能配置文件时, 对同源资料模板内容进行修 改具体为:从所述同源资料模板中查找所述功能配置文件中要求删除的 描述信息, 并将查找到的描述信息进行删除。 举例来说, 可以将所述同 源资料模板按照结构化文档的方式进行构建,在此情况下, 所述同源资 料模板中的章节、 段落都进行了标记。 在需要删除特定的描述信息时, 从所述功能配置文件中查找待删除的描述信息所在的章节或段落的标 记,并根据所述章节或段落的标记将所述待删除的描述信息所在的章节 或段落删除。
当所述配置文件为图标配置文件时, 对同源资料模板内容进行修 改具体为:根据所述图标配置文件中记录的图标存储路径从计算机或服 务器中获取到特定用户图标,并将所述特定用户图标替换所述同源资料 模板中对应的已有图标。
305、 将修改后的同源资料模板保存为对应所述用户的定制资料。 其中, 所述将修改后的同源资料模板保存为对应所述用户的定制 资料具体可以为:在完成步骤 304中描述的对同源资料模板内容的修改 而实际应用中, 通常是将所述同源资料模板的副本下载到本地或 指定的路径中,并使用所述配置文件对所述同源资料模板的副本进行修 改并生成所述定制资料。这样,在所述同源资料模板本身不进行修改的 前提下, 通过对所述副本的修改也可以生成所述定制资料。
下面通过举例来对上述步骤 301 至 305 的方法进行说明。 假设运 营商 A和运营商 B购买同一款手机产品 X (或者是使用同一种手机操作 系统的近似款式的两种手机), 手机产品 X的开发商需要对两个运营商 分别开发一份手机使用说明书。运营商 A和运营商 B的产品要求具有如 下特征: 1、 二者均要求英文的手机使用说明书; 2、 二者的特定用户图 标不同, 其中运营商 A的特定用户图标为图标 A,运营商 B的特定用户 图标为图标 B; 3、运营商 A支持 GPS功能,运营商 B不支持 GPS功能; 4、 运营商 A要求将 "短信" 一词在手机使用说明书中用 " SMS" 来表示, 运营商 B要求 "短信" 一词在手机使用说明书中用 "Mes sa ge" 来表示。
若使用现有技术方案, 资料开发工程师需要借助文字处理软件(如 WORD 软件等) , 查找所述特定用户商标、 "短信" 一词、 以及与 GPS 有关的描述信息并进行对应的替换和删改操作。不妨假设本发明实施例 提供的方法由一款资料生成工具来执行,所述资料生成工具可以以软件 形式集成在计算机或服务器上。在执行所述方法前, 首先需要编写手机 产品 X的同源资料模板,手机产品 X的同源资料模板使用 XML语言来进 行构造, 其中 "短信" 一词在所述同源资料模板的标识为: ###_ ###XFrameP lug in_ I DS _XFRAME_Mes sa ge###_ * * *, 并且在所述同源 资料模板中 "短信"一词都由其标识进行替换; 所述同源资料模板中显 示所述特定用户图标的位置使用的是一个默认图标;并且所述同源资料 模板中已写入所述 GPS功能的描述信息。在生成并存储所述同源资料模 板后, 还要获取运营商 、 运营商 B的用户信息。
当要生成运营商 A 的手机使用说明书时, 资料开发工程师需要启 动所述资料生成工具,以使所述资料生成工具获取运营商 A的用户信息 (当然,所述资料生成工具也可以根据预先设定的触发条件自动启动), 并且根据运营商 A 的用户信息获取英文版的手机产品 X 的同源资料模 板。 此外, 所述资料生成工具根据运营商 A的用户信息生成对应的配置 文件。 从运营商 A 的配置文件中, 所述资料生成工具读取出 ###_###XFramePlugin_IDS_XFRAME_Message###_***对应的特定用户字 符值为 "SMS" , 并用 "SMS" 替换所述同源资料模板的标识; 同时, 所 述资料生成工具从运营商 A的特定用户图标的存储路径读取商标 A并替 换所述同源资料模板中的默认图标。根据运营商 A的配置文件完成对所 述同源资料模板内容修改后,将修改的文档保存到指定的路径,从而生 成了运营商 A的定制资料 (手机使用说明书 )。 运营商 B的手机使用说 明 书 的 生 成 与 运 营 商 A 类 似 , 所 述 资料生 成 工 具 将 ###_###XFramePlugin_IDS_XFRAME_Message###_***替换为 "Message", 并导入商标 B。 另外, 由于营商 B不支持 GPS功能, 因此在生成运营商 B的手机使用说明书时将同源资料模板中已写入的所述 GPS功能的描述 信息全部删除。 由此, 分别生成了运营商 A和运营商 B的定制资料。
实际开发中, 定制资料可能需要作为一个功能模块嵌入到产品软 件中, 并且有时需要嵌入多个语种的定制资料, 此种情况下, 在进行定 制资料的开发时需要针对多个语种分别生成对应语种版本的定制资料。
本发明实施例中, 针对不同的用户, 可以通过使用不同的配置文 件对同源资料模板的内容进行修改并自动生成与不同用户分别对应的 定制资料,提升了定制资料的处理效率,避免了人工进行文档修改时出 现的修改错误。 同时,按照结构化文档的方式来构建所述同源资料模板 也使得对所述同源资料模板的修改更为简单。
实施例 3:
本发明实施例提供了一种定制资料的生成装置, 如图 4 所示, 包 括: 配置文件获取单元 41、 模板内容修改单元 42、 定制资料保存单元 43、 同语种模板获取单元 44。
所述配置文件获取单元 41, 用于获取为用户预置的配置文件。 其 中, 所述配置文件可以为以字符配置文件、 功能配置文件、 图标配置文 件中的任一种或任意数量的组合。所述字符配置文件中记录了字符的标 识以及所述字符的标识对应的特定用户字符值;所述功能配置文件记录 了需要在所述同源资料模板中保留或删除的功能描述信息;所述图标配 置文件记录了用于替换所述同源资料模板的已有图标的特定用户图标 的存储路径。
所述模板内容修改单元 42 , 用于根据所述配置文件对预置的同源 资料模板内容进行修改。
所述定制资料保存单元 43 , 用于将修改后的同源资料模板保存为 对应所述用户的定制资料。
所述同语种模板获取单元 44 , 用于根据所述用户信息中的语种信 息, 获取与所述语种信息对应的同语种的同源资料模板。
进一步的, 如图 5所示, 所述配置文件获取单元 41还包括: 用户 信息获取模块 41 1 , 配置文件获取模块 412。
所述用户信息获取模块 41 1 , 用于获取所述用户的用户信息。
所述配置文件获取模块 412 , 用于根据所述用户信息生成与所述用 户信息对应的配置文件。
进一步的, 如图 6所示, 所述模板内容修改单元 42还包括: 字符 修改模块 421、 功能修改模块 422、 图标修改模块 423。
所述字符修改模块 421 , 用于在所述配置文件为字符配置文件时, 将所述字符配置文件中的特定用户字符值导入预置的同源资料模板中 字符的标识所在的位置。
所述功能修改模块 422 , 用于在所述配置文件为功能配置文件时, 根据所述功能配置文件保留或删除所述同源资料模板的对应的功能描 述信息。
所述图标修改模块 423 , 用于在所述配置文件为图标配置文件时, 根据所述图标配置文件将所述同源资料模板的已有图标替换为所述特 定用户图标。
一般情况下, 本发明实施例中的定制资料的生成装置可以集成在 计算机或服务器中,也可以集成在手机等移动设备中。 以计算机或服务 器为例,其中配置文件获取单元 41 从计算机或服务器的存储介质中获 取到所述配置文件, 另外, 同语种模板获取单元 44从计算机或服务器 的存储介质中获取与所述语种信息对应的同语种的同源资料模板。模板 内容修改单元 42根据所述配置文件执行对所述同源资料模板内容的修 改。 定制资料保存单元 43保存修改结果并生成定制资料。 所述生成的 定制资料可以保存到存储介质中, 也可以通过输出设备进行显示, 具体 实施时本发明实施例对此不进行限制。关于本发明实施例中定制资料的 生成装置的其他相关描述, 可以参考本发明的实施例 2中的相应描述, 本发明实施例此处将不再赘述。
本发明实施例中, 针对不同的用户, 可以使用不同的配置文件对 同源资料模板的内容进行修改,自动生成与不同用户分别对应的定制资 料,从而提升定制资料的处理效率,避免了人工进行文档修改时出现的 修改错误。 同时, 按照结构化文档的方式来构建所述同源资料模板, 有 利于进行自动识别和修改, 使得对所述同源资料模板的修改更为简单。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本 发明可借助软件加必需的通用硬件的方式来实现, 当然也可以通过硬件, 但 很多情况下前者是更佳的实施方式。基于这样的理解, 本发明的技术方案本 质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该 计算机软件产品存储在可读取的存储介质中, 如计算机的软盘,硬盘或光盘 等, 包括若干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施例所述的方法。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并 不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围 内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应所述以权利要求的保护范围为准。

Claims

权利 要求 书
1、 一种定制资料的生成方法, 其特征在于, 包括:
获取为用户预置的配置文件;
根据所述配置文件对预置的同源资料模板内容进行修改;
将修改后的同源资料模板保存为对应所述用户的定制资料。
2、 根据权利要求 1所述的方法, 其特征在于, 所述获取为用户预置 的配置文件包括:
获取所述用户的用户信息;
根据所述用户信息生成与所述用户信息对应的配置文件。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述配置文件为 以下文件中的任一种或任意数量的组合, 所述文件包括:
字符配置文件、 功能配置文件、 图标配置文件;
所述字符配置文件中记录有字符的标识以及所述字符的标识对应的 特定用户字符值;
所述功能配置文件记录有需要在所述同源资料模板中保留或删除的 功能描述信息;
所述图标配置文件记录有用于替换所述同源资料模板的已有图标的 特定用户图标的存储路径。
4、 根据权利要求 3所述的方法, 其特征在于, 所述根据所述配置文 件对预置的同源资料模板内容进行修改包括:
当所述配置文件为字符配置文件时, 将所述字符配置文件中的特定 用户字符值导入预置的同源资料模板中字符的标识所在的位置; 和 /或 当所述配置文件为功能配置文件时, 根据所述功能配置文件保留或 删除所述同源资料模板的对应的功能描述信息; 和 /或
当所述配置文件为图标配置文件时, 根据所述图标配置文件将所述 同源资料模板的已有图标替换为所述特定用户图标。
5、 根据权利要求 1或 2所述的方法, 其特征在于, 还包括: 根据所述用户信息中的语种信息, 获取与所述语种信息对应的同语 种的同源资料模板。
6、 一种定制资料的生成装置, 其特征在于, 包括:
配置文件获取单元, 用于获取为用户预置的配置文件;
模板内容修改单元, 用于根据所述配置文件对预置的同源资料模板 内容进行修改;
定制资料保存单元, 用于将修改后的同源资料模板保存为对应所述 用户的定制资料。
7、 根据权利要求 6所述的装置, 其特征在于, 所述配置文件获取单 元还包括:
用户信息获取模块, 用于获取所述用户的用户信息;
配置文件获取模块, 用于根据所述用户信息生成与所述用户信息对 应的配置文件。
8、 根据权利要求 6或 7所述的装置, 其特征在于, 所述配置文件为 以下文件中的任一种或任意数量的组合, 所述文件包括:
字符配置文件、 功能配置文件、 图标配置文件;
所述字符配置文件中记录有字符的标识以及所述字符的标识对应的 特定用户字符值;
所述功能配置文件记录有需要在所述同源资料模板中保留或删除的 功能描述信息;
所述图标配置文件记录有用于替换所述同源资料模板的已有图标的 特定用户图标的存储路径。
9、 根据权利要求 8所述的装置, 其特征在于, 所述模板内容修改单 元还包括:
字符修改模块, 用于在所述配置文件为字符配置文件时, 将所述字 符配置文件中的特定用户字符值导入预置的同源资料模板中字符的标识 所在的位置;
功能修改模块, 用于在所述配置文件为功能配置文件时, 根据所述 功能配置文件保留或删除所述同源资料模板的对应的功能描述信息; 图标修改模块, 用于在所述配置文件为图标配置文件时, 根据所述 图标配置文件将所述同源资料模板的已有图标替换为所述特定用户图 标。
10、 根据权利要求 6或 7所述的装置, 其特征在于, 还包括: 同语种模板获取单元, 用于根据所述用户信息中的语种信息, 获取 与所述语种信息对应的同语种的同源资料模板。
PCT/CN2011/073466 2011-04-28 2011-04-28 定制资料的生成方法和装置 WO2011116717A2 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2011/073466 WO2011116717A2 (zh) 2011-04-28 2011-04-28 定制资料的生成方法和装置
CN201180000231.7A CN102171696B (zh) 2011-04-28 2011-04-28 定制资料的生成方法和装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/073466 WO2011116717A2 (zh) 2011-04-28 2011-04-28 定制资料的生成方法和装置

Publications (2)

Publication Number Publication Date
WO2011116717A2 true WO2011116717A2 (zh) 2011-09-29
WO2011116717A3 WO2011116717A3 (zh) 2012-04-05

Family

ID=44491701

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/073466 WO2011116717A2 (zh) 2011-04-28 2011-04-28 定制资料的生成方法和装置

Country Status (2)

Country Link
CN (1) CN102171696B (zh)
WO (1) WO2011116717A2 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108667876A (zh) * 2017-03-31 2018-10-16 富士施乐实业发展(中国)有限公司 展会资料定制方法及系统
CN107391474B (zh) * 2017-07-18 2021-01-01 深圳市椰壳信息科技有限公司 名片编辑方法、服务器及计算机可读存储介质
CN110659097B (zh) * 2019-09-23 2023-10-24 深圳市伊欧乐科技有限公司 语种文件处理方法、装置、设备及存储介质
CN114327729A (zh) * 2021-12-30 2022-04-12 珠海豹趣科技有限公司 一种稳定的系统图标替换方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1913442A (zh) * 2005-08-09 2007-02-14 华为技术有限公司 给用户提供业务服务的方法和系统
CN101122854A (zh) * 2007-09-13 2008-02-13 上海交通大学 结构化的代码自动配置方法及装置
CN101425062A (zh) * 2007-10-31 2009-05-06 国际商业机器公司 用于生成文档内容的呈现配置文件的方法和设备

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1288793A1 (en) * 2001-08-27 2003-03-05 Sony NetServices GmbH Translation text management system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1913442A (zh) * 2005-08-09 2007-02-14 华为技术有限公司 给用户提供业务服务的方法和系统
CN101122854A (zh) * 2007-09-13 2008-02-13 上海交通大学 结构化的代码自动配置方法及装置
CN101425062A (zh) * 2007-10-31 2009-05-06 国际商业机器公司 用于生成文档内容的呈现配置文件的方法和设备

Also Published As

Publication number Publication date
WO2011116717A3 (zh) 2012-04-05
CN102171696B (zh) 2016-12-07
CN102171696A (zh) 2011-08-31

Similar Documents

Publication Publication Date Title
US20160170712A1 (en) Method for integrally implementing development and release of APP
CN107015804B (zh) 一种通过配置api快速开发项目的方法及系统
CN108388622B (zh) Api接口动态生成方法、装置、计算机设备及存储介质
CN108762743B (zh) 一种数据表操作代码生成方法及装置
US9864736B2 (en) Information processing apparatus, control method, and recording medium
CN106843978B (zh) 一种sdk接入方法及系统
US8805777B2 (en) Data record collapse and split functionality
US10650085B2 (en) Providing interactive preview of content within communication
TW201439792A (zh) 資料庫訪問系統及方法
CN108509207A (zh) Web应用程序的跨系统安装
WO2011116717A2 (zh) 定制资料的生成方法和装置
WO2019161620A1 (zh) 应用依赖关系更新方法、终端、设备及存储介质
US20150324438A1 (en) Rules based universal format presentation content translation
WO2018059037A1 (zh) 移动终端上传文件的方法及装置
JP2014171053A (ja) 電子文書コンテナデータファイル、電子文書コンテナデータファイル生成装置、電子文書コンテナデータファイル生成プログラム、サーバ装置および電子文書コンテナデータファイル生成方法
JP2013057999A (ja) 電子メールテンプレート作成装置、電子メールテンプレート作成方法、および電子メールテンプレート作成プログラム
US9052906B2 (en) Modularized customization of a model in a model driven development environment
CN110221827B (zh) 数据处理方法及相关装置
US10402785B2 (en) Terminal apparatus
JP2010061200A (ja) 文書管理システム及び操作履歴表示方法
US10277661B2 (en) Information processing apparatus and non-transitory computer readable medium
Sistrom et al. A simple method for importing multiple image files into PowerPoint
WO2024041358A1 (zh) 配置文件更新方法、装置、电子设备及可读存储介质
KR20180011937A (ko) 콘텐츠 관리 시스템
TW201019145A (en) Program developing system and method capable of supporting multiple kinds of databases

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201180000231.7

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11758827

Country of ref document: EP

Kind code of ref document: A2

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11758827

Country of ref document: EP

Kind code of ref document: A2