Skip to content

Commit

Permalink
chore(version): 0.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Loic TRUCHOT committed Sep 28, 2017
1 parent 4940ca4 commit eeab0c4
Show file tree
Hide file tree
Showing 12 changed files with 41 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const translater = new laonetics.LaoneticsTranslater();
let slicedSyllables = translater.getKaraoke('ກະຕ່າຍ', ['fr', 'en', 'ph']);
```

Current version: Beta v0.4.2 "Smart lao language karaoke".
Current version: Beta v0.4.3 "Smart lao language karaoke".

Demo running here: [laonetics.io](http://laonetics.io)

Expand Down
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<div class="container">
<h1>Laonetics: a smart Lao romanization and karaoke</h1>
<h3>
Playground - Beta version 0.4.2 -
Playground - Beta version 0.4.3 -
<a href="https://github.com/n-a-n/laonetics">@see git repo</a>
</h3>
<h3>by ໂລໂລ (Loïc TRUCHOT) - license CC-BY-NC-4.0</h3>
Expand Down
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "laonetics-demo",
"version": "0.4.2",
"version": "0.4.3",
"license": "CC-BY-NC-4.0",
"author": "Loïc TRUCHOT <[email protected]> (http://laonetics.io)",
"description": "",
Expand Down
2 changes: 1 addition & 1 deletion dist/laonetics.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/laonetics.min.js.map

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions dist/src/classes/LaoneticsSorter.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export declare class LaoneticsSorter {
private translater;
private leftVowels;
constructor();
sortArrayByConsonant(words: any[], filter?: string): any[];
sortWithOptionalFilter(items: any[], sorter: any, filter: string): any[];
extendComplexLeading(str: string): string;
shortenComplexLeading(str: string): string;
getDeepParam(obj: any, filter: string): any;
setDeepParam(obj: any, filter: string, value: any): any;
getSorterByAlphabet(filter?: string): (a: any, b: any) => number;
}
12 changes: 5 additions & 7 deletions dist/src/classes/LaoneticsTranslater.d.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
import { ISlicedSyllables, IPhonemeReg } from './../interfaces/interfaces';
import { IPhonemeReg, ISlicedSyllables } from './../interfaces/interfaces';
export declare class LaoneticsTranslater {
private sep;
private subSep;
private sentenceLao;
private roms;
private sentences;
private langs;
sortCollectionByConsonant(items: Array<any>, filter: string): any[];
sortArrayByConsonant(items: Array<string>): string[];
getSorterByAlphabet(alphabet: Array<string>, filter?: string): (a: any, b: any) => number;
getKaraoke(sentence: string, langs: Array<string>): ISlicedSyllables;
getMatches(reg: string): Array<string>;
constructor();
getKaraoke(sentence: string, langs: string[]): ISlicedSyllables;
getMatches(reg: string): string[];
replacePart(phoneme: IPhonemeReg): void;
toKaraoke(syllable: string, phoneme: IPhonemeReg): Array<string>;
toKaraoke(syllable: string, phoneme: IPhonemeReg): string[];
getPhonemesByConsonant(consonant: string): string[];
}
15 changes: 13 additions & 2 deletions dist/src/interfaces/interfaces.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,23 @@ export interface IConsonant {
trailing?: IPhonetics;
}
export interface ISlicedSyllables {
lao: Array<string>;
roms: Array<Array<string>>;
lao: string[];
roms: string[][];
}
export interface IPhonemeReg {
location: string;
reg: string;
charNbr: number;
noAccent: string;
}
export interface IRegInstances {
accents: RegExp;
specialຫ: RegExp;
ambiguousຫ: RegExp;
ambiguousຂວຄວ: RegExp;
disambiguatedຫວ: RegExp;
disambiguatedຂວຄວ: RegExp;
cAlone: RegExp;
cSpecial: RegExp;
removables: RegExp;
}
1 change: 1 addition & 0 deletions dist/src/laonetics.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './classes/LaoneticsSorter';
export * from './classes/LaoneticsTranslater';
export * from './values/consonants';
export * from './values/phonemes';
Expand Down
6 changes: 3 additions & 3 deletions dist/src/values/phonemes.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { IPhonemeReg } from './../interfaces/interfaces';
import { IPhonemeReg, IRegInstances } from './../interfaces/interfaces';
declare const graphemes: any;
declare const regs: any;
declare const regInstances: any;
declare const phonemes: Array<IPhonemeReg>;
declare const regInstances: IRegInstances;
declare const phonemes: IPhonemeReg[];
export { graphemes, phonemes, regs, regInstances };
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "laonetics",
"version": "0.4.2",
"version": "0.4.3",
"license": "CC-BY-NC-4.0",
"author": "Loïc TRUCHOT <[email protected]> (http://laonetics.io)",
"description": "Get Lao language IPA phonetics and romanization, french and english karaoke for any phoneme/syllable.",
Expand Down
2 changes: 1 addition & 1 deletion src/values/consonants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const consonants: any = {
: { leading: { en: 'y', fr: 'y', ph: 'j' } },
: { leading: { en: 'l', fr: 'l', ph: 'r' } },
: { leading: { en: 'l', fr: 'l', ph: 'l' } },
: { leading: { en: 'v', fr: 'v', ph: 'ʋ' }, trailing: { en: 'w', fr: 'w', ph: 'w' } },
: { leading: { en: 'v', fr: 'v', ph: 'ʋ' }, trailing: { en: 'w', fr: 'o', ph: 'w' } },
: { leading: { en: '', fr: '', ph: 'ʔ' } },
: { leading: { en: 'h', fr: 'h', ph: 'h' } },
: { leading: { en: 'h', fr: 'h', ph: 'h' } },
Expand Down

0 comments on commit eeab0c4

Please sign in to comment.