RE: Legislation in Arabic

23 views
Skip to first unread message

Ashok Hariharan

unread,
Mar 12, 2012, 10:50:14 AM3/12/12
to akomant...@googlegroups.com
When we have languages in which text is to be rendered left to right - is there anywhere in Akoma Ntoso metadata where we can specify how text is to be rendered ...presumably <presentation > ....?

Fabio Vitali

unread,
Mar 12, 2012, 12:11:41 PM3/12/12
to akomant...@googlegroups.com
> When we have languages in which text is to be rendered left to right - is there anywhere in Akoma Ntoso metadata where we can specify how text is to be rendered ...presumably <presentation > ....?

No. Nowhere and it is NOT needed. These things are correctly handled by the specific choice of the script subset of UTF-8. Each item (=letter) of UTF-8 is associated to a direction and a possible modification pattern (e.g., arabic letter change their shape according to the neighboring letter both left and right, and therefore have a family of shapes rather than just one).

So there is no need for it at the document level (what would happen if I used a left-to-right character with a right-to-left specification in the metadata?)

Ciao

Fabio



Il giorno 12/mar/2012, alle ore 15.50, Ashok Hariharan ha scritto:

>
> --
> You received this message because you are subscribed to the Google Groups "akomantoso-xml" group.
> To post to this group, send email to akomant...@googlegroups.com.
> To unsubscribe from this group, send email to akomantoso-xm...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/akomantoso-xml?hl=en.

--

Fabio Vitali Tiger got to hunt, bird got to fly,
Dept. of Computer Science Man got to sit and wonder "Why, why, why?'
Univ. of Bologna ITALY Tiger got to sleep, bird got to land,
phone: +39 051 2094872 Man got to tell himself he understand.
e-mail: fa...@cs.unibo.it Kurt Vonnegut (1922-2007), "Cat's cradle"
http://vitali.web.cs.unibo.it/


Grantcv1

unread,
Mar 30, 2012, 2:45:41 AM3/30/12
to akomant...@googlegroups.com
I've been building Akoma Ntoso legislation in arabic without any issues. It's all rather fun seeing the different character sets take care of themselves withing a multilingual document. For the user interface, I auto-set the text direction based when the character-set I detect. If it is arabic, hebrew, or farsi, I set the div to be rtl, otherwise I go ltr.
 
-Grant

On Monday, March 12, 2012 9:11:41 AM UTC-7, Fabio Vitali wrote:
> When we have languages in which text is to be rendered left to right - is there anywhere in Akoma Ntoso metadata where we can specify how text is to be rendered ...presumably <presentation > ....?

No. Nowhere and it is NOT needed. These things are correctly handled by the specific choice of the script subset of UTF-8. Each item (=letter) of UTF-8 is associated to a direction and a possible modification pattern (e.g., arabic letter change their shape according to the neighboring letter both left and right, and therefore have a family of shapes rather than just one).

So there is no need for it at the document level (what would happen if I used a left-to-right character with a right-to-left specification in the metadata?)

Ciao

Fabio


 
Il giorno 12/mar/2012, alle ore 15.50, Ashok Hariharan ha scritto:

>
> --
> You received this message because you are subscribed to the Google Groups "akomantoso-xml" group.

> To post to this group, send email to akomantoso-xml@googlegroups.com.
> To unsubscribe from this group, send email to akomantoso-xml+unsubscribe@googlegroups.com.

Fabio Vitali

unread,
Mar 30, 2012, 12:48:36 PM3/30/12
to akomant...@googlegroups.com
Dear Grant:

it's good to know that you managed to mark Arabic legislationwith AN. We'll have further feedback on this once Monica, Gioele and Ashok will be back from their trip to Palestina, where more Arabic texts will be examined.

Ciao

Fabio

--

Il giorno 30/mar/2012, alle ore 08.45, Grantcv1 ha scritto:

> I've been building Akoma Ntoso legislation in arabic without any issues. It's all rather fun seeing the different character sets take care of themselves withing a multilingual document. For the user interface, I auto-set the text direction based when the character-set I detect. If it is arabic, hebrew, or farsi, I set the div to be rtl, otherwise I go ltr.
>
> -Grant
>
> On Monday, March 12, 2012 9:11:41 AM UTC-7, Fabio Vitali wrote:
> > When we have languages in which text is to be rendered left to right - is there anywhere in Akoma Ntoso metadata where we can specify how text is to be rendered ...presumably <presentation > ....?
> No. Nowhere and it is NOT needed. These things are correctly handled by the specific choice of the script subset of UTF-8. Each item (=letter) of UTF-8 is associated to a direction and a possible modification pattern (e.g., arabic letter change their shape according to the neighboring letter both left and right, and therefore have a family of shapes rather than just one).
>
> So there is no need for it at the document level (what would happen if I used a left-to-right character with a right-to-left specification in the metadata?)
>
> Ciao
>
> Fabio
>
>
>
> Il giorno 12/mar/2012, alle ore 15.50, Ashok Hariharan ha scritto:
>
> >
> > --
> > You received this message because you are subscribed to the Google Groups "akomantoso-xml" group.

> > To post to this group, send email to akomant...@googlegroups.com.
> > To unsubscribe from this group, send email to akomantoso-xm...@googlegroups.com.


> > For more options, visit this group at http://groups.google.com/group/akomantoso-xml?hl=en.
>
>
> --
>
> Fabio Vitali Tiger got to hunt, bird got to fly,
> Dept. of Computer Science Man got to sit and wonder "Why, why, why?'
> Univ. of Bologna ITALY Tiger got to sleep, bird got to land,
> phone: +39 051 2094872 Man got to tell himself he understand.
> e-mail: fa...@cs.unibo.it Kurt Vonnegut (1922-2007), "Cat's cradle"
> http://vitali.web.cs.unibo.it/
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

> --
> You received this message because you are subscribed to the Google Groups "akomantoso-xml" group.

> To view this discussion on the web visit https://groups.google.com/d/msg/akomantoso-xml/-/1nMAk4rTT5wJ.
> To post to this group, send email to akomant...@googlegroups.com.
> To unsubscribe from this group, send email to akomantoso-xm...@googlegroups.com.

gr...@laws.africa

unread,
Apr 29, 2021, 10:16:07 AM4/29/21
to akomantoso-xml
Hello all,

I'm resurrecting this old thread because we're modelling a document with mixed LTR and RTL text. The document is predominantly LTR but sometimes contains RTL text.

In HTML, we can use the dir attribute to specify the text direction, however AKN doesn't support this. What are the recommendations for overriding the text direction in a mixed document? My current approach is to use a class such as "rtl" on the relevant p tag.

Here is an example:

mixed-text.png

HTML equivalent:

<p>Al Zuhaily in his Islamic jurisprudence and its evidences states at 10/7353:</p>
<p dir="rtl">(ويجبر الرجل على نفقة والديه وولده الذكور والإناث إذا كانوا فقراء وكان له ما ينفق عليهم)</p>


Thanks,
Greg

Reply all
Reply to author
Forward
0 new messages