Answers.Body: <p>Due to the nature of the content, flowable text is out of the question and thus all formats which depend on HTML and CSS in some form or another shouldn't be used.</p>
  
  <p>The best choice for this use-case would be to use PDF, this would ensure the content is 'fixed'. The other limitation is that the content is not presentable using a single font, thus images have to be used; this is why fixed-layout ebook formats are not usable in this case as well.</p>
  
  <p>I don't know of other ways of obtaining such a PDF file besides what you have already mentioned, so I decided to have a go at it myself with LaTeX.</p>
  
  <p>Here's what I did:</p>
  
  <p>1) Generate high-resolution PNG files of each page. You can use Quran.com's image generator found <a href="https://github.com/quran/quran.com-images" rel="nofollow">here</a>. If you're on a Windows machine, you can use my fork found <a href="https://github.com/khalid-hussain/quran.com-images" rel="nofollow">here</a>.</p>
  
  <p>2) Prepare a LaTeX document with settings specific to the geometry of your Kindle device.</p>
  
  <p>3) Place each page image on a single PDF page and add page numbers and related footers/headers as you see fit.</p>
  
  <p>I've tried creating a sample PDF with the first four pages, you can check the output in the comments (I don't have 10 reputation points yet).</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-18T17:04:59.230Z
Answers.Text: You can check my sample PDF [here](https://github.com/khalid-hussain/KindleMushaf/blob/master/kindle_mushaf.pdf).
Answers.UserDisplayName: Khalid Hussain
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-18T20:43:42.167Z
Answers.Text: Give me a few days! This looks awesome.
Answers.UserDisplayName: imranal
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-18T17:04:34.730Z
Answers.LastActivityDate: 2016-06-18T17:04:34.730Z
Answers.UserDisplayName: Khalid Hussain
Body: <p>I have been trying to find Quran ebook for my Kindle, but haven't found anything notable yet. Are there any good ebooks out there ? My preference is for Arabic text with tashkil, i.e. diacritics. Here is an example of the Arabic text with diacritics :</p>
  
  <p><a href="https://i.sstatic.net/2QMK2.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/2QMK2.png" alt="Simple arabic text with diacritics"></a></p>
  
  <p>With for example a mobi file, you can change spacing, font style, and font size. I appreciate any recommendations.</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Here is an example of two screenshots superimposed from two ebooks I have found so far (apparently I need 10+ rep to post more than two links)</p>
  
  <p><a href="https://i.sstatic.net/DCdtl.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/DCdtl.png" alt="comparison shots"></a></p>
  
  <p>The problem for the upper image is that the margin to the left is completely unnecessary, while on the right hand side and bottom, the margin is too great. At the bottom it should end right where the Arabic numeral appears. The only margin setting which allows to keep at maximum is simply not good enough for this file.</p>
  
  <p>The best ebook format I have come upon is the one depicted at the bottom. Here, there is less text per page which makes the text more readable. And finally the margins are to the bare minimum (except at the bottom). I have linked to the website in the comments where I found these ebooks (as I need 10 reputation to be able to post three or more links). </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-17T20:16:28.273Z
Comments.Text: I'm afraid this is not a site for book recommendations; it's for technical difficulties and issues related to producing and consuming ebooks.
Comments.UserDisplayName: Tom
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-18T01:35:53.410Z
Comments.Text: I tried asking at Islam beta, but got a similar response there. The thing is that it is difficult finding an ebook for the Quran. Not sure where else I can try my luck. Of the ebooks I have managed to find, there is no possibility to fiddle with anything. But if what you state is true, then yes this question is off-topic.
Comments.UserDisplayName: imranal
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-18T02:45:55.123Z
Comments.Text: The link I mentioned in the post above : https://sites.google.com/site/kindlequran/download
Comments.UserDisplayName: imranal
Tags: <kindle>
Title: Quran ebook for kindle
UserDisplayName: imranal
ThreadText: # Quran ebook for kindle
  
  (Asked by: username_0 on 2016-06-16)
  
  I have been trying to find Quran ebook for my Kindle, but haven't found anything notable yet. Are there any good ebooks out there ? My preference is for Arabic text with tashkil, i.e. diacritics. Here is an example of the Arabic text with diacritics :
  
  [![Simple arabic text with diacritics](https://i.sstatic.net/2QMK2.png)](https://i.sstatic.net/2QMK2.png)
  
  With for example a mobi file, you can change spacing, font style, and font size. I appreciate any recommendations.
  
  **Edit**
  
  Here is an example of two screenshots superimposed from two ebooks I have found so far (apparently I need 10+ rep to post more than two links)
  
  [![comparison shots](https://i.sstatic.net/DCdtl.png)](https://i.sstatic.net/DCdtl.png)
  
  The problem for the upper image is that the margin to the left is completely unnecessary, while on the right hand side and bottom, the margin is too great. At the bottom it should end right where the Arabic numeral appears. The only margin setting which allows to keep at maximum is simply not good enough for this file.
  
  The best ebook format I have come upon is the one depicted at the bottom. Here, there is less text per page which makes the text more readable. And finally the margins are to the bare minimum (except at the bottom). I have linked to the website in the comments where I found these ebooks (as I need 10 reputation to be able to post three or more links).
  
  **Tags:** kindle
  
  > **Comments:**
  > **username_1**: I'm afraid this is not a site for book recommendations; it's for technical difficulties and issues related to producing and consuming ebooks.  
  > **username_0**: I tried asking at Islam beta, but got a similar response there. The thing is that it is difficult finding an ebook for the Quran. Not sure where else I can try my luck. Of the ebooks I have managed to find, there is no possibility to fiddle with anything. But if what you state is true, then yes this question is off-topic.  
  > **username_0**: The link I mentioned in the post above : https://sites.google.com/site/kindlequran/download  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2016-06-18. Score: 1
  
  Due to the nature of the content, flowable text is out of the question and thus all formats which depend on HTML and CSS in some form or another shouldn't be used.
  
  The best choice for this use-case would be to use PDF, this would ensure the content is 'fixed'. The other limitation is that the content is not presentable using a single font, thus images have to be used; this is why fixed-layout ebook formats are not usable in this case as well.
  
  I don't know of other ways of obtaining such a PDF file besides what you have already mentioned, so I decided to have a go at it myself with LaTeX.
  
  Here's what I did:
  
  1) Generate high-resolution PNG files of each page. You can use Quran.com's image generator found [here](https://github.com/quran/quran.com-images). If you're on a Windows machine, you can use my fork found [here](https://github.com/username_2-username_2/quran.com-images).
  
  2) Prepare a LaTeX document with settings specific to the geometry of your Kindle device.
  
  3) Place each page image on a single PDF page and add page numbers and related footers/headers as you see fit.
  
  I've tried creating a sample PDF with the first four pages, you can check the output in the comments (I don't have 10 reputation points yet).
  
  > **Comments:**
  > **username_2**: You can check my sample PDF [here](https://github.com/username_2-username_2/KindleMushaf/blob/master/kindle_mushaf.pdf).  
  > **username_0**: Give me a few days! This looks awesome.  
  
  ---
  
  