diff --git a/assets/QuranPane.qml b/assets/QuranPane.qml index 76546bf4..7ba56380 100644 --- a/assets/QuranPane.qml +++ b/assets/QuranPane.qml @@ -10,7 +10,11 @@ NavigationPane if (top == pickerPage) { if ( persist.tutorial( "tutorialAlphanumeric", qsTr("Did you know you can quickly jump to a specific verse by typing its chapter number followed by a ':' and followed by the verse number.\n\nFor example, to jump to Surah Al-Baqara Verse #2, type '2:2' into the search field!"), "asset:///images/ic_quran.png" ) ) {} - else if ( !persist.contains("alFurqanAdvertised") ) { + else if ( !persist.contains("shaddaTutorial") ) { + definition.source = "ShaddaTutorial.qml"; + var shadda = definition.createObject(); + shadda.open(); + } else if ( !persist.contains("alFurqanAdvertised") ) { definition.source = "AlFurqanAdvertisement.qml"; var advertisement = definition.createObject(); advertisement.open(); diff --git a/assets/ShaddaTutorial.qml b/assets/ShaddaTutorial.qml new file mode 100644 index 00000000..9cada709 --- /dev/null +++ b/assets/ShaddaTutorial.qml @@ -0,0 +1,93 @@ +import bb.cascades 1.0 + +Sheet +{ + id: root + + Page + { + titleBar: TitleBar + { + title: qsTr("Shadda Tutorial") + Retranslate.onLanguageChanged + + dismissAction: ActionItem + { + enabled: checkBox.checked + title: qsTr("Back") + Retranslate.onLanguageChanged + imageSource: "images/title/ic_prev.png" + + onTriggered: { + console.log("UserEvent: ShaddaBack"); + persist.saveValueFor("shaddaTutorial", 1); + root.close(); + } + } + } + + ScrollView + { + horizontalAlignment: HorizontalAlignment.Fill + verticalAlignment: VerticalAlignment.Fill + + Container + { + horizontalAlignment: HorizontalAlignment.Fill + verticalAlignment: VerticalAlignment.Fill + topPadding: 10; bottomPadding: 10; rightPadding: 10; leftPadding: 10 + + ImageView + { + imageSource: "images/toast/tutorial_shadda.png" + horizontalAlignment: HorizontalAlignment.Center + + animations: [ + RotateTransition { + id: tt + fromAngleZ: 360 + toAngleZ: 0 + duration: 1200 + easingCurve: StockCurve.ElasticInOut + } + ] + } + + Label + { + horizontalAlignment: HorizontalAlignment.Fill + verticalAlignment: VerticalAlignment.Fill + textStyle.textAlign: TextAlign.Center + content.flags: TextContentFlag.ActiveText | TextContentFlag.EmoticonsOff + multiline: true + text: qsTr("\n\nالسلام عليكم\n\nSome users have left reviews that there are mistakes in the text. Please note that the above two in Arabic are identical!\n\nIf the vowel is on top of the shadda (w) it takes the ruling of a fatha. If the vowel is underneath the shadda, it would sound exactly like if the vowel was underneath the letter itself. Both ways are a valid, and thus this is just a matter of choice.\n\nIf you are not used to reading this way, please familiarize yourself with this rule in Arabic, or use the Mushaf feature to read the Qu'ran instead which uses the other style. JazakAllahu khair.\n\nIf you would like to read up on the Shadda rules please see here:\nhttps://en.wikipedia.org/wiki/Shadda") + Retranslate.onLanguageChanged + opacity: 0 + bottomMargin: 40 + + animations: [ + FadeTransition { + id: fader + fromOpacity: 0 + toOpacity: 1 + easingCurve: StockCurve.CubicOut + duration: 1000 + } + ] + } + + CheckBox { + id: checkBox + topMargin: 40 + text: qsTr("I Understand") + Retranslate.onLanguageChanged + } + } + } + } + + onOpened: { + fader.play(); + tt.play(); + } + + onClosed: { + destroy(); + } +} \ No newline at end of file diff --git a/assets/images/toast/tutorial_shadda.png b/assets/images/toast/tutorial_shadda.png new file mode 100644 index 00000000..42c4500b Binary files /dev/null and b/assets/images/toast/tutorial_shadda.png differ diff --git a/translations/Quran10.ts b/translations/Quran10.ts index 6aa8b82e..6477ceb3 100644 --- a/translations/Quran10.ts +++ b/translations/Quran10.ts @@ -218,32 +218,12 @@ Finally, there is built-in support to do efficient and fast lookups for any sura QuranPane - - Tutorial - - - - - Would you like to see a video tutorial on how to use the app? - - - - - Yes - - - - - No - - - - + Mushaf - + M @@ -303,7 +283,7 @@ You can also select an ayat above the current one to start there and end at the - + %n %1 selected @@ -523,7 +503,7 @@ You can also select an ayat above the current one to start there and end at the - + There were no matches for your search. Please try another query. @@ -773,6 +753,36 @@ https://www.youtube.com/watch?v=BDY8i9VQeZM + + ShaddaTutorial + + + Shadda Tutorial + + + + + Back + + + + + Some users have left reviews that there are mistakes in the text. Please note that the above two in Arabic are identical! + +If the vowel is on top of the shadda (w) it takes the ruling of a fatha. If the vowel is underneath the shadda, it would sound exactly like if the vowel was underneath the letter itself. Both ways are a valid, and thus this is just a matter of choice. + +If you are not used to reading this way, please familiarize yourself with this rule in Arabic, or use the Mushaf feature to read the Qu'ran instead which uses the other style. JazakAllahu khair. + +If you would like to read up on the Shadda rules please see here: +https://en.wikipedia.org/wiki/Shadda + + + + + I Understand + + + SupplicationsPane