-
1.
公开(公告)号:US20150106698A1
公开(公告)日:2015-04-16
申请号:US14055075
申请日:2013-10-16
Applicant: GOOGLE INC.
IPC: G06F17/21
CPC classification number: G06F17/211 , G06F17/2247 , G06F17/25 , G06F17/2765 , G06F17/289 , G06F17/30864 , G06F17/30905
Abstract: A method for segmenting text for layout on a web browser includes receiving a block of text at a client computer and defining a plurality of regular expressions, where a first regular expression in the plurality of regular expressions is used to search for a word or a word boundary. The client computer segments the block of text into a plurality of text segments, where the segmenting includes searching the block of text starting at a defined location for a first text segment that matches any of the plurality of regular expressions, adding the first text segment to the plurality of text segments, and updating the defined location to be located at the end of the first text segment within the block of text. The client computer then constructs a layout of the block of text using the plurality of text segments.
Abstract translation: 用于在web浏览器上分割布局的文本的方法包括在客户端计算机处接收文本块并定义多个正则表达式,其中使用多个正则表达式中的第一正则表达式来搜索单词或单词 边界。 客户端计算机将文本块分割成多个文本段,其中分段包括从定义的位置搜索与多个正则表达式中的任何一个匹配的第一文本段的文本块,将第一文本段添加到 多个文本段,并且更新要定位在文本块内的第一文本段的末尾处的位置。 然后客户端计算机使用多个文本段构建文本块的布局。
-
公开(公告)号:US09658988B2
公开(公告)日:2017-05-23
申请号:US14055075
申请日:2013-10-16
Applicant: Google Inc.
CPC classification number: G06F17/211 , G06F17/2247 , G06F17/25 , G06F17/2765 , G06F17/289 , G06F17/30864 , G06F17/30905
Abstract: A method for segmenting text for layout on a web browser includes receiving a block of text at a client computer and defining a plurality of regular expressions, where a first regular expression in the plurality of regular expressions is used to search for a word or a word boundary. The client computer segments the block of text into a plurality of text segments, where the segmenting includes searching the block of text starting at a defined location for a first text segment that matches any of the plurality of regular expressions, adding the first text segment to the plurality of text segments, and updating the defined location to be located at the end of the first text segment within the block of text. The client computer then constructs a layout of the block of text using the plurality of text segments.
-