Extensão:Josa
Appearance
Outdated translations are marked like this.
Estado da versão: estável |
|
|---|---|
| Implementação | Função de análise sintática |
| Descrição | Automatiza a parte josa do processo de posposição do idioma coreano. |
| Autor(es) | Bae Junehyeon (*devuntdiscussão) |
| Última versão | 0.1 (2014-01-29) |
| MediaWiki | >= 1.46 |
| Modifica o banco de dados |
Não |
| Licence | Licença MIT |
| Download | |
| Exemplo | {{#은는:한글}} -> 한글은 |
| Para traduzir a extensão Josa, verifique sua disponibilidade no translatewiki.net | |
| Problemas | Tarefas em aberto · Relatar um bug |
A extensão Josa automatiza a parte josa do processo de posposição do idioma coreano.
Instalação
- Baixe e mova a pasta extraída
Josaao seu diretórioextensions/.
Desenvolvedores e colaboradores de código, por outro lado, deverão instalar a extensão a partir do Git, usando:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Josa
- Adicione o seguinte código ao final do seu arquivo LocalSettings.php:
wfLoadExtension( 'Josa' );
Concluído – Navegue à página Special:Version em sua wiki para verificar se a instalação da extensão foi bem sucedida.
Uso
{{#functionname: word }}{{#functionname: word | argument }}{{#functionname: word | argument 1 | argument 2 }}1.30+
Function names
The function will be one of below:
| English and other languages | coreano |
|---|---|
| EulRuel | 을를 |
| EunNeun | 은는 |
| EGa | 이가 |
| GwaWa | 과와 |
| AYa | 아야 |
| Euro | 으로 |
| E | 이 |
A Josa function call without any option will be rendered to the word and a josa. Some special characters are automatically ignored.
{{#EunNeun: 한글}}→ 한글은{{#EulRuel: 위키백과}}→ 위키백과를{{#EGa: '비타민'}}→ '비타민'이{{#과와: 미디어위키}}→ 미디어위키와{{#아야: 지원}}→ 지원아{{#이: 정민}}가→ 정민이가{{#으로: [[학업]]}}→ 학업으로{{#으로: 100%}}→ 100%으로{{#EulRuel: 글자 Ñ}}→ 글자 Ñ를 (bug)
It is OK that the case in given word is written in English alphabet or ends with a number.
{{#EulRuel: DNA}}→ DNA를{{#EunNeun: ATM}}→ ATM은{{#Euro: 119}}→ 119로
But other letters will add parenthesis:
{{#EulRuel: 직원(3명)}}→ 직원(3명)을(를)
Sometimes results in a bug:
{{#EulRuel: 國語}}→ 國語을
Arguments
MediaWiki 1.30+
Argument must be one of those:
| Argument | Alias | Description |
|---|---|---|
josaonly |
조사만 |
Just render a Josa, the given word will be removed. {{#EunNeun: 한글|josaonly}} → 은
|
override=foo |
덮어쓰기, 오버라이드 |
Replace the Josa with the given text. {{#EulRuel:시약 100g|override=을}} → 시약 100g을
|
The order of the arguments does not matter.
MediaWiki 1.29 or earlier
If second argument is 0, the base word will be removed.
{{#EulRuel: 한글|0}}→ 을
Any other argument makes base word remain. Technically, PHP determines whether the value is true or not. So 'false' is true. See more examples:
{{#EulRuel: 한글|false}}→ 한글을{{#EulRuel: 한글|true}}→ 한글을{{#EulRuel: 한글|1}}→ 한글을
| Esta extensão está sendo usada(o) por um ou mais projetos da Wikimedia. Isto significa que, provavelmente, a extensão é estável e funciona bem o suficiente para ser utilizada(o) em sites da web de alto tráfego. Procure pelo nome dessa extensão nos arquivos de configuração CommonSettings.php e InitialiseSettings.php da Wikimedia para verificar onde ela foi instalada. Uma lista completa das extensões instaladas numa wiki em particular podem ser visualizadas na página Special:Version da wiki. |
| Esta extensão está incluída nas seguintes fazendas/hospedagens (farms/hosts) e/ou pacotes wiki: |
