Skip to main content
ibrahima79023364
Participating Frequently
December 28, 2015
Answered

Add New toolbar items in FM 2015

  • December 28, 2015
  • 6 replies
  • 941 views

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.

    This topic has been closed for replies.
    Correct answer Stefan Gentz

    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).

    6 replies

    Stefan GentzCorrect answer
    Legend
    December 30, 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"?>
    <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).

    ibrahima79023364
    Participating Frequently
    December 31, 2015

    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>

    Legend
    December 31, 2015

    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?