Use JS markdown formatter
(cherry picked from commit 3941016)
This commit is contained in:
parent
dafa7e764d
commit
f068ef88a4
12
README.md
12
README.md
|
@ -24,6 +24,7 @@ ICU Normalization
|
||||||
|
|
||||||
Normalizes characters as explained [here](http://userguide.icu-project.org/transforms/normalization). It registers itself by default under `icu_normalizer` or `icuNormalizer` using the default settings. Allows for the name parameter to be provided which can include the following values: `nfc`, `nfkc`, and `nfkc_cf`. Here is a sample settings:
|
Normalizes characters as explained [here](http://userguide.icu-project.org/transforms/normalization). It registers itself by default under `icu_normalizer` or `icuNormalizer` using the default settings. Allows for the name parameter to be provided which can include the following values: `nfc`, `nfkc`, and `nfkc_cf`. Here is a sample settings:
|
||||||
|
|
||||||
|
```js
|
||||||
{
|
{
|
||||||
"index" : {
|
"index" : {
|
||||||
"analysis" : {
|
"analysis" : {
|
||||||
|
@ -36,12 +37,14 @@ Normalizes characters as explained [here](http://userguide.icu-project.org/trans
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
ICU Folding
|
ICU Folding
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
Folding of unicode characters based on `UTR#30`. It registers itself under `icu_folding` and `icuFolding` names. Sample setting:
|
Folding of unicode characters based on `UTR#30`. It registers itself under `icu_folding` and `icuFolding` names. Sample setting:
|
||||||
|
|
||||||
|
```js
|
||||||
{
|
{
|
||||||
"index" : {
|
"index" : {
|
||||||
"analysis" : {
|
"analysis" : {
|
||||||
|
@ -54,6 +57,7 @@ Folding of unicode characters based on `UTR#30`. It registers itself under `icu_
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
ICU Filtering
|
ICU Filtering
|
||||||
-------------
|
-------------
|
||||||
|
@ -64,6 +68,7 @@ language is wanted. See syntax for the UnicodeSet [here](http://icu-project.org/
|
||||||
|
|
||||||
The Following example exempts Swedish characters from the folding. Note that the filtered characters are NOT lowercased which is why we add that filter below.
|
The Following example exempts Swedish characters from the folding. Note that the filtered characters are NOT lowercased which is why we add that filter below.
|
||||||
|
|
||||||
|
```js
|
||||||
{
|
{
|
||||||
"index" : {
|
"index" : {
|
||||||
"analysis" : {
|
"analysis" : {
|
||||||
|
@ -82,6 +87,7 @@ The Following example exempts Swedish characters from the folding. Note that the
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
ICU Collation
|
ICU Collation
|
||||||
-------------
|
-------------
|
||||||
|
@ -94,6 +100,7 @@ Uses collation token filter. Allows to either specify the rules for collation
|
||||||
|
|
||||||
Here is a sample settings:
|
Here is a sample settings:
|
||||||
|
|
||||||
|
```js
|
||||||
{
|
{
|
||||||
"index" : {
|
"index" : {
|
||||||
"analysis" : {
|
"analysis" : {
|
||||||
|
@ -106,9 +113,11 @@ Here is a sample settings:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
And here is a sample of custom collation:
|
And here is a sample of custom collation:
|
||||||
|
|
||||||
|
```js
|
||||||
{
|
{
|
||||||
"index" : {
|
"index" : {
|
||||||
"analysis" : {
|
"analysis" : {
|
||||||
|
@ -127,6 +136,7 @@ And here is a sample of custom collation:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
Optional options:
|
Optional options:
|
||||||
* `strength` - The strength property determines the minimum level of difference considered significant during comparison.
|
* `strength` - The strength property determines the minimum level of difference considered significant during comparison.
|
||||||
|
@ -159,6 +169,7 @@ ICU Tokenizer
|
||||||
|
|
||||||
Breaks text into words according to [UAX #29: Unicode Text Segmentation](http://www.unicode.org/reports/tr29/).
|
Breaks text into words according to [UAX #29: Unicode Text Segmentation](http://www.unicode.org/reports/tr29/).
|
||||||
|
|
||||||
|
```js
|
||||||
{
|
{
|
||||||
"index" : {
|
"index" : {
|
||||||
"analysis" : {
|
"analysis" : {
|
||||||
|
@ -170,6 +181,7 @@ Breaks text into words according to [UAX #29: Unicode Text Segmentation](http://
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
License
|
License
|
||||||
|
|
Loading…
Reference in New Issue