Get desktop application:
View/edit binary Protocol Buffers messages
Used in:
LINT.ThenChange( dictionary/user_dictionary_util.cc ) ID of this dictionary
name of dictionary
entry of each word
Used in:
, ,Historically we used to use tag number '3' for POS in string format. In order to switch it to enum based POS, we removed (deprecated) the tag number '3' field and created another field numbered '5'. Historically the default POS tag was NOUN, and "NO_POS" is added later. In order to preserve the original default behavior, default POS tag is explicitly specified as NOUN. However, this can be changed if there is no problem with "NO_POS".
In multilingual settings, Gboard's personal dictionary will feed entries with locale information. We can change the behavior (filter or demote) The locale is usually formatted in BCP47. In TSV format, the locale is encoded in the POS field as `pos:locale` "名詞:ja".
LINT.IfChange
Used in:
Use this when the POS tag is not provided or unknown.
"品詞なし"
"名詞"
"短縮よみ"
"サジェストのみ"
"固有名詞"
"人名"
"姓"
"名"
"組織"
"地名"
"名詞サ変"
"名詞形動"
"数"
"アルファベット"
"記号"
"顔文字"
"副詞"
"連体詞"
"接続詞"
"感動詞"
"接頭語"
"助数詞"
"接尾一般"
"接尾人名"
"接尾地名"
"動詞ワ行五段"
"動詞カ行五段"
"動詞サ行五段"
"動詞タ行五段"
"動詞ナ行五段"
"動詞マ行五段"
"動詞ラ行五段"
"動詞ガ行五段"
"動詞バ行五段"
"動詞ハ行四段"
"動詞一段"
"動詞カ変"
"動詞サ変"
"動詞ザ変"
"動詞ラ変"
"形容詞"
"終助詞"
"句読点"
"独立語"
"抑制単語"
Used in:
Used in:
Does nothing.
Unlink the user dictionary file if necessary. We can do this operation without creating a session. This operation is introduced as a last resort to clean up user dictionary, so it *forces* to unlink the file regardless of the current user dictionary session status.
Creates a new session, and returns its id via UserDictionaryCommandStatus::session_id.
Deletes the session identified by session_id.
Sets the default dictionary name. It will be used when ensure_non_empty_storage is enabled and the operation supporting the flag is invoked.
Checks if the session is currently undoable or not.
Undoes the last operation.
Loads from local storage.
Saves to local storage.
Returns a list of name and dictionary-id pairs. They are filled in the form of UserDictionary without any entries in UserDictionaryCommandStatus::storage.
Returns the number of entries in the dictionary with the given dictionary_id.
Returns if it is possible to add new dictionary or not. The result is returned by using status code.
Creates a new dictionary with the dictionary_name.
Deletes the dictionary with the given dictionary_id.
Renames the dictionary with the given dictionary_id to dictionary_name.
Returns if it is possible to add new entry to the dictionary with the given dictionary_id or not.
Adds an entry to the dictionary with the given dictionary_id. Added entry should be located at the end of the dictionary, and the data should be passed via entry field.
Edits an entry in the dictionary with the given dictionary_id. The new data should be passed via entry. The edit target should be specified via entry_index(0).
Deletes entries in the dictionary with the given dictionary_id. The target entries should be specified based on index in entry_index.
Imports entries from the given data into a dictionary. There are two ways to specify the dictionary: 1) set dictionary_id for the dictionary 2) set dictionary_name to create a new dictionary with the name.
Gets the entire UserDictionaryStorage data. Note: The result of this command could be too large for IPC, which has a size limitation of the response data.
Returns entries in the dictionary specified by dictionary_id. The position of the entry should be specified via entry_index().
Used in:
Note: this status code is now temporary assgined. It may be updated (incl. re-numbering) to organize the code. I.e., the code shouldn't be saved in serialized format for now. TODO(hidehiko): Re-organize and re-number the enum values, after we check all necessary codes in.
Used in:
Note: SUCCEEDED is conflicting Windows MACRO.
Note: currently if we receive this error status, the file is actually saved.
Errors for dictionary names.
Errors for entry data.
Errors for importing.
Used in:
version of user dictionary
dictionary body