ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Bug in inframed
@ 2013-09-12 16:51 "H. Özoguz"
  0 siblings, 0 replies; 4+ messages in thread
From: "H. Özoguz" @ 2013-09-12 16:51 UTC (permalink / raw)
  To: ntg-context

Salam, @Idris, Aditya: Thank you very much, works perfect for me.
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bug in inframed
  2013-09-12 12:09 "H. Özoguz"
  2013-09-12 13:46 ` Aditya Mahajan
@ 2013-09-12 14:37 ` Idris Samawi Hamid ادريس   سماوي حامد
  1 sibling, 0 replies; 4+ messages in thread
From: Idris Samawi Hamid ادريس   سماوي حامد @ 2013-09-12 14:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

Salaam,

On Thu, 12 Sep 2013 06:09:46 -0600, H. Özoguz <h.oezoguz@mmnetz.de> wrote:

> I found the following bug in \inframed, getting problems with inframing  
> arabic words, try the following example
>
> \definefont[arab][name:arial*arabic at 18pt]
> \define[1]\awort{{\hbox{\setupalign[r2l]\arab#1}}}
> \starttext
> \awort{بِالصَّالِحِينَ}\blank
> \awort{\inframed{بِالصَّالِحِينَ}}
> \stoptext
>
> You see the difference: The inframed has right-shifted vocalizations. Is  
> that easy to fix?

Try this:

\definefont[arab][name:arial*arabic at 18pt]
\define[1]\awort{{\hbox{\setupalign[r2l]\arab#1}}}
\starttext
\awort{بِالصَّالِحِينَ}\blank
\awort{\inframed[align=r2l]{بِالصَّالِحِينَ}}
\stoptext

\inframed needs alignment!

Best wishes
Idris
-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bug in inframed
  2013-09-12 12:09 "H. Özoguz"
@ 2013-09-12 13:46 ` Aditya Mahajan
  2013-09-12 14:37 ` Idris Samawi Hamid ادريس   سماوي حامد
  1 sibling, 0 replies; 4+ messages in thread
From: Aditya Mahajan @ 2013-09-12 13:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 481 bytes --]

On Thu, 12 Sep 2013, "H. Özoguz" wrote:

> I found the following bug in \inframed, getting problems with inframing 
> arabic words, try the following example
>
> \definefont[arab][name:arial*arabic at 18pt]
> \define[1]\awort{{\hbox{\setupalign[r2l]\arab#1}}}

Untested, but why not

\defineframed[awort][align=r2l, foregroundstyle=\arab, frame=off]

and then you should be able to use

\awort[frame=on,location=low]{....}

which is similar to \inframed.

Aditya

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Bug in inframed
@ 2013-09-12 12:09 "H. Özoguz"
  2013-09-12 13:46 ` Aditya Mahajan
  2013-09-12 14:37 ` Idris Samawi Hamid ادريس   سماوي حامد
  0 siblings, 2 replies; 4+ messages in thread
From: "H. Özoguz" @ 2013-09-12 12:09 UTC (permalink / raw)
  To: ntg-context

I found the following bug in \inframed, getting problems with inframing 
arabic words, try the following example

\definefont[arab][name:arial*arabic at 18pt]
\define[1]\awort{{\hbox{\setupalign[r2l]\arab#1}}}
\starttext
\awort{بِالصَّالِحِينَ}\blank
\awort{\inframed{بِالصَّالِحِينَ}}
\stoptext

You see the difference: The inframed has right-shifted vocalizations. Is 
that easy to fix?

Huseyin
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-09-12 16:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-12 16:51 Bug in inframed "H. Özoguz"
  -- strict thread matches above, loose matches on Subject: below --
2013-09-12 12:09 "H. Özoguz"
2013-09-12 13:46 ` Aditya Mahajan
2013-09-12 14:37 ` Idris Samawi Hamid ادريس   سماوي حامد

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).