[go: up one dir, main page]

CN106407174A - Method and device for setting e-mail content typesetting - Google Patents

Method and device for setting e-mail content typesetting Download PDF

Info

Publication number
CN106407174A
CN106407174A CN201611025951.XA CN201611025951A CN106407174A CN 106407174 A CN106407174 A CN 106407174A CN 201611025951 A CN201611025951 A CN 201611025951A CN 106407174 A CN106407174 A CN 106407174A
Authority
CN
China
Prior art keywords
content
mail
email
sub
display format
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611025951.XA
Other languages
Chinese (zh)
Inventor
张亮
刘鸣
骆艳飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611025951.XA priority Critical patent/CN106407174A/en
Publication of CN106407174A publication Critical patent/CN106407174A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/189Automatic justification
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/34Browsing; Visualisation therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本公开提供了一种设置电子邮件内容排版的方法及装置,属于互联网通信技术领域。所述方法包括:获取当前电子邮件的邮件内容,所述邮件内容包括至少一个邮件子内容;从所述邮件内容中识别出所述至少一个邮件子内容中的每个邮件子内容;对于所述每个邮件子内容,分别获取所述邮件子内容的显示区域和第一显示格式,根据所述显示区域和所述第一显示格式,对所述邮件子内容进行排版。本公开通过自动对该邮件子内容进行排版;省略了用户手动操作的繁琐过程,提高了设置电子邮件内容排版的效率。

The disclosure provides a method and device for setting typesetting of e-mail content, belonging to the technical field of Internet communication. The method includes: obtaining the mail content of the current email, the mail content including at least one mail sub-content; identifying each mail sub-content in the at least one mail sub-content from the mail content; For each mail sub-content, respectively acquire the display area and the first display format of the mail sub-content, and typesetting the mail sub-content according to the display area and the first display format. The disclosure automatically typesets the sub-content of the email, omits the cumbersome process of manual operation by the user, and improves the efficiency of setting the typesetting of the email content.

Description

设置电子邮件内容排版的方法及装置Method and device for setting typesetting of e-mail content

技术领域technical field

本公开涉及互联网通信技术领域,尤其涉及一种设置电子邮件内容排版的方法及装置。The present disclosure relates to the technical field of Internet communication, and in particular to a method and device for setting typesetting of email content.

背景技术Background technique

随着互联网通信技术的发展,通信方式越来越多;电子邮件由于高效、简易、快捷等特点,已成为目前用户在工作和生活中应用较广泛的通信方式。例如,在工作中,用户常常通过发送电子邮件对工作内容进行沟通。With the development of Internet communication technology, there are more and more communication methods; e-mail has become a widely used communication method in work and life due to its high efficiency, simplicity and speed. For example, at work, users often communicate about work content by sending e-mails.

目前,用户在发送电子邮件之前,用户在电子邮件的正文输入框中输入邮件内容,邮件内容一般包括称呼信息(例如,XX您好)、正文内容和签名信息等多个邮件子内容,用户手动将称呼信息的显示格式和签名信息的显示格式设置为左对齐,手动将正文内容的显示格式设置为首行缩进2个字符等。At present, before the user sends an email, the user inputs the email content in the text input box of the email. The email content generally includes multiple email sub-contents such as address information (for example, XX hello), body content, and signature information. Set the display format of the title information and signature information to left-aligned, manually set the display format of the text content to the first line indented by 2 characters, etc.

发明内容Contents of the invention

为克服相关技术中存在的问题,本公开提供一种设置电子邮件内容排版的方法及装置,所述技术方案如下:In order to overcome the problems existing in related technologies, the present disclosure provides a method and device for setting typesetting of e-mail content, and the technical solution is as follows:

根据本公开实施例的第一方面,提供一种设置电子邮件内容排版的方法,所述方法包括:According to the first aspect of the embodiments of the present disclosure, there is provided a method for setting typesetting of email content, the method comprising:

获取当前电子邮件的邮件内容,所述邮件内容包括至少一个邮件子内容;Obtain the mail content of the current email, where the mail content includes at least one mail sub-content;

从所述邮件内容中识别出所述至少一个邮件子内容中的每个邮件子内容;identifying each of said at least one email subcontent from said email content;

对于所述每个邮件子内容,分别获取所述邮件子内容的显示区域和第一显示格式,根据所述显示区域和所述第一显示格式,对所述邮件子内容进行排版。For each of the mail sub-contents, the display area and the first display format of the mail sub-content are obtained respectively, and the typesetting of the mail sub-content is performed according to the display area and the first display format.

本公开实施例中,终端获取当前电子邮件的邮件内容后,可以从该邮件内容中识别出该至少一个邮件子内容中的每个邮件子内容;并对于该每个邮件子内容,根据该邮件子内容的显示区域和该第一显示格式,自动对该邮件子内容进行排版;省略了用户手动操作的繁琐过程,提高了设置电子邮件内容排版的效率。In the embodiment of the present disclosure, after the terminal acquires the email content of the current email, it can identify each email sub-content in the at least one email sub-content from the email content; and for each email sub-content, according to the email The display area of the sub-content and the first display format automatically typeset the sub-content of the email; omits the cumbersome process of manual operation by the user, and improves the efficiency of setting the typesetting of the email content.

在一种可能的实现方式中,所述根据所述显示区域和所述第一显示格式,对所述邮件子内容进行排版,包括:In a possible implementation manner, the typesetting of the email subcontent according to the display area and the first display format includes:

将所述邮件子内容显示在所述显示区域中;displaying the mail sub-content in the display area;

根据所述第一显示格式,将所述邮件子内容的显示格式设置为所述第一显示格式。According to the first display format, the display format of the mail sub-content is set as the first display format.

本公开实施例中,终端先将邮件子内容显示在显示区域中,再将邮件子内容的显示格式设置为第一显示格式,更准确的设置了邮件内容中每个邮件子内容的排版格式。In the embodiment of the present disclosure, the terminal first displays the mail sub-content in the display area, and then sets the display format of the mail sub-content as the first display format, and more accurately sets the typesetting format of each mail sub-content in the mail content.

在一种可能的实现方式中,所述获取当前电子邮件的邮件内容之前,所述方法还包括:In a possible implementation manner, before acquiring the content of the current email, the method further includes:

在所述当前电子邮件的工具栏中显示邮件格式化按钮;displaying a mail formatting button in the toolbar of said current email;

检测到所述邮件格式化按钮被触发时,执行所述获取当前电子邮件的邮件内容的步骤。When it is detected that the email formatting button is triggered, the step of obtaining the email content of the current email is executed.

本公开实施例中,终端在当前电子邮件的工具栏中显示邮件格式化按钮,用户只需触发该邮件格式化按钮即可触发终端自动对该邮件子内容进行排版,提高了设置电子邮件内容排版的方法的效率。In the embodiment of the present disclosure, the terminal displays an email formatting button in the toolbar of the current email, and the user only needs to trigger the email formatting button to trigger the terminal to automatically typeset the subcontent of the email, which improves the setting of email content layout. efficiency of the method.

在一种可能的实现方式中,所述根据所述排版格式,对所述邮件内容进行排版之后,所述方法还包括:In a possible implementation manner, after the typesetting of the email content according to the typesetting format, the method further includes:

从所述邮件内容中确定满足预设条件的目标文字信息;Determining the target text information satisfying the preset condition from the email content;

将所述邮件内容中的所述目标文字信息突出显示。Highlighting the target text information in the email content.

本公开实施例中,终端可以将邮件内容中的目标文字信息突出显示,使得用户更快速地浏览到邮件内容中的目标文字信息,提高了用户浏览邮件时的效率。In the embodiment of the present disclosure, the terminal can highlight the target text information in the email content, so that the user can browse the target text information in the email content more quickly, and improve the efficiency when the user browses emails.

在一种可能的实现方式中,所述方法还包括:In a possible implementation, the method further includes:

从所述邮件内容中确定预设数据格式的目标内容;determining target content in a preset data format from the email content;

确定所述目标内容对应的第二显示格式,将所述目标内容的当前显示格式修改为所述第二显示格式。A second display format corresponding to the target content is determined, and the current display format of the target content is modified to the second display format.

本公开实施例中,终端可以根据从邮件内容确定预设数据格式,进而设置该预设数据格式对应的目标内容的第二显示格式,实现对目标内容进行排版,提高了设置电子邮件排版的准确性。In the embodiment of the present disclosure, the terminal can determine the preset data format from the content of the email, and then set the second display format of the target content corresponding to the preset data format, so as to realize the typesetting of the target content and improve the accuracy of email typesetting. sex.

在一种可能的实现方式中,所述当前电子邮件为待发送的电子邮件或接收到的电子邮件。In a possible implementation manner, the current email is an email to be sent or a received email.

本公开实施例中,用户发送或者接收当前电子邮件时,均可设置该当前电子邮件的排版格式,提高了用户浏览邮件时的阅读体验。In the embodiment of the present disclosure, when the user sends or receives the current email, the typesetting format of the current email can be set, which improves the user's reading experience when browsing emails.

根据本公开实施例的第二方面,提供一种设置电子邮件内容排版的装置,所述装置包括:According to the second aspect of the embodiments of the present disclosure, there is provided an apparatus for setting typesetting of email content, the apparatus comprising:

获取模块,用于获取当前电子邮件的邮件内容,所述邮件内容包括至少一个邮件子内容;An acquisition module, configured to acquire the email content of the current email, where the email content includes at least one email sub-content;

识别模块,用于从所述邮件内容中识别出所述至少一个邮件子内容中的每个邮件子内容;an identifying module, configured to identify each of the at least one email subcontent from the email content;

所述获取模块,还用于对于所述每个邮件子内容,分别获取所述邮件子内容的显示区域和第一显示格式;The obtaining module is further configured to separately obtain the display area and the first display format of the mail sub-content for each of the mail sub-contents;

排版模块,用于根据所述显示区域和所述第一显示格式,对所述邮件子内容进行排版。A typesetting module, configured to type type the sub-content of the email according to the display area and the first display format.

在一种可能的实现方式中,所述排版模块,还用于将所述邮件子内容显示在所述显示区域中;根据所述第一显示格式,将所述邮件子内容的显示格式设置为所述第一显示格式。In a possible implementation manner, the typesetting module is further configured to display the mail sub-content in the display area; according to the first display format, set the display format of the mail sub-content to The first display format.

在一种可能的实现方式中,所述装置还包括:In a possible implementation manner, the device further includes:

第一显示模块,用于在所述当前电子邮件的工具栏中显示邮件格式化按钮;A first display module, configured to display an email formatting button in the toolbar of the current email;

所述获取模块,还用于检测到所述邮件格式化按钮被触发时,执行所述获取当前电子邮件的邮件内容的步骤。The acquiring module is further configured to execute the step of acquiring the email content of the current email when detecting that the email formatting button is triggered.

在一种可能的实现方式中,所述装置还包括:In a possible implementation manner, the device further includes:

第一确定模块,用于从所述邮件内容中确定满足预设条件的目标文字信息;A first determining module, configured to determine target text information satisfying preset conditions from the email content;

第二显示模块,用于将所述邮件内容中的所述目标文字信息突出显示。The second display module is configured to highlight the target text information in the email content.

在一种可能的实现方式中,所述装置还包括:In a possible implementation manner, the device further includes:

第二确定模块,用于从所述邮件内容中确定预设数据格式的目标内容;The second determination module is used to determine the target content in the preset data format from the email content;

第三确定模块,用于确定所述目标内容对应的第二显示格式,A third determining module, configured to determine a second display format corresponding to the target content,

修改模块,用于将所述目标内容的当前显示格式修改为所述第二显示格式。A modifying module, configured to modify the current display format of the target content to the second display format.

在一种可能的实现方式中,所述当前电子邮件为待发送的电子邮件或接收到的电子邮件。In a possible implementation manner, the current email is an email to be sent or a received email.

根据本公开实施例的第三方面,提供一种设置电子邮件内容排版的装置,其特征在于,包括:According to the third aspect of the embodiments of the present disclosure, there is provided an apparatus for setting typesetting of email content, which is characterized in that it includes:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:获取当前电子邮件的邮件内容,所述邮件内容包括至少一个邮件子内容;从所述邮件内容中识别出所述至少一个邮件子内容中的每个邮件子内容;对于所述每个邮件子内容,分别获取所述邮件子内容的显示区域和第一显示格式,根据所述显示区域和所述第一显示格式,对所述邮件子内容进行排版。Wherein, the processor is configured to: obtain the mail content of the current email, the mail content includes at least one mail sub-content; identify each mail sub-content in the at least one mail sub-content from the mail content Content: for each of the mail sub-contents, respectively acquire the display area and the first display format of the mail sub-content, and typesetting the mail sub-content according to the display area and the first display format.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

本公开实施例中,终端获取当前电子邮件的邮件内容后,可以从该邮件内容中识别出该至少一个邮件子内容中的每个邮件子内容;并对于该每个邮件子内容,根据该邮件子内容的显示区域和该第一显示格式,自动对该邮件子内容进行排版;省略了用户手动操作的繁琐过程,提高了设置电子邮件内容排版的效率。In the embodiment of the present disclosure, after the terminal acquires the email content of the current email, it can identify each email sub-content in the at least one email sub-content from the email content; and for each email sub-content, according to the email The display area of the sub-content and the first display format automatically typeset the sub-content of the email; omits the cumbersome process of manual operation by the user, and improves the efficiency of setting the typesetting of the email content.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是根据一示例性实施例示出的一种设置电子邮件内容排版的方法的流程图;Fig. 1 is a flow chart of a method for setting email content typesetting according to an exemplary embodiment;

图2是根据一示例性实施例示出的一种设置电子邮件内容排版的方法的流程图;Fig. 2 is a flow chart of a method for setting email content typesetting according to an exemplary embodiment;

图3是根据一示例性实施例示出的一种设置电子邮件内容排版的装置的框图;Fig. 3 is a block diagram of an apparatus for setting typesetting of email content according to an exemplary embodiment;

图4是根据一示例性实施例示出的一种设置电子邮件内容排版的装置400的框图。Fig. 4 is a block diagram of an apparatus 400 for setting typesetting of email content according to an exemplary embodiment.

具体实施方式detailed description

为使本公开的目的、技术方案和优点更加清楚,下面将结合附图对本公开实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present disclosure clearer, the implementation manners of the present disclosure will be further described in detail below in conjunction with the accompanying drawings.

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

相关技术中,用户通过邮件客户端发送邮件时,用户输入邮件内容后,用户手动设置电子邮件内容的排版,例如,用户需手动将正文内容的显示格式设置为首行缩进2个字符、将图片格式设置为居中显示格式等,操作过程繁琐,从而导致设置电子邮件内容排版的效率低。In related technologies, when a user sends an email through an email client, after the user enters the content of the email, the user manually sets the typesetting of the email content. The format is set to the center display format, etc., and the operation process is cumbersome, which leads to low efficiency in setting the typesetting of the email content.

本公开实施例中,终端获取当前电子邮件的邮件内容后,可以从该邮件内容中识别出该至少一个邮件子内容中的每个邮件子内容;并对于该每个邮件子内容,根据该邮件子内容的显示区域和该第一显示格式,自动对该邮件子内容进行排版;省略了用户手动操作的繁琐过程,提高了设置电子邮件内容排版的效率。In the embodiment of the present disclosure, after the terminal acquires the email content of the current email, it can identify each email sub-content in the at least one email sub-content from the email content; and for each email sub-content, according to the email The display area of the sub-content and the first display format automatically typeset the sub-content of the email; omits the cumbersome process of manual operation by the user, and improves the efficiency of setting the typesetting of the email content.

图1是根据一示例性实施例示出的一种设置电子邮件内容排版的方法的流程图,如图1所示,包括以下步骤。Fig. 1 is a flow chart of a method for setting typesetting of email content according to an exemplary embodiment, as shown in Fig. 1 , it includes the following steps.

在步骤101中,获取当前电子邮件的邮件内容,该邮件内容包括至少一个邮件子内容。In step 101, the email content of the current email is acquired, and the email content includes at least one email sub-content.

在步骤102中,从该邮件内容中识别出该至少一个邮件子内容中的每个邮件子内容。In step 102, each email sub-content of the at least one email sub-content is identified from the email content.

在步骤103中,对于该每个邮件子内容,分别获取该邮件子内容的显示区域和第一显示格式,根据该显示区域和该第一显示格式,对该邮件子内容进行排版。In step 103, for each mail sub-content, the display area and the first display format of the mail sub-content are obtained respectively, and the typesetting of the mail sub-content is performed according to the display area and the first display format.

本发明实施例提供的方法,终端获取当前电子邮件的邮件内容后,可以从该邮件内容中识别出该至少一个邮件子内容中的每个邮件子内容;并对于该每个邮件子内容,根据该邮件子内容的显示区域和该第一显示格式,自动对该邮件子内容进行排版;省略了用户手动操作的繁琐过程,提高了设置电子邮件内容排版的效率。In the method provided by the embodiment of the present invention, after the terminal obtains the mail content of the current email, it can identify each mail sub-content in the at least one mail sub-content from the mail content; and for each mail sub-content, according to The display area of the mail sub-content and the first display format automatically typesetting the mail sub-content; omitting the cumbersome process of manual operation by the user, and improving the efficiency of setting the typesetting of the email content.

在一种可能的实现方式中,该根据该显示区域和该第一显示格式,对该邮件子内容进行排版,包括:In a possible implementation manner, according to the display area and the first display format, typesetting the subcontent of the email includes:

将该邮件子内容显示在该显示区域中;display the mail sub-content in the display area;

根据该第一显示格式,将该邮件子内容的显示格式设置为该第一显示格式。According to the first display format, the display format of the mail sub-content is set as the first display format.

在一种可能的实现方式中,该获取当前电子邮件的邮件内容之前,该方法还包括:In a possible implementation manner, before acquiring the content of the current email, the method further includes:

在该当前电子邮件的工具栏中显示邮件格式化按钮;Display a message formatting button in the toolbar of that current email;

检测到该邮件格式化按钮被触发时,执行该获取当前电子邮件的邮件内容的步骤。When it is detected that the email formatting button is triggered, the step of obtaining the email content of the current email is executed.

在一种可能的实现方式中,该根据该排版格式,对该邮件内容进行排版之后,该方法还包括:In a possible implementation manner, after the content of the email is typeset according to the typesetting format, the method further includes:

从该邮件内容中确定满足预设条件的目标文字信息;Determining target text information satisfying preset conditions from the email content;

将该邮件内容中的该目标文字信息突出显示。Highlight the target text information in the email content.

在一种可能的实现方式中,该方法还包括:In a possible implementation, the method further includes:

从该邮件内容中确定预设数据格式的目标内容;Determine the target content of the preset data format from the email content;

确定该目标内容对应的第二显示格式,将该目标内容的当前显示格式修改为该第二显示格式。A second display format corresponding to the target content is determined, and the current display format of the target content is modified to the second display format.

在一种可能的实现方式中,该当前电子邮件为待发送的电子邮件或接收到的电子邮件。In a possible implementation manner, the current email is an email to be sent or a received email.

上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。All the above optional technical solutions may be combined in any way to form optional embodiments of the present disclosure, which will not be repeated here.

图2是根据一示例性实施例示出的一种设置电子邮件内容排版的方法流程图,该方法的执行主体可以为终端;如图2所示,该方法包括以下步骤。Fig. 2 is a flow chart of a method for setting typesetting of email content according to an exemplary embodiment, the method may be executed by a terminal; as shown in Fig. 2 , the method includes the following steps.

在步骤201中,终端在该当前电子邮件的工具栏中显示邮件格式化按钮,检测到该邮件格式化按钮被触发时,执行步骤202。In step 201, the terminal displays an email formatting button in the toolbar of the current email, and executes step 202 when detecting that the email formatting button is triggered.

本公开实施例中,终端可以在当前电子邮件的工具栏中显示一个邮件格式化按钮,用户可以点击该邮件格式化按钮触发终端设置电子邮件内容的排版格式。终端实时检测该邮件格式化按钮,当检测到该邮件格式化按钮被触发时,通过以下步骤202-205,设置该当前电子邮件的邮件排版格式。In the embodiment of the present disclosure, the terminal may display an email formatting button in the toolbar of the current email, and the user may click the email formatting button to trigger the terminal to set the typesetting format of the email content. The terminal detects the email formatting button in real time, and when it detects that the email formatting button is triggered, it sets the email layout format of the current email through the following steps 202-205.

其中,当该当前电子邮件为待发送的电子邮件时,在电子邮件编辑界面的工具栏中显示邮件格式化按钮;当该当前电子邮件为待发送的电子邮件时,在电子邮件文本界面的工具栏中显示邮件格式化按钮。Wherein, when the current email is an email to be sent, a mail formatting button is displayed in the toolbar of the email editing interface; when the current email is an email to be sent, the tool in the email text interface The message formatting buttons appear in the bar.

本公开实施例提供的一种可能实现方式中,邮件排版格式可以包括邮件内容的显示区域和显示格式,其中,显示区域为邮件内容中每个邮件子内容的显示区域;显示格式包括字体大小、字体样式和行间距等。In a possible implementation provided by an embodiment of the present disclosure, the email typesetting format may include a display area and a display format of the email content, where the display area is the display area of each email sub-content in the email content; the display format includes font size, Font style and line spacing etc.

终端可预先存储一种或多种邮件排版格式,当终端检测到邮件格式化按钮被触发时,终端显示排版格式选择界面,该排版格式选择界面包括一种或多种邮件排版格式,用户可以根据需要选择一种邮件排版格式,终端获取用户选择的邮件排版格式,执行步骤202。The terminal can pre-store one or more email layout formats. When the terminal detects that the email formatting button is triggered, the terminal displays the layout format selection interface. The layout format selection interface includes one or more email layout formats. It is necessary to select an email layout format, and the terminal obtains the email layout format selected by the user, and performs step 202 .

在步骤202中,终端获取当前电子邮件的邮件内容,该邮件内容包括至少一个邮件子内容。In step 202, the terminal acquires the email content of the current email, and the email content includes at least one email sub-content.

如果该当前电子邮件为用户待发送的电子邮件,终端需识别当前电子邮件输入框中用户输入的邮件内容,因此,本步骤中,终端获取当前电子邮件的邮件内容的步骤可以为:终端识别当前电子邮件的邮件内容输入框,获取该邮件内容输入框内的邮件内容。If the current email is the email to be sent by the user, the terminal needs to identify the email content entered by the user in the current email input box. Therefore, in this step, the step for the terminal to obtain the email content of the current email can be: the terminal identifies the current The email content input box of the email, to obtain the email content in the email content input box.

本公开实施例中,该邮件内容可以包括多个邮件子内容,邮件子内容可以为邮件内容中的称呼、标题、正文、签名等,本公开实施例对该邮件子内容并不作具体限定,例如,邮件子内容还可以为邮件内容中的祝词、日期等。In the embodiment of the present disclosure, the email content may include multiple email subcontents, and the email subcontent may be the address, title, text, signature, etc. in the email content. The embodiment of the present disclosure does not specifically limit the email subcontent, for example , the sub-content of the email may also be a congratulatory speech, a date, etc. in the email content.

如果该当前电子邮件为用户接收到的电子邮件,终端直接获取该当前电子邮件的邮件内容,因此,终端获取当前电子邮件的邮件内容的步骤可以为:终端识别当前电子邮件的邮件内容文本框,获取该邮件内容文本框内的邮件内容。If the current email is an email received by the user, the terminal directly acquires the email content of the current email. Therefore, the step for the terminal to acquire the email content of the current email may be: the terminal identifies the email content text box of the current email, Get the email content in the email content text box.

在步骤203中,终端从该邮件内容中识别出该至少一个邮件子内容中的每个邮件子内容。In step 203, the terminal identifies each email sub-content in the at least one email sub-content from the email content.

本公开实施例中,终端获取当前电子邮件的邮件内容后,通过HTML(Hyper TextMarkup Language,超文本标记语言)对该邮件内容进行识别,邮件内容可以包括多个邮件子内容,每个邮件子内容对应一个HTML标识,终端根据HTML中对应的邮件子内容的标识,确定邮件内容包括的邮件子内容,其中,邮件子内容可以为邮件内容中的称呼、标题、正文、签名等。In the embodiment of the present disclosure, after the terminal obtains the mail content of the current email, it uses HTML (Hyper TextMarkup Language, hypertext markup language) to identify the mail content. The mail content can include multiple mail sub-contents, and each mail sub-content Corresponding to an HTML identifier, the terminal determines the email subcontent included in the email content according to the corresponding email subcontent identifier in the HTML, wherein the email subcontent can be a title, title, body, signature, etc. in the email content.

例如,HTML中标题对应的标识为<TITLE>,终端将邮件内容中<TITLE>标识对应的邮件子内容确定为标题。For example, the identifier corresponding to the title in HTML is <TITLE>, and the terminal determines the email subcontent corresponding to the <TITLE> identifier in the email content as the title.

本公开实施例中,终端还可以通过HTML对每一个邮件子内容的数据格式进行识别,根据HTML中对应的邮件子内容的标识,确定每个邮件子内容包括的数据的数据格式。其中,每个邮件子内容包括的数据的数据格式可以为文字、图片、表格等。In the embodiment of the present disclosure, the terminal may also identify the data format of each email sub-content through HTML, and determine the data format of the data included in each email sub-content according to the identifier of the corresponding email sub-content in the HTML. Wherein, the data format of the data included in each email sub-content may be text, picture, table and so on.

例如,HTML中表格对应的标识为<TABLE>,终端将邮件子内容中<TABLE>标识对应的数据的数据格式确定为表格。For example, the identifier corresponding to a table in HTML is <TABLE>, and the terminal determines the data format of the data corresponding to the identifier <TABLE> in the subcontent of the email as a table.

再如,HTML中图片对应的标识为<IMG>,终端将邮件子内容中<IMG>标识对应的数据的数据格式确定为图片。For another example, if the mark corresponding to the picture in the HTML is <IMG>, the terminal determines the data format of the data corresponding to the mark <IMG> in the sub-content of the email as a picture.

在步骤204中,对于该每个邮件子内容,终端分别获取该邮件子内容的显示区域和第一显示格式,根据该显示区域和该第一显示格式,对该邮件子内容进行排版。In step 204, for each email subcontent, the terminal obtains the display area and the first display format of the email subcontent respectively, and typesets the email subcontent according to the display area and the first display format.

本公开实施例中,由于邮件内容包括的称呼、标题、正文、日期、签名等多个邮件子内容在电子邮件中的显示区域不同,并且,每个邮件子内容的显示格式也不同,终端需对每个邮件子内容进行排版。因此,终端根据该显示区域和该第一显示格式,对该邮件子内容进行排版的步骤可以为:终端将该邮件子内容显示在该显示区域中,终端根据该第一显示格式,将该邮件子内容的显示格式设置为该第一显示格式。In the embodiment of the present disclosure, since the display area of multiple email subcontents included in the email content, such as title, title, text, date, and signature, is different in the email, and the display format of each email subcontent is also different, the terminal needs to Typesetting of each mail sub-content. Therefore, according to the display area and the first display format, the terminal typeset the subcontent of the email may be as follows: the terminal displays the subcontent of the email in the display area, and the terminal displays the subcontent of the email according to the first display format. The display format of the sub-content is set to the first display format.

本公开实施例中,终端存储了邮件子内容与显示区域的对应关系,终端将该邮件子内容显示在该显示区域中的步骤可以为:终端识别该邮件子内容在电子邮件输入框或者文本框中的当前位置,从邮件子内容和显示区域的对应关系中,获取该邮件子内容和对应的显示区域,判断该邮件子内容的当前位置是否在该显示区域内,如果不在,终端将该邮件子内容显示在该显示区域中;如果在,终端执行根据该第一显示格式,将邮件子内容的显示格式设置为该第一显示格式的步骤。In the embodiment of the present disclosure, the terminal stores the corresponding relationship between the subcontent of the email and the display area, and the step of displaying the subcontent of the email in the display area by the terminal may be as follows: The current position in the mail, from the corresponding relationship between the mail sub-content and the display area, obtain the mail sub-content and the corresponding display area, and judge whether the current position of the mail sub-content is in the display area, if not, the terminal will send the mail The sub-content is displayed in the display area; if yes, the terminal executes the step of setting the display format of the mail sub-content to the first display format according to the first display format.

其中,显示区域为该邮件子内容在当前电子邮件的输入框或文本框中所在的区域,每个邮件子内容对应的显示区域可以根据用户需要设置并更改,本公开实施例对每个邮件子内容对应的显示区域不作具体限制。Wherein, the display area is the area where the mail sub-content is located in the input box or text box of the current email, and the display area corresponding to each mail sub-content can be set and changed according to user needs. The display area corresponding to the content is not specifically limited.

例如,当邮件子内容为标题时,该邮件子内容的显示区域可以为电子邮件输入框或者文本框中的首行位置;再如,当邮件子内容为日期或用户签名时,该邮件子内容的显示区域可以为电子邮件输入框或者文本框中的倒数后三行位置。For example, when the email subcontent is the title, the display area of the email subcontent can be the position of the first line in the email input box or text box; for another example, when the email subcontent is the date or user signature, the email subcontent The display area of can be the last three lines in the email input box or the text box.

本公开实施例中,终端存储了邮件子内容和显示格式的对应关系,终端根据该第一显示格式,将该邮件子内容的显示格式设置为该第一显示格式的步骤可以为:终端获取该邮件子内容的当前格式,并从邮件子内容和显示格式的对应关系中获取该邮件子内容对应的显示格式,将该邮件子内容对应的显示格式确定为第一显示格式,判断该邮件子内容的当前格式是否为第一显示格式,如果不是,将该邮件子内容的当前格式修改为第一显示格式。In the embodiment of the present disclosure, the terminal stores the corresponding relationship between the mail sub-content and the display format, and the terminal sets the display format of the mail sub-content as the first display format according to the first display format may be: the terminal acquires the The current format of the mail sub-content, and obtain the display format corresponding to the mail sub-content from the correspondence between the mail sub-content and the display format, determine the display format corresponding to the mail sub-content as the first display format, and judge the mail sub-content Whether the current format of the email is the first display format, if not, modify the current format of the mail subcontent to the first display format.

其中,第一显示格式为每个邮件子内容在邮件内容中的排版格式,不同的邮件子内容对应的第一显示格式可以相同,也可以不同;第一显示格式可以根据用户需要设置并更改,本公开实施例对第一显示格式并不作具体限定。Wherein, the first display format is the typesetting format of each email subcontent in the email content, and the first display formats corresponding to different email subcontents can be the same or different; the first display format can be set and changed according to user needs, The embodiment of the present disclosure does not specifically limit the first display format.

例如,位于电子邮件输入框或者文本框首行的称呼对应的第一显示格式可以为:左对齐、宋体、四号字、段后间距1行等。For example, the first display format corresponding to the title located in the first line of the email input box or the text box may be: left alignment, Song typeface, font size four, 1 line after a paragraph, etc.

再如,位于电子邮件输入框或者文本框最后两行的签名及日期对应的第一显示格式可以为:右对齐、宋体、四号字、段前间距1行等。For another example, the first display format corresponding to the signature and date located in the last two lines of the email input box or text box can be: right alignment, Times New Roman, font size four, 1 line before a paragraph, etc.

再如,位于称呼和日期之间的正文对应的第一显示格式可以为:两端对齐、首行缩进2字符、单倍行距、宋体、四号字等。For another example, the first display format corresponding to the text located between the title and the date may be: justify both ends, the first line is indented by 2 characters, single line spacing, Times New Roman, font size four, etc.

本公开实施例中,由于每个邮件子内容中可以包括文字、图片、表格等多种数据格式的数据,设置每个邮件子内容的第一显示格式之后,还可以根据每个邮件子内容中包括的一种或多种数据格式的数据,设置每个邮件子内容中不同数据格式对应的数据的显示格式,因此,本步骤还包括:终端从该邮件内容中确定预设数据格式的目标内容,终端确定该目标内容对应的第二显示格式,将该目标内容的当前显示格式修改为该第二显示格式。In the embodiment of the present disclosure, since each email subcontent can include data in multiple data formats such as text, pictures, tables, etc., after setting the first display format of each email subcontent, you can also Including data in one or more data formats, setting the display format of data corresponding to different data formats in each mail sub-content, therefore, this step also includes: the terminal determines the target content of the preset data format from the mail content The terminal determines the second display format corresponding to the target content, and modifies the current display format of the target content to the second display format.

在步骤203中终端已经获取到每个邮件子内容包括的数据的数据格式,在终端从该邮件内容中确定预设数据格式的目标内容的步骤可以为:In step 203, the terminal has obtained the data format of the data included in each mail sub-content, and the step of determining the target content of the preset data format from the mail content at the terminal can be:

终端根据每个邮件子内容包括的数据的数据格式,从该邮件内容中确定预设数据格式的目标内容。The terminal determines the target content in the preset data format from the content of the mail according to the data format of the data contained in each mail sub-content.

终端中存储数据格式和显示格式的对应关系,相应的,终端确定该目标内容对应的第二显示格式的步骤可以为:The corresponding relationship between the data format and the display format is stored in the terminal. Correspondingly, the step for the terminal to determine the second display format corresponding to the target content may be:

终端根据预设数据格式,从数据格式和显示格式的对应关系中获取该目标内容对应的第二显示格式。The terminal obtains the second display format corresponding to the target content from the correspondence between the data format and the display format according to the preset data format.

预设数据格式根据用户的需要设置并更改,本公开实施例对预设数据格式并不作具体限定,例如,预设数据格式可以为数据格式包括的图片、表格等。The preset data format is set and changed according to the needs of the user. The embodiment of the present disclosure does not specifically limit the preset data format. For example, the preset data format may be a picture, a table, etc. included in the data format.

例如,以预设数据格式为图片为例进行说明,终端通过HTML识别出图片标识<IMG>对应的内容为图片,如果图片对应的第二显示格式为居中显示,终端将该图片的显示格式设置为居中显示。For example, taking the preset data format as an image as an example, the terminal recognizes that the content corresponding to the image identifier <IMG> is an image through HTML, and if the second display format corresponding to the image is centered display, the terminal sets the display format of the image to Displayed in the center.

再如,以预设数据为表格为例进行说明,终端通过HTML识别出表格标识<TABLE>对应的内容为表格,如果表格对应的第二显示格式为居中显示、宽3厘米、高1厘米、表格线粗细为1磅,终端将该表格的显示格式设置为居中显示、宽3厘米、高1厘米、表格线粗细为1磅。For another example, take the default data as a table as an example. The terminal recognizes the content corresponding to the table mark <TABLE> through HTML as a table. If the second display format corresponding to the table is centered display, width 3 cm, height 1 cm, The thickness of the table line is 1 point, and the terminal sets the display format of the table as centered display, 3 cm wide, 1 cm high, and the thickness of the table line is 1 point.

再如,以预设数据格式为表格对应的表格标题为例进行说明,终端识别出表格之后,可以继续通过HTML识别出表格标题标识<CAPTION>对应的内容为表格标题,如果表格标题对应的第二显示格式为宋体、四号字、加粗、居中显示,终端将该表格标题的显示格式设置为宋体、四号字、加粗、居中显示。For another example, take the default data format as the table title corresponding to the table as an example. After the terminal recognizes the table, it can continue to identify the content corresponding to the table title mark <CAPTION> through HTML as the table title. If the table title corresponds to the first 2. The display format is Song typeface, font size 4, bold, and centered display. The terminal sets the display format of the table title to Song typeface, font size 4, bold, and centered display.

由于终端检测到该邮件格式化按钮被触发时,自动开始设置该电子邮件的邮件内容,且该当前电子邮件可以为待发送的电子邮件或接收到的电子邮件,使得不同用户之间的邮件内容格式统一,提高了用户浏览邮件时的阅读体验。Since the terminal detects that the email formatting button is triggered, it automatically starts to set the email content of the email, and the current email can be an email to be sent or a received email, so that the email content between different users The format is unified, which improves the reading experience of users when browsing emails.

在步骤205中,终端从该邮件内容中确定满足预设条件的目标文字信息,将该邮件内容中的该目标文字信息突出显示。In step 205, the terminal determines target text information satisfying preset conditions from the email content, and highlights the target text information in the email content.

本公开实施例中,为了方便用户更快捷地找到需要的文字信息,提高用户浏览邮件时的效率,终端可以将满足预设条件的目标文字信息突出显示。In the embodiment of the present disclosure, in order to facilitate the user to find the required text information more quickly and improve the user's efficiency when browsing emails, the terminal can highlight the target text information that meets the preset conditions.

预设条件可以为该邮件内容中预设字符标记的文字信息,该预设条件还可以为该邮件内容中的预设类型的字符串。The preset condition may be text information marked with preset characters in the email content, and the preset condition may also be a preset type of character string in the email content.

当预设条件为该邮件内容中预设字符标记的内容时,终端从该邮件内容中确定满足预设条件的目标文字信息的步骤可以为:终端从该邮件内容中确定预设字符标记的文字信息,将该文字信息确定为目标文字信息。When the preset condition is the content of the preset character mark in the mail content, the step for the terminal to determine the target text information satisfying the preset condition from the mail content may be: the terminal determines the text of the preset character mark from the mail content information, determining the text information as the target text information.

预设字符可以根据需要进行设置并更改,在本公开实施例中,对预设字符不作具体限定;例如,预设字符可以为引用字符,引用字符可以为双引号、单引号、书名号等。The preset characters can be set and changed as required, and in the embodiments of the present disclosure, there is no specific limitation on the preset characters; for example, the preset characters can be quotation characters, and the quotation characters can be double quotation marks, single quotation marks, book title numbers, etc.

当预设字符为引用字符时,终端从该邮件内容中确定满足预设条件的目标文字信息的步骤可以为:终端通过HTML识别邮件子内容中是否存在引用标识<BLOCKQUOTE>对应的文字信息,如果存在,终端将引用字符内的文字信息确定为目标文字信息。When the preset character is a quote character, the step for the terminal to determine the target text information satisfying the preset condition from the email content may be as follows: the terminal identifies whether there is text information corresponding to the quote identifier <BLOCKQUOTE> in the email subcontent through HTML, if exists, the terminal determines the text information in the quoted characters as the target text information.

当预设条件为预设类型的字符串时,终端从该邮件内容中确定满足预设条件的目标文字信息的步骤可以为:终端从该邮件内容中确定预设类型的字符串,将预设类型的字符串确定为目标文字信息。When the preset condition is a character string of a preset type, the step for the terminal to determine the target text information satisfying the preset condition from the email content may be: the terminal determines a character string of a preset type from the email content, and the preset The character string of type is determined as the target text information.

预设类型可以根据需要进行设置并更改,在本公开实施例中,对预设类型不作具体限定;例如,预设类型可以为数字等。The preset type can be set and changed as required, and in the embodiment of the present disclosure, the preset type is not specifically limited; for example, the preset type can be a number and the like.

在一个可能的设计中,预设条件还可以为该邮件内容中的注释、书名号等。In a possible design, the preset condition may also be a comment, a book title, etc. in the content of the email.

本公开实施例中,终端对当前电子邮件中的邮件内容排版格式进行设置之后,如果当前电子邮件为用户接收到的电子邮件,终端存储该当前电子邮件。如果当前电子邮件为待发送的电子邮件,终端发送该当前电子邮件。In the embodiment of the present disclosure, after the terminal sets the typesetting format of the email content in the current email, if the current email is an email received by the user, the terminal stores the current email. If the current email is an email to be sent, the terminal sends the current email.

终端发送该当前电子邮件的步骤可以为:终端检测工具栏中的发送按钮是否被触发,如果终端检测到该发送按钮被触发,获取该电子邮件的收件地址和发件地址,向服务器发送该电子邮件以及该电子邮件对应的收件地址和发件地址。服务器接收终端发送的该电子邮件以及该电子邮件对应的收件地址和发件地址,以该发件地址作为发件人,向该发件地址对应的终端发送该电子邮件。The steps for the terminal to send the current e-mail can be as follows: the terminal detects whether the send button in the toolbar is triggered, if the terminal detects that the send button is triggered, obtains the recipient address and sender address of the e-mail, and sends the e-mail to the server. An email and the email address it was sent from and the email address it sent from. The server receives the email sent by the terminal and the recipient address and sender address corresponding to the email, uses the sender address as a sender, and sends the email to the terminal corresponding to the sender address.

本公开实施例中,终端获取当前电子邮件的邮件内容后,可以从该邮件内容中识别出该至少一个邮件子内容中的每个邮件子内容;并对于该每个邮件子内容,根据该邮件子内容的显示区域和该第一显示格式,自动对该邮件子内容进行排版;并且,终端可以确定预设数据格式的目标内容,将该目标内容的当前显示格式修改为该目标内容对应的第二显示格式,省略了用户手动操作的繁琐过程,提高了设置电子邮件内容排版的效率。In the embodiment of the present disclosure, after the terminal acquires the email content of the current email, it can identify each email sub-content in the at least one email sub-content from the email content; and for each email sub-content, according to the email The display area of the sub-content and the first display format automatically typeset the sub-content of the mail; and, the terminal can determine the target content in the preset data format, and modify the current display format of the target content to the first display format corresponding to the target content. The second display format omits the cumbersome process of manual operation by the user and improves the efficiency of setting the typesetting of the email content.

图3是根据一示例性实施例示出的一种设置电子邮件内容排版的装置的框图。参照图3,该装置包括获取模块301,识别模块302和排版模块303。Fig. 3 is a block diagram of an apparatus for setting typesetting of email content according to an exemplary embodiment. Referring to FIG. 3 , the device includes an acquisition module 301 , an identification module 302 and a typesetting module 303 .

获取模块301,被配置为获取当前电子邮件的邮件内容,该邮件内容包括至少一个邮件子内容;The acquiring module 301 is configured to acquire the email content of the current email, where the email content includes at least one email sub-content;

识别模块302,被配置为从该邮件内容中识别出该至少一个邮件子内容中的每个邮件子内容;An identifying module 302 configured to identify each email sub-content in the at least one email sub-content from the email content;

该获取模块301,还被配置为对于该每个邮件子内容,分别获取该邮件子内容的显示区域和第一显示格式;The acquiring module 301 is further configured to acquire, for each email subcontent, the display area and the first display format of the email subcontent respectively;

排版模块303,被配置为根据该显示区域和该第一显示格式,对该邮件子内容进行排版。The typesetting module 303 is configured to type type the subcontent of the email according to the display area and the first display format.

在一种可能的实现方式中,该排版模块303还被配置为将该邮件子内容显示在该显示区域中;根据该第一显示格式,将该邮件子内容的显示格式设置为该第一显示格式。In a possible implementation manner, the typesetting module 303 is further configured to display the mail sub-content in the display area; according to the first display format, set the display format of the mail sub-content as the first display format Format.

在一种可能的实现方式中,该装置还包括:In a possible implementation manner, the device also includes:

第一显示模块,被配置为在该当前电子邮件的工具栏中显示邮件格式化按钮;A first display module configured to display an email formatting button in the toolbar of the current email;

该获取模块301,还被配置为检测到该邮件格式化按钮被触发时,执行该获取当前电子邮件的邮件内容的步骤。The acquiring module 301 is further configured to execute the step of acquiring the email content of the current email when detecting that the email formatting button is triggered.

在一种可能的实现方式中,该装置还包括:In a possible implementation manner, the device also includes:

第一确定模块,被配置为从该邮件内容中确定满足预设条件的目标文字信息;The first determining module is configured to determine target text information satisfying preset conditions from the email content;

第二显示模块,被配置为将该邮件内容中的该目标文字信息突出显示。The second display module is configured to highlight the target text information in the email content.

在一种可能的实现方式中,该装置还包括:In a possible implementation manner, the device also includes:

第二确定模块,被配置为从该邮件内容中确定预设数据格式的目标内容;The second determination module is configured to determine the target content in the preset data format from the email content;

第三确定模块,被配置为确定该目标内容对应的第二显示格式,A third determining module configured to determine a second display format corresponding to the target content,

修改模块,被配置为将该目标内容的当前显示格式修改为该第二显示格式。A modification module configured to modify the current display format of the target content to the second display format.

在一种可能的实现方式中,该当前电子邮件为待发送的电子邮件或接收到的电子邮件。In a possible implementation manner, the current email is an email to be sent or a received email.

本公开实施例中,终端获取当前电子邮件的邮件内容后,可以从该邮件内容中识别出该至少一个邮件子内容中的每个邮件子内容;并对于该每个邮件子内容,根据该邮件子内容的显示区域和该第一显示格式,自动对该邮件子内容进行排版;并且,终端可以确定预设数据格式的目标内容,将该目标内容的当前显示格式修改为该目标内容对应的第二显示格式,省略了用户手动操作的繁琐过程,提高了设置电子邮件内容排版的效率。In the embodiment of the present disclosure, after the terminal acquires the email content of the current email, it can identify each email sub-content in the at least one email sub-content from the email content; and for each email sub-content, according to the email The display area of the sub-content and the first display format automatically typeset the sub-content of the mail; and, the terminal can determine the target content in the preset data format, and modify the current display format of the target content to the first display format corresponding to the target content. The second display format omits the cumbersome process of manual operation by the user and improves the efficiency of setting the typesetting of the email content.

上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。All the above optional technical solutions may be combined in any way to form optional embodiments of the present disclosure, which will not be repeated here.

需要说明的是:上述实施例提供的设置电子邮件内容排版的装置在设置电子邮件内容排版时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的设置电子邮件内容排版的装置与设置电子邮件内容排版的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: the device for setting typesetting of e-mail content provided by the above-mentioned embodiments only uses the division of the above-mentioned functional modules for illustration when setting the typesetting of e-mail content. In practical applications, the above-mentioned functions can be assigned by Completion of different functional modules means that the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device for setting typesetting of e-mail content provided by the above-mentioned embodiments belongs to the same idea as the embodiment of the method for setting typesetting of e-mail content, and its specific implementation process can be found in the method embodiment, and will not be repeated here.

图4是根据一示例性实施例示出的一种设置电子邮件内容排版的装置400的框图。例如,装置400可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 4 is a block diagram of an apparatus 400 for setting typesetting of email content according to an exemplary embodiment. For example, the apparatus 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

参照图4,装置400可以包括以下一个或多个组件:处理组件402,存储器404,电源组件406,多媒体组件408,音频组件410,输入/输出(I/O)接口412,传感器组件414,以及通信组件416。4, apparatus 400 may include one or more of the following components: processing component 402, memory 404, power supply component 406, multimedia component 408, audio component 410, input/output (I/O) interface 412, sensor component 414, and communication component 416 .

处理组件402通常控制装置400的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件402可以包括一个或多个处理器420来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件402可以包括一个或多个模块,便于处理组件402和其他组件之间的交互。例如,处理组件402可以包括多媒体模块,以方便多媒体组件408和处理组件402之间的交互。The processing component 402 generally controls the overall operations of the device 400, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 402 may include one or more modules that facilitate interaction between processing component 402 and other components. For example, processing component 402 may include a multimedia module to facilitate interaction between multimedia component 408 and processing component 402 .

存储器404被配置为存储各种类型的数据以支持在装置400的操作。这些数据的示例包括用于在装置400上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器404可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 404 is configured to store various types of data to support operations at the device 400 . Examples of such data include instructions for any application or method operating on device 400, contact data, phonebook data, messages, pictures, videos, and the like. The memory 404 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件406为装置400的各种组件提供电力。电源组件406可以包括电源管理系统,一个或多个电源,及其他与为装置400生成、管理和分配电力相关联的组件。The power supply component 406 provides power to various components of the device 400 . Power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 400 .

多媒体组件408包括在所述装置400和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件408包括一个前置摄像头和/或后置摄像头。当装置400处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 408 includes a front camera and/or a rear camera. When the device 400 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件410被配置为输出和/或输入音频信号。例如,音频组件410包括一个麦克风(MIC),当装置400处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器404或经由通信组件416发送。在一些实施例中,音频组件410还包括一个扬声器,用于输出音频信号。The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a microphone (MIC), which is configured to receive external audio signals when the device 400 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 404 or sent via communication component 416 . In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.

I/O接口412为处理组件402和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 412 provides an interface between the processing component 402 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件414包括一个或多个传感器,用于为装置400提供各个方面的状态评估。例如,传感器组件414可以检测到装置400的打开/关闭状态,组件的相对定位,例如所述组件为装置400的显示器和小键盘,传感器组件414还可以检测装置400或装置400一个组件的位置改变,用户与装置400接触的存在或不存在,装置400方位或加速/减速和装置400的温度变化。传感器组件414可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件414还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件414还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 414 includes one or more sensors for providing status assessments of various aspects of device 400 . For example, the sensor component 414 can detect the open/closed state of the device 400, the relative positioning of components, such as the display and keypad of the device 400, and the sensor component 414 can also detect a change in the position of the device 400 or a component of the device 400 , the presence or absence of user contact with the device 400 , the device 400 orientation or acceleration/deceleration and the temperature change of the device 400 . The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件416被配置为便于装置400和其他设备之间有线或无线方式的通信。装置400可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件416经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件416还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 416 is configured to facilitate wired or wireless communication between the apparatus 400 and other devices. The device 400 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置400可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述设置电子邮件内容排版的方法。In an exemplary embodiment, apparatus 400 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Realized by a gate array (FPGA), controller, microcontroller, microprocessor or other electronic components, it is used to execute the above method for setting typesetting of email content.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器404,上述指令可由装置400的处理器420执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。当所述存储介质中的指令由终端的处理器执行时,使得终端能够执行上述设置电子邮件内容排版的方法。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 404 including instructions, which can be executed by the processor 420 of the device 400 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like. When the instructions in the storage medium are executed by the processor of the terminal, the terminal is enabled to execute the above-mentioned method for setting typesetting of email content.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (13)

1. a kind of method of setting Email content typesetting is it is characterised in that methods described includes:
Obtain the Mail Contents of current e-mail, described Mail Contents include the sub- content of at least one mail;
The sub- content of each mail in the described sub- content of at least one mail is identified from described Mail Contents;
The sub- content for each mail described, obtains viewing area and first display format of the sub- content of described mail, root respectively According to described viewing area and described first display format, to described mail, sub- content carries out typesetting.
2. method according to claim 1 it is characterised in that described according to described viewing area and described first display lattice Formula, to described mail, sub- content carries out typesetting, including:
Sub- for described mail content is shown in described viewing area;
According to described first display format, the display format of sub- for described mail content is set to described first display format.
3. method according to claim 1 is it is characterised in that before the Mail Contents of described acquisition current e-mail, Methods described also includes:
Formated mail button is shown in the toolbar of described current e-mail;
When described formated mail button is detected and being triggered, the step of the described Mail Contents obtaining current e-mail of execution Suddenly.
4. method according to claim 1 it is characterised in that described typesetting is carried out to described Mail Contents after, described Method also includes:
Determine from described Mail Contents and meet pre-conditioned target text information;
Described target text information in described Mail Contents is highlighted.
5. method according to claim 1 is it is characterised in that methods described also includes:
The object content of preset data form is determined from described Mail Contents;
Determine the corresponding second display format of described object content, the current display format of described object content is revised as described Second display format.
6. method according to claim 1 it is characterised in that described current e-mail be Email to be sent or The Email receiving.
7. a kind of device of setting Email content typesetting is it is characterised in that described device includes:
Acquisition module, for obtaining the Mail Contents of current e-mail, described Mail Contents are included at least one mail Hold;
Identification module, for identifying in each mail in the described sub- content of at least one mail from described Mail Contents Hold;
Described acquisition module, is additionally operable to the sub- content for each mail described, obtains the viewing area of the sub- content of described mail respectively Domain and the first display format;
Type-setting module, for according to described viewing area and described first display format, to described mail, sub- content carries out typesetting.
8. device according to claim 7, it is characterised in that described type-setting module, is additionally operable to sub- for described mail content It is shown in described viewing area;According to described first display format, the display format of sub- for described mail content is set to institute State the first display format.
9. device according to claim 7 is it is characterised in that described device also includes:
First display module, for showing formated mail button in the toolbar of described current e-mail;
Described acquisition module, is additionally operable to described formated mail button is detected when being triggered, executes described acquisition Current electronic The step of the Mail Contents of mail.
10. device according to claim 7 is it is characterised in that described device also includes:
First determining module, meets pre-conditioned target text information for determining from described Mail Contents;
Second display module, for highlighting the described target text information in described Mail Contents.
11. devices according to claim 7 are it is characterised in that described device also includes:
Second determining module, for determining the object content of preset data form from described Mail Contents;
3rd determining module, for determining the corresponding second display format of described object content,
Modified module, for being revised as described second display format by the current display format of described object content.
12. devices according to claim 7 are it is characterised in that described current e-mail is Email to be sent Or the Email receiving.
A kind of 13. devices of setting Email content typesetting are it is characterised in that include:
Processor;
For storing the memory of processor executable;
Wherein, described processor is configured to:Obtain the Mail Contents of current e-mail, described Mail Contents include at least one The sub- content of individual mail;The sub- content of each mail in the described sub- content of at least one mail is identified from described Mail Contents; The sub- content for each mail described, obtains viewing area and first display format of the sub- content of described mail, respectively according to institute State viewing area and described first display format, sub- content carries out typesetting to described mail.
CN201611025951.XA 2016-11-17 2016-11-17 Method and device for setting e-mail content typesetting Pending CN106407174A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611025951.XA CN106407174A (en) 2016-11-17 2016-11-17 Method and device for setting e-mail content typesetting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611025951.XA CN106407174A (en) 2016-11-17 2016-11-17 Method and device for setting e-mail content typesetting

Publications (1)

Publication Number Publication Date
CN106407174A true CN106407174A (en) 2017-02-15

Family

ID=58069143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611025951.XA Pending CN106407174A (en) 2016-11-17 2016-11-17 Method and device for setting e-mail content typesetting

Country Status (1)

Country Link
CN (1) CN106407174A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115914160A (en) * 2022-11-24 2023-04-04 平安银行股份有限公司 Email sending parameter configuration method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1408094A (en) * 1999-12-06 2003-04-02 Ewt商贸顾问新西兰有限公司 Placing advertisements in publications
CN101989256A (en) * 2009-07-31 2011-03-23 北京大学 Typesetting method of document file and device
CN103678268A (en) * 2012-09-19 2014-03-26 北京大学 Automatic typesetting method and device for official documents
US20150100650A1 (en) * 2013-10-03 2015-04-09 Yandex Europe Ag Method of and system for reformatting an e-mail message based a categorization thereof
CN105787690A (en) * 2016-02-26 2016-07-20 宁波萨瑞通讯有限公司 Method and device facilitating filling of mailing list

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1408094A (en) * 1999-12-06 2003-04-02 Ewt商贸顾问新西兰有限公司 Placing advertisements in publications
CN101989256A (en) * 2009-07-31 2011-03-23 北京大学 Typesetting method of document file and device
CN103678268A (en) * 2012-09-19 2014-03-26 北京大学 Automatic typesetting method and device for official documents
US20150100650A1 (en) * 2013-10-03 2015-04-09 Yandex Europe Ag Method of and system for reformatting an e-mail message based a categorization thereof
CN105787690A (en) * 2016-02-26 2016-07-20 宁波萨瑞通讯有限公司 Method and device facilitating filling of mailing list

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
代前杰等: "《31天学会CRM项目开发》", 31 March 2016, 北京:机械工业出版社 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115914160A (en) * 2022-11-24 2023-04-04 平安银行股份有限公司 Email sending parameter configuration method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106126052A (en) Text selection method and device
CN104270498B (en) To the method and apparatus of communication interface input communication number
CN106202223A (en) Content collection method, device and for collecting the device of content in application program
CN106791092A (en) The searching method and device of contact person
CN106060257A (en) Method and device for viewing relevant information of contact
CN106789551B (en) Conversation message display method and device
CN104133623A (en) Page zooming method and page zooming device
CN106844717A (en) Webpage search display methods and device
CN110782510A (en) Method and device for generating stickers
CN107229403A (en) A kind of information content system of selection and device
CN107239351A (en) Method of attaching and device
CN105933502A (en) Method and device for marking message to be in read status
CN110502484B (en) Method, device and medium for displaying file information on mobile terminal
CN106506775A (en) Method, device, and terminal device for displaying contact list
CN106339160A (en) Browsing interactive processing method and device
CN106778507A (en) Text extraction method and device
CN106648392B (en) The method and device of pasting data
CN105955637B (en) Method and apparatus for processing text input boxes
CN106407174A (en) Method and device for setting e-mail content typesetting
CN107423324A (en) Access method, device and the equipment of webpage
CN105978797A (en) Message replying method and device
CN106936986A (en) Application processing method and device
CN106412205A (en) Contact person ordering method and apparatus thereof, and terminal equipment
CN106354749B (en) Information display method and device
CN105260088A (en) Information classify-displaying method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170215

RJ01 Rejection of invention patent application after publication