[go: up one dir, main page]

CN110955747B - Method and device for modifying complex text font - Google Patents

Method and device for modifying complex text font Download PDF

Info

Publication number
CN110955747B
CN110955747B CN201911201282.0A CN201911201282A CN110955747B CN 110955747 B CN110955747 B CN 110955747B CN 201911201282 A CN201911201282 A CN 201911201282A CN 110955747 B CN110955747 B CN 110955747B
Authority
CN
China
Prior art keywords
character
display
glyph
modified
name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911201282.0A
Other languages
Chinese (zh)
Other versions
CN110955747A (en
Inventor
王玉欣
栾瑛
于萍萍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New Founder Holdings Development Co ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201911201282.0A priority Critical patent/CN110955747B/en
Publication of CN110955747A publication Critical patent/CN110955747A/en
Application granted granted Critical
Publication of CN110955747B publication Critical patent/CN110955747B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/31Indexing; Data structures therefor; Storage structures
    • G06F16/316Indexing structures
    • 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/33Querying
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

本发明提供一种修改复杂文本字形的方法和装置,当接收到用户输入的待修改字或待修改的字对应的字符串,通过文本解释器调用复杂文本字库,获取到待修改字中的每个字符对应的显示字形的索引值和/或名称,显示每个字符对应的显示字形的索引值和/或名称,使得用户可以根据每个字符对应的显示字形的索引值和/或名称,对待修改字对应的字符串中的目标字符对应的显示字形进行修改。根据字符对应的显示字形的索引值和/或名称能够快速、准确定位到待修改的显示字形,在字形列表中进行修改,避免了反复试错修改,节约了人力成本和时间。

Figure 201911201282

The present invention provides a method and device for modifying complex text glyphs. When the word to be modified or the character string corresponding to the word to be modified is received from the user, the complex text font library is called by the text interpreter to obtain each character in the word to be modified. The index value and/or name of the display glyph corresponding to each character, display the index value and/or name of the display glyph corresponding to each character, so that the user can treat according to the index value and/or name of the display glyph corresponding to each character The display font corresponding to the target character in the character string corresponding to the modification word is modified. According to the index value and/or name of the display glyph corresponding to the character, the display glyph to be modified can be quickly and accurately located, and the modification can be performed in the glyph list, which avoids repeated trial and error modification, and saves labor costs and time.

Figure 201911201282

Description

修改复杂文本字形的方法和装置Method and device for modifying complex text glyphs

技术领域technical field

本发明涉及计算机文本显示技术,尤其涉及一种修改复杂文本字形的方法和装置。The invention relates to computer text display technology, in particular to a method and device for modifying complex text fonts.

背景技术Background technique

复杂文本如阿拉伯文、印度文、藏文、蒙文等,名义字符与显示字形不是一一对应的,通常一个名义字符对应多个显示字形。在复杂文本字库测试过程中,如果发现某个字形显示效果不好,想要修改该显示字形,无法通过名义字符找到该显示字形。For complex texts such as Arabic, Indian, Tibetan, Mongolian, etc., there is not a one-to-one correspondence between nominal characters and display glyphs, and usually one nominal character corresponds to multiple display glyphs. During the complex text font test, if you find that the display effect of a certain glyph is not good and you want to modify the display glyph, you cannot find the display glyph through the nominal character.

现有解决上述问题的方法是,找到与待修改字形类似的字进行比对,从而判断可能需要修改哪个显示字形,然后在字库中更改此字形,查看显示效果是否正确,如不正确还要进行上述步骤进行比对并修改字形。The existing method to solve the above problem is to find a character similar to the glyph to be modified and compare it, so as to determine which display glyph may need to be modified, and then change this glyph in the font library to check whether the display effect is correct. The above steps compare and modify fonts.

这种修改字形的方法一般需要经过多次试错,费时费力。This method of modifying the font generally needs to go through many trials and errors, which is time-consuming and labor-intensive.

发明内容Contents of the invention

本发明提供一种修改复杂文本字形的方法和装置,用以解决现有技术中修改复杂文本字形需要经过多次试错,费时费力的问题。The present invention provides a method and device for modifying complex text fonts, which are used to solve the problems in the prior art that modification of complex text fonts requires multiple trials and errors, which is time-consuming and labor-intensive.

一方面,本发明提供一种修改复杂文本字形的方法,包括:In one aspect, the present invention provides a method for modifying complex text glyphs, comprising:

接收用户输入的待修改的显示字形所在的字或待修改的显示字形所在的字对应的字符串;Receive the character whose display glyph to be modified or the character string corresponding to the character whose display glyph is to be modified input by the user;

通过文本解释器调用复杂文本字库,获取所述待修改的显示字形所在的字对应的字符串中的每个字符对应的显示字形的索引值和/或名称,在所述复杂文本库中所述每个字符在不同的字中具有不同的显示字形;Call the complex text font library through the text interpreter to obtain the index value and/or name of the display glyph corresponding to each character in the character string corresponding to the word where the display glyph to be modified is located, described in the complex text library Each character has different display glyphs in different characters;

显示所述每个字符对应的显示字形的索引值和/或名称;displaying the index value and/or name of the display glyph corresponding to each character;

根据所述每个字符对应的显示字形的索引值和/或名称,对所述待修改字对应的字符串中的目标字符对应的显示字形进行修改。According to the index value and/or name of the display font corresponding to each character, the display font corresponding to the target character in the character string corresponding to the word to be modified is modified.

可选的,所述通过文本解释器调用复杂文本字库,获取所述待修改字中的每个字符对应的显示字形的索引值和/或名称,包括:Optionally, calling the complex text font library through the text interpreter to obtain the index value and/or name of the display glyph corresponding to each character in the word to be modified includes:

在所述文本解释器调用所述复杂文本字库的过程中,通过接口函数从所述文本解释器中获取所述每个字符对应的显示字形的索引值和/或名称。When the text interpreter calls the complex text font library, the index value and/or name of the display glyph corresponding to each character is obtained from the text interpreter through an interface function.

可选的,所述接收用户输入的待修改的显示字形所在的字或待修改的显示字形所在的字对应的字符串之前,还包括:Optionally, before receiving the character of the character whose display glyph is to be modified or the character string corresponding to the word whose display glyph is to be modified, the receiving user input further includes:

接收用户输入的第一选择信号,所述第一选择信号用于选择所述文本解释器的类型和版本。A first selection signal input by a user is received, and the first selection signal is used to select the type and version of the text interpreter.

可选的,所述根据所述每个字符对应的目标显示字形的索引值和/或名称,对所述待修改字对应的字符串中的目标字符对应的显示字形进行修改,包括:Optionally, modifying the display glyph corresponding to the target character in the character string corresponding to the word to be modified according to the index value and/or name of the target display glyph corresponding to each character includes:

接收用户输入的第二选择信号,所述第二选择信号用于从所述待修改字对应的字符串中选择所述目标字符;receiving a second selection signal input by the user, the second selection signal being used to select the target character from the character string corresponding to the word to be modified;

根据所述目标字符的索引值和/或名称,对所述目标字符对应的显示字形进行修改。Modify the display glyph corresponding to the target character according to the index value and/or name of the target character.

可选的,所述复杂文本库为OpenType字库。Optionally, the complex text library is an OpenType font library.

另一方面,本发明提供一种修改复杂文本字形的装置,包括:In another aspect, the present invention provides a device for modifying complex text glyphs, including:

接收模块,用于接收用户输入的待修改的显示字形所在的字或待修改的显示字形所在的字对应的字符串;The receiving module is used to receive the word where the displayed glyph to be modified is input by the user or the character string corresponding to the word where the displayed glyph is to be modified;

调用模块,用于通过文本解释器调用复杂文本字库,获取所述待修改的显示字形所在的字对应的字符串中的每个字符对应的显示字形的索引值和/或名称,在所述复杂文本库中所述每个字符在不同的字中具有不同的显示字形;The calling module is used to call the complex text font library through the text interpreter, and obtain the index value and/or name of the display glyph corresponding to each character in the string corresponding to the word where the display glyph to be modified is located. Each character described in the text library has different display glyphs in different characters;

显示模块,用于显示所述每个字符对应的显示字形的索引值和/或名称;a display module, configured to display the index value and/or name of the display glyph corresponding to each character;

修改模块,用于根据所述每个字符对应的显示字形的索引值和/或名称,对所述待修改字对应的字符串中的目标字符对应的显示字形进行修改。The modifying module is configured to modify the display glyph corresponding to the target character in the character string corresponding to the word to be modified according to the index value and/or name of the display glyph corresponding to each character.

可选的,所述调用模块具体用于:Optionally, the calling module is specifically used for:

在所述文本解释器调用所述复杂文本字库的过程中,通过接口函数从所述文本解释器中获取所述每个字符对应的显示字形的索引值和/或名称。When the text interpreter calls the complex text font library, the index value and/or name of the display glyph corresponding to each character is obtained from the text interpreter through an interface function.

可选的,接收模块,还用于:Optionally, the receiving module is also used for:

接收用户输入的第一选择信号,所述第一选择信号用于选择所述文本解释器的类型和版本。A first selection signal input by a user is received, and the first selection signal is used to select the type and version of the text interpreter.

可选的,所述修改模块具体用于:Optionally, the modification module is specifically used for:

接收用户输入的第二选择信号,所述第二选择信号用于从所述待修改字对应的字符串中选择所述目标字符;receiving a second selection signal input by the user, the second selection signal being used to select the target character from the character string corresponding to the word to be modified;

根据所述目标字符的索引值和/或名称,对所述目标字符对应的显示字形进行修改。Modify the display glyph corresponding to the target character according to the index value and/or name of the target character.

可选的,所述复杂文本库为OpenType字库。Optionally, the complex text library is an OpenType font library.

再一方面,本发明提供一种修改复杂文本字形的设备,包括:存储器,处理器;In yet another aspect, the present invention provides a device for modifying complex text glyphs, including: a memory, a processor;

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

处理器,用于在计算机程序被执行时,实现如上述第一方面所述的方法。A processor, configured to implement the method as described in the first aspect above when the computer program is executed.

又一方面,本发明提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现如上述第一方面所述的修改复杂文本字形的方法。In yet another aspect, the present invention provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when executed by a processor, the computer-readable instructions are used to implement the above-mentioned first aspect. Methods for modifying complex text glyphs.

本发明提供的修改复杂文本字形的方法和装置,当接收到用户输入的待修改字或待修改的字对应的字符串,通过文本解释器调用复杂文本字库,获取到待修改字中的每个字符对应的显示字形的索引值和/或名称,显示每个字符对应的显示字形的索引值和/或名称,使得用户可以根据每个字符对应的显示字形的索引值和/或名称,对待修改字对应的字符串中的目标字符对应的显示字形进行修改。由于在复杂文本字库中每个字符在不同的字中具有不同的显示字形,而显示字形的索引值和/或名称能够唯一确定一个显示显示,因此,根据字符对应的显示字形的索引值和/或名称能够快速、准确定位到待修改的显示字形,在字形列表中进行修改,避免了反复试错修改,节约了人力成本和时间。The method and device for modifying complex text glyphs provided by the present invention, when receiving the word to be modified or the character string corresponding to the word to be modified, calls the complex text font library through the text interpreter, and obtains each word in the word to be modified. The index value and/or name of the display glyph corresponding to the character, display the index value and/or name of the display glyph corresponding to each character, so that the user can according to the index value and/or name of the display glyph corresponding to each character, the Modify the display glyph corresponding to the target character in the character string corresponding to the character. Since each character in the complex text font library has different display glyphs in different characters, and the index value and/or name of the display glyph can uniquely determine a display display, therefore, according to the index value and/or name of the display glyph corresponding to the character Or the name can quickly and accurately locate the display glyph to be modified, and modify it in the glyph list, avoiding repeated trial and error modification, and saving labor costs and time.

附图说明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(a)为Unicode编码为0F40的藏文名义字符;Figure 1(a) is the Tibetan nominal character whose Unicode code is 0F40;

图1(b)为该名义字符对应的显示字形示例;Figure 1(b) is an example of the display font corresponding to the nominal character;

图1(c)为0F40的名义字符组合字的显示字形示例;Fig. 1 (c) is the display font example of the nominal character combination word of 0F40;

图1(d)为含有0F40的名义字符的字的示例;Fig. 1 (d) is the example of the word that contains the nominal character of 0F40;

图2为本发明提供的一种修改复杂文本字形的方法的流程示意图;Fig. 2 is a schematic flow chart of a method for modifying complex text glyphs provided by the present invention;

图3为显示字形的一种修改界面示意图;Fig. 3 is a kind of modification interface schematic diagram of display font;

图4为本发明提供的一种修改复杂文本字形的装置示意图;Fig. 4 is a schematic diagram of a device for modifying complex text fonts provided by the present invention;

图5为本发明提供的一种修改复杂文本字形的设备示意图;Fig. 5 is a schematic diagram of equipment for modifying complex text glyphs provided by the present invention;

图6为本发明提供的一种终端设备的框图。Fig. 6 is a block diagram of a terminal device provided by the present invention.

通过上述附图,已示出本公开明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本领域技术人员说明本公开的概念。By means of the above-mentioned drawings, certain embodiments of the present disclosure have been shown and will be described in more detail hereinafter. These drawings and written description are not intended to limit the scope of the disclosed concept in any way, but to illustrate the disclosed concept for those skilled in the art by referring to specific embodiments.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。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.

首先对本发明所涉及的名词进行解释:At first the terms involved in the present invention are explained:

万国码(Unicode):是指为每种语言中的每个字符设定了统一并且唯一的二进制编码,是计算机科学领域里的一项业界标准,包括字符集、编码方案等。在Unicode编码中,拉丁文字、汉字等文字的Unicode编码与显现形式一一对应,即字符与字形是一一对应的。Universal Code (Unicode): refers to the setting of a unified and unique binary code for each character in each language. It is an industry standard in the field of computer science, including character sets, encoding schemes, etc. In Unicode encoding, there is a one-to-one correspondence between the Unicode encodings of Latin characters, Chinese characters and other texts and their presentation forms, that is, there is a one-to-one correspondence between characters and glyphs.

复杂文本:是指字符与字形不是一一对应的,通常一个字符对应多个显现字形,并且字符与字形之间存在着复杂的对应关系。也就是说,在语言意义上的同一个复杂文本的字符(对应一个Unicode代码的字符)在不同情况下应被书写(即显示)为不同的“形态”。如阿拉伯文、印度文、藏文、蒙文等等。Complex text: It means that there is no one-to-one correspondence between characters and glyphs. Usually, one character corresponds to multiple visible glyphs, and there is a complex correspondence between characters and glyphs. That is to say, characters of the same complex text in the linguistic sense (characters corresponding to a Unicode code) should be written (that is, displayed) as different "forms" in different situations. Such as Arabic, Indian, Tibetan, Mongolian and so on.

OpenType字库:是指Microsoft公司和Adobe公司联合开发的一种基于Unicode编码,且与平台无关的字体格式,它是TrueType字体格式的一种扩展,并融合了PostScript字体技术。OpenType字库在Unicode编码的大字符集基础上,采用多语种和多语系的编排方法,此外,在功能上还容纳了多项传统排版软件才可具备的基本操作,如基线调整,竖排替换,变体替换等。OpenType具有跨平台性、支持Unicode字符集和高级布局特征。OpenType font library: refers to a Unicode-based and platform-independent font format jointly developed by Microsoft and Adobe. It is an extension of the TrueType font format and incorporates PostScript font technology. On the basis of the large character set encoded by Unicode, the OpenType font library adopts multilingual and multilingual layout methods. In addition, it also accommodates a number of basic operations that traditional typesetting software can only have in terms of functions, such as baseline adjustment, vertical replacement, Variant replacement, etc. OpenType is cross-platform, supports Unicode character sets, and advanced layout features.

下面以藏文OpenType字库为例,说明本发明的一种应用场景。The following uses the Tibetan OpenType font library as an example to illustrate an application scenario of the present invention.

藏文是一种比较复杂的拼音文字,藏文不仅有横向拼写性,同时也有纵向拼写性。藏文是以一个字母(名义字符)为基字,其余字母按照某种规则,可出现在基字的上下左右位置,与基字一起拼写成一个藏文字,藏文纵向叠加字的层数不同,相同字符的显示字形的高度和粗细会有差异,这与相同部件在简单字和复杂字大小粗细不同类似。Tibetan is a relatively complex phonetic script. Tibetan not only has horizontal spelling, but also vertical spelling. Tibetan is based on one letter (nominal character), and the rest of the letters can appear in the upper, lower, left, and right positions of the basic character according to certain rules, and are spelled together with the basic character to form a Tibetan character. The number of layers of vertical superimposed characters in Tibetan is different , the height and thickness of the displayed glyphs of the same character will be different, which is similar to the difference in the size and thickness of the same component between simple and complex characters.

在藏文OpenType字库中,一个藏文名义字符存在多个显示字形,一个藏文名义字符对应的多个显示字形的Unicode编码都是名义字符的Unicode编码。显示字形的调用和位置调整均在字库中实现。如果某个藏文字中,某个字形显示效果不好,需要修改,通过Unicode编码无法找到对应的显示字形。In the Tibetan OpenType font library, there are multiple display glyphs for a Tibetan nominal character, and the Unicode encodings of multiple display glyphs corresponding to a Tibetan nominal character are the Unicode encodings of the nominal character. The call and position adjustment of the displayed glyphs are implemented in the font library. If the display effect of a glyph in a certain Tibetan text is not good and needs to be modified, the corresponding display glyph cannot be found through Unicode encoding.

例如,图1(a)为Unicode编码为0F40的藏文名义字符,该名义字符对应多个显示字形。图1(b)为该名义字符对应的显示字形示例,各个显示字形并不相同,他们之间存在一定的差异。图1(c)为0F40的名义字符组合字的显示字形示例,如图1(c)所示,在不同字的组合中,该名义字符对应的显示字形可能不同。For example, Fig. 1(a) shows the Tibetan nominal character whose Unicode code is 0F40, and the nominal character corresponds to multiple display glyphs. Fig. 1(b) is an example of the display glyph corresponding to the nominal character, each display glyph is not the same, and there are certain differences among them. Figure 1(c) is an example of the display glyph of the nominal character combination of 0F40, as shown in Figure 1(c), in different combinations of characters, the display glyph corresponding to the nominal character may be different.

在复杂文本字库开发的过程中,需要对每个名义字符在不同字中进行测试,查看其显示字形的效果,如果效果不好,需要对该显示字形进行修改。In the process of developing complex text fonts, it is necessary to test each nominal character in different characters to check the effect of the displayed glyph. If the effect is not good, the displayed glyph needs to be modified.

图1(d)为含有0F40的名义字符的字的示例,如果以这些字作为测试用例,发现其显示的效果不好时,测试人员可以使用本发明提供的修改复杂文本字形的装置,输入该测试用例中待修改的字对应的字符串,修改复杂文本字形的装置通过文本解释器获取待修改字的显示字形的索引值和/或名称,将待修改字的显示字形的索引值和/或名称显示给测试人员,测试人员就可以根据该待修改字的显示字形的索引值和/或名称在字库中找到该显示字形,使用图形编辑工具对该显示字形进行修改,修改完成后替换原字库的显示字形。Fig. 1 (d) is the example that contains the word of the nominal character of 0F40, if use these words as test cases, when finding that the effect of its display is not good, the tester can use the device that the present invention provides for revising complex text font, input this The string corresponding to the word to be modified in the test case, the device for modifying the complex text glyph obtains the index value and/or name of the displayed glyph of the word to be modified through the text interpreter, and the index value and/or name of the displayed glyph of the word to be modified The name is displayed to the tester, and the tester can find the displayed glyph in the font library according to the index value and/or name of the displayed glyph of the word to be modified, and use the graphic editing tool to modify the displayed glyph, and replace the original font after the modification is completed The display glyph.

现有技术中,如图1(d)所示的藏文字,当发现有些字符的显示效果不好,需要修改对应的显示字形,由于一个名义字符对应的显示字形比较相似,在组合成的字中更难辨认出他们的差异,通常需要找到与待修改字形类似的字进行比对,从而判断可能需要修改哪个显示字形,然后在字库中更改此字形,查看显示效果是否正确,如不正确还要进行上述步骤进行比对并修改字形。这样可能需要经过多次试错才能找到该显示字形,费时费力。In the prior art, for the Tibetan characters shown in Figure 1(d), when it is found that the display effect of some characters is not good, the corresponding display glyphs need to be modified. Since the display glyphs corresponding to a nominal character are relatively similar, the combined characters It is more difficult to identify their differences in the font. Usually, it is necessary to find a character similar to the font to be modified for comparison, so as to determine which display font may need to be modified, and then change this font in the font library to check whether the display effect is correct. To carry out the above steps to compare and modify the font. In this way, it may take a lot of trial and error to find the display glyph, which is time-consuming and labor-intensive.

本发明提供的修改复杂文本字形的方法,旨在解决现有技术的如上技术问题。The method for modifying complex text fonts provided by the present invention aims to solve the above technical problems in the prior art.

下面以具体地实施例对本发明的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本发明的实施例进行描述。The technical solution of the present invention and how the technical solution of the present application solves the above technical problems will be described in detail below with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.

图2为本发明提供的一种修改复杂文本字形的方法的流程示意图,如图2所示,本实施例的执行主体为终端设备,终端设备可以为计算机、移动电话、平板设备等,本发明在此不做限制,本实施例的方法如下:Figure 2 is a schematic flow diagram of a method for modifying complex text glyphs provided by the present invention. As shown in Figure 2, the execution subject of this embodiment is a terminal device, and the terminal device can be a computer, a mobile phone, a tablet device, etc., the present invention Do not limit here, the method of the present embodiment is as follows:

S201、接收用户输入的待修改的显示字形所在的字或待修改的显示字形所在的字对应的字符串。S201. Receive a character whose display glyph to be modified or a character string corresponding to a character whose display glyph is to be modified input by a user.

在字库开发过程中,会对每个字进行测试以查看每个名义字符在不同字中的显示字形的效果,当测试用例中某些名义字符显示字形的效果不好时,需要修改相应的显示字形。图3为显示字形的一种修改界面示意图,如图3所示,用户可以将这些测试用例中待修改的字输入到页面指定的对话框301中,其中,可以输入一个待修改的字,也可以输入多个字;也可以将待修改的字对应的字符串输入到页面指定的对话框302中,其中,可以输入一个字对应的字符串也可以输入多个字对应的字符串,在此本发明不做限制。During the development of the font library, each character will be tested to see the effect of the display glyph of each nominal character in different characters. When the display effect of some nominal characters in the test case is not good, the corresponding display needs to be modified glyph. Fig. 3 is a schematic diagram of a modification interface for displaying glyphs. As shown in Fig. 3, the user can input the words to be modified in these test cases into the dialog box 301 specified on the page, wherein a word to be modified can be input, or Multiple words can be input; the character string corresponding to the word to be modified can also be input into the dialog box 302 specified on the page, wherein, the character string corresponding to one word can be input or the character string corresponding to multiple words can be input, here The present invention is not limited.

S202、通过文本解释器调用复杂文本字库,获取待修改的显示字形所在的字对应的字符串中的每个字符对应的显示字形的索引值和/或名称。S202. Call the complex text font library through the text interpreter, and obtain the index value and/or name of the display glyph corresponding to each character in the string corresponding to the character where the display glyph to be modified is located.

在复杂文本字库中,每个字符在不同的字中具有不同的显示字形,每个字符对应一个Unicode编码,也就是说一个字符对应的多个显示字形的Unicode编码相同,所有的显示字形被存储在字库的字形列表中,字形列表中,显示字形与索引值以及名称分别为一一对应关系。In complex text fonts, each character has different display glyphs in different characters, and each character corresponds to a Unicode code, that is to say, the Unicode codes of multiple display glyphs corresponding to a character are the same, and all display glyphs are stored In the glyph list of the font library, in the glyph list, the displayed glyph has a one-to-one correspondence with the index value and name.

文本解释器为每个操作系统自带的,例如,windows,linux,mac,安卓等系统都有自身的文本解释器,不同系统对复杂文本字库的支持情况可能会不同,且随着系统的升级,相应的文本解释器也会升级,也就是说,文本解释器在系统的不同版本中也可能不同。在文字显示过程中,文本解释器根据复杂文本字库中的显示规则,调用字符对应的显示字形,并将该字符以选定的显示字形显示出来。The text interpreter comes with each operating system. For example, windows, linux, mac, Android and other systems have their own text interpreters. Different systems may have different support for complex text fonts, and with the upgrade of the system , the corresponding text interpreter will also be upgraded, that is, the text interpreter may also be different in different versions of the system. During the text display process, the text interpreter calls the display glyph corresponding to the character according to the display rules in the complex text font library, and displays the character in the selected display glyph.

可选的,接收用户输入的第一选择信号,第一选择信号用于选择文本解释器的类型和版本。具体的,用户需要选择一个文本解释器,一种可能的实现方式中,可以设置一个默认的文本解释器,另一种可能的实现方式中,可以通过用户选择确定文本解释器。示例性的,可以设置windows 10的文本解释器(usp10.dll)为默认的文本解释器,如图3所示,在对话框303中可以选择文本解释器,若用户不进行选择,则可以使用默认的文本解释器usp10.dll,然后用户点击“确定”按钮。Optionally, a first selection signal input by a user is received, and the first selection signal is used to select the type and version of the text interpreter. Specifically, the user needs to select a text interpreter. In one possible implementation manner, a default text interpreter may be set, and in another possible implementation manner, the text interpreter may be determined through user selection. Exemplary, the text interpreter (usp10.dll) of windows 10 can be set as the default text interpreter, as shown in Figure 3, the text interpreter can be selected in the dialog box 303, if the user does not select, you can use The default text interpreter is usp10.dll, and the user clicks the "OK" button.

通过文本解释器调用复杂文本字库的过程,获取待修改字中的每个字符对应的显示字形的索引值和/或名称。在文本解释器调用复杂文本字库的过程中,可以通过接口函数从文本解释器中获取每个字符对应的显示字形的索引值和/或名称。The process of invoking the complex text font library by the text interpreter obtains the index value and/or name of the displayed glyph corresponding to each character in the word to be modified. When the text interpreter calls the complex text font library, the index value and/or name of the display glyph corresponding to each character can be obtained from the text interpreter through the interface function.

可选的,复杂文本字库可以为OpenType字库。Optionally, the complex text font can be an OpenType font.

S203、显示每个字符对应的显示字形的索引值和/或名称。S203. Display the index value and/or name of the display glyph corresponding to each character.

按照输入的字或者字符串的顺序,显示对应的显示字形的索引值和/或名称,具体的,可以以弹窗的形式将获取到的索引值和/或名称显示出来,或者在当前界面下方直接显示获取到的索引值和/或名称,在此本发明不做限制。Display the index value and/or name of the corresponding displayed glyph in the order of the entered word or character string. Specifically, the obtained index value and/or name can be displayed in the form of a pop-up window, or at the bottom of the current interface The obtained index value and/or name are directly displayed, which is not limited in the present invention.

S204、根据每个字符对应的显示字形的索引值和/或名称,对待修改字对应的字符串中的目标字符对应的显示字形进行修改。S204. Modify the display glyph corresponding to the target character in the character string corresponding to the word to be modified according to the index value and/or name of the display glyph corresponding to each character.

根据输入的字或者字符串显示对应字形的索引值和/或名称,显示对应字形的索引值和/或名称的顺序与输入的字符串的顺序保持一致,用户查找到待修改字形对应的索引值和/或名称,在字形列表中找到该字形,可以使用图形编辑工具对该字形进行修改,用修改后的字形替换字形列表中对应的字形,即完成了对目标字符对应的显示字形的修改。Display the index value and/or name of the corresponding glyph according to the input word or string, the order of displaying the index value and/or name of the corresponding glyph is consistent with the sequence of the input string, and the user finds the index value corresponding to the glyph to be modified and/or name, find the glyph in the glyph list, you can modify the glyph with a graphics editing tool, and replace the corresponding glyph in the glyph list with the modified glyph, that is, the modification of the displayed glyph corresponding to the target character is completed.

可选的,接收用户输入的第二选择信号,第二选择信号用于从待修改字对应的字符串中选择目标字符。根据目标字符的索引值和/或名称,对目标字符对应的显示字形进行修改。Optionally, a second selection signal input by the user is received, and the second selection signal is used to select a target character from a character string corresponding to the word to be modified. Modify the display glyph corresponding to the target character according to the index value and/or name of the target character.

用户可以从待修改的字对应的字符串中选择一个或者几个目标字符,第二选择信号可以是鼠标单击或者双击等操作,对比本发明不做限制。终端设备根据第二选择信号,将用户选定的目标字符的索引值和/或名称在字符串索引值和/或名称中突出显示,或者只显示用户选定的目标字符的索引值和/或名称。从而修改目标字符对应的显示字形。The user can select one or several target characters from the character string corresponding to the word to be modified, and the second selection signal can be an operation such as a mouse click or double click, which is not limited by comparison with the present invention. According to the second selection signal, the terminal device highlights the index value and/or name of the target character selected by the user in the string index value and/or name, or only displays the index value and/or name of the target character selected by the user name. Thus, the display glyph corresponding to the target character is modified.

通过接收用户输入的第二选择信号,直接将目标字符索引值和/或名称显示或者突出显示,方便用户查找目标字符的索引值和/或名称,提高了用户体验。By receiving the second selection signal input by the user, the index value and/or name of the target character is directly displayed or highlighted, which facilitates the user to find the index value and/or name of the target character, and improves user experience.

本实施例中,当接收到用户输入的待修改字或待修改的字对应的字符串,通过文本解释器调用复杂文本字库,获取到待修改字中的每个字符对应的显示字形的索引值和/或名称,显示每个字符对应的显示字形的索引值和/或名称,使得用户可以根据每个字符对应的显示字形的索引值和/或名称,对待修改字对应的字符串中的目标字符对应的显示字形进行修改。由于在复杂文本字库中每个字符在不同的字中具有不同的显示字形,而显示字形的索引值和/或名称能够唯一确定一个显示显示,因此,根据字符对应的显示字形的索引值和/或名称能够快速、准确定位到待修改的显示字形,在字形列表中进行修改,避免了反复试错修改,节约了人力成本和时间。In this embodiment, when the word to be modified or the character string corresponding to the word to be modified is received by the user, the complex text font library is called through the text interpreter to obtain the index value of the displayed glyph corresponding to each character in the word to be modified and/or name, display the index value and/or name of the display glyph corresponding to each character, so that the user can select the target in the string corresponding to the word to be modified according to the index value and/or name of the display glyph corresponding to each character The display glyph corresponding to the character is modified. Since each character in the complex text font library has different display glyphs in different characters, and the index value and/or name of the display glyph can uniquely determine a display display, therefore, according to the index value and/or name of the display glyph corresponding to the character Or the name can quickly and accurately locate the display glyph to be modified, and modify it in the glyph list, avoiding repeated trial and error modification, and saving labor costs and time.

图4为本发明提供的一种修改复杂文本字形的装置示意图,如图4所示,该装置包括:Fig. 4 is a schematic diagram of a device for modifying complex text fonts provided by the present invention. As shown in Fig. 4, the device includes:

接收模块401,接收用户输入的待修改的显示字形所在的字或待修改的显示字形所在的字对应的字符串;The receiving module 401 receives the word where the displayed glyph to be modified or the character string corresponding to the word where the displayed glyph to be modified is input by the user;

调用模块402,用于通过文本解释器调用复杂文本字库,获取待修改的显示字形所在的字对应的字符串中的每个字符对应的显示字形的索引值和/或名称,在复杂文本字库中每个字符在不同的字中具有不同的显示字形;The calling module 402 is used to call the complex text font library through the text interpreter, and obtain the index value and/or name of the display glyph corresponding to each character in the string corresponding to the word where the display glyph to be modified is located, in the complex text font library Each character has different display glyphs in different characters;

显示模块403,用于显示每个字符对应的显示字形的索引值和/或名称;A display module 403, configured to display the index value and/or name of the display glyph corresponding to each character;

修改模块404,用于根据每个字符对应的显示字形的索引值和/或名称,对待修改字对应的字符串中的目标字符对应的显示字形进行修改。The modification module 404 is configured to modify the display glyph corresponding to the target character in the character string corresponding to the word to be modified according to the index value and/or name of the display glyph corresponding to each character.

可选的,调用模块402具体用于:Optionally, calling module 402 is specifically used for:

在文本解释器调用复杂文本字库的过程中,通过接口函数从文本解释器中获取每个字符对应的显示字形的索引值和/或名称。When the text interpreter calls the complex text font library, the index value and/or name of the display glyph corresponding to each character is obtained from the text interpreter through the interface function.

可选的,接收模块401,还用于:Optionally, the receiving module 401 is also used for:

接收用户输入的第一选择信号,第一选择信号用于选择文本解释器的类型和版本。A first selection signal input by a user is received, and the first selection signal is used to select the type and version of the text interpreter.

可选的,修改模块404具体用于:Optionally, the modification module 404 is specifically used for:

接收用户输入的第二选择信号,第二选择信号用于从待修改字对应的字符串中选择目标字符;Receiving a second selection signal input by the user, the second selection signal is used to select the target character from the character string corresponding to the word to be modified;

根据目标字符的索引值和/或名称,对目标字符对应的显示字形进行修改。Modify the display glyph corresponding to the target character according to the index value and/or name of the target character.

可选的,复杂文本字库为OpenType字库。Optionally, the complex text font is an OpenType font.

上述实施例的装置,可以用于执行上述方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The devices in the above embodiments can be used to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects thereof are similar, and will not be repeated here.

图5为本发明提供的一种修改复杂文本字形的设备示意图,如图5所示,该设备包括:存储器51,处理器52;FIG. 5 is a schematic diagram of a device for modifying complex text glyphs provided by the present invention. As shown in FIG. 5, the device includes: a memory 51 and a processor 52;

存储器51,用于存储处理器52可执行指令。The memory 51 is used for storing instructions executable by the processor 52 .

处理器52,用于在计算机程序被执行时,实现如图2所示实施例中的方法。The processor 52 is configured to implement the method in the embodiment shown in FIG. 2 when the computer program is executed.

上述实施例的设备,可以用于执行上述方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The devices in the foregoing embodiments may be used to implement the technical solutions of the foregoing method embodiments, and their implementation principles and technical effects are similar, and details are not repeated here.

图6为本发明提供的一种终端设备的框图,该设备可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。6 is a block diagram of a terminal device provided by the present invention, which may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc.

装置800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)接口812,传感器组件814,以及通信组件816。Apparatus 800 may include one or more of the following components: processing component 802, memory 804, power supply component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.

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

存储器804被配置为存储各种类型的数据以支持在装置800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 804 is configured to store various types of data to support operations at the device 800 . Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 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.

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

I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which 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.

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

通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 816 is configured to facilitate wired or wireless communication between the apparatus 800 and other devices. The device 800 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 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 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.

在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 800 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 A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由装置800的处理器820执行以完成上述方法。例如,非临时性计算机可读存储介质可以是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 804 including instructions, which can be executed by the processor 820 of the device 800 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.

一种非临时性计算机可读存储介质,当该存储介质中的指令由终端设备的处理器执行时,使得终端设备能够执行上述终端设备的修改复杂文本字形的方法。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the terminal device, the terminal device can execute the above-mentioned method for modifying complex text fonts of the terminal device.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本发明旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求书指出。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. The present invention 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 (8)

1.一种修改复杂文本字形的方法,其特征在于,包括:1. A method for modifying complex text glyphs, comprising: 终端设备接收用户输入的待修改的显示字形所在的字或待修改的显示字形所在的字对应的字符串;The terminal device receives the character whose display glyph is to be modified or the character string corresponding to the character whose display glyph is to be modified input by the user; 所述终端设备通过文本解释器调用复杂文本字库,获取所述待修改的显示字形所在的字对应的字符串中的每个字符对应的显示字形的索引值和/或名称,在所述复杂文本字库中所述每个字符在不同的字中具有不同的显示字形;The terminal device calls the complex text font library through the text interpreter, and obtains the index value and/or name of the display glyph corresponding to each character in the string corresponding to the word where the display glyph to be modified is located, and in the complex text Each character described in the font library has different display glyphs in different characters; 所述终端设备显示所述每个字符对应的显示字形的索引值和/或名称;其中,所述终端设备按照输入的字或者字符串的顺序,显示所述每个字符对应的显示字形的索引值和/或名称;The terminal device displays the index value and/or name of the display glyph corresponding to each character; wherein, the terminal device displays the index of the display glyph corresponding to each character in the order of the input characters or character strings value and/or name; 所述终端设备根据所述每个字符对应的显示字形的索引值和/或名称,对待修改字对应的字符串中的目标字符对应的显示字形进行修改;The terminal device modifies the display glyph corresponding to the target character in the character string corresponding to the word to be modified according to the index value and/or name of the display glyph corresponding to each character; 所述所述终端设备通过文本解释器调用复杂文本字库,获取所述待修改字中的每个字符对应的显示字形的索引值和/或名称,包括:The terminal device calls the complex text font library through the text interpreter, and obtains the index value and/or name of the display glyph corresponding to each character in the word to be modified, including: 在所述文本解释器调用所述复杂文本字库的过程中,通过接口函数从所述文本解释器中获取所述每个字符对应的显示字形的索引值和/或名称;In the process of the text interpreter calling the complex text font library, the index value and/or name of the display glyph corresponding to each character is obtained from the text interpreter through an interface function; 所述所述终端设备根据所述每个字符对应的目标显示字形的索引值和/或名称,对所述待修改字对应的字符串中的目标字符对应的显示字形进行修改,包括:The terminal device modifies the display glyph corresponding to the target character in the character string corresponding to the word to be modified according to the index value and/or name of the target display glyph corresponding to each character, including: 接收用户输入的第二选择信号,所述第二选择信号用于从所述待修改字对应的字符串中选择所述目标字符;将所述目标字符突出显示;receiving a second selection signal input by the user, the second selection signal being used to select the target character from the character string corresponding to the word to be modified; highlighting the target character; 根据所述目标字符的索引值和/或名称,对所述目标字符对应的显示字形进行修改。Modify the display glyph corresponding to the target character according to the index value and/or name of the target character. 2.根据权利要求1所述的方法,其特征在于,所述接收用户输入的待修改的显示字形所在的字或待修改的显示字形所在的字对应的字符串之前,还包括:2. The method according to claim 1, characterized in that before receiving the word where the displayed glyph to be modified or the character string corresponding to the word where the displayed glyph is to be modified is received, it also includes: 接收用户输入的第一选择信号,所述第一选择信号用于选择所述文本解释器的类型和版本。A first selection signal input by a user is received, and the first selection signal is used to select the type and version of the text interpreter. 3.根据权利要求1-2中任一项所述的方法,其特征在于,所述复杂文本字库为OpenType字库。3. The method according to any one of claims 1-2, wherein the complex text font is an OpenType font. 4.一种修改复杂文本字形的装置,其特征在于,包括:4. A device for modifying complex text fonts, characterized in that it comprises: 接收模块,接收用户输入的待修改的显示字形所在的字或待修改的显示字形所在的字对应的字符串;The receiving module receives the word where the displayed glyph to be modified or the character string corresponding to the word where the displayed glyph to be modified is input by the user; 调用模块,用于通过文本解释器调用复杂文本字库,获取所述待修改的显示字形所在的字对应的字符串中的每个字符对应的显示字形的索引值和/或名称,在所述复杂文本字库中所述每个字符在不同的字中具有不同的显示字形;The calling module is used to call the complex text font library through the text interpreter, and obtain the index value and/or name of the display glyph corresponding to each character in the string corresponding to the word where the display glyph to be modified is located. Each character described in the text font library has different display fonts in different characters; 显示模块,用于显示所述每个字符对应的显示字形的索引值和/或名称;按照输入的字或者字符串的顺序,显示所述每个字符对应的显示字形的索引值和/或名称;A display module, configured to display the index value and/or name of the display glyph corresponding to each character; display the index value and/or name of the display glyph corresponding to each character according to the order of the input word or character string ; 修改模块,用于根据所述每个字符对应的显示字形的索引值和/或名称,对待修改字对应的字符串中的目标字符对应的显示字形进行修改;A modification module, configured to modify the display glyph corresponding to the target character in the character string corresponding to the word to be modified according to the index value and/or name of the display glyph corresponding to each character; 所述调用模块具体用于:在所述文本解释器调用所述复杂文本字库的过程中,通过接口函数从所述文本解释器中获取所述每个字符对应的显示字形的索引值和/或名称;The calling module is specifically configured to: during the process of calling the complex text font library by the text interpreter, obtain the index value and/or the display glyph corresponding to each character from the text interpreter through an interface function name; 所述修改模块具体用于:接收用户输入的第二选择信号,所述第二选择信号用于从所述待修改字对应的字符串中选择所述目标字符;将所述目标字符突出显示;根据所述目标字符的索引值和/或名称,对所述目标字符对应的显示字形进行修改。The modification module is specifically configured to: receive a second selection signal input by the user, the second selection signal is used to select the target character from the character string corresponding to the word to be modified; highlight the target character; Modify the display glyph corresponding to the target character according to the index value and/or name of the target character. 5.根据权利要求4所述的装置,其特征在于,接收模块,还用于:5. The device according to claim 4, wherein the receiving module is also used for: 接收用户输入的第一选择信号,所述第一选择信号用于选择所述文本解释器的类型和版本。A first selection signal input by a user is received, and the first selection signal is used to select the type and version of the text interpreter. 6.根据权利要求4-5中任一项所述的装置,其特征在于,所述复杂文本字库为OpenType字库。6. The device according to any one of claims 4-5, wherein the complex text font is an OpenType font. 7.一种修改复杂文本字形的设备,包括:存储器和处理器;7. A device for modifying complex text glyphs, comprising: a memory and a processor; 存储器,用于存储所述处理器可执行指令;a memory for storing said processor-executable instructions; 处理器,用于在计算机程序被执行时,实现如上述权利要求1-2中任一项所述的方法。A processor configured to implement the method according to any one of claims 1-2 when the computer program is executed. 8.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现如权利要求1至2任一项所述的修改复杂文本字形的方法。8. A computer-readable storage medium, characterized in that, computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are used to implement any one of claims 1 to 2 when executed by a processor The described method of modifying complex text glyphs.
CN201911201282.0A 2019-11-29 2019-11-29 Method and device for modifying complex text font Active CN110955747B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911201282.0A CN110955747B (en) 2019-11-29 2019-11-29 Method and device for modifying complex text font

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911201282.0A CN110955747B (en) 2019-11-29 2019-11-29 Method and device for modifying complex text font

Publications (2)

Publication Number Publication Date
CN110955747A CN110955747A (en) 2020-04-03
CN110955747B true CN110955747B (en) 2023-03-14

Family

ID=69979035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911201282.0A Active CN110955747B (en) 2019-11-29 2019-11-29 Method and device for modifying complex text font

Country Status (1)

Country Link
CN (1) CN110955747B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114065701B (en) * 2020-07-31 2025-06-06 华为技术有限公司 Text display method, compilation method and related equipment
CN117391045B (en) * 2023-12-04 2024-03-19 永中软件股份有限公司 Method for outputting file with portable file format capable of copying Mongolian

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101694603A (en) * 2009-10-20 2010-04-14 中央民族大学 Cross-platform Mongolian display and intelligent input method based on Unicode
CN101996160A (en) * 2009-08-10 2011-03-30 北大方正集团有限公司 Method and system for processing script data

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070211062A1 (en) * 2006-03-13 2007-09-13 International Business Machines Corporation Methods and systems for rendering complex text using glyph identifiers in a presentation data stream
US8542235B2 (en) * 2010-10-13 2013-09-24 Marlborough Software Development Holdings Inc. System and method for displaying complex scripts with a cloud computing architecture

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996160A (en) * 2009-08-10 2011-03-30 北大方正集团有限公司 Method and system for processing script data
CN101694603A (en) * 2009-10-20 2010-04-14 中央民族大学 Cross-platform Mongolian display and intelligent input method based on Unicode

Also Published As

Publication number Publication date
CN110955747A (en) 2020-04-03

Similar Documents

Publication Publication Date Title
US10210154B2 (en) Input method editor having a secondary language mode
US10120842B2 (en) Font preloading
KR100790700B1 (en) Character specification method and character selection device
US9043300B2 (en) Input method editor integration
KR102249054B1 (en) Quick tasks for on-screen keyboards
US20140297254A1 (en) Text data processing method and electronic device thereof
US10402474B2 (en) Keyboard input corresponding to multiple languages
US20190012077A1 (en) Chinese character input apparatus and controlling method thereof
US8413069B2 (en) Method and apparatus for the automatic completion of composite characters
US20180018315A1 (en) Information processing device, program, and information processing method
CN110955747B (en) Method and device for modifying complex text font
US20200311408A1 (en) Information processing apparatus and non-transitory computer readable medium
US20200034101A1 (en) Data displaying method and electronic device
US20140208230A1 (en) Autocorrect Highlight and Re-Work
KR101645674B1 (en) Method for autocomplete candidate word and apparatus thereof
KR20170132643A (en) Method for displaying character and Apparatus thereof
US9804750B2 (en) Textbox associated with device native features
JP2019149165A (en) Panel control system and method for editing the same
KR102158544B1 (en) Method and system for supporting spell checking within input interface of mobile device
EP2894547B1 (en) Character input device, character input method of character input device, and non-transitory computer-readable medium
CN112908327A (en) Voice control method, device, equipment and storage medium of application program
KR100977663B1 (en) Inserting objects using text editors that support variable size fonts
CN111026644A (en) Operation result labeling method and device, storage medium and electronic equipment
KR102238987B1 (en) Chinese input method based on korean pinyin and input apparatus thereof
CN112748809A (en) Input method entry display method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230628

Address after: 3007, Hengqin International Financial Center Building, No. 58 Huajin Street, Hengqin New District, Zhuhai City, Guangdong Province, 519030

Patentee after: New founder holdings development Co.,Ltd.

Patentee after: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

Address before: 100871, Beijing, Haidian District, Cheng Fu Road, No. 298, Zhongguancun Fangzheng building, 9 floor

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd.