Text editing method and apparatus, electronic device, and medium
By triggering the display of candidate location information and linking it to map information by entering keywords during text editing, the complex operation problem when users share location information is solved, and the effect of quick acquisition and intuitive positioning is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING BAIDU NETCOM SCI & TECH CO LTD
- Filing Date
- 2021-12-21
- Publication Date
- 2026-06-02
AI Technical Summary
During information exchange, users need to switch pages multiple times when sharing location information, which makes the operation complicated and results in a poor user experience.
By inputting keywords during text editing, candidate location information is actively displayed and linked to map information in a preset format, simplifying the location search process.
It enables rapid acquisition and intuitive positioning of location information, thus improving the user experience.
Smart Images

Figure CN114281970B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and more particularly to the field of user interface technology, specifically to a text editing method, apparatus, electronic device, computer-readable storage medium, and computer program product. Background Technology
[0002] In scenarios where users exchange information using terminals, there is often a need to share location information. Simplifying the interaction process can improve the efficiency of information exchange and enhance the user experience.
[0003] The methods described in this section are not necessarily methods that had been previously conceived or adopted. Unless otherwise specified, no method described in this section should be assumed to be prior art simply because it is included in this section. Similarly, unless otherwise specified, the issues mentioned in this section should not be considered to be accepted in any prior art. Summary of the Invention
[0004] This disclosure provides a text editing method, apparatus, electronic device, computer-readable storage medium, and computer program product.
[0005] According to one aspect of this disclosure, a method is provided that, in response to detecting that a user enters a pre-stored keyword in a text editing page, displays at least one candidate location information corresponding to the keyword in the text editing page; in response to the user selecting target location information from the at least one candidate location information, links map information corresponding to the target location information to the keyword; and displays the keyword in the text editing page in a preset format, wherein the preset format indicates that the keyword links to additional information that can be obtained by clicking.
[0006] According to another aspect of this disclosure, a text editing device is provided, comprising: a first display module configured to display at least one candidate location information corresponding to the keyword in the text editing page in response to detecting that a user inputs a pre-stored keyword in the text editing page; a linking module configured to link map information corresponding to the target location information to the keyword in response to the user selecting target location information from the at least one candidate location information; and a second display module configured to display the keyword in the text editing page in a preset format, wherein the preset format indicates that the keyword links to additional information that can be obtained by clicking.
[0007] According to another aspect of this disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to said at least one processor; wherein said memory stores instructions executable by said at least one processor, said instructions being executed by said at least one processor to enable said at least one processor to perform a text editing method.
[0008] According to another aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are used to cause the computer to perform a text editing method.
[0009] According to another aspect of this disclosure, a computer program product is provided, including a computer program, wherein the computer program implements a text editing method when executed by a processor.
[0010] According to one or more embodiments of this disclosure, a method for linking map information to text is provided. This method triggers the active display of location information by using keywords entered during text editing, reducing the interactive process of location search. Simultaneously, the text linked to the map information is displayed in a preset format, allowing users to more intuitively locate location information within large blocks of text, thereby improving the user experience.
[0011] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0012] The accompanying drawings exemplify embodiments and form part of the specification, serving together with the textual description to explain exemplary implementations of the embodiments. The illustrated embodiments are for illustrative purposes only and do not limit the scope of the claims. Throughout the drawings, the same reference numerals refer to similar but not necessarily identical elements.
[0013] Figure 1 A schematic diagram of an exemplary system in which the various methods described herein may be implemented according to embodiments of the present disclosure is shown;
[0014] Figure 2 A flowchart of a text editing method according to an embodiment of the present disclosure is shown;
[0015] Figure 3 A schematic diagram showing candidate location information according to an embodiment of the present disclosure is shown;
[0016] Figure 4 A structural block diagram of a text editing apparatus according to an embodiment of the present disclosure is shown; and
[0017] Figure 5 A structural block diagram of an exemplary electronic device that can be used to implement embodiments of the present disclosure is shown. Detailed Implementation
[0018] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0019] In this disclosure, unless otherwise stated, the use of terms such as "first," "second," etc., to describe various elements is not intended to limit the positional, temporal, or importance relationships of these elements; such terms are merely used to distinguish one element from another. In some examples, the first element and the second element may refer to the same instance of that element, while in other cases, based on the context, they may refer to different instances.
[0020] The terminology used in the description of the various examples described in this disclosure is for the purpose of describing particular examples only and is not intended to be limiting. Unless the context explicitly indicates otherwise, an element may be one or more unless the number of elements is specifically limited. Furthermore, the term "and / or" as used in this disclosure covers any one of the listed items and all possible combinations thereof.
[0021] In related technologies, when users need to share location information during information exchange, they need to enter a location search interface to actively search for the target location information, and then share the searched target location information to the information exchange interface. This process is relatively complex, involves multiple page switches, and results in a poor user experience.
[0022] To address the aforementioned issues, this disclosure triggers the proactive display of location information by using keywords entered during text editing, reducing the interactive process of location search. Simultaneously, keywords displayed in a preset format prompt users to click on them to obtain map information, allowing users to more intuitively locate location information within large blocks of text, thus improving the user experience.
[0023] The embodiments of this disclosure will now be described in detail with reference to the accompanying drawings.
[0024] Figure 1 A schematic diagram of an exemplary system 100 in which the various methods and apparatus described herein can be implemented according to embodiments of this disclosure is shown. Reference Figure 1The system 100 includes one or more client devices 101, 102, 103, 104, 105 and 106, a server 120, and one or more communication networks 110 coupling the one or more client devices to the server 120. The client devices 101, 102, 103, 104, 105 and 106 can be configured to execute one or more applications.
[0025] In embodiments of this disclosure, server 120 may run one or more services or software applications that enable text editing methods to be performed.
[0026] In some embodiments, server 120 may also provide other services or software applications that may include non-virtual and virtual environments. In some embodiments, these services may be provided as web-based services or cloud services, such as to users of client devices 101, 102, 103, 104, 105 and / or 106 under a Software as a Service (SaaS) model.
[0027] exist Figure 1 In the configuration shown, server 120 may include one or more components that implement the functions performed by server 120. These components may include software components, hardware components, or combinations thereof that can be executed by one or more processors. Users operating client devices 101, 102, 103, 104, 105, and / or 106 can sequentially interact with server 120 using one or more client applications to utilize the services provided by these components. It should be understood that various different system configurations are possible and may differ from system 100. Therefore, Figure 1 This is an example of a system used to implement the various methods described herein, and is not intended to be limiting.
[0028] Users can use client devices 101, 102, 103, 104, 105, and / or 106 to perform text editing methods. The client devices can provide an interface that allows users to interact with the client devices. The client devices can also output information to the user through this interface. Although... Figure 1 Only six client devices are described, but those skilled in the art will understand that this disclosure can support any number of client devices.
[0029] Client devices 101, 102, 103, 104, 105, and / or 106 may include various types of computer devices, such as portable handheld devices, general-purpose computers (such as personal computers and laptops), workstation computers, wearable devices, smart screen devices, self-service terminal devices, service robots, gaming systems, thin clients, various messaging devices, sensors, or other sensing devices. These computer devices can run various types and versions of software applications and operating systems, such as Microsoft Windows, Apple iOS, UNIX-like operating systems, Linux or Linux-like operating systems (such as Google Chrome OS); or include various mobile operating systems, such as Microsoft Windows Mobile OS, iOS, Windows Phone, and Android. Portable handheld devices may include cellular phones, smartphones, tablets, personal digital assistants (PDAs), etc. Wearable devices may include head-mounted displays (such as smart glasses) and other devices. Gaming systems may include various handheld gaming devices, internet-enabled gaming devices, etc. Client devices are capable of executing various applications, such as various internet-related applications, communication applications (such as email applications), short message service (SMS) applications, and can use various communication protocols.
[0030] Network 110 can be any type of network well known to those skilled in the art, and can use any of a variety of available protocols (including but not limited to TCP / IP, SNA, IPX, etc.) to support data communication. By way of example only, one or more networks 110 can be a local area network (LAN), an Ethernet-based network, a token ring network, a wide area network (WAN), the Internet, a virtual network, a virtual private network (VPN), an intranet, an extranet, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., Bluetooth, WIFI), and / or any combination of these and / or other networks.
[0031] Server 120 may include one or more general-purpose computers, special-purpose server computers (e.g., PC (personal computer) servers, UNIX servers, mid-range servers), blade servers, mainframe computers, server clusters, or any other suitable arrangement and / or combination. Server 120 may include one or more virtual machines running a virtual operating system, or other computing architectures involving virtualization (e.g., one or more flexible pools of logical storage devices that can be virtualized to maintain virtual storage devices for servers). In various embodiments, server 120 may run one or more services or software applications that provide the functionality described below.
[0032] The computing unit in server 120 can run one or more operating systems, including any of the aforementioned operating systems and any commercially available server operating system. Server 120 can also run any of a variety of additional server applications and / or middleware applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, etc.
[0033] In some implementations, server 120 may include one or more applications to analyze and merge data feeds and / or event updates received from users of client devices 101, 102, 103, 104, 105, and 106. Server 120 may also include one or more applications to display data feeds and / or real-time events via one or more display devices of client devices 101, 102, 103, 104, 105, and 106.
[0034] In some implementations, server 120 can be a server for a distributed system or a server integrated with blockchain. Server 120 can also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology. A cloud server is a host product in the cloud computing service system, designed to address the shortcomings of traditional physical hosts and Virtual Private Server (VPS) services, such as high management difficulty and weak business scalability.
[0035] System 100 may also include one or more databases 130. In some embodiments, these databases may be used to store data and other information. For example, one or more of the databases 130 may be used to store information such as audio files and video files. Databases 130 may reside in various locations. For example, a database used by server 120 may be local to server 120, or it may be located away from server 120 and may communicate with server 120 via a network-based or dedicated connection. Databases 130 may be of different types. In some embodiments, the database used by server 120 may be, for example, a relational database. One or more of these databases may store, update, and retrieve data from and from the databases in response to commands.
[0036] In some embodiments, one or more of the databases 130 may also be used by an application to store application data. The databases used by the application may be of different types, such as key-value stores, object stores, or regular stores supported by a file system.
[0037] Figure 1 The system 100 can be configured and operated in various ways to enable the application of the various methods and apparatus described in this disclosure.
[0038] The collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0039] Figure 2 A flowchart of a text editing method according to an embodiment of the present disclosure is shown. Figure 2 As shown, the text editing method 200 includes: step S201, in response to detecting that a user inputs a pre-stored keyword in a text editing page, displaying at least one candidate location information corresponding to the keyword in the text editing page; step S202, in response to the user selecting target location information from the at least one candidate location information, linking the map information corresponding to the target location information to the keyword; and step S203, displaying the keyword in a preset format in the text editing page, wherein the preset format indicates that the keyword links to additional information that can be obtained by clicking.
[0040] By triggering the display of candidate location information through keywords entered during text editing, users can subjectively select a location. Map information corresponding to the selected location is linked to the text, inserting map information into the keywords on the text editing page. This proactive display of location information simplifies the location search process, allowing users to quickly obtain location information. Simultaneously, the keywords linked to the map information are displayed in a preset format, prompting users to click on the keyword to retrieve map information. This preset format helps users more intuitively locate location information within large blocks of text, making the user interface intuitive, effective, and enhancing the user experience.
[0041] The display of candidate location information triggered by keywords can be achieved through a pre-set database. Specifically, text information can be matched with location information and stored in the database. When the text information entered by the user on the text editing page is detected to exist in the pre-set database, the display of the location information corresponding to that text information in the database, i.e., the candidate location information, is triggered.
[0042] Preset formats may include common hyperlink formats, displaying keywords in a different color than other text not linked to map information, or adding location icons after keywords to distinguish keywords from other ordinary text, allowing users to quickly locate keywords with map information. This disclosure does not limit the specific form in which keywords are displayed.
[0043] According to some embodiments, the method further includes: displaying the map information in response to the user clicking the keyword displayed in the preset format. Thus, the user can view map information of a target location by clicking on the keyword in the text editing page. For example, the map information may include the location of the target location and route information for navigation to the target location.
[0044] In one example, when a user sends text containing keywords displayed in a preset format to other users, the other users can locate the keywords containing location information within the long text message, displayed differently from ordinary text. They can then click on the keywords to view the corresponding map information or route information to that location. Thus, location information can be shared by combining text and location data. The receiving user can more easily and quickly understand the semantics of the location and view map information with simple clicks.
[0045] According to some embodiments, the method further includes: in response to the user selecting target location information from the at least one candidate location information, displaying an image containing the map information on the text editing page.
[0046] Understandably, as a supplementary solution, images containing map information can be inserted into the text information to allow users to share target location information in a more intuitive way.
[0047] According to some embodiments, the method further includes: displaying a custom button while displaying the at least one candidate location information; and switching the text editing page to a map search interface in response to the user clicking the custom button.
[0048] For example, when none of the candidate location information displayed matches the user's expectations, the user can switch the current page to a map search interface by clicking a custom button on the current text editing page to manually search for or locate the target location.
[0049] According to some embodiments, the at least one candidate location information is displayed in an orderly manner based on its matching degree with the keyword. When the keyword entered by the user matches multiple candidate location information, the multiple candidate location information can be displayed in an orderly manner based on the matching degree between the candidate location information and the keyword, in order to meet the user's expectations.
[0050] In one example, the user's location information can be used as a factor to calculate the match between multiple candidate location information and keywords. That is, when the text match is the same, candidate location information that is closer to the user physically has a higher match score and can be displayed in a higher position. Since users tend to share location information that is close to them when exchanging information or editing text, the above operation can increase the likelihood that candidate location information matches the user's expectations.
[0051] Figure 3 A schematic diagram illustrating the display of candidate location information according to an embodiment of the present disclosure is shown. For example... Figure 3 As shown, when a user enters the keyword "Huihuang International Parking Lot," a bubble containing multiple candidate location information is displayed. When the user selects "Huihuang International Parking Lot" as the target location, the keyword "Huihuang International Parking Lot" in the text editing area is displayed in a preset format different from other text, indicating that the keyword is linked to map information. The user can click on this keyword to view the map information. The preset format can include displaying the keyword in a different color than other text not linked to map information, or adding a location icon after the keyword, to distinguish the keyword from other ordinary text, allowing users to more quickly locate the keyword with map information.
[0052] According to another aspect of this disclosure, a text editing device is provided. For example... Figure 4 As shown, the text editing device 400 includes: a first display module 401 configured to display at least one candidate location information corresponding to the keyword in the text editing page in response to detecting that a user inputs a pre-stored keyword in the text editing page; a link module 402 configured to link map information corresponding to the target location information to the keyword in response to the user selecting target location information from the at least one candidate location information; and a second display module 403 configured to display the keyword in the text editing page in a preset format, wherein the preset format indicates that the keyword links to additional information that can be obtained by clicking.
[0053] The first display module 401 triggers the active display of candidate location information based on keywords entered during text editing, allowing users to subjectively select a location. The linking module 402 links the selected location's corresponding map information to the text, inserting map information into keywords on the text editing page. This proactive display of location information simplifies the location search process, enabling users to quickly obtain location information. Simultaneously, the second display module 403 displays the keywords linked to the map information in a preset format, prompting users to click on the keyword to obtain map information. This preset format allows users to more intuitively locate location information within large blocks of text, making the user interface intuitive, effective, and enhancing the user experience.
[0054] The operation of modules 401-403 of the text editing device 400 is similar to the operation of steps S201-S203 described above, and will not be repeated here.
[0055] The first display module 401 can trigger the display of candidate location information via keywords through a preset database. Specifically, text information can be matched with location information and stored in the database. When the text information entered by the user on the text editing page is detected to exist in the preset database, the display of the location information corresponding to that text information in the database, i.e., the candidate location information, is triggered.
[0056] According to some embodiments, the text editing device 400 further includes a third display module configured to display the map information in response to the user clicking on the keyword displayed in the preset format.
[0057] In one example, when a user sends text containing keywords displayed in a preset format to other users, the other users can locate the keywords containing location information within the long text message, displayed differently from ordinary text. They can then click on the keywords to view the corresponding map information or route information to that location. Thus, location information can be shared by combining text and location data. The receiving user can more easily and quickly understand the semantics of the location and view map information with simple clicks.
[0058] According to some embodiments, the text editing device 400 further includes a fourth display module configured to display an image containing the map information on the text editing page in response to the user selecting target location information from the at least one candidate location information.
[0059] Understandably, as a supplementary solution, the fourth display module can insert images containing map information into the text information, so that users can share target location information in a more intuitive way.
[0060] According to some embodiments, the text editing device 400 further includes: a fifth display module configured to display a custom button while displaying the at least one candidate location information; and a switching module configured to switch the text editing page to a map search interface in response to the user clicking the custom button.
[0061] For example, when none of the candidate location information displayed matches the user's expectations, the user can switch the current page to a map search interface by clicking a custom button on the current text editing page to manually search for or locate the target location.
[0062] According to some embodiments, the at least one candidate location information is displayed in an orderly manner based on its matching degree with the keyword. When the keyword entered by the user matches multiple candidate location information, the multiple candidate location information can be displayed in an orderly manner based on the matching degree between the candidate location information and the keyword, in order to meet the user's expectations.
[0063] In one example, the user's location information can be used as a factor to calculate the match between multiple candidate location information and keywords. That is, when the text match is the same, candidate location information that is closer to the user physically has a higher match score and can be displayed in a higher position. Since users tend to share location information that is close to them when exchanging information or editing text, the above operation can increase the likelihood that candidate location information matches the user's expectations.
[0064] According to embodiments of this disclosure, an electronic device, a readable storage medium, and a computer program product are also provided.
[0065] refer to Figure 5 The present invention describes a structural block diagram of an electronic device 500 that can serve as a server or client of the present disclosure, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0066] like Figure 5 As shown, the electronic device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. The RAM 503 may also store various programs and data required for the operation of the electronic device 500. The computing unit 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0067] Multiple components in electronic device 500 are connected to I / O interface 505, including: input unit 506, output unit 507, storage unit 508, and communication unit 509. Input unit 506 can be any type of device capable of inputting information to electronic device 500. Input unit 506 can receive input digital or character information and generate key signal inputs related to user settings and / or function control of electronic device, and may include, but is not limited to, a mouse, keyboard, touchscreen, trackpad, trackball, joystick, microphone, and / or remote control. Output unit 507 can be any type of device capable of presenting information, and may include, but is not limited to, a monitor, speaker, video / audio output terminal, vibrator, and / or printer. Storage unit 508 may include, but is not limited to, disk and optical disk. Communication unit 509 allows electronic device 500 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers, and / or chipsets, such as Bluetooth. TM Devices, 802.11 devices, WiFi devices, WiMax devices, cellular communication devices and / or the like.
[0068] The computing unit 501 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 501 performs the various methods and processes described above, such as text editing methods. For example, in some embodiments, the text editing method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 500 via ROM 502 and / or communication unit 509. When the computer program is loaded into RAM 503 and executed by the computing unit 501, one or more steps of the text editing method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform text editing methods by any other suitable means (e.g., by means of firmware).
[0069] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0070] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0071] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0072] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0073] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0074] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.
[0075] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.
[0076] While embodiments or examples of this disclosure have been described with reference to the accompanying drawings, it should be understood that the methods, systems, and devices described above are merely exemplary embodiments or examples, and the scope of the invention is not limited by these embodiments or examples, but only by the granted claims and their equivalents. Various elements in the embodiments or examples may be omitted or replaced by their equivalents. Furthermore, the steps may be performed in a different order than that described in this disclosure. Further, various elements in the embodiments or examples may be combined in various ways. Importantly, as the technology evolves, many elements described herein can be replaced by equivalents that appear after this disclosure.
Claims
1. A text editing method, comprising: In response to detecting that a user enters a pre-stored keyword in a text editing page, a bubble containing multiple candidate location information corresponding to the keyword is displayed in the text editing page for the user to select from, wherein the multiple candidate location information is displayed in order based on the matching degree with the keyword, and the matching degree is determined at least based on the distance between each candidate location and the user's current location; In response to the user selecting a target location from the plurality of candidate location information in the bubble, the map information corresponding to the target location information is linked to the keyword; and The keywords are displayed in a preset format on the text editing page, wherein the preset format indicates that the keyword links have additional information that can be accessed by clicking.
2. The method according to claim 1, further comprising: In response to the user clicking the keyword displayed in the preset format, the map information is displayed.
3. The method according to claim 1, further comprising: In response to the user selecting target location information from the plurality of candidate location information, an image containing the map information is displayed on the text editing page.
4. The method according to claim 1, further comprising: A custom button is displayed while showing the multiple candidate location information; as well as In response to the user clicking the custom button, the text editing page is switched to a map search interface.
5. A text editing device, comprising: A first display module is configured to, in response to detecting that a user has entered a pre-stored keyword in a text editing page, display a bubble containing multiple candidate location information corresponding to the keyword in the text editing page for the user to select from, wherein the multiple candidate location information is displayed in order based on the matching degree with the keyword, and the matching degree is determined at least based on the distance between each candidate location and the user's current location. The linking module is configured to, in response to the user selecting target location information from the plurality of candidate location information in the bubble, link the map information corresponding to the target location information to the keyword; and The second display module is configured to display the keyword in a preset format on the text editing page, wherein the preset format indicates that the keyword link has additional information that can be obtained by clicking.
6. The apparatus according to claim 5, further comprising: The third display module is configured to display the map information in response to the user clicking the keyword displayed in the preset format.
7. The apparatus according to claim 5, further comprising: The fourth display module is configured to display an image containing the map information on the text editing page in response to the user selecting target location information from the plurality of candidate location information.
8. The apparatus according to claim 5, further comprising: The fifth display module is configured to display a custom button while displaying the multiple candidate location information; The switching module is configured to switch the text editing page to a map search interface in response to the user clicking the custom button.
9. An electronic device, comprising: At least one processor; as well as A memory that is communicatively connected to the at least one processor; in The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4.
10. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-4.
11. A computer program product comprising a computer program, wherein, The computer program, when executed by a processor, implements the method of any one of claims 1-4.