Apologies, I accidentally sent the below to Sami directly instead of the group
>
> Hi Sami,
>
> Just like you I have worked for a long time with this and a lot of the quirks have been persecuting me. Not professionally - but specifically with Bible software. Most of the CrossWire related adaptions to RtoL scripts have been either mine or were done with my contribution (CrossWire's java library JSWORD underlies STEP)
>
> The one take home message from that work is - we never ever want language specific hacks to fix text direction. Do it generically and do it right and you will be fine most of the time - and where you are not, you probably simply need to look harder.
>
> Here now - again, you misunderstand the role of the colon - it is not a LtoR character, but can be used in either direction and does not force anything going wrong. the problem here is that it is surrounded by numbers (which are in Arabic derrived scripts ordered LtoR despite the overall flow of the text being RtoL. Pack the same colon into a text of letters, not numbers the flow of text will be fine. Please see attached test HTML which shows this. The text is Farsi and says "I said: Hello" (man goftam:Salam" ) and then twice "123:456" respectively.
> What I have done in the second line is to pack the colon into a span and add a direction attribute - here hardcoded, but it can be easily done by variable depending on the language/script and is much more generic than replacing for one language only the colon with an extraneous character.
>
> Hope this helps.
>
> Peter
>
>
>
> Gesendet: Samstag, 15. Oktober 2022 um 21:21 Uhr
> Von: "Sami Abdel Malik" <
sami.ab...@gmail.com>
> An: "STEP Bible Forum" <
StepBib...@googlegroups.com>
> Betreff: Re: [stepbibleforum] Numerals display for the AraSVD translation - Part 2
> Would you please elaborate on your suggestion of switching the order? It may be a good solution.
>
> If standardizing on a Syriac colon for Arabic is not feasible, workaround is to add a space after the colon. The display will look as follows:
> تك ١: ٢٧ ASCII colon followed by a space
> تك ١܃٢٧ Syriac colon
>
>
> On Saturday, October 15, 2022 at 2:31:15 PM UTC-4 refdoc wrote:
> Ok, this fixes it by way of display, but the colon character is actually to the best of my knowledge not directional, so the flaw might be lying elsewhere. I would suggest looking further for what causes it for the display being wrong.
>
> One thought I have - seeing that numbers are LtoR , despite the text being RtoL that the colon between two numbers simply is read as bidirectional and as being embedded into two LtoR blocks means it becomes also LtoR and the orders the overall set of three blocks (chapter, colon, verse) in a LtoR fashion. So, instead of the replacement of this character with an extraneous character and as a special case solution I would propose keeping it as it is and then fix the ordering of the three blocks in a general way.
>
> Peter
>
> Sent from my phone. Please forgive misspellings and weird “corrections”
> On 15 Oct 2022, at 18:06, Sami Abdel Malik <
sami.ab...@gmail.com> wrote:
>
>
>
> The problem presented here is to do with the order of displaying the chapter and verse. The expectation is that the book abbreviation is followed by the chapter number followed by a colon followed by the verse number. However, the result of a search in the Arabic mode and using AraVSD displays the book abbreviation followed by the verse number followed by a colon followed by the chapter number, which is confusing.
> Browsers are designed to handle bilingual display of languages of opposite text directions. If the main language is right to left, once characters of the language of the opposite direction is encountered, they are inserted and pushed to the left.
>
> Unfortunately, the Arabic Unicode/UTF-8 does not have an Arabic colon. Therefore, the English colon (ASCII code 0x3A) is used. When the browser encounters the colon, it interprets it as a change in language and therefore, although the chapter:verse is coded in the correct order, they are displayed in a reversed order because of the incorrect language switch.
> To rectify this issue, we can use the Syriac colon (U-0706 - UTF-8 0xDC86) instead of the English colon.
>
> Here is an example:
> Gen 1:27
> Currently is displayed as:
> تك ١:٢٧
> After replacing the English with the Syriac colon, it displays correctly as:
> تك ١܃٢٧
> The colon is a bit smaller, but that is ok.
>
>
>
>
> --
> To restrict emails to only important news:
> . . go to
https://groups.google.com/forum/#!forum/stepbibleforum[https://groups.google.com/forum/#!forum/stepbibleforum]
> . . then click on the Personal Options (the head+cog icon),
> . . and select "...Email setting" > Don't send email updates"
> ---
> You received this message because you are subscribed to the Google Groups "STEP Bible Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
StepBibleForu...@googlegroups.com.
> To view this discussion on the web, visit
https://groups.google.com/d/msgid/StepBibleForum/a3297efa-d292-465e-a568-066e10dadd31n%40googlegroups.com[https://groups.google.com/d/msgid/StepBibleForum/a3297efa-d292-465e-a568-066e10dadd31n%40googlegroups.com?utm_medium=email&utm_source=footer].
>
> --
> To restrict emails to only important news:
> . . go to
https://groups.google.com/forum/#!forum/stepbibleforum[https://groups.google.com/forum/#!forum/stepbibleforum]
> . . then click on the Personal Options (the head+cog icon),
> . . and select "...Email setting" > Don't send email updates"
> ---
> You received this message because you are subscribed to the Google Groups "STEP Bible Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
StepBibleForu...@googlegroups.com[mailto:
StepBibleForu...@googlegroups.com].
> To view this discussion on the web, visit
https://groups.google.com/d/msgid/StepBibleForum/68f10594-d2d0-4071-8a67-90db5ccb9194n%40googlegroups.com[https://groups.google.com/d/msgid/StepBibleForum/68f10594-d2d0-4071-8a67-90db5ccb9194n%40googlegroups.com?utm_medium=email&utm_source=footer].