Copy link to clipboard
Copied
Hi all, would you please let me know how I can add new items in direction toolbar like (N-to-Farsi and Farsi-to-N) and etc inside FM 2015.
You can find the toolbars in $fmhome\fminit\WorkSpaces\
You can find the direction toolbar for e.g. unstructured FrameMaker in the WYSIWYG View here:
$fmhome\fminit\WorkSpaces\UnStructured\WYSIWYGView\toolbars\direction.xml
However, this file might be overwritten with a user specific one:
C:\Users\<YourUserNamer>\AppData\Roaming\Adobe\FrameMaker\13\WorkSpaces\Structured\WYSIWYGView\toolbars\direction.xml
It's better to edit the user one.
Looks like this:
...<?xml version="1.0" encoding="utf-8"?>
<FMTOOLBA
Copy link to clipboard
Copied
You can find the toolbars in $fmhome\fminit\WorkSpaces\
You can find the direction toolbar for e.g. unstructured FrameMaker in the WYSIWYG View here:
$fmhome\fminit\WorkSpaces\UnStructured\WYSIWYGView\toolbars\direction.xml
However, this file might be overwritten with a user specific one:
C:\Users\<YourUserNamer>\AppData\Roaming\Adobe\FrameMaker\13\WorkSpaces\Structured\WYSIWYGView\toolbars\direction.xml
It's better to edit the user one.
Looks like this:
<?xml version="1.0" encoding="utf-8"?>
<FMTOOLBARLIST version="1">
<TOOLBAR id="tb_dir" name="#amp;Direction Toolbar" kbd-shortcut="\!vq" orientation="horizontal">
<ACTION command="DocDirectionLTR">
<images base="P_LTR"/>
</ACTION>
<ACTION command="DocDirectionRTL">
<images base="P_RTL"/>
</ACTION>
<ACTION command="NumberUtilityITN">
<images base="P_ATE"/>
</ACTION>
<ACTION command="NumberUtilityNTI">
<images base="P_ETA"/>
</ACTION>
<SEPARATOR/>
<FLYOUT command="DirectionSymbols">
<images base="P_Arabic_Symbols"/>
</FLYOUT>
</TOOLBAR>
</FMTOOLBARLIST>
You can customize this toolbar (by editing this direction.xml file and the other direction.xml files for other view modes). However, as far as I can see there is a NumberUtilityITN/NTI, but no NumberUtilityFTN/NTF. That is, while there is a function to convert N to Indic Numbers and back, there is no such function for N to Farsi and back (yet).
Copy link to clipboard
Copied
Thank you Stefen so much for your reply so can we add this function (FTN/NTF) to our direction.xml like below:
<?xml version="1.0" encoding="utf-8"?>
<FMTOOLBARLIST version="1">
<TOOLBAR id="tb_dir" name="#amp;Direction Toolbar" kbd-shortcut="\!vq" orientation="horizontal">
<ACTION command="DocDirectionLTR">
<images base="P_LTR"/>
</ACTION>
<ACTION command="DocDirectionRTL">
<images base="P_RTL"/>
</ACTION>
<ACTION command="NumberUtilityITN">
<images base="P_ATE"/>
</ACTION>
<ACTION command="NumberUtilityNTI">
<images base="P_ETA"/>
</ACTION>
<ACTION command="NumberUtilityFTN">
<images base="P_FTE"/>
</ACTION>
<ACTION command="NumberUtilityNTF">
<images base="P_ETF"/>
</ACTION>
<SEPARATOR/>
<FLYOUT command="DirectionSymbols">
<images base="P_Arabic_Symbols"/>
</FLYOUT>
</TOOLBAR>
</FMTOOLBARLIST>
Copy link to clipboard
Copied
Well, as I wrote, there is currently no NumberUtilityNTF / NumberUtilityFTN yet. So, in theory, your code is perfectly fine and as it should be – if there would be a function for that.
I have forwarded the need for such an NTF/FTN converter to the product team.
Question: Do you need this to post-edit translations of FrameMaker documents that were authored in a western language? Or do you also author in Farsi?
Copy link to clipboard
Copied
Thank you Stefan for all your effort and clarification, I got it now .
Yes, I need this function only in Farsi files so I can edit the numbers inside the Farsi text to be Farsi not English (Numeric). I can do this edit in Arabic text by this function (N-To-I).
May be another function can do this edit but I don't know but I tried more to find out any solution but I can't in Farsi files.
I think we need to do this function for all languages that use another numbers view like (Arabic, Farsi, Thai and etc.) (only note)
Copy link to clipboard
Copied
I think these functions ([A-Z]-to-Abjad / Abjad-to-[A-Z] and [A-Z]-to-Alif-ba-ta / Alif-ba-ta-to-[A-Z] converter) will be useful for all users that work Arabic language.
Copy link to clipboard
Copied
By the way, do you think that [A-Z]-to-Abjad / Abjad-to-[A-Z] and [A-Z]-to-Alif-ba-ta / Alif-ba-ta-to-[A-Z] converter would be useful as well?