I am sorry, I do not have an answer for this. Everything appears to be working as it should be in terms of identifying the locations on the sound file for a particular line (based upon your timings), and that the positioning for the highlighting is also working, based upon the line breaks provided in your files. I am unable to see/hear whether it working OK or not, because I do not speak or read Arabic.
If I get some time, and have the motivation, I can probably do some debugging....
The blocks need rolling into the demo app, which will take a little time.
Observation: the csv file with 228 lines does not have a title line, unlike previous csv files. Should it have a title, or will all csv text files no longer have a title ?
This example project shows the method for displaying and highlighting the text by line number. It also puts the title in a separate label. The main text is centred on the page. Please advise on any changes you want made to this layout/setup. (There is no sound file, yet...)
The numbers should be after the sentence not before because it is in Arabic
Also the highlighted number should be with the same sentence. Because as I can see that the number belongs to the previous sentence. I have noticed that there is mix between each two sentences.
The last thing is if you can align all text to be perfect.
OK, as long as all your text csv files follow the same format as the one you have just supplied, this can be handled.
The text is currently aligned to centre. Do you want it aligned right ? Do you want each line on a separate line (this is not what you previously asked for....)
If it's possible to add two ( ) for numbers instead of commas (,) and still it needs to be justified if it's possible. Also the title should be with the texts in order to be hidden after scroll down.
Thank you very much Tim for the great job.
Text is as justified as it can be/ I can get it. Your text/font introduces hidden non printing characters that are not handled well by the justifier
The title is in a separate label. I suppose it would be possible to hide/unhide it as the reader progresses down the page. Otherwise we just put it back into the textbox....
Is it possible to add two buttons in order to read next and previous sentence? I really appreciate you for that addition and also adding a button to read a spicific single sentence repeatedly. If you can add them it will be fine otherwise it is ok.
I am only focusing on laying out and selecting the text here. I have yet to add this new work into the existing play and display aia project already created.
It makes more sense to keep the title separate, the audio goes with the main text display, as I understand, the title is not included in the audio. It could be made to disappear after a few seconds of display....
If you want those button / play elements in your app, you will need to add them later.
Please remember I am only working up solutions for specific issues, it is your app. You should be taking these examples and then write them (not just copy/paste) into your app, so that you understand the order of things and how everything works.