Re: [NTG-context] [OT] − RobotoSlab Italics… or not

2013-11-24 Thread Hans Hagen

On 11/23/2013 8:25 PM, Renaud Aubin wrote:

Le 23/11/2013 19:08, Wolfgang Schuster a écrit :

Am 23.11.2013 um 18:51 schrieb Renaud Aubin r...@renaud.io:


Hi folks,

I'm working on a Roboto typescript and starting from the work done by
Zen Lima back in last July, I would like to push things further.
Since I work on some Android projects and use Google Keep mostly on a
daily basis, I was surprised to not find italics for the RobotoSlab
(either on the web or by extracting the assets of the Keep package).

Why am I surprised: Keep do have serif title placeholders for the new
note EditText and I see it everyday!

$ mtxrun --script font --list --all --pattern=robotoslab

robotoslab  robotoslabbold  RobotoSlab-Bold.ttf
robotoslabbold  robotoslabbold  RobotoSlab-Bold.ttf
robotoslablight robotoslablight RobotoSlab-Light.ttf
robotoslabregular   robotoslabregular   RobotoSlab-Regular.ttf
robotoslabthin  robotoslabthin  RobotoSlab-Thin.ttf

OK, RobotoSlab fonts are accessible and I have a working typescript to
use RobotoSlab with ConTeXt MkIV (I'll made the git repo public soon).
At first, my thoughts are: nevermind the Slab italics but now, I'm
curious since Inkscape, LibreOffice, … propose the italic and bolditalic
features of the RobotoSlab (check out the attached font-manager screenshot).
I've worked with different kind of fonts'family (more or less complete)
and used and modified many typescripts in my ConTeXter's life but there
I should be missing something obvious. Where are the RobotoSlab
Italics??? My experience is that italic and bolditalic should correspond
to files… First guess: no files so the RobotoSlab Italic and BoldItalic
features are just faked ones composed by my GNU/Linux Debian system. No,
I must be wrong here too…

Any thoughts on The Quest of the Hidden Italics of the RobotoSlab fonts!“?


The font has no italic but inkscape slants the regular and bold styles to get 
them,
you can do the same in context with the slant key from \definefontfeature.

\definefontfeature[slanted][default][mode=base,slant=.25]

\definefontfamily[roboto][rm][Roboto 
Slab][it=features:slanted,bi=features:slanted]

\setupbodyfont[roboto]

\starttext
Regular {\it Italic} {\bf Bold} {\bi BoldItalic}
\stoptext

Wolfgang
___
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
___


Thank you Wolfgang,

I've made a repo: https://github.com/nibua-r/roboto-context
Reviews are always welcome!

Any chance that this typescript could find a way to the main ConTeXt distro?


normally typescripts like that end up in tex/context/third (maybe at 
some point we can collect extra typescripts in one package)


a few suggestions:

\definefontfeature[slanted][default][mode=base,slant=.25]

best define roboto-slanted as you don't want to overload other 
definitions of slanted and this is rather font specific .. and are you 
sure you want base mode here?


\definefontfeature[roboto-slanted][slant=.25]

\definefontsynonym [\s!SerifItalic] [\s!Serif] 
[\s!features={default,roboto-slanted}]


should also work and delays default

also, name type typescript type-imp-roboto.tex (or .mkiv)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___

Re: [NTG-context] Simplefonts (new) fallback issue with Linux Libertine O

2013-11-24 Thread Wolfgang Schuster

Am 22.11.2013 um 18:08 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com:

 
 Am 22.11.2013 um 05:00 schrieb Rik amphib...@gmail.com:
 
 Fallbacks (at least the range I tested) do not work with the roman face of 
 Linux Libertine O in the new (core) simplefonts implementation. I first 
 thought that this might be a Libertine issue, but further testing makes me 
 suspect it may be a simplefonts issue. Or perhaps I have used the wrong 
 syntax with the new implementation.
 
 I can reproduce it and it does also happen with a typescript only solution 
 (depends on how you define the fallback font) but it seems to happen only 
 with the Linux Libertine font.


Below is a minimal example which demonstrates the problem. The version where 
with \definefontsynonym is also
used by simplefonts and this is where the fallback font isn’t used for 
Libertine Regular, you can also see

fontsdefining  font with asked name 'GentiumPlus' is not 
found using lookup 'file'
fontsdefining  unknown font 'GentiumPlus', loading aborted

as message on the console. In the second case where I set the fallback font 
with \definefontfallback you get
the fallback font for Libertine Regular.


% one: load the fallback font from a synonym

\definefontsynonym [GentiumPlus] [file:gentiumplusr.ttf] [features=default]

\definefontfallback [libertine-fallback-1] [GentiumPlus] [0x02053]

\definefontsynonym [LibertineOneRegular] [file:linlibertiner.otf]  
[features=default,fallbacks=libertine-fallback-1]
\definefontsynonym [LibertineOneItalic]  [file:linlibertineri.otf] 
[features=default,fallbacks=libertine-fallback-1]

% two: direct loading of the fallback font

\definefontfallback [libertine-fallback-2] [file:gentiumplusr.ttf*default] 
[0x02053]

\definefontsynonym [LibertineTwoRegular] [file:linlibertiner.otf]  
[features=default,fallbacks=libertine-fallback-2]
\definefontsynonym [LibertineTwoItalic]  [file:linlibertineri.otf] 
[features=default,fallbacks=libertine-fallback-2]

\starttext
\starttabulate
\NC One Regular \EQ \definedfont[LibertineOneRegular] ⁓⁗ \NC\NR
\NC One Italic  \EQ \definedfont[LibertineOneItalic]  ⁓⁗ \NC\NR
\NC Two Regular \EQ \definedfont[LibertineTwoRegular] ⁓⁗ \NC\NR
\NC Two Italic  \EQ \definedfont[LibertineTwoItalic]  ⁓⁗ \NC\NR
\stoptabulate

\stoptext


Wolfgang
___
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
___

[NTG-context] Converting normal font into bold

2013-11-24 Thread H. Özoguz

Hello together,

I have an arabic font, which is quite perfect, but only a little bit too 
thin, so that it seems to vanish into the white of the paper. 
Unfortunately this font does not come with an bold-variant.


Now I tried to manipulate it with CorelDraw, just converted into curves 
and added an contour (verys small 0.13pt, while font was 11pt) - and it 
worked! This aritificial bold-font works very well, better then I 
hoped, no problems - although it is no hand-tundes bold, but only 
countour-adding.


Now the question: I obviously cant set the entire book (more than 600 
pages) with Corel-Draw, and want too use ConText, of course. So is there 
a way to produce this boldness out of this too thin font within ConText, 
too?


Thank your very much.
Best regards,
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
___


Re: [NTG-context] Converting normal font into bold

2013-11-24 Thread Rajeesh K Nambiar
On Sun, Nov 24, 2013 at 2:01 PM, H. Özoguz h.oezo...@mmnetz.de wrote:

 Now the question: I obviously cant set the entire book (more than 600 pages)
 with Corel-Draw, and want too use ConText, of course. So is there a way to
 produce this boldness out of this too thin font within ConText, too?


May be ConTeXt experts would have better suggestions, till then you
may want to look at the fake bold option in simplefonts -
http://wiki.contextgarden.net/Simplefonts#Faking_italics_and_bold_fonts


-- 
Cheers,
Rajeesh
http://rajeeshknambiar.wordpress.com
___
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
___

Re: [NTG-context] Converting normal font into bold

2013-11-24 Thread H. Özoguz

May be ConTeXt experts would have better suggestions, till then you
may want to look at the fake bold option in simplefonts -
http://wiki.contextgarden.net/Simplefonts#Faking_italics_and_bold_fonts


Thanks for your advice.
Unfortunately I did not manish to work with this font by simplefonts. I use the 
following simple setup:


\definefont[arabic][file:bliblablup_0.ttf*arabic at 15pt]
\starttext
\arabic\setupalign[r2l] ٱللَّهُ لَآ إِلَـٰهَ إِلَّا هُوَ ٱلْحَىُّ ٱلْقَيُّومُ
\stoptext

How can I get these fake bolds with this setup? Or is it absolutely necessary 
to use Simplefont for these fake-bolds?

Thanks.
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
___

Re: [NTG-context] [OT] − RobotoSlab Italics… or not

2013-11-24 Thread Renaud Aubin
Hi Hans,

Thank you for the review and your suggestions!

Le 24/11/2013 12:53, Hans Hagen a écrit :

 normally typescripts like that end up in tex/context/third (maybe at
 some point we can collect extra typescripts in one package)

https://github.com/nibua-r/roboto-context/issues/1

Extra typescripts collection is a good idea. I have at least some
typescripts here for Minion, Meta, frutiger, …
Any other contributed typescripts are welcome!


 a few suggestions:

 \definefontfeature[slanted][default][mode=base,slant=.25]

 best define roboto-slanted as you don't want to overload other
 definitions of slanted and this is rather font specific .. and are you
 sure you want base mode here?

https://github.com/nibua-r/roboto-context/issues/2


 \definefontfeature[roboto-slanted][slant=.25]

 \definefontsynonym [\s!SerifItalic] [\s!Serif]
 [\s!features={default,roboto-slanted}]

 should also work and delays default

RobotoSlab doesn't get slanted without mode=base and/or
features={default,roboto-slanted}. I can't explain why but maybe
Wolfgang could explain since he is the one who provided the solution in
the first place.

https://github.com/nibua-r/roboto-context/issues/3
https://github.com/nibua-r/roboto-context/issues/4


 also, name type typescript type-imp-roboto.tex (or .mkiv)

https://github.com/nibua-r/roboto-context/issues/1


 Hans


Best Regards,

Renaud

___
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
___

Re: [NTG-context] [OT] − RobotoSlab Italics… or not

2013-11-24 Thread Wolfgang Schuster

Am 24.11.2013 um 12:53 schrieb Hans Hagen pra...@wxs.nl:

 Any chance that this typescript could find a way to the main ConTeXt distro?
 
 normally typescripts like that end up in tex/context/third (maybe at some 
 point we can collect extra typescripts in one package)

I can add it to my typescript collection.

 a few suggestions:
 
 \definefontfeature[slanted][default][mode=base,slant=.25]
 
 best define roboto-slanted as you don't want to overload other definitions 
 of slanted and this is rather font specific .. and are you sure you want base 
 mode here?

Yes it is necessary because it doesn’t work when you use node mode.

 \definefontfeature[roboto-slanted][slant=.25]
 
 \definefontsynonym [\s!SerifItalic] [\s!Serif] 
 [\s!features={default,roboto-slanted}]
 
 should also work and delays default

This older doesn’t work, only with “robot-slanted,default” the font gets 
slanted.

 also, name type typescript type-imp-roboto.tex (or .mkiv)

Why *imp* for third party typescripts?

Wolfgang___
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
___

Re: [NTG-context] Converting normal font into bold

2013-11-24 Thread Wolfgang Schuster

Am 24.11.2013 um 15:32 schrieb H. Özoguz h.oezo...@mmnetz.de:

 May be ConTeXt experts would have better suggestions, till then you
 may want to look at the fake bold option in simplefonts -
 http://wiki.contextgarden.net/Simplefonts#Faking_italics_and_bold_fonts
 
 Thanks for your advice.
 Unfortunately I did not manish to work with this font by simplefonts. I use 
 the following simple setup:
 
 
 \definefont[arabic][file:bliblablup_0.ttf*arabic at 15pt]

\definefontfeature[fakebold][extend=1.1]

\definefont[arabic][file:fontname*arabic,fakebold at 15pt]

 \starttext
 \arabic\setupalign[r2l] ٱللَّهُ لَآ إِلَـٰهَ إِلَّا هُوَ ٱلْحَىُّ ٱلْقَيُّومُ
 \stoptext
 
 How can I get these fake bolds with this setup? Or is it absolutely 
 necessary to use Simplefont for these fake-bolds?

The feature is unrelated to simplefonts.

Wolfgang
___
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
___

[NTG-context] No full Unicode-Support in ConTeXt?

2013-11-24 Thread H. Özoguz

Hello there,

I wonder why working with fonts is soo hard in ConText (much easier in 
Word or CorelDraw).


See this following font (free, opensource): 
http://fonts.qurancomplex.gov.sa/wp-content/uploads/2012/06/UthmanTN1-Ver10.zip


And try now this Context-Code:

\definefont[arabic][file:UthmanTN1Ver10.ttf*arabic at 15pt]


\starttext

\arabic\setupalign[r2l]


مِن قَبْلُ هُدًى لِّلنَّاسِ وَأَنزَلَ ٱلْفُرْقَانَۗ إِنَّ ٱلَّذِينَ كَفَرُوا بِـَٔايَـٰتِ ٱللَّهِ لَهُمْ عَذَابٌ شَدِيدٌۗ 
وَٱللَّهُ عَزِيزٌ ذُو ٱنتِقَامٍ


\stoptext


You see, this little signs above the letters are vanished in the PDF. 
But they are set in CoreDraw (for example). Why, what is the problem?


Similar problems you can see with another font, no problem in CorelDraw, 
but problems in ConText.

Hope for help.

Thank you very much.

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
___

[NTG-context] [***SPAM***] Re: No full Unicode-Support in ConTeXt?

2013-11-24 Thread H. Özoguz
To be more concrete, I added an jpeg from CorelDraw, which shows, what I 
mean with these little signs above the letters. They are vanished in 
ConText, but are correctly set in CorelDraw with the very same font.


Huseyin
attachment: furqan.jpg___
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
___

Re: [NTG-context] No full Unicode-Support in ConTeXt?

2013-11-24 Thread Hans Hagen

On 11/24/2013 4:41 PM, H. Özoguz wrote:

Hello there,

I wonder why working with fonts is soo hard in ConText (much easier in
Word or CorelDraw).

See this following font (free, opensource):
http://fonts.qurancomplex.gov.sa/wp-content/uploads/2012/06/UthmanTN1-Ver10.zip


And try now this Context-Code:

\definefont[arabic][file:UthmanTN1Ver10.ttf*arabic at 15pt]


\starttext

\arabic\setupalign[r2l]


شَدِيدٌۗ
وَٱللَّهُ عَزِيزٌ ذُو ٱنتِقَامٍ

\stoptext


You see, this little signs above the letters are vanished in the PDF.
But they are set in CoreDraw (for example). Why, what is the problem?

Similar problems you can see with another font, no problem in CorelDraw,
but problems in ConText.
Hope for help.


not at all, as you show way more input here as in the jpeg ... so first 
make a minimal example


also another font is not revealing either

anyway,

\definefont[arabic][file:arabtype.ttf*arabic at 15pt]

\starttext
\arabic\setupalign[r2l] شَدِيدٌۗ
\stoptext

shows me a little sign above the word

Hans




-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___

Re: [NTG-context] Converting normal font into bold

2013-11-24 Thread H. Özoguz



  May be ConTeXt experts would have better suggestions, till then you
  may want to look at the fake bold option in simplefonts -
  
http://wiki.contextgarden.net/Simplefonts#Faking_italics_and_bold_fonts

 
  Thanks for your advice.
  Unfortunately I did not manish to work with this font by 
simplefonts. I use the following simple setup:

 
 
  \definefont[arabic][file:bliblablup_0.ttf*arabic at 15pt]

 \definefontfeature[fakebold][extend=1.1]

 \definefont[arabic][file:fontname*arabic,fakebold at 15pt]

  \starttext
  \arabic\setupalign[r2l] ٱللَّهُ لَآ إِلَـٰهَ إِلَّا هُوَ ٱلْحَىُّ 
ٱلْقَيُّومُ
  \stoptext
 
  How can I get these fake bolds with this setup? Or is it 
absolutely necessary to use Simplefont for these fake-bolds?


 The feature is unrelated to simplefonts.

 Wolfgang

Thanks Wolfgang, but that does not seem to work with this font. See 
attachment, the font is wider, but not bold.



\definefont[arabic][file:bliblablup_0.ttf*arabic at 15pt]
\definefont[arabics][file:bliblablup_0.ttf*arabic at 15pt]
\definefontfeature[fakebold][extend=1.2]
\definefont[arabic][file:bliblablup_0.ttf*arabic,fakebold at 15pt]

\starttext
\arabic\setupalign[r2l]
ٱللَّهُ لَآ إِلَـٰهَ إِلَّا هُوَ ٱلْحَىُّ ٱلْقَيُّومُ
\blank\arabics\setupalign[r2l]
ٱللَّهُ لَآ إِلَـٰهَ إِلَّا هُوَ ٱلْحَىُّ ٱلْقَيُّومُ
\stoptext


Huseyin


fake-bold-arabic_context.pdf
Description: Adobe PDF document
___
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
___

Re: [NTG-context] Converting normal font into bold

2013-11-24 Thread Wolfgang Schuster

Am 24.11.2013 um 18:12 schrieb H. Özoguz h.oezo...@mmnetz.de:

 
 
   May be ConTeXt experts would have better suggestions, till then you
   may want to look at the fake bold option in simplefonts -
   http://wiki.contextgarden.net/Simplefonts#Faking_italics_and_bold_fonts
  
   Thanks for your advice.
   Unfortunately I did not manish to work with this font by simplefonts. I 
   use the following simple setup:
  
  
   \definefont[arabic][file:bliblablup_0.ttf*arabic at 15pt]
 
  \definefontfeature[fakebold][extend=1.1]
 
  \definefont[arabic][file:fontname*arabic,fakebold at 15pt]
 
   \starttext
   \arabic\setupalign[r2l] ٱللَّهُ لَآ إِلَـٰهَ إِلَّا هُوَ ٱلْحَىُّ 
   ٱلْقَيُّومُ
   \stoptext
  
   How can I get these fake bolds with this setup? Or is it absolutely 
   necessary to use Simplefont for these fake-bolds?
 
  The feature is unrelated to simplefonts.
 
  Wolfgang
 
 Thanks Wolfgang, but that does not seem to work with this font. See 
 attachment, the font is wider, but not bold.

The extend feature stretches the glyphs to get narrow or wide font but it 
doesn’t embolden it.

The best solution is to get a font with a real bold style, money shouldn’t be a 
problem because fonts are cheap nowadays.

Wolfgang
___
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
___

Re: [NTG-context] No full Unicode-Support in ConTeXt?

2013-11-24 Thread Hans Hagen

On 11/24/2013 6:09 PM, Hans Hagen wrote:


shows me a little sign above the word


the only issue i see is that this otf font has 2048 units and gets 
scaled wrong (in luatex's backend probably)


definefont[arabica][file:uthmantn1-ver10.otf*arabic at 45pt]
\definefont[arabicb][file:arabtype.ttf*arabic at 45pt]

\starttext
\setupalign[r2l]
\arabica شَدِيدٌۗ\par
\arabicb شَدِيدٌۗ\par
\page
\showotfcomposition{file:uthmantn1-ver10.otf*arabic}{r2l}{شَدِيدٌۗ}
\page
\showotfcomposition{file:arabtype.ttf*arabic*arabic}{r2l}{شَدِيدٌۗ}
\stoptext

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___

Re: [NTG-context] No full Unicode-Support in ConTeXt?

2013-11-24 Thread Khaled Hosny
On Sun, Nov 24, 2013 at 06:31:27PM +0100, Hans Hagen wrote:
 On 11/24/2013 6:09 PM, Hans Hagen wrote:
 
 shows me a little sign above the word
 
 the only issue i see is that this otf font has 2048 units and gets scaled
 wrong (in luatex's backend probably)

It is actually a TTF font but the extension confuses ConTeXt (we
discussed this very issue before).
___
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
___


Re: [NTG-context] No full Unicode-Support in ConTeXt?

2013-11-24 Thread Hans Hagen

On 11/24/2013 6:38 PM, Khaled Hosny wrote:

On Sun, Nov 24, 2013 at 06:31:27PM +0100, Hans Hagen wrote:

On 11/24/2013 6:09 PM, Hans Hagen wrote:


shows me a little sign above the word


the only issue i see is that this otf font has 2048 units and gets scaled
wrong (in luatex's backend probably)


It is actually a TTF font but the extension confuses ConTeXt (we
discussed this very issue before).


afaik it passes the right unit value so the backend gets confused ... 
okay, we could probably specify a font to be truetype when units ~= 1000 
but still ... i have no problem with forcing


if units ~= 1000 and format ~= truetype then
properties.format = truetype
end

if we can assume all opentype fonts to be 1000

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] No full Unicode-Support in ConTeXt?

2013-11-24 Thread Khaled Hosny
On Sun, Nov 24, 2013 at 06:48:05PM +0100, Hans Hagen wrote:
 On 11/24/2013 6:38 PM, Khaled Hosny wrote:
 On Sun, Nov 24, 2013 at 06:31:27PM +0100, Hans Hagen wrote:
 On 11/24/2013 6:09 PM, Hans Hagen wrote:
 
 shows me a little sign above the word
 
 the only issue i see is that this otf font has 2048 units and gets scaled
 wrong (in luatex's backend probably)
 
 It is actually a TTF font but the extension confuses ConTeXt (we
 discussed this very issue before).
 
 afaik it passes the right unit value so the backend gets confused ... okay,
 we could probably specify a font to be truetype when units ~= 1000 but still
 ... i have no problem with forcing
 
 if units ~= 1000 and format ~= truetype then
 properties.format = truetype
 end
 
 if we can assume all opentype fonts to be 1000

No we can't. What we really need is a way for the fontloader to expose
the format in the font table, because it already knows it.

Regards,
Khaled
___
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
___


Re: [NTG-context] Converting normal font into bold

2013-11-24 Thread H. Özoguz

The extend feature stretches the glyphs to get narrow or wide font but it 
doesn’t embolden it.

The best solution is to get a font with a real bold style, money shouldn’t be a 
problem because fonts are cheap nowadays.

Wolfgang


Thanks, I hoped the it could really embold ist (like I did it in 
CorelDraw).


Of course, money is not the problem at all - I am using it commercially, 
so the company should by any arabic font I would suggest. But it is very 
hard to find an modern font, which is capable of typsetting Quran, with 
full supprt and all special symbols (wich are not a part of standard 
modern arabic) - and more hard to find such a find in this style (Uthmanic).


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
___

Re: [NTG-context] Converting normal font into bold

2013-11-24 Thread Khaled Hosny
On Sun, Nov 24, 2013 at 06:52:31PM +0100, H. Özoguz wrote:
 The extend feature stretches the glyphs to get narrow or wide font but it 
 doesn’t embolden it.
 
 The best solution is to get a font with a real bold style, money shouldn’t 
 be a problem because fonts are cheap nowadays.
 
 Wolfgang
 
 Thanks, I hoped the it could really embold ist (like I did it in CorelDraw).
 
 Of course, money is not the problem at all - I am using it commercially, so
 the company should by any arabic font I would suggest. But it is very hard
 to find an modern font, which is capable of typsetting Quran, with full
 supprt and all special symbols (wich are not a part of standard modern
 arabic)

http://amirifont.org/

 - and more hard to find such a find in this style (Uthmanic).

There is no such a style, it is just a simplified (dumbed down) Naskh
style used only in one single Mushaf. Why is that a requirement?

Regards,
Khaled
___
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
___

Re: [NTG-context] No full Unicode-Support in ConTeXt?

2013-11-24 Thread Hans Hagen

On 11/24/2013 6:50 PM, Khaled Hosny wrote:

On Sun, Nov 24, 2013 at 06:48:05PM +0100, Hans Hagen wrote:

On 11/24/2013 6:38 PM, Khaled Hosny wrote:

On Sun, Nov 24, 2013 at 06:31:27PM +0100, Hans Hagen wrote:

On 11/24/2013 6:09 PM, Hans Hagen wrote:


shows me a little sign above the word


the only issue i see is that this otf font has 2048 units and gets scaled
wrong (in luatex's backend probably)


It is actually a TTF font but the extension confuses ConTeXt (we
discussed this very issue before).


afaik it passes the right unit value so the backend gets confused ... okay,
we could probably specify a font to be truetype when units ~= 1000 but still
... i have no problem with forcing

if units ~= 1000 and format ~= truetype then
 properties.format = truetype
end

if we can assume all opentype fonts to be 1000


No we can't. What we really need is a way for the fontloader to expose
the format in the font table, because it already knows it.


ok, so we need a format key in the raw font table (truetype or 
opentype)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


[NTG-context] [***SPAM***] Re: No full Unicode-Support in ConTeXt?

2013-11-24 Thread H. Özoguz

not at all, as you show way more input here as in the jpeg ... so first
make a minimal example


I did gave a min-example, didn't I? The JPG was only to make clear, what 
I mean with little signs. Is that clear now? Dont know how to say it 
better way (sorry my english) :),



also another font is not revealing either
Of course it is not, yes, sorry. But sometimes I have problems with 
different fonts (e.g. the letters are not connected), and these problems 
do not occur in CorelDraw or some other programs. That is, what I meant. 
(Besides from that, it should be clear that I am a very big fan of 
ConTeXt and all the way I am talking about it to friends and collegues, 
so: no attacks at all :)).



the only issue i see is that this otf font has 2048 units and gets
scaled wrong (in luatex's backend probably)


The problem is not the scaling (may be too, but not my problem here). 
Don't you get the following problem in this (your) code?


\definefont[arabica][file:uthmantn1ver10.ttf*arabic at 45pt]
\definefont[arabicb][file:arabtype.ttf*arabic at 45pt]
\starttext
\setupalign[r2l]
\arabica شَدِيدٌۗ\blank\blank
\arabicb شَدِيدٌۗ\par
\stoptext

Maybe its an issue of my context-version, so see the attachment. With 
the font arabtype everything is fine, with the font uthmantnver10 
the sign is missing.


Huseyin


context_missing.pdf
Description: Adobe PDF document
___
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
___

[NTG-context] Intermediate format

2013-11-24 Thread Jan Tosovsky
Dear All, 

is it possible to get the complete representation of the layout that is
processed in the luatex PDF generator?

I mean coordinations of individual text boxes, their dimensions etc.

In e.g. XSL-FO processors it is provided in the XML based formats:

http://www.renderx.com/reference.html#IntermediateFormatSpecification
http://xmlgraphics.apache.org/fop/1.1/intermediate.html

Actually, I'd like to retrieve the page number and vertical position of my
object with a specific id (reference) to be able to perform PDF
post-processing.

Is DVI way to go? How can I get it in MkIV?

Thanks, Jan

___
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
___


[NTG-context] [***SPAM***] Re: Converting normal font into bold

2013-11-24 Thread H. Özoguz

http://amirifont.org/

/  - and more hard to find such a find in this style (Uthmanic).
/
There is no such a style, it is just a simplified (dumbed down) Naskh
style used only in one single Mushaf. Why is that a requirement?


Thanks Khaled,

the Naskh-Style is not an absolute requirement, but it is very well 
known and very common (at least for muslims in germany) - and it is very 
nice, of course, this is an question of flavor.


I know your font, of course, but I had always problems with it in 
typesetting quran. Maybe you can help?


See the following code:

\definefont[arabicamiri][file:amiri-quran.ttf*arabic at 15pt]
\definefont[arabicb][file:uthmantn1ver10.ttf*arabic at 17pt]
\starttext
 \setupalign[r2l]
 \arabicamiri ??? ?? ? ?? ?  ? 
? ? ?  ??? ?? ??? ??? ? 
? ??? ??? ?

\blank\blank
 \arabicb ??? ?? ? ?? ?  ? 
? ? ?  ??? ?? ??? ??? ? 
? ??? ??? ?\par

\stoptext

There are some issues within this example:

- overlapping letters (see Aziyz)
- bi ayaatillah (overlapping of fatha and hamza)

And besides from that: It is not so harmonic like the other font, seems 
more like a not-caligraphic hand-font (no offense of course :))


But possibly I am making something very wrong, can you help me? Thank 
you very much. My project is to typesetting quran completely, and that 
is not easy without an perfect font. If you have a commercial variant 
with license, please inform me, our company would surely buy it.


Thanks and wassalam






___
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
___

Re: [NTG-context] Converting normal font into bold

2013-11-24 Thread H. Özoguz

Again, because arabic seems to be vanished in my first posting, I dont know why.


Thanks Khaled,

the Naskh-Style is not an absolute requirement, but it is very well
known and very common (at least for muslims in germany) - and it is very
nice, of course, this is an question of flavor.

I know your font, of course, but I had always problems with it in
typesetting quran. Maybe you can help?

See the following code:


\definefont[arabicamiri][file:amiri-regular.ttf*arabic at 15pt]
\definefont[arabicb][file:uthmantn1ver10.ttf*arabic at 17pt]
\starttext

 \setupalign[r2l]

 \arabicamiri مِن قَبْلُ هُدًى لِّلنَّاسِ وَأَنزَلَ ٱلْفُرْقَانَ ۗ
إِنَّ ٱلَّذِينَ كَفَرُوا۟ بِـَٔايَـٰتِ ٱللَّهِ لَهُمْ عَذَابٌ شَدِيدٌ ۗ
وَٱللَّهُ عَزِيزٌ ذُو ٱنتِقَامٍ

\blank\blank

 \arabicb مِن قَبْلُ هُدًى لِّلنَّاسِ وَأَنزَلَ ٱلْفُرْقَانَ ۗ إِنَّ
 ٱلَّذِينَ كَفَرُوا۟ بِـَٔايَـٰتِ ٱللَّهِ لَهُمْ عَذَابٌ شَدِيدٌ ۗ
وَٱللَّهُ عَزِيزٌ ذُو ٱنتِقَامٍ\par
\stoptext

There are some issues within this example:

- overlapping letters (see Aziyz)
- bi ayaatillah (overlapping of fatha and hamza)

And besides from that: It is not so harmonic like the other font, seems
more like a not-caligraphic hand-font (no offense of course :))

But possibly I am making something very wrong, can you help me? Thank
you very much. My project is to typesetting quran completely, and that
is not easy without an perfect font. If you have a commercial variant
with license, please inform me, our company would surely buy it.

Thanks and wassalam

___
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
___

Re: [NTG-context] [***SPAM***] Re: Converting normal font into bold

2013-11-24 Thread Khaled Hosny
On Sun, Nov 24, 2013 at 08:49:40PM +0100, H. Özoguz wrote:
 http://amirifont.org/
 
 /  - and more hard to find such a find in this style (Uthmanic).
 /
 There is no such a style, it is just a simplified (dumbed down) Naskh
 style used only in one single Mushaf. Why is that a requirement?
 
 Thanks Khaled,
 
 the Naskh-Style is not an absolute requirement, but it is very well known
 and very common (at least for muslims in germany) - and it is very nice, of
 course, this is an question of flavor.
 
 I know your font, of course, but I had always problems with it in
 typesetting quran. Maybe you can help?
 
 See the following code:
 
 \definefont[arabicamiri][file:amiri-quran.ttf*arabic at 15pt]
 \definefont[arabicb][file:uthmantn1ver10.ttf*arabic at 17pt]
 \starttext
  \setupalign[r2l]
  \arabicamiri ??? ?? ? ?? ?  ? ?
 ? ?  ??? ?? ??? ??? ? ?
 ??? ??? ?
 \blank\blank
  \arabicb ??? ?? ? ?? ?  ? ?
 ? ?  ??? ?? ??? ??? ? ?
 ??? ??? ?\par
 \stoptext

Your text got corrupted somewhere in its way.

 There are some issues within this example:
 
 - overlapping letters (see Aziyz)
 - bi ayaatillah (overlapping of fatha and hamza)
 
 And besides from that: It is not so harmonic like the other font, seems more
 like a not-caligraphic hand-font (no offense of course :))

Funny, I always get complaints that it is too caligraphic for some
peoples taste. Besides, it is actually more closer to the authentic
Naskh style than Uthman Taha’s dumbed down Naskh.

 But possibly I am making something very wrong, can you help me? Thank you
 very much. My project is to typesetting quran completely, and that is not
 easy without an perfect font. If you have a commercial variant with license,
 please inform me, our company would surely buy it.

That was my project too, but I got distracted building the perfect font
since none existed.
___
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
___

Re: [NTG-context] Converting normal font into bold

2013-11-24 Thread Khaled Hosny
On Sun, Nov 24, 2013 at 08:53:00PM +0100, H. Özoguz wrote:
 Again, because arabic seems to be vanished in my first posting, I dont know 
 why.
 
 
 Thanks Khaled,
 
 the Naskh-Style is not an absolute requirement, but it is very well
 known and very common (at least for muslims in germany) - and it is very
 nice, of course, this is an question of flavor.
 
 I know your font, of course, but I had always problems with it in
 typesetting quran. Maybe you can help?
 
 See the following code:
 
 
 \definefont[arabicamiri][file:amiri-regular.ttf*arabic at 15pt]
 \definefont[arabicb][file:uthmantn1ver10.ttf*arabic at 17pt]
 \starttext
 
  \setupalign[r2l]
 
  \arabicamiri مِن قَبْلُ هُدًى لِّلنَّاسِ وَأَنزَلَ ٱلْفُرْقَانَ ۗ
 إِنَّ ٱلَّذِينَ كَفَرُوا۟ بِـَٔايَـٰتِ ٱللَّهِ لَهُمْ عَذَابٌ شَدِيدٌ ۗ
 وَٱللَّهُ عَزِيزٌ ذُو ٱنتِقَامٍ
 
 \blank\blank
 
  \arabicb مِن قَبْلُ هُدًى لِّلنَّاسِ وَأَنزَلَ ٱلْفُرْقَانَ ۗ إِنَّ
  ٱلَّذِينَ كَفَرُوا۟ بِـَٔايَـٰتِ ٱللَّهِ لَهُمْ عَذَابٌ شَدِيدٌ ۗ
 وَٱللَّهُ عَزِيزٌ ذُو ٱنتِقَامٍ\par
 \stoptext
 
 There are some issues within this example:
 
 - overlapping letters (see Aziyz)

This can be easily fixed (I can send you a fixed version if you want,
but better to discuss those issues off list).

 - bi ayaatillah (overlapping of fatha and hamza)

It is my believe that Unicode has the wrong properties for Arabic
standalone Hamza; in short you should just type a regular Hamza in the
middle of the word and it will get positioned correctly. Placing a
combining Hamza over a Tatweel to “fake” it is wrong IMO. So in Amiri
you just type “بِءَايَٰتِ” and voilà, every thing is rendered correctly (the
same is true for the small Alef).

It seem I just found a few ConTeXt bugs with the font, off to prepare some
tests for Hans… (just if I can use HarfBuzz and forget about all this!).

Regards,
Khaled
___
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
___

Re: [NTG-context] Converting normal font into bold

2013-11-24 Thread H. Özoguz

It is my believe that Unicode has the wrong properties for Arabic
standalone Hamza; in short you should just type a regular Hamza in the
middle of the word and it will get positioned correctly. Placing a
combining Hamza over a Tatweel to “fake” it is wrong IMO. So in Amiri
you just type “بِءَايَٰتِ” and voilà, every thing is rendered correctly (the
same is true for the small Alef).


Yes, that works. But the direct way works with Uhtmanic1HafsVer9:

\definefont[arabicamiri][file:amiri-regular.ttf*arabic at 15pt]
\definefont[arabicuth][file:UthmanicHafs1Ver09.ttf*arabic at 17pt]
\starttext
\setupalign[r2l]
\arabicamiri بِـَٔايَـٰتِ
\blank
\arabicuth بِـَٔايَـٰتِ
\stoptext

To be honest, in Corel Draw UthmanicHafs is the perfect font for my 
purpose - at least in CorelDraw - e.g.: The ayat-numbers are printed as 
a unicode-symbol, not as numbers (perfect, because ConTeXt has problems 
with the direction with arabic numbers, they are mirrored in ConTeXt).


But it is only perfect in CorelDraw, in ConTeXt some things are not 
recognized correctly, as I mentioned. E.g. this one:


\definefont[arabicamiri][file:amiri-regular.ttf*arabic at 15pt]
\definefont[arabicuth][file:UthmanicHafs1Ver09.ttf*arabic at 17pt]
\starttext
\setupalign[r2l]
\arabicuth لِّلْمُتَّقِينَ ﴿٢﴾
\stoptext

If I put the same arabic into CorelDraw, it prints a nice Unicode-Symbol 
for the number - see the JPG I have attached here, screenshot from 
CorelDraw, but ConTeXt ignores the brackets and prints just a verys 
small number. There are some problems like this. Are they easy to fix, 
or is this problem deeply involved?


Huseyin



attachment: lilmuttaqiyn.jpg___
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
___

Re: [NTG-context] ToC - right-alignment of roman numerals

2013-11-24 Thread Jan Tosovsky
On 2013-11-18 Jan Tosovsky wrote:
  On 2013–06–03 Jan Tosovsky wrote:
  in fresh MkIV I use the following commands for building ToC, but I
  have no idea how to align the label (roman numeral) to the right.
 
 I am almost there, but things get complicated when chapters are
 combined with preface/index titles without numbering and thus aligned
 improperly:
 
 \setupcombinedlist[content][list=chapter, alternative=c]
 \setupcombinedlist[chapter][
distance=1em,
width=1cm,
 
 numbercommand={\simplealignedbox{\listparameter{width}}{flushright}},
 ]
 
 \starttext
 \completecontent
 
 \startfrontmatter
 \chapter{Preface}text
 \stopfrontmatter
 
 \startbodymatter
 \chapter{Chapter}text\index{primary}
 \stopbodymatter
 
 \startbackmatter
 \completeindex
 \stopbackmatter
 
 \stoptext
 
 Is there any way how to indent these non-numbered titles so that they
 start where the chapter title starts?

I've fixed it by applying a margin to everything and setting a negative width 
to the numbers (distance = -width):

\setupcombinedlist[chapter][
   distance=0.5cm,
   width=-0.5cm,
   margin=2cm,
   numbercommand={\simplealignedbox{\listparameter{width}}{flushright}},
]

I don't know exactly why it works, but it works :-)

Jan

___
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
___

Re: [NTG-context] Converting normal font into bold

2013-11-24 Thread Ondřej Hošek
Hi Huseyin,

On Sun, Nov 24, 2013 at 10:18 PM, H. Özoguz h.oezo...@mmnetz.de wrote:
 If I put the same arabic into CorelDraw, it prints a nice Unicode-Symbol for
 the number - see the JPG I have attached here, screenshot from CorelDraw,
 but ConTeXt ignores the brackets and prints just a verys small number. There
 are some problems like this. Are they easy to fix, or is this problem deeply
 involved?

Apparently, replacing a number enclosed in ornate parentheses (U+FD3E
and U+FD3F) with a number in the end of ayah ornament is a specialty
of the UthmanicHafs font. If I input the digit (e.g. U+0662) and then
the special non-printable end of ayah character (U+06DD), ConTeXt
and Amiri successfully output the digit inside the ornament.

Of course, since U+06DD is a non-printable character, it might be a
pain to work with in a text editor; you might want to define a custom
command for this purpose:

\def\eoa#1{#1\char06DD}

Cheers,
~~ Ondra
___
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
___

Re: [NTG-context] Converting normal font into bold

2013-11-24 Thread H. Özoguz

Hi Ondra,

thanks for your help.


Apparently, replacing a number enclosed in ornate parentheses (U+FD3E
and U+FD3F) with a number in the end of ayah ornament is a specialty
of the UthmanicHafs font. If I input the digit (e.g. U+0662) and then
the special non-printable end of ayah character (U+06DD), ConTeXt
and Amiri successfully output the digit inside the ornament.


Hmm, ok. But if it is a speciality of UthmanicHafs, why CorelDraw 
understands it natively?



Of course, since U+06DD is a non-printable character, it might be a
pain to work with in a text editor; you might want to define a custom
command for this purpose:

\def\eoa#1{#1\char06DD}


Thanks, that works fine:

\definefont[arabicamiri][file:amiri-regular.ttf*arabic at 15pt]
\definefont[arabicuth][file:UthmanicHafs1Ver09.ttf*arabic at 17pt]
\def\eoa#1{#1\char06DD}
\starttext
\setupalign[r2l]
\arabicuth لأَفَبِهَـٰذَا ٱلْحَدِيثِ أَنتُم مُّدْهِنُونَ ﴿٨١﴾\eoa
\stoptext

But now another question arises: How to input this command into my 
unicode of quran automatically? (I am using notepad++). Not the best way 
to do this manually for all 286 Ayas (and then search and replace for 
all ayas of all suras).


And still: There must be some tricks in CorelDraw handling fonts, which 
would be great to have in ConText :)


Thank you!
Huseyin

PS: Sorry for these annoyong thread-breaking all the time - I really do 
not know, what I make wrong here. I am using Thunderbird. If anybody 
knows how to use thunderbird for email lists correctly, I would be thankful.



___
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
___

Re: [NTG-context] Converting normal font into bold

2013-11-24 Thread H. Özoguz

Thanks, that works fine:

\definefont[arabicamiri][file:amiri-regular.ttf*arabic at 15pt]
\definefont[arabicuth][file:UthmanicHafs1Ver09.ttf*arabic at 17pt]
\def\eoa#1{#1\char06DD}
\starttext
\setupalign[r2l]
\arabicuth لأَفَبِهَـٰذَا ٱلْحَدِيثِ أَنتُم مُّدْهِنُونَ ﴿٨١﴾\eoa
\stoptext


Now I could locate the error in ConText better, see this code and the 
mistake, which occurs:


\definefont[arabicuth][file:UthmanicHafs1Ver09.ttf*arabic at 17pt]
\define[1]\eoa{#1\char06DD}
\starttext
\setupalign[r2l]
\arabicuth

إِنَّ ٱلَّذِينَ كَفَرُوا سَوَآءٌ عَلَيْهِمْ ءَأَنذَرْتَهُمْ أَمْ لَمْ 
تُنذِرْهُمْ لَا يُؤْمِنُونَ ﴿٦﴾\blank

إِنَّ ٱلَّذِينَ كَفَرُوا سَوَآءٌ عَلَيْهِمْ ءَأَنذَرْتَهُمْ أَمْ لَمْ 
تُنذِرْهُمْ لَا يُؤْمِنُونَ ﴿٦٦﴾
\stoptext

(I have attached the compiled PDF).

The first aya, with a single one-digit number is not regonized 
correctly, but the second is (with a two-digit-number). Why?


Huseyin



endofayah.pdf
Description: Adobe PDF document
___
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
___