View Single Post
Old 06-03-2020, 08:59 AM   #7
d351r3d
Enthusiast
d351r3d began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Aug 2017
Device: none
Quote:
Originally Posted by Turtle91 View Post
I'm sorry - I'd need to see the CSS you used, and what you think is displaying incorrectly, to draw any kind of conclusion.

I saw Doitsu's response in your Sigil thread about RTL css. Is this something different?

I have to admit that it has been many moons since I studied Arabic in college, but it appeared the word order was not consistent in the image in his post. Is that the issue? I attributed the word order thing to my not being familiar with different language keyboard procedures - I completely defer to Doitsu's expertise there.
I'm not familiar with Arabic at all. I just copy pasted it. I don't even speak it. I just wanted to do it. I'm also doing the bible. When I copy pasta the Arabic inside of Google translate it understands it and gives back clear english. I would give it to someone that speaks real arabic and see what they have to say. I just want to see what's going on because I'm no wizard.

Again this epub has filler english content.

CSS
Code:
@font-face {
  font-family: "Roboto";
  font-weight: normal;
  font-style: normal;
  src: url(../Fonts/Roboto-Light.ttf);
}

@font-face {
  font-family: "AmiriQuran";
  font-weight: normal;
  font-style: normal;
  src: url(../Fonts/AmiriQuran.otf);
}


body {
    font-family: 'Roboto','AmiriQuran', sans-serif;
}

.rtltext {direction: rtl; line-height: 3}

h1 {
  text-align: center;
}

h4 {
  text-align: left;
}


p {
  text-align: justify;
}

.rtltext {direction: rtl; line-height: 3em}

HTML
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
  <title></title>
<link href="../Styles/Style0001.css" type="text/css" rel="stylesheet"/>
</head>

<body>
<h1>Blah blah blah blah blah blah<br/>
سورة البقرة
</h1>

<h4 id="sigil_toc_id_1">2:1</h4>
<p class="rtltext">
الم
</p>
<p>Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah.</p>

<h4 id="sigil_toc_id_2">2:2</h4>
<p class="rtltext">
ذَٰلِكَ الْكِتَابُ لَا رَيْبَ ۛ فِيهِ ۛ هُدًى لِّلْمُتَّقِينَ
</p>
<p>Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah.</p>

<h4 id="sigil_toc_id_3">2:3</h4>
<p class="rtltext">
الَّذِينَ يُؤْمِنُونَ بِالْغَيْبِ وَيُقِيمُونَ الصَّلَاةَ وَمِمَّا رَزَقْنَاهُمْ يُنفِقُونَ
</p>
<p>Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah.</p>

<h4 id="sigil_toc_id_4">2:4</h4>
<p class="rtltext">
وَالَّذِينَ يُؤْمِنُونَ بِمَا أُنزِلَ إِلَيْكَ وَمَا أُنزِلَ مِن قَبْلِكَ وَبِالْآخِرَةِ هُمْ يُوقِنُونَ
</p>
<p>Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah.</p>

<h4 id="sigil_toc_id_5">2:5</h4>
<p class="rtltext">
أُولَٰئِكَ عَلَىٰ هُدًى مِّن رَّبِّهِمْ ۖ وَأُولَٰئِكَ هُمُ الْمُفْلِحُونَ
</p>
<p>Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah.</p>

<h4 id="sigil_toc_id_6">2:6</h4>
<p class="rtltext">
إِنَّ الَّذِينَ كَفَرُوا سَوَاءٌ عَلَيْهِمْ أَأَنذَرْتَهُمْ أَمْ لَمْ تُنذِرْهُمْ لَا يُؤْمِنُونَ
</p>
<p>Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah.</p>

<h4 id="sigil_toc_id_7">2:7</h4>
<p class="rtltext">
خَتَمَ اللَّهُ عَلَىٰ قُلُوبِهِمْ وَعَلَىٰ سَمْعِهِمْ ۖ وَعَلَىٰ أَبْصَارِهِمْ غِشَاوَةٌ ۖ وَلَهُمْ عَذَابٌ عَظِيمٌ
</p>
<p>Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah.</p>

<h4 id="sigil_toc_id_8">2:8</h4>
<p class="rtltext">
وَمِنَ النَّاسِ مَن يَقُولُ آمَنَّا بِاللَّهِ وَبِالْيَوْمِ الْآخِرِ وَمَا هُم بِمُؤْمِنِينَ
</p>
<p>Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah.</p>
</body>
</html>
Attached Files
File Type: epub nothing 007.epub (173.8 KB, 300 views)

Last edited by d351r3d; 06-03-2020 at 09:03 AM.
d351r3d is offline   Reply With Quote