OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Converting Symbol Fonts to UTF-8



Hi,
Thanks, that clarifies the situation.  This seems to be a two-byte encoding, perhaps specific to Microsoft's Symbol font?  I thought the Symbol font was single byte, so I'm not understanding those numbers.  Anybody else recognize this?
 
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net
 
 
----- Original Message -----
Sent: Sunday, April 18, 2010 7:51 AM
Subject: Re: [docbook-apps] Converting Symbol Fonts to UTF-8

What I have done sometimes, is an <xsl:choose> on the charcarer when I can identify that the original font is "symbol".

I had to use it on a Word XML file.

example:

    <xsl:template match="w:sym[@w:font='Symbol']">
       
<xsl:variable name="code">
           
<xsl:choose>
               
<xsl:when test="@w:char = 'F06C'">955</xsl:when>
               
<xsl:when test="@w:char = 'F065'">917</xsl:when>
               
<xsl:when test="@w:char = 'F071'">920</xsl:when>
               
<xsl:when test="@w:char = 'F061'">913</xsl:when>
               
<xsl:when test="@w:char = 'F074'">932</xsl:when>
               
<xsl:when test="@w:char = 'F0B4'">215</xsl:when>
               
<xsl:when test="@w:char = 'F0CF'">8714</xsl:when>
               
<xsl:when test="@w:char = 'F070'">928</xsl:when>



               
<xsl:otherwise>000</xsl:otherwise>
           
</xsl:choose>
       
</xsl:variable>
       
<span face="Symbol">
           
<xsl:value-of select="concat('&amp;#',$code,';')" disable-output-escaping="yes"/>
       
</span>
   
</xsl:template>

other example:

   <xsl:template name="symbol">
       
<xsl:param name="text">AAA</xsl:param>
          
<xsl:choose>
           
<xsl:when test="$text = 'p'">π</xsl:when>
              
<xsl:when test="$text = 'a'">α</xsl:when> <!-- alpha -->
              
<xsl:when test="$text = 'W'">W</xsl:when> <!-- W -->
              
<xsl:when test="$text = 'q'">q</xsl:when> <!-- q -->
              
           
<xsl:otherwise>000<xsl:comment><xsl:value-of select="$text"/></xsl:comment></xsl:otherwise>
       
</xsl:choose>
   
</xsl:template>


Christian



Le 18 avr. 2010 à 16:16, Bob Stayton a écrit :


Hi,
I'm not clear on what it means for a text to be written using the 'Symbol' font.  Can you provide a short example and an explanation of how it was created?

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- From: "Mathieu Malaterre" <mathieu.malaterre@gmail.com>
To: "DocBook Apps" <docbook-apps@lists.oasis-open.org>
Sent: Thursday, April 15, 2010 12:33 AM
Subject: [docbook-apps] Converting Symbol Fonts to UTF-8


Hi there,

I am wondering if anyone has dealt with this issue before: how can I
convert a text that was written using the 'Symbol' fonts into
something more portable (UTF-8 for instance) ?

Thanks
--
Mathieu
Ref: http://www.openoffice.org/issues/show_bug.cgi?id=110872

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org





---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]