RE: Bullet points in japanese
Hi Andreas Indeed your reply helps. We build in English and in Japanese. The bullet point appears correctly for English; in Japanese it leaves a blank, not #. We don't have Symbol font installed in layout/fonts; only Arial, IPAGothic, etc. So, in English, is the bullet point using the Arial font (as specified in the gentext en.xml file as #8226;)? If I changed Symbol to IPAGothic - like below - is there a risk of skewing up the English output? !-- Fallback font used for Unicode symbols such as right arrow -- xsl:param name=symbol.font.family select='IPAGothic,Symbol,ZapfDingbats,LucidaUnicode' / xsl:template match=[EMAIL PROTECTED] = 'symbolfont'] fo:inline font-family=IPAGothic xsl:call-template name=inline.charseq / /fo:inline /xsl:template Regards Akagi -Original Message- From: Andreas L Delmelle [mailto:[EMAIL PROTECTED] Sent: Monday, January 14, 2008 5:03 PM To: fop-users@xmlgraphics.apache.org Subject: Re: Bullet points in japanese On Jan 14, 2008, at 16:17, Akagi Kobayashi wrote: Hi Could you help me set the IPAGothic font as the font for the list - so that the bullets show? Bullets in IPAGothic (and in MS fonts) are #12539; (#x2022 doesn't work for me.). Setting the bullet in common/ja.xml l:dingbat key=bullet text=#9679;/ as such doesn't work. In the custom stylesheet, we have the following section: !-- Fallback font used for Unicode symbols such as right arrow -- xsl:param name=symbol.font.family select='Symbol,ZapfDingbats,LucidaUnicode' / I'm afraid that, as long as you don't specify the correct font-family as the first one, you won't get your bullets... :( Reason is that font-selection-strategy is unimplemented for now. FOP only looks at the first font-family (Symbol), and if that font does not have a glyph for that codepoint, then you get the dreaded '#' in your PDF... xsl:template match=[EMAIL PROTECTED] = 'symbolfont'] fo:inline font-family=Symbol xsl:call-template name=inline.charseq / /fo:inline /xsl:template I tried adding the font name after LucindaUnicode, but that didn't work! As stated above: it won't work, unless the 'IPAGothic' font is the first one in the list (only the first font-family is used). HTH! Cheers Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bullet points in japanese
From: [EMAIL PROTECTED] Subject:Re: Bullet points in japanese Date: January 16, 2008 20:19:25 GMT+01:00 To: [EMAIL PROTECTED] Just noticed that I originally replied to Akagi off-list, but I think the info might be useful to other users as well, so... On Jan 16, 2008, at 11:23, Akagi Kobayashi wrote: Hi Akagi Indeed your reply helps. We build in English and in Japanese. The bullet point appears correctly for English; in Japanese it leaves a blank, not #. We don't have Symbol font installed in layout/fonts; only Arial, IPAGothic, etc. So, in English, is the bullet point using the Arial font (as specified in the gentext en.xml file as #8226;)? Can you give a little more context? AFAICT, I see two possible scenarios: a) the stylesheet determines only the codepoint to use for list- bullets based on 'en.xml' or 'ja.xml' Japanese - #x25CF; English - #x2022; b) the stylesheet determines both font-family and codepoint based on those two files If the choice of font-family is determined in the stylesheet, then it becomes possible to have both languages render correctly, even with FOP's current limitation. If I changed Symbol to IPAGothic - like below - is there a risk of skewing up the English output? Possibly. I don't have the IPAGothic font to test with, but if it does not contain a glyph for both codepoints, then you risk So, maybe what you have below needs to be supplemented with an xsl:choose, that creates a font-family attribute with the right value. I'm not sure how your stylesheet can reference the language property, but let's say that's represented by '@xml:lang', then: !-- Fallback font used for Unicode symbols such as right arrow -- xsl:param name=symbol.font.family select='IPAGothic,Symbol,ZapfDingbats,LucidaUnicode' / This will make sure that all templates that use this parameter, will use that font-family list. Only, as mentioned, FOP would eventually only use the 'IPAGothic' font. Maybe you would need something like: xsl:param name=symbol.font.family xsl:choose xsl:when test=starts-with(@xml:lang, 'en')'Arial'/xsl:when xsl:when test=starts-with(@xml:lang, 'ja')'IPAGothic'/ xsl:when ... /xsl:choose /xsl:param xsl:template match=[EMAIL PROTECTED] = 'symbolfont'] fo:inline font-family=IPAGothic xsl:call-template name=inline.charseq / /fo:inline /xsl:template This template is unrelated to the above parameter. It would force all symbol role=symbolfont nodes in the source document to use the IPAGothic font, so depending on the context, it could be safer/ cleaner to make it use that xsl:param. xsl:template match=[EMAIL PROTECTED]'symbolfont'] fo:inline font-family={$symbol.font.family} xsl:call-template name=inline.charseq / /fo:inline /xsl:template !!! Be careful if the parameter is global, and the fo:inline could be in a different language. In that case, it may become necessary to redo the xsl:choose locally in the template to obtain the correct effect. HTH! Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Bullet points in japanese
Could you help me set the IPAGothic font as the font for the list - so that the bullets show? Bullets in IPAGothic (and in MS fonts) are #12539; (#x2022 doesn't work for me.). Setting the bullet in common/ja.xml l:dingbat key=bullet text=#9679;/ as such doesn't work. In the custom stylesheet, we have the following section: !-- Fallback font used for Unicode symbols such as right arrow -- xsl:param name=symbol.font.family select='Symbol,ZapfDingbats,LucidaUnicode' / xsl:template match=[EMAIL PROTECTED] = 'symbolfont'] fo:inline font-family=Symbol xsl:call-template name=inline.charseq / /fo:inline /xsl:template I tried adding the font name after LucindaUnicode, but that didn't work! Many thanks! Akagi Kobayashi, Interpreter/Translator/Technical Writer Valista -Original Message- From: Chris Bowditch [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 30, 2007 4:12 PM To: fop-users@xmlgraphics.apache.org Subject: Re: Bullet points in japanese Akagi K wrote: Bullet points in Japanese (IPA font) do not show, when using itemizedlist/listitem. Could anyone please show me where to set this? I can see big bullet points in list.xml, but... could it be font dependent? Yes the glyphs available depend on the font-family selected in your FO. List items are split into Labels and Body elements. Its completely normal to use one font for the label and a different font for the body. A lot of bullet style glpyhs are available in the ZapfDingbats font. Then you can use a Font containing Japanese glyphs for the list body. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bullet points in japanese
On Jan 14, 2008, at 16:17, Akagi Kobayashi wrote: Hi Could you help me set the IPAGothic font as the font for the list - so that the bullets show? Bullets in IPAGothic (and in MS fonts) are #12539; (#x2022 doesn't work for me.). Setting the bullet in common/ja.xml l:dingbat key=bullet text=#9679;/ as such doesn't work. In the custom stylesheet, we have the following section: !-- Fallback font used for Unicode symbols such as right arrow -- xsl:param name=symbol.font.family select='Symbol,ZapfDingbats,LucidaUnicode' / I'm afraid that, as long as you don't specify the correct font-family as the first one, you won't get your bullets... :( Reason is that font-selection-strategy is unimplemented for now. FOP only looks at the first font-family (Symbol), and if that font does not have a glyph for that codepoint, then you get the dreaded '#' in your PDF... xsl:template match=[EMAIL PROTECTED] = 'symbolfont'] fo:inline font-family=Symbol xsl:call-template name=inline.charseq / /fo:inline /xsl:template I tried adding the font name after LucindaUnicode, but that didn't work! As stated above: it won't work, unless the 'IPAGothic' font is the first one in the list (only the first font-family is used). HTH! Cheers Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bullet points in japanese
Bullet points in Japanese (IPA font) do not show, when using itemizedlist/listitem. Could anyone please show me where to set this? I can see big bullet points in list.xml, but... could it be font dependent? Many Thanks Akagi Posting again on this subject, as I can't see the mail I posted yesterday on the forum. -- View this message in context: http://www.nabble.com/Bullet-points-in-japanese-tf4718591.html#a13489081 Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Bullet points in japanese
-Message d'origine- De : Akagi K [mailto:[EMAIL PROTECTED] Envoyé : mardi 30 octobre 2007 14:50 Bullet points in Japanese (IPA font) do not show, when using itemizedlist/listitem. Could anyone please show me where to set this? I can see big bullet points in list.xml, but... could it be font dependent? Many Thanks Akagi Posting again on this subject, as I can't see the mail I posted yesterday on the forum. Hi, As you said, bullet is the character #x2022; , and the used font must contain a glyph to figure it. The simplest way to be sure that you use a font containing the glyph for bullet is to use one of the 14 base fonts (Helvetica, Times, Courier, or Symbol). Pascal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bullet points in japanese
Akagi K wrote: Bullet points in Japanese (IPA font) do not show, when using itemizedlist/listitem. Could anyone please show me where to set this? I can see big bullet points in list.xml, but... could it be font dependent? Yes the glyphs available depend on the font-family selected in your FO. List items are split into Labels and Body elements. Its completely normal to use one font for the label and a different font for the body. A lot of bullet style glpyhs are available in the ZapfDingbats font. Then you can use a Font containing Japanese glyphs for the list body. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]