Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Text two-end alignment processing method and device, storage medium and processor

A processing method and text technology, applied in the field of text processing, can solve problems such as low text efficiency

Pending Publication Date: 2020-05-12
中消云(北京)物联网科技研究院有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a text alignment processing method, device, storage medium, and processor, to at least solve the problem of the text at both ends caused by manual repeated calculation of the text width and manual alignment of the text. The technical inefficiencies of alignment

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Text two-end alignment processing method and device, storage medium and processor
  • Text two-end alignment processing method and device, storage medium and processor
  • Text two-end alignment processing method and device, storage medium and processor

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] According to an embodiment of the present invention, an embodiment of a text justified processing method is provided. It should be noted that the steps shown in the flow charts of the accompanying drawings can be implemented in a computer system such as a set of computer-executable instructions and, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

[0027] figure 1 It is a flow chart of a method for processing text justified according to an embodiment of the present invention. Such as figure 1 As shown, the method may include the following steps:

[0028] Step S102, acquiring a plurality of original texts in a plurality of text function controls.

[0029] In the technical solution provided in step S102, each text function control is used to input and display each original text.

[0030]In this embodiment, in Android (Android) user interaction pr...

Embodiment 2

[0060] The technical solutions of the embodiments of the present invention are illustrated below in combination with preferred implementation modes.

[0061] In the design of the Android user interaction process, it is usually necessary to enter multiple entries, but the width of the prompt text (consignee / mobile phone number) of the corresponding input box may vary, such as figure 2 As shown, among them, figure 2 It is a schematic diagram of text display according to the related art. Since the text width of the prompt text is different (consignee / mobile phone number), the display of the text to be input (Zhang San / 12345678) corresponding to the prompt text on the right side is also different. Uneven, resulting in a very bad experience.

[0062] In order to solve the above problem, all prompt texts can be displayed aligned at both ends, so that the prompt text is aligned with the central axis of the corresponding text to be input, and then expanded to both sides.

[0063] ...

Embodiment 3

[0067] The embodiment of the present invention also provides a processing device for text alignment. It should be noted that the apparatus for processing text with both ends justified in this embodiment can be used to implement the method for processing text with both ends justified in the embodiment of the present invention.

[0068] Figure 4 is a schematic diagram of a processing device for text alignment according to an embodiment of the present invention. Such as Figure 4 As shown, the processing device 40 for aligning both ends of the text may include: a first acquisition unit 41 , a second acquisition unit 42 , a third acquisition unit 43 and a display unit 44 .

[0069] The first obtaining unit 41 is configured to obtain a plurality of original texts from a plurality of text function controls, wherein each text function control is used to input and display each original text.

[0070] The second acquiring unit 42 is configured to acquire an original character strin...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a text two-end alignment processing method and device, a storage medium and a processor. The method comprises the steps of obtaining a plurality of original texts from a plurality of text function controls; obtaining a plurality of target character strings corresponding to the plurality of original character strings, wherein the plurality of target character strings are inone-to-one correspondence with the plurality of original character strings, at least one first character string in the plurality of target character strings is obtained by adding at least one space tothe middle or two sides of the corresponding original character string, and the display widths of the plurality of target character strings are the same; and in each text function control, displayingthe corresponding target text based on the two ends of the display width of each corresponding target character string. According to the present invention, the technical problem of low text two-end alignment efficiency caused by manually and repeatedly calculating the text width and manually realizing text two-end alignment is solved.

Description

technical field [0001] The present invention relates to the field of text processing, in particular to a processing method, device, storage medium and processor for text double-alignment. Background technique [0002] At present, when the two-end alignment display of the text is realized, it is usually aimed at the two-end alignment of each line of text in a text function control. For the aligned display of the text in multiple text function controls, usually the user fills in all the text in the text function control, it is necessary to manually calculate the text width repeatedly, and set the text to be aligned and displayed according to the manually calculated text width. This method is relatively cumbersome to operate. When the width of the text changes, the two-end alignment display of the text in multiple text function controls cannot be changed in time, so there is a technical problem of low efficiency of the text two-end alignment display. [0003] For the above-men...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F40/106
Inventor 宋佳城雷鸣赵书志
Owner 中消云(北京)物联网科技研究院有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products