Hi Pascal,

Thanks for the reponse. I have got rid of the extra space between special
characters now. In the declaration i have added indent="no" and it worked :)

- Anand

<xsl:output method="xml" version="1.0" indent="no" encoding="UTF-8" />


Pascal Sancho wrote:
> 
>  Hi,
> 
> You should post a FO snippet rather than a XSLT snippet:
> we cannot imagine the context for your xsl:when (what is before, what is
> after, what contains $text, ...), so nobody can reproduce what you
> describe.
> 
> Same for the 2nd issue (italics):
> a FO snippet (witch indicates ther used font) should help to reproduce.
> 
> Pascal
> 
> 
> Le 06/09/2010 12:02, Anand Gade a écrit :
>> Hi pascal
>>
>> I played around the code and still i am not able to resolve this issue.
>> Can
>> you please elaborate more on how can i fix this issue. 
>>
>> Also i have removed all new lines from the xsl code and now each match i
>> have defined in one line like this;
>>
>> <xsl:when test="contains($text,'&#12472;')"><xsl:analyze-string
>> regex="&#12472;" select="$text"><xsl:matching-substring><fo:inline
>> font-family="Mincho" font-size="10pt"><xsl:value-of
>> select="."/></fo:inline></xsl:matching-substring><xsl:non-matching-substring><xsl:call-template
>> name="inline-symbol-characters"><xsl:with-param name="text"
>> select="."/></xsl:call-template></xsl:non-matching-substring></xsl:analyze-string></xsl:when>
>>
>> still no luck with this.
>> http://old.nabble.com/file/p29632823/ScreenShot002.jpg ScreenShot002.jpg 
>>
>> The other issue which is present in the PDF is that if the special
>> character
>> is applied italic style there is extra space appearing after that
>> character
>> (Please see attached). In first item there is space between ō and comma
>> (,).
>> please note that there is no space in XML and HTML for this still the
>> issues
>> is generating in PDF. 
>>
>> Please let me know where i am going wrong with the xsl part.
>>
>> Regards
>> Anand
>>
>>
>> Pascal Sancho wrote:
>>> Hi Anand,
>>>
>>> in your XSL-FO file (named fo.txt), you have extra spaces between each
>>> fo:inlines that contains Japanese glyphes.
>>> removing those extra spaces (at the XSLT stage) will fix your problem.
>>>
>>> Note that in XSLT, mixing text nodes with XSLT elements often cause that
>>> kind of trouble.
>>> To avoid such behaviour, you should put *all* wished texts in xsl:text
>>> elements.
>>>
>>> for rexample (assuming XML spaces rules):
>>>
>>>    <xsl:text>some text</xsl:text>
>>>    <xsl:value-of select="'var'"/>
>>>
>>> outputs: "some textvar"
>>> while
>>>
>>>    some text
>>>    <xsl:value-of select="'var'"/>
>>>
>>> outputs: " some text var"
>>>
>>> Pascal
>>>
>>> Le 20/07/2010 11:05, Anand Gade a écrit :
>>>> Hi pascal,
>>>>
>>>> http://old.nabble.com/file/p29212809/fo.txt fo.txt  Thanx for the
>>>> reply.
>>>>
>>>> In my generated .fo file these characters are displaying as boxes and
>>>> the
>>>> space is appearing in between (please find attached fo.txt).
>>>> http://old.nabble.com/file/p29212809/fo.txt fo.txt 
>>>> http://old.nabble.com/file/p29212809/code.xsl code.xsl 
>>>>
>>>> Also following the code i have written in my xslfo file for every
>>>> character
>>>> to render these characters into PDF. Below are few;
>>>>
>>>> <xsl:when test="contains($text,'&#12472;')">
>>>>                <xsl:analyze-string regex="&#12472;" select="$text">
>>>>            <xsl:matching-substring>
>>>>                    <fo:inline font-family="Mincho" 
>>>> font-size="10pt"><xsl:value-of
>>>> select="."/></fo:inline>
>>>>                    </xsl:matching-substring>
>>>>                    <xsl:non-matching-substring>
>>>>                        <xsl:call-template
>>>> name="inline-symbol-characters">
>>>>                            <xsl:with-param name="text" select="."/>
>>>>                        </xsl:call-template>
>>>>                    </xsl:non-matching-substring>           
>>>>                </xsl:analyze-string>
>>>> </xsl:when>
>>>>
>>>> <xsl:when test="contains($text,'&#12515;')">
>>>>                <xsl:analyze-string regex="&#12515;" select="$text">
>>>>            <xsl:matching-substring>
>>>>                    <fo:inline font-family="Mincho" 
>>>> font-size="10pt"><xsl:value-of
>>>> select="."/></fo:inline>
>>>>                    </xsl:matching-substring>
>>>>                    <xsl:non-matching-substring>
>>>>                        <xsl:call-template
>>>> name="inline-symbol-characters">
>>>>                            <xsl:with-param name="text" select="."/>
>>>>                        </xsl:call-template>
>>>>                    </xsl:non-matching-substring>           
>>>>                </xsl:analyze-string>
>>>> </xsl:when>
>>>>
>>>> <xsl:when test="contains($text,'&#12497;')">
>>>>                <xsl:analyze-string regex="&#12497;" select="$text">
>>>>            <xsl:matching-substring>
>>>>                    <fo:inline font-family="Mincho" 
>>>> font-size="10pt"><xsl:value-of
>>>> select="."/></fo:inline>
>>>>                    </xsl:matching-substring>
>>>>                    <xsl:non-matching-substring>
>>>>                        <xsl:call-template
>>>> name="inline-symbol-characters">
>>>>                            <xsl:with-param name="text" select="."/>
>>>>                        </xsl:call-template>
>>>>                    </xsl:non-matching-substring>           
>>>>                </xsl:analyze-string>
>>>> </xsl:when>
>>>>
>>>> - Anand Gade
>>>>
>>>>
>>>> Pascal Sancho wrote:
>>>>   
>>>>> Hi Anand,
>>>>> can you provide a *short* XSLFO snippet that shows what you describe,
>>>>> please?
>>>>>
>>>>> Pascal
>>>>>
>>>>> Le 14/07/2010 13:34, Anand Gade a écrit :
>>>>>     
>>>>>> i ama generating PDF output using Apache FOP. There are Japanese
>>>>>> characters
>>>>>> present. I am able to render these character in PDF by using MS
>>>>>> Mincho
>>>>>> font
>>>>>> and also by updating fop.xconf file for font embedding.
>>>>>>
>>>>>> After rendering the character in PDF output there is space appearing
>>>>>> between
>>>>>> two characters (Please find attached screenshots).
>>>>>>
>>>>>> Can you please guide me about how to get rid of this extra space
>>>>>> which
>>>>>> is
>>>>>> appearing between these characters.
>>>>>>
>>>>>> Thanks
>>>>>> Anand  http://old.nabble.com/file/p29160935/ScreenShot002.jpg
>>>>>> ScreenShot002.jpg 
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Space-Issue-in-PDF-output-for-Japanease-characters....-tp29160935p29639144.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to