[XeTeX] Modification of xepersian-mathsdigitspec and parsidigits

2011-09-28 Thread nathan . sidoli
How do I modify the behavior of xepersian-mathsdigitspec and  
parsidigits so that the characters for 4, 5, and 6 correspond to the  
Arabic numerals (U+6064,U+6065,U+6066), as opposed to Persian numerals  
(U+60F4,U+60F5,U+60F6)? I found a parsidigits.map file online (by  
Vafa), which has the mapping and would be easy to modify, but I cannot  
find this file anywhere on my system. The file  
xepersian-mathsdigitspec seems to refer to parsidigits and I can't see  
how to make the necessary changes in a modified version of this file.




--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Modification of xepersian-mathsdigitspec and parsidigits

2011-09-28 Thread VAFA KHALIGHI
See attached. Without modifying my package.

test.tex
Description: Binary data


test.pdf
Description: Adobe PDF document

On 28/09/2011, at 4:34 PM, nathan.sid...@utoronto.ca wrote:

 How do I modify the behavior of xepersian-mathsdigitspec and parsidigits so 
 that the characters for 4, 5, and 6 correspond to the Arabic numerals 
 (U+6064,U+6065,U+6066), as opposed to Persian numerals 
 (U+60F4,U+60F5,U+60F6)? I found a parsidigits.map file online (by Vafa), 
 which has the mapping and would be easy to modify, but I cannot find this 
 file anywhere on my system. The file xepersian-mathsdigitspec seems to refer 
 to parsidigits and I can't see how to make the necessary changes in a 
 modified version of this file.
 
 
 
 --
 Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Modification of xepersian-mathsdigitspec and parsidigits

2011-09-28 Thread nathan . sidoli

Great! I knew there must have been a simply way.

Thanks.

Quoting VAFA KHALIGHI vafa...@gmail.com:


See attached. Without modifying my package.







--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Strange behaviour xelatex/fontspec/Windows

2011-09-28 Thread George N. White III
On Tue, Sep 27, 2011 at 3:10 AM,  rhin...@postmail.ch wrote:

 Sorry for the late answer. Your message was put in the wrong thread
 by my mail program.
 On Mon, Sep 26, 2011 at 05:53:38PM +0900, Akira Kakuto wrote:
  It seems that the fontconfig package is running on Windows.
  I have seen that the binaries (fc-list, fc-cache etc)
  of fontconfig package are present.

 (1)
 Please confirm that the fc-cache.exe is the one provided by
 TeX Live, that is, it is in the TeX Live binary directory .../bin/win32.
 The other fc-cache.exe cannot be used for XeTeX in TL W32.

 Yes it is the program given with TeXlive.
 (2)
 Go to the directory shown by the command
 kpsewhich -var-value FONTCONFIG_PATH

 (3)
 Make a file with the name local.conf in the directory, for example:

 ?xml version=1.0?
 !DOCTYPE fontconfig SYSTEM fonts.dtd
 !-- local.conf file to configure local font access --
 fontconfig
 !--
 Additional dirs for fontconfig. Subdirs are searched automatically.
 --

 dirg:/somedir/opentype/dir
 dirg:/somedir/truetype/dir

 /fontconfig
 It's the way I plan to follow. Creating a fonts.local
 with all the letters usable by Windows. Fortunately,
 only the letters C-Z are used by Windows.

 Then I will create a small batch file which will
 call fc-cache -v to redo the font cache. This is
 not particularly elegant but at least should work
 whenever the USB key is plugged on different Windows machine.

Why not have the batch file write a local.conf with the
correct drive letter?

 By the way, with the last version of XeTeX they seems
 to be a bug when handling fonts. I have a similar
 problem on OpenSolaris (XeTeX from TL 2011 crashes as soon as
 a specific font should be located on disk).

 With XeTeX from TeXLive 2010, they seems not to be
 the same problems.

 I should still debug more deeply the problem under
 OpenSolaris.

 (4)
 Run the commands
 mktexlsr
 fc-cache -v

You may be able to avoid the mktexlsr step, either by creating a
dummy local.conf and running mktexlsr once, then just updating
the local.conf file, or arranging to keep local.conf in a small tree
that doesn't use ls-R files.

 This seems to work when the fonts.conf is correct (during
 my first tests, the fonts.conf file does not contain the
 correct references to the fonts).

 What I should still check however is that if when the fonts.conf
 file is correct it is possible to load an non system font
 (the test which was successful, was when the desired
 font was considered as a system font since it was on the cache).

Loading TL supplied fonts without installing them as system fonts
certainly works for many users, but then you don't have then in
system tools, e.g., in font table viewers like BableMap.  A number
of ports of linux tools (Gimp, Inkscape) also use fontconfig and
supply their own config files, so you don't install fonts as system
fonts each app has a different list of available fonts.

 This test is now from less importance since I have found
 a bypass but it could reveal a bug in the font handling
 of XeTeX.

 I haven't had the time to do this last check. I will probably do it
 that for the end of week.


-- 
George N. White III aa...@chebucto.ns.ca
Head of St. Margarets Bay, Nova Scotia


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Modification of xepersian-mathsdigitspec and parsidigits

2011-09-28 Thread Nathan Sidoli

Thanks. I thought there was probably a simple way of doing this.


On 11/09/28 15:42, VAFA KHALIGHI wrote:

See attached. Without modifying my package.


On 28/09/2011, at 4:34 PM, nathan.sid...@utoronto.ca wrote:


How do I modify the behavior of xepersian-mathsdigitspec and parsidigits so 
that the characters for 4, 5, and 6 correspond to the Arabic numerals 
(U+6064,U+6065,U+6066), as opposed to Persian numerals (U+60F4,U+60F5,U+60F6)? 
I found a parsidigits.map file online (by Vafa), which has the mapping and 
would be easy to modify, but I cannot find this file anywhere on my system. The 
file xepersian-mathsdigitspec seems to refer to parsidigits and I can't see how 
to make the necessary changes in a modified version of this file.



--
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex




--
Subscriptions, Archive, and List information, etc.:
   http://tug.org/mailman/listinfo/xetex




--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex