CN100445945C - Memory type quick retrieve and listing input method for program code in Chinese programming - Google Patents

Memory type quick retrieve and listing input method for program code in Chinese programming Download PDF

Info

Publication number
CN100445945C
CN100445945C CNB2005100993532A CN200510099353A CN100445945C CN 100445945 C CN100445945 C CN 100445945C CN B2005100993532 A CNB2005100993532 A CN B2005100993532A CN 200510099353 A CN200510099353 A CN 200510099353A CN 100445945 C CN100445945 C CN 100445945C
Authority
CN
China
Prior art keywords
input
code
title
chinese
content
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.)
Expired - Fee Related
Application number
CNB2005100993532A
Other languages
Chinese (zh)
Other versions
CN1770100A (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.)
DALIAN DYWT EASY PROGRAMMING LANGUAGE SOFTWARE DEVELOPMENT Co Ltd
Original Assignee
DALIAN DYWT EASY PROGRAMMING LANGUAGE SOFTWARE DEVELOPMENT 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 DALIAN DYWT EASY PROGRAMMING LANGUAGE SOFTWARE DEVELOPMENT Co Ltd filed Critical DALIAN DYWT EASY PROGRAMMING LANGUAGE SOFTWARE DEVELOPMENT Co Ltd
Priority to CNB2005100993532A priority Critical patent/CN100445945C/en
Publication of CN1770100A publication Critical patent/CN1770100A/en
Application granted granted Critical
Publication of CN100445945C publication Critical patent/CN100445945C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses a memory type quick retrieval and listing inputting method for program codes in Chinese programming, which comprises a step which is installed on a publicly-known computer and is connected to a programming language and simultaneously starts the programming software of a user. The present invention is characterized in that the present invention also comprises the step which carries out advance configuration for the inputting method, receives key input, carries out synchronous display, retrieves and restores input codes, confirms completion through a mouse and/or a keyboard, automatically changes names, adds to variable, constant quantity and subprogram. The method disclosed by the present invention breaks through the bottleneck of recording the program codes in Chinese programming, opens up a royal road for many Chinese programming users and wide primary and secondary school students to use and learn the Chinese programming, and meanwhile provides a new selection for a professional.

Description

The memory type of program code is retrieved and listing input method fast in the Chinese programming
Technical field
The memory type that the present invention relates to program code in the Chinese programming is retrieved and listing input method fast.
Background technology
At present domestic for using the Chinese strong demand of programming, but prior art makes the programming user run into a lot of difficulties when programming with Chinese, the slow problem of wherein Chinese statement input is very outstanding.The input method input Chinese program code that carries with operating system can make program speed decline, work efficiency descend routinely, is unfavorable for popularizing of computer Chinese programming language.Existing similar software is divided three classes basically:
1, the first kind, the programming language of pure English, as: English edition VB6.0, it has adopted English program code input, can eject English list window such as corresponding attribute event after the English name input is complete.Require the programming personnel that certain English knowledge is arranged, and need during input Chinese Chinese character coding input method that system provides.
2, second class, Chinesizing version programming language, as: Chinese edition VB6.0, the menu part at programmed environment interface but it has only Chinesized, its inner all component, attribute, incident, method still are English, though also can use Chinese character, the Chinese character coding input method that needs system to provide when input just can eject list window after importing complete object oriented and fullstop assembly name.Require the programming personnel that certain English knowledge is arranged simultaneously.
3, the 3rd class, the Chinese programming language, as: language compiled in the Chinese, and it has adopted the Chinese order to programme, but the Chinese character coding input method that must have system to provide can not eject list box, do not have the function of the input selected.
Taking a broad view of above prior art can find: in this three classes programming language, the Chinese character coding input method that all needs system to provide during input Chinese if system fails to provide, then needs to install a kind of Chinese character input method of user's custom.This input method fails to provide supporting with it input method to retrieve restoring function fast, the function of the titles of importing before the memory such as variable is not provided yet, therefore can behind the loading routine code, not eject the list box of all titles of record automatically, like this, the user just can't realize quick selection by this list box.Another shortcoming of this input method is to need frequent switching between input Chinese character and English, lacks the auto-conversion function between English alphabet and Chinese character, thereby the efficient of input code is reduced greatly.
Summary of the invention
Proposition of the present invention is intended to overcome targetedly the shortcoming of existing input method, for the Chinese programming environment provides the method for a quick recording program code, convenient Chinese programming user's use.
Technical solution of the present invention is achieved in that
Fast retrieval and listing input method of the memory type of program code in a kind of Chinese programming comprises: on known computer, install one that articulate with programming language and with its step that starts user program software simultaneously, it is characterized in that also comprising:
Its input method is carried out pre-configured step;
Accept the step of keyboard input and display routine code;
To input code retrieve be reduced to input code corresponding title step and
Select title in the name list to be confirmed and change selected title automatically and judge the step of appending variable, constant and subroutine when being input as new variable, constant, subroutine title by mouse and/or keyboard.
The memory type of program code is retrieved and listing input method fast in the described Chinese programming, it is characterized in that described to its input method carry out pre-configured step be meant in system configuration dialog right by mouse and/or keyboard: self-verifying and point out the grammer wrong option to choose and confirm behind acquiescence input method, the support of phonetic class input method south sound, instant input prompt, the new statement line of input deposits the result who confirms in internal memory register, registration table or the configuration file process.
The described step of accepting the keyboard input and showing means by computer keyboard accepts user's input, the classification that system differentiates its code automatically, comprise: sound sign indicating number, font code, phonetic-stroke code, four jiaos of sign indicating numbers and/or English alphabet, subsequently the character imported is compared according to classification and content in the namebase of being made up of key word, constant, variable, subroutine name, function name, class name, method name, event name, Property Name, and on screen, show the in addition process of demonstration synchronously of all name list of retrieving.
The described retrieval comprises with step of reducing the user retrieved by every record one by one accordingly by the character content of keyboard input and the content with in the namebase that is kept in the storer, presses the different classes of process of being reduced correspondingly of code then: promptly
Adopted the sound code input scheme, just titles all in its namebase has been reduced to sound sign indicating number form, compared by the character of keyboard input and the content that is kept in the storer with the user again;
Adopted the font code scheme, just titles all in its namebase has been reduced to the font code form, compared by the character of keyboard input and the content that is kept in the storer with the user again;
Adopted English code plan, just titles all in its namebase has been reduced to English sign indicating number form, compared by the character of keyboard input and the content that is kept in the storer with the user again;
Adopted sound shape hybrid code scheme, just titles all in its namebase has been reduced to sound shape hybrid code form, compared by the character of keyboard input and the content that is kept in the storer with the user again;
Adopted four jiaos of code plans, just titles all in its namebase has been reduced to four jiaos of sign indicating number forms, compared by the character of keyboard input and the content that is kept in the storer with the user again;
If the user is kept in the storer by the character content of keyboard input, and when being Chinese character, just the Chinese character in itself and the namebase is compared and selects.
It is described when the content of user by the character string of keyboard input is southern sound and/or polyphone, need the Chinese character with southern sound and/or polyphone rule in the namebase is converted to the phonetic of southern sound and/or polyphone, carry out repeatedly relatively and reduction with the phonetic of the character string of input.
The character string content of described user by keyboard input be the English fullstop ". " of half-angle or the Chinese fullstop of full-shape "." time; judge whether the character string before fullstop or the fullstop is object oriented; the character string before desirable point or the fullstop is reduced to object oriented according to retrieval scheme and according to this namebase is retrieved; look the title of its attribute that has or not object, method and incident; on screen, eject or no longer eject list window; when ejecting this window, wherein listed the title of the pairing attribute of object oriented, method and incident.
When the content in the described storer was the constant aiming symbol, the content that eject in the list window constant aiming symbol below was the constant title.
Describedly select title in the name list to be confirmed and change selected title automatically and judge the step of appending variable, constant and subroutine when being input as new variable, constant, subroutine title by mouse and/or keyboard, comprise that the program line that at first input is finished is separated by rule, deposit storer in the array form, respectively with namebase in content compare, look it and whether meet, then change title if meet; If do not meet, then look it and have or not the constant leading symbol, in the window that ejects, add constant if just have; If the subroutine label symbol is arranged, just in the window that ejects, add the subroutine title; If said two devices does not all have, just in the window that ejects, add variable; Variable that all increase newly and constant, subroutine title all add in the namebase as self-defined title; The object program that aforementioned array is reduced to after the retrieval is capable, and programmed environment will be confirmed the input of this line code.
Compared with prior art, beneficial effect of the present invention shows:
1, prior art need be imported Chinese program code with the input method that operating system provides, method provided by the invention and a programming language environment join, built-in Chinese character coding input method need not user installation, starts simultaneously for user written program when starting programming language.The Chinese program statement can be directly corresponding with command name.
2, existing input method needs the input one by one of a Chinese character of a Chinese character, is difficult to cooperate with the correlation computer phrase quick loading routine code.Need between the Chinese and English to switch.Input method of the present invention provides the mixing input function of sound sign indicating number, font code, phonetic-stroke code, four jiaos of sign indicating numbers and English input method, need not switch during input, provide simultaneously window is set, at own familiar sound sign indicating number, font code, phonetic-stroke code, select between four jiaos of sign indicating numbers and the English input method for the user.
3, prior art fails to provide input method to retrieve reduction technique fast, and input method provided by the invention has quick retrieval restoring function, and the code that can make input is through simply being automatically converted to corresponding order after the compiling.
4, prior art fails to provide the tabulation prompting frame for selecting fast, supplies to select fast and the invention provides list box, for example: selective if first assembly of input " rg " or spelling " ruoguo " can eject all name list of above-mentioned beginning of letter automatically.
5, prior art fails to provide southern sound and the fault-tolerant support of polyphone, and the invention provides the fault-tolerant support of southern sound and polyphone, realizes fuzzy search and reduction when retrieval.
6, prior art does not provide memory function, and the variable name of once importing in the past, constant name, self-defined subroutine title, self-defining data type and custom block title all can't show in the list box that ejects subsequently.Input rule of the present invention can be with the name of importing in the past, and title all shows in next list box.
7, prior art needs frequent switching between input Chinese character and English.And the present invention can import the Chinese and English order simultaneously, and Intelligent treatment does not need frequent switching between input Chinese character and English.
8, prior art needs certain english knowledge, and before the in use civilian programming language of the present invention, need not to carry out special english knowledge training before the programming language of English programming language and Chinesizing uses, and can skip the English threshold.
Description of drawings
The present invention has a width of cloth accompanying drawing.
Fig. 1 is the process flow diagram of quick retrieval of the memory type of program code in the Chinese programming of the present invention and tabulation input method.
Embodiment
The memory type of program code is retrieved and listing input method fast in a kind of Chinese programming, be included on the known computer install one that articulate with programming language and start the step of user program software simultaneously with it, it is characterized in that this input method also comprises carries out pre-configured step to its input scheme, accept input and the step that shows synchronously, retrieve with step of reducing and by mouse and/or keyboard confirm to finish and change title automatically, append variable, the step of constant and subroutine.Wherein saidly input scheme is carried out pre-configured step be meant: a window draws on computer screen, with sound sign indicating number, font code, the phonetic-stroke code of having realized, four jiaos of sign indicating numbers and English input method title branch are listed on this window, simultaneously to southern sound support, display reminding window, self-verifying prompting grammar mistake adds variable constant subroutine title automatically and also is presented in this window as option, selects for the user.
The user selects above option by using mouse or keyboard.Be set to the internal memory register more than the preservation, registration table, or in the configuration file.
After computer keyboard is accepted user input, judge that what accepted is the double byte Chinese character, or the character of byte English, numeric class.If belonging to this code of three types just is kept in the storer, and show at the onscreen cursor place immediately.
The condition of retrieval is: the user input content on screen is compared with the content in the namebase, therefore need obtain the preceding complete content of cursor of namebase and user input.
Comprise in the namebase:
1, the title of order, window assembly data type and the attribute thereof that provides in all current operations support storehouses and method, general data type and member thereof and method, storehouse defconstant;
2, the title of the subroutine parameter, subroutine local variable, procedure set variable and the global variable that in program, define of user;
3, user-defined subroutine, DLL external command title;
4, user-defined data type and member Name thereof;
5, the resource of user's adding and the constant title of definition;
6, user's defined window assembly, menu item title when design window;
7, system definition data type title;
8, system definition constant title is as logical value constant " very " and " vacation ";
9, title and the input word and the phrase of definition in the input method configuration.
Namebase can exist with internal memory mode and/or file mode.If the internal memory mode just compares each title with the internal memory pointer.If do not retrieve, display list window not just.If qualified record is arranged, just result for retrieval is presented on the computer screen.On screen, draw a window during demonstration earlier, in order result for retrieval is listed in this window then.
But the process of getting the retrieval of content of the input of user on the screen is, reads the position when having space or row first before the cursor, and the character content before the cursor behind this position is taken out, and is saved in the storer.After getting user on the above-mentioned screen and importing words, just can retrieve with namebase.
If the content in the storer is a Chinese character, just Chinese character in the storer and the Chinese character in the namebase are compared, find the identical title in the pairing namebase of this Chinese character.If the content in the storer is a character, may be sound sign indicating number, font code, phonetic-stroke code, four jiaos of sign indicating numbers or English character, just the content in the storer is listed according to user configured scheme respectively.Adopted the sound code plan if the user disposes, just the title in the namebase has been reduced to sound sign indicating number form, compared with content in the storer.Adopted four jiaos of code plans if the user disposes, that just is reduced to the title in the namebase four jiaos of sign indicating number forms, compares with content in the storer.If the user disposes the English scheme that adopted, that just is reduced to English form with title in the namebase, compares with content in the storer.If configurable scheme is other forms, all can compare with reference to above.
When allocation plan has option more than two, the succession that retrieval and list window show is by every record of namebase is retrieved, make each bar record all by after enter next bar again and write down and realize.Thereby the succession when also having guaranteed in the title window, to list.
When handling phonetic plan, need handle southern sound and polyphone simultaneously.
The phonetic alphabet of south sound and combination thereof and mandarin are one to one, promptly
Z ← → zh, c ← → ch, s ← → sh, an ← → ang, on ← → ong, en ← → eng, in ← → ing, l ← → n, when handling southern sound, may in delegation's program code, there be a plurality of southern sounds to need to handle, therefore when input of character string and namebase compare, the Chinese pinyin that has southern sound in the namebase repeatedly will be compared.Polyphone is the same with southern sound, also need adopt repeatedly the mode of relatively retrieving with namebase to handle.

Claims (8)

1, fast retrieval and listing input method of the memory type of program code in a kind of Chinese programming comprises: on known computer, install one that articulate with programming language and with its step that starts user program software simultaneously, it is characterized in that also comprising:
Its input method is carried out pre-configured step;
Accept the step of keyboard input and display routine code;
To input code retrieve be reduced to input code corresponding title step and
Select title in the name list to be confirmed and change selected title automatically and judge the step of appending variable, constant and subroutine when being input as new variable, constant, subroutine title by mouse and/or keyboard.
2, the memory type of program code is retrieved and listing input method fast in the Chinese programming according to claim 1, it is characterized in that described to its input method carry out pre-configured step be meant in system configuration dialog right by mouse and/or keyboard: self-verifying and point out the grammer wrong option to choose and confirm behind acquiescence input method, the support of phonetic class input method south sound, instant input prompt, the new statement line of input deposits the result who confirms in internal memory register, registration table or the configuration file process.
3, the memory type of program code is retrieved and listing input method fast in the Chinese programming according to claim 2, it is characterized in that the described step of accepting the keyboard input and showing means the input of being accepted the user by computer keyboard, system differentiates the classification of its code automatically, comprise: the sound sign indicating number, font code, phonetic-stroke code, four jiaos of sign indicating numbers, and/or English alphabet, subsequently with the character imported according to classification with by key word, constant, variable, subroutine name, function name, class name, the method name, event name, content in the namebase that Property Name is formed compares, and shows the process that all name list of retrieving show synchronously in addition on screen.
4, the memory type of program code is retrieved and listing input method fast in the Chinese programming according to claim 3, it is characterized in that described the retrieval comprises with step of reducing the user is retrieved by every record one by one accordingly by the character content of keyboard input and the content with in the namebase that is kept in the storer, presses the different classes of process of being reduced correspondingly of code: promptly then
Adopted the sound code input scheme, just titles all in its namebase has been reduced to sound sign indicating number form, compared by the character of keyboard input and the content that is kept in the storer with the user again;
Adopted the font code scheme, just titles all in its namebase has been reduced to the font code form, compared by the character of keyboard input and the content that is kept in the storer with the user again;
Adopted English code plan, just titles all in its namebase has been reduced to English sign indicating number form, compared by the character of keyboard input and the content that is kept in the storer with the user again;
Adopted sound shape hybrid code scheme, just titles all in its namebase has been reduced to sound shape hybrid code form, compared by the character of keyboard input and the content that is kept in the storer with the user again;
Adopted four jiaos of code plans, just titles all in its namebase has been reduced to four jiaos of sign indicating number forms, compared by the character of keyboard input and the content that is kept in the storer with the user again;
If the user is kept in the storer by the character content of keyboard input, and when being Chinese character, just the Chinese character in itself and the namebase is compared and selects.
5, the memory type of the program code in the Chinese programming according to claim 4 is retrieved and listing input method fast, it is characterized in that described when the content of user by the character string of keyboard input is southern sound and/or polyphone, need the Chinese character with southern sound and/or polyphone rule in the namebase is converted to the phonetic of southern sound and/or polyphone, carry out repeatedly relatively and reduction with the phonetic of the character string of input.
6, fast retrieval and listing input method of the memory type of the program code in the Chinese programming according to claim 5, it is characterized in that the character string content of described user by the keyboard input be the English fullstop ". " of half-angle or the Chinese fullstop of full-shape "." time; judge whether the character string before fullstop or the fullstop is object oriented; the character string before desirable point or the fullstop is reduced to object oriented according to retrieval scheme and according to this namebase is retrieved; look the title of its attribute that has or not object, method and incident; on screen, eject or no longer eject list window; when ejecting this window, wherein listed the title of the pairing attribute of object oriented, method and incident.
7, the memory type of the program code in the Chinese programming according to claim 6 is retrieved and listing input method fast, when it is characterized in that content in the described storer is the constant aiming symbol, the content that eject in the list window constant aiming symbol below is the constant title.
8, fast retrieval of the memory type of the program code in the Chinese programming according to claim 1 and 2 and listing input method, it is characterized in that describedly selecting in the name list title to be confirmed and change selected title automatically to be input as new variable with judging by mouse and/or keyboard, constant, append variable during the subroutine title, the step of constant and subroutine, comprise that the program line that at first input is finished is separated by rule, deposit storer in the array form, respectively with namebase in content compare, look it and whether meet, then change title if meet; If do not meet, then look it and have or not the constant leading symbol, in the window that ejects, add constant if just have; If the subroutine label symbol is arranged, just in the window that ejects, add the subroutine title; If said two devices does not all have, just in the window that ejects, add variable; Variable that all increase newly and constant, subroutine title all add in the namebase as self-defined title; The object program that aforementioned array is reduced to after the retrieval is capable, and programmed environment will be confirmed the input of this line code.
CNB2005100993532A 2005-09-15 2005-09-15 Memory type quick retrieve and listing input method for program code in Chinese programming Expired - Fee Related CN100445945C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100993532A CN100445945C (en) 2005-09-15 2005-09-15 Memory type quick retrieve and listing input method for program code in Chinese programming

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100993532A CN100445945C (en) 2005-09-15 2005-09-15 Memory type quick retrieve and listing input method for program code in Chinese programming

Publications (2)

Publication Number Publication Date
CN1770100A CN1770100A (en) 2006-05-10
CN100445945C true CN100445945C (en) 2008-12-24

Family

ID=36751423

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100993532A Expired - Fee Related CN100445945C (en) 2005-09-15 2005-09-15 Memory type quick retrieve and listing input method for program code in Chinese programming

Country Status (1)

Country Link
CN (1) CN100445945C (en)

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
. 易语言3.7简体版. 2004
《5000万元力助易语言成长》. 电脑报. 2004
《5000万元力助易语言成长》. 电脑报. 2004 *
易语言3.7简体版. 2004 *

Also Published As

Publication number Publication date
CN1770100A (en) 2006-05-10

Similar Documents

Publication Publication Date Title
CN100334529C (en) Reduced keyboard disambiguating system
KR101265851B1 (en) Autocompleting with queries to a database
CN101529494B (en) System and method for a user interface for text editing and menu selection
CN105378606B (en) The alternative hvpothesis error correction keyed in for gesture
CN101292214B (en) Improved text input in a shorthand-on-keyboard interface
US4914704A (en) Text editor for speech input
CN102016837B (en) System and method for classification and retrieval of Chinese-type characters and character components
US20140245177A1 (en) Graphical user interface for entering multi-character expressions
Shneiderman Designing menu selection systems
CN103026318A (en) Input method editor
KR20080104259A (en) Embedded rule engine for rendering text and other applications
CN103049098A (en) Device and method for input method shifting
CN104424180A (en) Text input method and equipment
CN101520693A (en) Method and system for rapidly inputting bulk information
JP2004523034A (en) Character generation system
CN102981693A (en) Multi-language hand writing input method and device
CN104731766A (en) Alphabetic writing lexicon establishing method, alphabetic writing lexicon establishing device, inputting method and inputting system
CN100445945C (en) Memory type quick retrieve and listing input method for program code in Chinese programming
AU2013200000B2 (en) Method and apparatus for analyzing a document
CN100561469C (en) Create and use the method and system of Chinese language data and user-corrected data
CN106095126A (en) The generation method of dummy keyboard and the method and system of input Sanskrit
CN102662491B (en) Spelling input method based on octree
JP2010015515A (en) Electronic apparatus provided with dictionary function
Barlow MonoconcEsy: An Introduction to Concordancing
AU2013200005B2 (en) Method and apparatus for analyzing abbreviations in a document

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081224

Termination date: 20160915