Problem with Persian Citation

Feb 1, 2015 at 3:00 PM
Hi. I have a problem with Microsoft word. My language is Farsi. When I insert citation from library that I defined in Word, the software automatically use "," instead "،". How can I fix that? For example, below I wrote tow wrong and true citations.

Sample of a citation that Word automatically use "," stead of "،" and it's wrong.
این متن به عنوان نمونه نوشته شده است (اسلامی 1372, 310).
Correct form of citation in Persian that I cited manually.

این متن به عنوان نمونه نوشته شده است (اسلامی 1372، 310).
Coordinator
Feb 2, 2015 at 7:17 PM
If you are using a BibWord stylesheet, you can just update the separator. There should be a section looking something like the code below. Change the value of the separator element to what you require.
    <citation>
      <openbracket>(</openbracket>
      <closebracket>)</closebracket>
      <separator>,</separator>
      <!-- a lot of other code -->
    </citation>
Feb 2, 2015 at 8:26 PM
Edited Feb 2, 2015 at 8:34 PM
Hi and thanks for your attention. I can't find these codes. I use Microsoft Office 2013 on Windows 7.
I found some XML files in C:\Program Files\Microsoft Office\Office15\Bibliography\Style, but no one has this codes.
For example the content of "APASixthEditionOfficeOnline":

``` <?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:b="http://schemas.openxmlformats.org/officeDocument/2006/bibliography" xmlns:t="http://www.microsoft.com/temp">
<xsl:output method="html" encoding="us-ascii"/>

<xsl:template match="*" mode="outputHtml2">
  <xsl:apply-templates mode="outputHtml"/>
</xsl:template>

<xsl:template name="StringFormatDot">
<xsl:param name="format" />
<xsl:param name="parameters" />

<xsl:variable name="prop_EndChars">
  <xsl:call-template name="templ_prop_EndChars"/>
</xsl:variable>

<xsl:choose>
  <xsl:when test="$format = ''"></xsl:when>
  <xsl:when test="substring($format, 1, 2) = '%%'">
    <xsl:text>%</xsl:text>
    <xsl:call-template name="StringFormatDot">
      <xsl:with-param name="format" select="substring($format, 3)" />
      <xsl:with-param name="parameters" select="$parameters" />
    </xsl:call-template>
    <xsl:if test="string-length($format)=2">
      <xsl:call-template name="templ_prop_Dot"/>
    </xsl:if>
  </xsl:when>
  <xsl:when test="substring($format, 1, 1) = '%'">
    <xsl:variable name="pos" select="substring($format, 2, 1)" />
    <xsl:apply-templates select="msxsl:node-set($parameters)/t:params/t:param[position() = $pos]" mode="outputHtml2"/>
    <xsl:call-template name="StringFormatDot">
      <xsl:with-param name="format" select="substring($format, 3)" />
      <xsl:with-param name="parameters" select="$parameters" />
    </xsl:call-template>
    <xsl:if test="string-length($format)=2">
      <xsl:variable name="temp2">
        <xsl:call-template name="handleSpaces">
          <xsl:with-param name="field" select="msxsl:node-set($parameters)/t:params/t:param[position() = $pos]"/>
        </xsl:call-template>
      </xsl:variable>
      <xsl:variable name="lastChar">
        <xsl:value-of select="substring($temp2, string-length($temp2))"/>
      </xsl:variable>

      <xsl:if test="not(contains($prop_EndChars, $lastChar))">
        <xsl:call-template name="templ_prop_Dot"/>
      </xsl:if>
    </xsl:if>
  </xsl:when>
  <xsl:otherwise>
    <xsl:value-of select="substring($format, 1, 1)" />
    <xsl:call-template name="StringFormatDot">
      <xsl:with-param name="format" select="substring($format, 2)" />
      <xsl:with-param name="parameters" select="$parameters" />
    </xsl:call-template>
    <xsl:if test="string-length($format)=1">
      <xsl:if test="not(contains($prop_EndChars, $format))">
        <xsl:call-template name="templ_prop_Dot"/>
      </xsl:if>
    </xsl:if>
  </xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template name="StringFormat">
<xsl:param name="format" />
<xsl:param name="parameters" />
<xsl:choose>
  <xsl:when test="$format = ''"></xsl:when>
  <xsl:when test="substring($format, 1, 2) = '%%'">
    <xsl:text>%</xsl:text>
    <xsl:call-template name="StringFormat">
      <xsl:with-param name="format" select="substring($format, 3)" />
      <xsl:with-param name="parameters" select="$parameters" />
    </xsl:call-template>
  </xsl:when>
  <xsl:when test="substring($format, 1, 1) = '%'">
    <xsl:variable name="pos" select="substring($format, 2, 1)" />
    <xsl:apply-templates select="msxsl:node-set($parameters)/t:params/t:param[position() = $pos]" mode="outputHtml2"/>
    <xsl:call-template name="StringFormat">
      <xsl:with-param name="format" select="substring($format, 3)" />
      <xsl:with-param name="parameters" select="$parameters" />
    </xsl:call-template>
  </xsl:when>
  <xsl:otherwise>
    <xsl:value-of select="substring($format, 1, 1)" />
    <xsl:call-template name="StringFormat">
      <xsl:with-param name="format" select="substring($format, 2)" />
      <xsl:with-param name="parameters" select="$parameters" />
    </xsl:call-template>
  </xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template name="localLCID">
<xsl:param name="LCID"/>

<xsl:variable name="_LCID1">
  <xsl:choose>
    <xsl:when test="$LCID!='0' and $LCID!=''">
      <xsl:value-of select="$LCID"/>
    </xsl:when>
    <xsl:when test="/b:Citation">
      <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
    </xsl:when>
    <xsl:when test="b:LCID">
      <xsl:value-of select="b:LCID"/>
    </xsl:when>
    <xsl:when test="../b:LCID">
      <xsl:value-of select="../b:LCID"/>
    </xsl:when>
    <xsl:when test="../../b:LCID">
      <xsl:value-of select="../../b:LCID"/>
    </xsl:when>
    <xsl:when test="../../../b:LCID">
      <xsl:value-of select="../../../b:LCID"/>
    </xsl:when>
    <xsl:when test="../../../../b:LCID">
      <xsl:value-of select="../../../../b:LCID"/>
    </xsl:when>
    <xsl:when test="../../../../b:LCID">
      <xsl:value-of select="../../../../b:LCID"/>
    </xsl:when>
    <xsl:when test="../../../../../b:LCID">
      <xsl:value-of select="../../../../../b:LCID"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:variable>

<xsl:choose>
  <xsl:when test="$_LCID1!='0' and string-length($_LCID1)>0">
    <xsl:value-of select="$_LCID1"/>
  </xsl:when>
  <xsl:otherwise>
    <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
  </xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template name="templ_prop_APA_CitationLong_FML" >
<xsl:param name="LCID" />
<xsl:variable name="_LCID">
  <xsl:call-template name="localLCID">
    <xsl:with-param name="LCID" select="$LCID"/>
  </xsl:call-template>
</xsl:variable>
<xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationLong/b:FML"/>
</xsl:template>


<xsl:template name="templ_prop_APA_CitationLong_FM" >
<xsl:param name="LCID" />
<xsl:variable name="_LCID">
  <xsl:call-template name="localLCID">
    <xsl:with-param name="LCID" select="$LCID"/>
  </xsl:call-template>
</xsl:variable>
<xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationLong/b:FM"/>
</xsl:template>


<xsl:template name="templ_prop_APA_CitationLong_ML" >
<xsl:param name="LCID" />
<xsl:variable name="_LCID">
  <xsl:call-template name="localLCID">
    <xsl:with-param name="LCID" select="$LCID"/>
  </xsl:call-template>
</xsl:variable>
<xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationLong/b:ML"/>
</xsl:template>


<xsl:template name="templ_prop_APA_CitationLong_FL" >
<xsl:param name="LCID" />
<xsl:variable name="_LCID">
  <xsl:call-template name="localLCID">
    <xsl:with-param name="LCID" select="$LCID"/>
  </xsl:call-template>
</xsl:variable>
<xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationLong/b:FL"/>
</xsl:template>


<xsl:template name="templ_prop_APA_CitationShort_FML" >
<xsl:param name="LCID" />
<xsl:variable name="_LCID">
  <xsl:call-template name="localLCID">
    <xsl:with-param name="LCID" select="$LCID"/>
  </xsl:call-template>
</xsl:variable>
<xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationShort/b:FML"/>
</xsl:template>


<xsl:template name="templ_prop_APA_CitationShort_FM" >
<xsl:param name="LCID" />
<xsl:variable name="_LCID">
  <xsl:call-template name="localLCID">
    <xsl:with-param name="LCID" select="$LCID"/>
  </xsl:call-template>
</xsl:variable>
<xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationShort/b:FM"/>
</xsl:template>


<xsl:template name="templ_prop_APA_CitationShort_ML" >
<xsl:param name="LCID" />
<xsl:variable name="_LCID">
  <xsl:call-template name="localLCID">
    <xsl:with-param name="LCID" select="$LCID"/>
  </xsl:call-template>
</xsl:variable>
<xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationShort/b:ML"/>
</xsl:template>


<xsl:template name="templ_prop_APA_CitationShort_FL" >
<xsl:param name="LCID" />
<xsl:variable name="_LCID">
  <xsl:call-template name="localLCID">
    <xsl:with-param name="LCID" select="$LCID"/>
  </xsl:call-template>
</xsl:variable>
<xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationShort/b:FL"/>
</xsl:template>


<xsl:template name="templ_str_OnlineCap" >
<xsl:param name="LCID" />
<xsl:variable name="_LCID">
  <xsl:call-template name="localLCID">
    <xsl:with-param name="LCID" select="$LCID"/>
  </xsl:call-template>
</xsl:variable>
<xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:OnlineCap"/>
</xsl:template>


<xsl:template name="templ_str_OnlineUnCap" >
<xsl:param name="LCID" />
<xsl:variable name="_LCID">
  <xsl:call-template name="localLCID">
    <xsl:with-param name="LCID" select="$LCID"/>
  </xsl:call-template>
</xsl:variable>
<xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:OnlineUnCap"/>
</xsl:template>


<xsl:template name="templ_str_FiledCap" >
<xsl:param name="LCID" />
<xsl:variable name="_LCID">
  <xsl:call-template name="localLCID">
    <xsl:with-param name="LCID" select="$LCID"/>
  </xsl:call-template>
</xsl:
Coordinator
Feb 3, 2015 at 8:56 PM
That is not a BibWord style. You will have to check with Microsoft for that style.