Hello Everyone
I wonder if you know any Syllables pronunciation extension or service provider , for example
Hello --> Hell-O
Carpenter --> Car-Pen-ter
which makes this service as well can let's say understand it via recording it with microphone
BR
so it's beyond app inventor computational power , mmm i was thinking of innovative app which is based on that idea but it seems it need plenty of minds , one mind & two hands can handle it alone
AI2 can probably do it, you would just have to write the algorithm, or create a database of words and their syllables.
1 Like
i do understand , anyway i have question off the topic regarding the database of words , let's say if i want to convert mysql db or i already have sql file for tables creation and i want to convert one column into a list or the whole db into tinydb , is there a tool created for this yet or i shall insert it manually one by one
This might give you some ideas....
"Fun" ? Could be more like torture to some
This guide hopefully demonstrates how you might integrate the use of an SQLite database on your device with Google Sheets, for backup, modification, online reflection.
Integrating SQLite with Google Sheets
it doesn't have to be about Google Sheets or SQLite, the processes are similar for most requirements....
1 Like
Don_Ammar:
I wonder if you know any Syllables pronunciation extension or service provider , for example
Hello --> Hell-O
Carpenter --> Car-Pen-ter
With javascript and AppInventor it can be done quite easily.
Just use a regez inside a script.
Syllables_Divide.aia (2.1 KB)
The power of Javascript
4 Likes
Hmmm, not working here in companion?
I tested in companion on Android 11 and Android 10 works fine
Image Is screenshot of companion
TIMAI2
May 25, 2022, 2:04pm
10
1 Like
TIMAI2
May 25, 2022, 3:31pm
11
@Kevinkun
Is it possible to apply the regex to your regex extension, so one could build a procedure using just blocks?
const syllableRegex = /[^aeiouy]*[aeiouy]+(?:[^aeiouy]*$|[^aeiouy](?=[^aeiouy]))?/gi;
You are right.
Android webview doesn't support not standard
ECMA script and replace all function Is a prototype function
TIMAI2
May 25, 2022, 6:46pm
13
.replaceAll
works in modern browsers and in Android 10,11,12 on real devices, it just may not be backwards compatible with older devices...
In Spanish, syllabic separation is a bit more complicated, since many words have vowels with accent marks.
I have used this JavaScript code to get the Spanish syllables:
https://github.com/nicofrem/silabajs/blob/master/silabajs.js
Syllables_Divide_v2.aia (8.6 KB)
BTW, what is the hyphenation of the word ridiculous, ri-di-cu-lous or ri-dic-u-lous?
https://www.silabas.net/index-en.php?lang=%2Findex-en.php&p=ridiculous&button=Hyphenation
TIMAI2
May 25, 2022, 8:35pm
15
Juan_Antonio:
ri-di-cu-lous
I would say this one (which Marco's algorithm returns)
Try rhythm
or righteous
sorry I don't understand, do you want a block with this pattern? the MATCH or REPLACE function not working ?
edit: it's working:
4 Likes
TIMAI2
May 26, 2022, 8:22am
18
I couldn't get it to work at first, but realised some editing of the regex was required:
[^aeiouy]*[aeiouy]+(?:[^aeiouy]*$|[^aeiouy](?=[^aeiouy]))?
worked for me :)
2 Likes
wo0ow thank you so much nice workaround , just doing visible false for webviewer and works perfect ,
TIMAI2
May 26, 2022, 10:09pm
20
Some more interesting results.....
ma-ry -had- a -lit-tle -lam-b it-s flee-ce -was- whi-te- as- snow
the -quic-k brow-n fox- jum-ped- o-ver- the -la-zy -dog