We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem: extract several verses from a given chapter, with the root of each word in data tag
data
Solution: https://github.com/Okuyun/Kitap/blob/main/ders/huruf.html
// c: chapter [1-114], n: number of verses chapToHTML = (c,n) => { let i = indexOf(c,1) let s = Q.qur.data.slice(i,i+n).map(verseToHTML).join('*\n') console.log(header(c)+s+'<br>\n') } header = c => ` <tr> <td> <a class=sure href="/Kuran/reader.html#v=${c}:1" target="iqra">${c} ${suraNames.tr[c]}</a> <span data="harf"></span> <td class=ayet> <a class=sure href="/Kuran/reader.html#v=${c}:1" target="iqra">${suraNames.ar[c]}</a> <span data="harf"></span> ` verseToHTML = s => s.split(' ').slice(1).map(wordToHTML).join(' ') wordToHTML = x => { let r = Q.roots.wordToRoot(toBuckwalter(x)); return r? '<span data='+r+'>'+x+'</span>': x }
The text was updated successfully, but these errors were encountered:
This is not a real issue -- just a litlle note to myself
I need this snippet often, that's why I placed in an issue
Sorry, something went wrong.
No branches or pull requests
Problem: extract several verses from a given chapter, with the root of each word in
data
tagSolution: https://github.com/Okuyun/Kitap/blob/main/ders/huruf.html
The text was updated successfully, but these errors were encountered: