Return-Path: X-Original-To: apmail-xmlgraphics-fop-users-archive@www.apache.org Delivered-To: apmail-xmlgraphics-fop-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DC7157F91 for ; Mon, 15 Aug 2011 13:43:09 +0000 (UTC) Received: (qmail 11467 invoked by uid 500); 15 Aug 2011 13:43:09 -0000 Delivered-To: apmail-xmlgraphics-fop-users-archive@xmlgraphics.apache.org Received: (qmail 11448 invoked by uid 500); 15 Aug 2011 13:43:08 -0000 Mailing-List: contact fop-users-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: fop-users@xmlgraphics.apache.org Delivered-To: mailing list fop-users@xmlgraphics.apache.org Received: (qmail 11440 invoked by uid 99); 15 Aug 2011 13:43:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2011 13:43:08 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sergiu.dumitriu@gmail.com designates 209.85.216.54 as permitted sender) Received: from [209.85.216.54] (HELO mail-qw0-f54.google.com) (209.85.216.54) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2011 13:43:02 +0000 Received: by qwc9 with SMTP id 9so4342455qwc.27 for ; Mon, 15 Aug 2011 06:42:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:organization:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=s9gnR+VJnyps5l2EC21AKE+CdtEWtyiCCJ2WV+pfqf8=; b=xn+sc0eHo+AY9SGKVjdYdfg27q2r4VcJNtgWC+OE1Thjs6nEm2P4XP1JvtN35Gf3BS rEPf3a2uQCHPsvGL8C9Wiy0UcG7LMxybbI6OWd65Fcdd5XJOYY9iyF/z07kgeII82rpc tGg1KgCMlc3CQ5HMcFZQ53k+Z5V3ATUXWqvzE= Received: by 10.224.218.132 with SMTP id hq4mr2536275qab.192.1313415761865; Mon, 15 Aug 2011 06:42:41 -0700 (PDT) Received: from [24.246.54.183] (24-246-54-183.cable.teksavvy.com [24.246.54.183]) by mx.google.com with ESMTPS id fq5sm3703290qab.7.2011.08.15.06.42.38 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 15 Aug 2011 06:42:39 -0700 (PDT) Sender: Sergiu Dumitriu Message-ID: <4E492228.9000306@xwiki.com> Date: Mon, 15 Aug 2011 09:42:00 -0400 From: Sergiu Dumitriu Organization: XWiki User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110510 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: fop-users@xmlgraphics.apache.org Subject: Re: FOP 1.0 Japanese # marks References: <32244995.post@talk.nabble.com> <4E447BD4.5080006@xwiki.com> <1313140988.38467.YahooMailClassic@web29003.mail.ird.yahoo.com> <32249879.post@talk.nabble.com> <32251273.post@talk.nabble.com> <32263205.post@talk.nabble.com> In-Reply-To: <32263205.post@talk.nabble.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 08/15/2011 05:37 AM, mike 675 wrote: > > More details: > The FontListMain utility shows that FOP can find the Japanese fonts on my > computer (Red Hat 5.5): > > Sazanami Gothic: > F137 [Sazanami Gothic, さざなみゴシック] > Sazanami Gothic Regular,normal,400 > Sazanami Gothic,normal,400 > Sazanami-Gothic-Regular,normal,400 > さざなみゴシック,normal,400 > Sazanami Mincho: > F138 [Sazanami Mincho, さざなみ明朝] > Sazanami Mincho Regular,normal,400 > Sazanami Mincho,normal,400 > Sazanami-Mincho-Regular,normal,400 > さざなみ明朝,normal,400 > > > Here is my FOP config file: > > > > > > > > > > My FO file contains Japanese text, but has the standard font family > settings: > > font-family="Helvetica,Symbol,ZapfDingbats" font-size="10pt" ^^^ font-family="Sazanami Mincho" FOP doesn't pick its own fonts from the list of available fonts, it always uses what it's been told to use. Just like in HTML+CSS, you have to specify the font-family for each element that you want to style. Fortunately, the default is inherited from the parent element, so it's enough to specify the font on the . > line-height="normal" font-selection-strategy="character-by-character" > line-height-shift-adjustment="disregard-shifts" writing-mode="lr-tb" > language="ja"> > ... > > ホットキーに代わって、ホストキーが実装されました。 > > > The PDF export gives the following errors: > > Aug 15, 2011 10:36:13 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "ン" (0x30f3, nkatakana) not available in font > "Helvetica-Bold". > Aug 15, 2011 10:36:13 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "リ" (0x30ea, rikatakana) not available in font > "Helvetica-Bold". > Aug 15, 2011 10:36:13 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "ス" (0x30b9, sukatakana) not available in font > "Helvetica-Bold". > Aug 15, 2011 10:36:13 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "ノ" (0x30ce, nokatakana) not available in font > "Helvetica-Bold". > Aug 15, 2011 10:36:13 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "発" (0x767a) not available in font "Helvetica". > Aug 15, 2011 10:36:13 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "行" (0x884c) not available in font "Helvetica". > Aug 15, 2011 10:36:13 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "日" (0x65e5) not available in font "Helvetica". > Aug 15, 2011 10:36:13 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "年" (0x5e74) not available in font "Helvetica". > Aug 15, 2011 10:36:13 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "月" (0x6708) not available in font "Helvetica". > Aug 15, 2011 10:36:13 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "パ" (0x30d1, pakatakana) not available in font "Helvetica". > Aug 15, 2011 10:36:13 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "ー" (0x30fc, prolongedkana) not available in font > "Helvetica". > Aug 15, 2011 10:36:13 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "ト" (0x30c8, tokatakana) not available in font "Helvetica". > Aug 15, 2011 10:36:14 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "バ" (0x30d0, bakatakana) not available in font > "Helvetica-Oblique". > Aug 15, 2011 10:36:14 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "ー" (0x30fc, prolongedkana) not available in font > "Helvetica-Oblique". > Aug 15, 2011 10:36:14 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "ジ" (0x30b8, zikatakana) not available in font > "Helvetica-Oblique". > Aug 15, 2011 10:36:14 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "ョ" (0x30e7, yosmallkatakana) not available in font > "Helvetica-Oblique". > Aug 15, 2011 10:36:14 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "ン" (0x30f3, nkatakana) not available in font > "Helvetica-Oblique". > Aug 15, 2011 10:36:14 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "リ" (0x30ea, rikatakana) not available in font > "Helvetica-Oblique". > Aug 15, 2011 10:36:14 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "ス" (0x30b9, sukatakana) not available in font > "Helvetica-Oblique". > Aug 15, 2011 10:36:14 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "ノ" (0x30ce, nokatakana) not available in font > "Helvetica-Oblique". > Aug 15, 2011 10:36:14 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "モ" (0x30e2, mokatakana) not available in font "Courier". > Aug 15, 2011 10:36:14 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "ノ" (0x30ce, nokatakana) not available in font "Courier". > Aug 15, 2011 10:36:14 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "ス" (0x30b9, sukatakana) not available in font "Courier". > Aug 15, 2011 10:36:14 AM org.apache.fop.events.LoggingEventListener > processEvent > WARNING: Glyph "ペ" (0x30da, pekatakana) not available in font "Courier". > > My PDF contains # throughout where Japanese glyphs should be. > > > Eric Douglas wrote: >> >> You don't supply metrics in 1.0. >> >> >> -----Original Message----- >> From: mike 675 [mailto:m_mclaug@yahoo.co.uk] >> Sent: Friday, August 12, 2011 11:35 AM >> To: fop-users@xmlgraphics.apache.org >> Subject: RE: FOP 1.0 Japanese # marks >> >> >> I see the config file format has changed from 0.20.5. >> >> 0.20.5 config file used these params: >> embed-file >> metrics-file >> >> 1.0 config file uses these params: >> embed-url >> metrics-url >> >> Am I on to something? >> >> >> mike 675 wrote: >>> >>> It's the default fop.xconf file. I haven't made any changes or >>> specified any fonts in there. >>> >>> Eric Douglas wrote: >>>> >>>> Yes and yes >>>> Your FOP should have configuration telling it what fonts are >> available. >>>> Your XSLFO should have tags in it telling what font to use. >>>> If you can provide more details about what you're doing someone may >>>> provide more details about what you're missing. >>>> Are you using fop.xconf file? What's that look like? >>>> >>>> >>>> -----Original Message----- >>>> From: michael mclaughlin [mailto:m_mclaug@yahoo.co.uk] >>>> Sent: Friday, August 12, 2011 5:23 AM >>>> To: fop-users@xmlgraphics.apache.org >>>> Subject: Re: FOP 1.0 Japanese # marks >>>> >>>> Do you mean configure FOP 1.0 to use a Japanese font? >>>> Or is there an XSL stylesheet option to do this? >>>> Or do I manually edit the .fo file. >>>> Thanks, >>>> Mike >>>> >>>> >>>> --- On Fri, 12/8/11, Sergiu Dumitriu wrote: >>>> >>>>> From: Sergiu Dumitriu >>>>> Subject: Re: FOP 1.0 Japanese # marks >>>>> To: fop-users@xmlgraphics.apache.org >>>>> Date: Friday, 12 August, 2011, 2:03 >>>>> On 08/11/2011 03:48 PM, mike 675 >>>>> wrote: >>>>>> >>>>>> I used to use FOP 0.20.5 to build Japanese PDFs and >>>>> they looked fine. >>>>>> >>>>>> Now after upgrading to FOP 1.0 the PDF build completes >>>>> with no errors. But >>>>>> the PDF file is full of # marks. >>>>>> I am running on Red Hat 5.5. >>>>>> >>>>>> >>>>> >>>>> # usually means that the font is missing those characters. >>>>> Make sure >>>>> you've configured your FO to use a font that does cover the Japanese >> >>>>> Unicode range. -- Sergiu Dumitriu http://purl.org/net/sergiu/ --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org