diff --git a/reference/enchant/functions/enchant-broker-describe.xml b/reference/enchant/functions/enchant-broker-describe.xml new file mode 100644 index 000000000..c679ec695 --- /dev/null +++ b/reference/enchant/functions/enchant-broker-describe.xml @@ -0,0 +1,151 @@ + + + + + enchant_broker_describe + Enumera os provedores de Enchant + + + &reftitle.description; + + arrayenchant_broker_describe + EnchantBrokerbroker + + + Enumera os provedores de Enchant e fornece algumas informações rudimentares + sobre eles. A mesma informação é fornecida por phpinfo(). + + + + + &reftitle.parameters; + + + &enchant.param.broker; + + + + + + &reftitle.returnvalues; + + Retorna um &array; de provedores Enchant com seus detalhes. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &enchant.changelog.broker-param; + + 8.0.0 + + Antes deseta versão, a função retornava &false; em caso de falha. + + + + + + + + + &reftitle.examples; + + + Lista os backends providos pelo broker informado + + +]]> + + &example.outputs.similar; + + Array + ( + [name] => aspell + [desc] => Aspell Provider + [file] => /usr/lib/enchant/libenchant_aspell.so + ) + + [1] => Array + ( + [name] => hspell + [desc] => Hspell Provider + [file] => /usr/lib/enchant/libenchant_hspell.so + ) + + [2] => Array + ( + [name] => ispell + [desc] => Ispell Provider + [file] => /usr/lib/enchant/libenchant_ispell.so + ) + + [3] => Array + ( + [name] => myspell + [desc] => Myspell Provider + [file] => /usr/lib/enchant/libenchant_myspell.so + ) + +) +]]> + + + + + + + + + + + + diff --git a/reference/enchant/functions/enchant-broker-dict-exists.xml b/reference/enchant/functions/enchant-broker-dict-exists.xml new file mode 100644 index 000000000..4b562a3e8 --- /dev/null +++ b/reference/enchant/functions/enchant-broker-dict-exists.xml @@ -0,0 +1,109 @@ + + + + + enchant_broker_dict_exists + Informa se um dicionário existe ou não, usando etiqueta não vazia + + + &reftitle.description; + + boolenchant_broker_dict_exists + EnchantBrokerbroker + stringtag + + + Informa se um dicionário existe ou não, usando etiqueta não vazia. + + + + &reftitle.parameters; + + + &enchant.param.broker; + + tag + + + Etiqueta não vazia no formato da localidade, por exemplo, us_US, pt_BR, etc. + + + + + + + + + &reftitle.returnvalues; + + Retorna &true; quando a etiqueta existe ou &false; quando não existe. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &enchant.changelog.broker-param; + + + + + + + &reftitle.examples; + + + Um exemplo de <function>enchant_broker_dict_exists</function> + + +]]> + + + + + + + + &reftitle.seealso; + + + enchant_broker_describe + + + + + diff --git a/reference/enchant/functions/enchant-broker-free-dict.xml b/reference/enchant/functions/enchant-broker-free-dict.xml new file mode 100644 index 000000000..f53a3ed07 --- /dev/null +++ b/reference/enchant/functions/enchant-broker-free-dict.xml @@ -0,0 +1,101 @@ + + + + + enchant_broker_free_dict + Libera um recurso de dicionário + + + + &warn.deprecated.function-8-0-0; + + + + &reftitle.description; + + #[\Deprecated] + boolenchant_broker_free_dict + EnchantDictionarydictionary + + + Libera um recurso de dicionário + A partir do PHP 8.0.0, é recomendado remover a definição deste objeto em vez de chamar esta função. + + + + &reftitle.parameters; + + + &enchant.param.dictionary; + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Esta função foi descontinuada em favor de remover a definição do objeto. + + + + 8.0.0 + + dictionary agora espera um objeto EnchantDictionary; + anteriormente, esperava um &resource;. + + + + + + + + + &reftitle.seealso; + + + enchant_broker_request_dict + enchant_broker_request_pwl_dict + + + + + + + diff --git a/reference/enchant/functions/enchant-broker-free.xml b/reference/enchant/functions/enchant-broker-free.xml new file mode 100644 index 000000000..7ed2e4351 --- /dev/null +++ b/reference/enchant/functions/enchant-broker-free.xml @@ -0,0 +1,93 @@ + + + + + enchant_broker_free + Libera o recurso do broker e seus dicionários + + + + &warn.deprecated.function-8-0-0; + + + + &reftitle.description; + + #[\Deprecated] + boolenchant_broker_free + EnchantBrokerbroker + + + Libera o recurso do broker e seus dicionários + A partir do PHP 8.0.0, é recomendado remover a definição deste objeto em vez de chamar esta função. + + + + + &reftitle.parameters; + + + &enchant.param.broker; + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Esta função foi descontinuada em favor de remover a definição do objeto. + + + &enchant.changelog.broker-param; + + + + + + + &reftitle.seealso; + + + enchant_broker_init + + + + + diff --git a/reference/enchant/functions/enchant-broker-get-dict-path.xml b/reference/enchant/functions/enchant-broker-get-dict-path.xml new file mode 100644 index 000000000..264c9d2e5 --- /dev/null +++ b/reference/enchant/functions/enchant-broker-get-dict-path.xml @@ -0,0 +1,113 @@ + + + + + enchant_broker_get_dict_path + Obtém o caminho do diretório para um determinado back-end + + + + &warn.deprecated.function-8-0-0; + + + + &reftitle.description; + + #[\Deprecated] + stringfalseenchant_broker_get_dict_path + EnchantBrokerbroker + inttype + + + Obtém o caminho do diretório para um determinado back-end. + + + + + &reftitle.parameters; + + + &enchant.param.broker; + + type + + + O tipo dos dicionários, ou seja ENCHANT_MYSPELL + ou ENCHANT_ISPELL. + + + + + + + + + &reftitle.returnvalues; + + Retorna o caminho do diretório do dicionário em caso de + sucesso&return.falseforfailure;. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Esta função foi descontinuada. + + + &enchant.changelog.broker-param; + + + + + + + &reftitle.notes; + + + Esta função está disponível somente se a extensão foi compilada com Enchant v1. + + + + + + &reftitle.seealso; + + + enchant_broker_set_dict_path + + + + + + diff --git a/reference/enchant/functions/enchant-broker-get-error.xml b/reference/enchant/functions/enchant-broker-get-error.xml new file mode 100644 index 000000000..147a0ed4e --- /dev/null +++ b/reference/enchant/functions/enchant-broker-get-error.xml @@ -0,0 +1,71 @@ + + + + + enchant_broker_get_error + Retorna o último erro do broker + + + &reftitle.description; + + stringfalseenchant_broker_get_error + EnchantBrokerbroker + + + Retorna o último erro ocorrido neste broker. + + + + + &reftitle.parameters; + + + &enchant.param.broker; + + + + + &reftitle.returnvalues; + + Retorne a string da mensagem se um erro for encontrado ou &false;. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &enchant.changelog.broker-param; + + + + + + + diff --git a/reference/enchant/functions/enchant-broker-init.xml b/reference/enchant/functions/enchant-broker-init.xml new file mode 100644 index 000000000..8b94f91e5 --- /dev/null +++ b/reference/enchant/functions/enchant-broker-init.xml @@ -0,0 +1,79 @@ + + + + + enchant_broker_init + Cria um novo objeto broker capaz de fazer solicitação + + + &reftitle.description; + + EnchantBrokerfalseenchant_broker_init + + + + + + &reftitle.parameters; + + + + + &reftitle.returnvalues; + + Retorna um recurso de broker em caso de sucesso ou &false;. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Em caso de sucesso, esta função agora retorna uma instância de EnchantBroker; + anteriormente, retornava um &resource;. + + + + + + + + + &reftitle.seealso; + + + enchant_broker_free + + + + + diff --git a/reference/enchant/functions/enchant-broker-list-dicts.xml b/reference/enchant/functions/enchant-broker-list-dicts.xml new file mode 100644 index 000000000..41a030d1d --- /dev/null +++ b/reference/enchant/functions/enchant-broker-list-dicts.xml @@ -0,0 +1,161 @@ + + + + + enchant_broker_list_dicts + Retorna uma lista de dicionários disponíveis + + + &reftitle.description; + + arrayenchant_broker_list_dicts + EnchantBrokerbroker + + + Retorna uma lista de dicionários disponíveis com seus detalhes. + + + + + &reftitle.parameters; + + + &enchant.param.broker; + + + + + + &reftitle.returnvalues; + + Retorna um &array; de dicionários disponíveis com seus detalhes. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &enchant.changelog.broker-param; + + 8.0.0 + + Antes desta versão, a função retornava &false; em caso de falha. + + + + + + + + + &reftitle.examples; + + + Lista todos os dicionários disponíveis para um broker + + +]]> + + &example.outputs.similar; + + Array + ( + [lang_tag] => de + [provider_name] => aspell + [provider_desc] => Aspell Provider + [provider_file] => /usr/lib/enchant/libenchant_aspell.so + ) + + [1] => Array + ( + [lang_tag] => de_DE + [provider_name] => aspell + [provider_desc] => Aspell Provider + [provider_file] => /usr/lib/enchant/libenchant_aspell.so + ) + + [3] => Array + ( + [lang_tag] => en + [provider_name] => aspell + [provider_desc] => Aspell Provider + [provider_file] => /usr/lib/enchant/libenchant_aspell.so + ) + + [4] => Array + ( + [lang_tag] => en_GB + [provider_name] => aspell + [provider_desc] => Aspell Provider + [provider_file] => /usr/lib/enchant/libenchant_aspell.so + ) + + [5] => Array + ( + [lang_tag] => en_US + [provider_name] => aspell + [provider_desc] => Aspell Provider + [provider_file] => /usr/lib/enchant/libenchant_aspell.so + ) + + [6] => Array + ( + [lang_tag] => hi_IN + [provider_name] => myspell + [provider_desc] => Myspell Provider + [provider_file] => /usr/lib/enchant/libenchant_myspell.so + ) + +) +]]> + + + + + + + &reftitle.seealso; + + + enchant_broker_describe + + + + + + diff --git a/reference/enchant/functions/enchant-broker-request-dict.xml b/reference/enchant/functions/enchant-broker-request-dict.xml new file mode 100644 index 000000000..5fe39ae0f --- /dev/null +++ b/reference/enchant/functions/enchant-broker-request-dict.xml @@ -0,0 +1,123 @@ + + + + + enchant_broker_request_dict + Cria um novo dicionário usando uma etiqueta + + + &reftitle.description; + + EnchantDictionaryfalseenchant_broker_request_dict + EnchantBrokerbroker + stringtag + + + Cria um novo dicionário usando a etiqueta de idioma não vazia para a qual se + deseja solicitar um dicionário ("en_US", "pt_BR", ...). + + + + &reftitle.parameters; + + + &enchant.param.broker; + + tag + + + Uma etiqueta descrevendo a localidade, por exemplo, pt_BR, en_US. + + + + + + + + + &reftitle.returnvalues; + + Retorna um recurso de dicionário em caso de sucesso&return.falseforfailure;. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &enchant.changelog.broker-param; + + 8.0.0 + + Em caso de sucesso, esta função agora retorna uma instância de EnchantDictionary; + anteriormente, um &resource; era retornado. + + + + + + + + + &reftitle.examples; + + + Um exemplo de <function>enchant_broker_request_dict</function> + + Verifica se um dicionário existe usando + enchant_broker_dict_exists e o solicita. + + + +]]> + + + + + + + + &reftitle.seealso; + + + enchant_dict_describe + enchant_broker_dict_exists + enchant_broker_free_dict + + + + + diff --git a/reference/enchant/functions/enchant-broker-request-pwl-dict.xml b/reference/enchant/functions/enchant-broker-request-pwl-dict.xml new file mode 100644 index 000000000..514f4a019 --- /dev/null +++ b/reference/enchant/functions/enchant-broker-request-pwl-dict.xml @@ -0,0 +1,99 @@ + + + + + enchant_broker_request_pwl_dict + Cria um dicionário usando um arquivo PWL + + + &reftitle.description; + + EnchantDictionaryfalseenchant_broker_request_pwl_dict + EnchantBrokerbroker + stringfilename + + + Cria um dicionário usando um arquivo PWL. Um arquivo PWL é um arquivo de palavras personalizadas, uma palavra por linha. + + + + + &reftitle.parameters; + + + &enchant.param.broker; + + filename + + + Caminho para o arquivo PWL. + Se não existir tal arquivo, um novo será criado, se possível. + + + + + + + + + &reftitle.returnvalues; + + Retorna um recurso de dicionário em caso de sucesso&return.falseforfailure;. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &enchant.changelog.broker-param; + + 8.0.0 + + Em caso de sucesso, esta função agora retorna uma instância de EnchantDictionary; + anteriormente, um &resource; era retornado. + + + + + + + + + &reftitle.seealso; + + + enchant_dict_describe + enchant_broker_dict_exists + enchant_broker_free_dict + + + + + diff --git a/reference/enchant/functions/enchant-broker-set-dict-path.xml b/reference/enchant/functions/enchant-broker-set-dict-path.xml new file mode 100644 index 000000000..77a8e8083 --- /dev/null +++ b/reference/enchant/functions/enchant-broker-set-dict-path.xml @@ -0,0 +1,121 @@ + + + + + enchant_broker_set_dict_path + Define o caminho do diretório para um determinado back-end + + + + &warn.deprecated.function-8-0-0; + + + + &reftitle.description; + + #[\Deprecated] + boolenchant_broker_set_dict_path + EnchantBrokerbroker + inttype + stringpath + + + Define o caminho do diretório para um determinado back-end. + + + + + &reftitle.parameters; + + + &enchant.param.broker; + + type + + + O tipo dos dicionários, ou seja, ENCHANT_MYSPELL + ou ENCHANT_ISPELL. + + + + + path + + + O caminho do diretório do dicionário. + + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Esta função foi descontinuada. + + + &enchant.changelog.broker-param; + + + + + + + &reftitle.notes; + + + Esta função está disponível somente se a extensão foi compilada com Enchant v1. + + + + + + &reftitle.seealso; + + + enchant_broker_get_dict_path + + + + + + diff --git a/reference/enchant/functions/enchant-broker-set-ordering.xml b/reference/enchant/functions/enchant-broker-set-ordering.xml new file mode 100644 index 000000000..e9cc60650 --- /dev/null +++ b/reference/enchant/functions/enchant-broker-set-ordering.xml @@ -0,0 +1,95 @@ + + + + + enchant_broker_set_ordering + Declara uma preferência de dicionários a serem usados ​​para o idioma + + + &reftitle.description; + + boolenchant_broker_set_ordering + EnchantBrokerbroker + stringtag + stringordering + + + Declara uma preferência de dicionários a serem usados ​​para o idioma + descrito/referido por 'tag'. A ordem é uma lista delimitada por vírgulas + de nomes de provedores. Como uma exceção especial, a etiqueta "*" pode ser + usada como uma etiqueta de idioma para declarar uma ordem padrão para qualquer + idioma que não declare explicitamente uma ordem. + + + + + &reftitle.parameters; + + + &enchant.param.broker; + + tag + + + Etiqueta de idioma. A etiqueta especial "*" pode ser usada como + uma etiqueta de idioma para declarar uma ordem padrão para qualquer + idioma que não declare explicitamente uma ordem. + + + + + ordering + + + Lista delimitada por vírgulas de nomes de provedores + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &enchant.changelog.broker-param; + + + + + + +