Skip to content

Commit d098c0a

Browse files
committed
update
1 parent de8f02c commit d098c0a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

docs/src/man/rhythmic_analysis.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,11 @@ From the output above, there are two syllables, the first being `أَ` and the s
9595
!!! warning "Caution"
9696
It is important to note that syllabification works only on a fully diacritize text as in the input poem here, and that is because each syllable contain a vowel. If not fully diacritize, then the syllabification will consider a syllable with only consonant and no vowel.
9797

98-
So that, if we want to extract the syllables of all the lines:
98+
So that, if we want to extract the syllables of the first three lines, then:
9999
```@example abc
100+
# Process only the first 3 lines for demonstration
100101
line_syllables = Array[]
101-
for line in texts
102+
for line in texts[1:3]
102103
words = string.(split(line, " "))
103104
104105
word_syllables = Segment[]
@@ -115,7 +116,10 @@ for line in texts
115116
end
116117
push!(line_syllables, word_syllables)
117118
end
118-
line_syllables
119+
```
120+
To extract the syllables of the words in first line of the poem, we run the following code:
121+
```@example abc
122+
line_syllables[1]
119123
```
120124
## References
121125
```@bibliography

nb/quran-rhythmic/code1.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ for line in texts
8282
end
8383
push!(line_syllables, word_syllables)
8484
end
85-
line_syllables
85+
line_syllables[1]

0 commit comments

Comments
 (0)