Discussion:
Debian release-notes: enable PDF build for Japanese ?
(too old to reply)
Holger Wansing
2017-06-15 20:30:01 UTC
Permalink
Hi,

I have just sent the following mail to henrich.
Sending it to the mailinglist would not work IMO, because of too big
attachments. So I sent here only the patch.

Holger




Date: Thu, 15 Jun 2017 22:01:22 +0200
From: Holger Wansing <***@mailbox.org>
To: Hideki Yamane <***@debian.or.jp>
Subject: Debian release-notes: enable PDF build for Japanese ?


Hi henrich,


I just managed to get the PDF build successfully running for Japanese
(that is currently disabled for the release-notes, but now possible due
to improvements in dblatex).

Attached is a patch to introduce this.
It moves font selection from the Makefile into a separate xetex_param.xsl
file: there vlgothic fonts are selected for Japanese, and for all other
languages the same fonts as before are used.
It also switches ja from xmlroff to dblatex.

I have attached Japanese variants of the release-notes for amd64, for you
to check the result: the PDF and also the txt and the html variants, because
they have also changed (because the whole build process for Japanese is
switched from xmlroff to dblatex).
Could you take the time to check, if everything is fine?

When building the PDF, I get the following notes:

Character U+30B1 (ケ) not in font '[lmmono10-italic]'
Character U+30B8 (ã‚ž) not in font '[lmmono10-italic]'
Character U+30C3 (ッ) not in font '[lmmono10-italic]'
Character U+30D1 (パ) not in font '[lmmono10-italic]'
Character U+30FC (ヌ) not in font '[lmmono10-italic]'

What are these characters? Can you see places, where they are missing?
And even if they are missing somewhere, maybe we can enable the PDF build
nevertheless, because it's better with the missing characters then having
no PDF at all?


Thanks

So long
Holger
--
Holger Wansing <***@mailbox.org>
PGP-Finterprint: 496A C6E8 1442 4B34 8508 3529 59F1 87CA 156E B076
--
Holger Wansing <***@mailbox.org>
PGP-Finterprint: 496A C6E8 1442 4B34 8508 3529 59F1 87CA 156E B076
victory
2017-06-16 10:00:02 UTC
Permalink
On Thu, 15 Jun 2017 22:05:17 +0200
Post by Holger Wansing
I just managed to get the PDF build successfully running for Japanese
(that is currently disabled for the release-notes, but now possible due
to improvements in dblatex).
Attached is a patch to introduce this.
It moves font selection from the Makefile into a separate xetex_param.xsl
file: there vlgothic fonts are selected for Japanese, and for all other
languages the same fonts as before are used.
It also switches ja from xmlroff to dblatex.
I have attached Japanese variants of the release-notes for amd64, for you
to check the result: the PDF and also the txt and the html variants, because
they have also changed (because the whole build process for Japanese is
switched from xmlroff to dblatex).
Could you take the time to check, if everything is fine?
actually it could be built on local vm even when it got disabled long time ago;
the cause might be lack of fonts on -master, though,
just a guess as no log for that time remain now;
the repeated logs were completely cipher for me at the time :p

early this year I tried using clean stretch,
but some required packages cannot be co-installed at the time;
I haven't managed to have time to play with it again :p
thanks for taking care of the translations :D
Post by Holger Wansing
Character U+30B1 (ケ) not in font '[lmmono10-italic]'
Character U+30B8 (ジ) not in font '[lmmono10-italic]'
Character U+30C3 (ッ) not in font '[lmmono10-italic]'
Character U+30D1 (パ) not in font '[lmmono10-italic]'
Character U+30FC (ー) not in font '[lmmono10-italic]'
What are these characters? Can you see places, where they are missing?
And even if they are missing somewhere, maybe we can enable the PDF build
nevertheless, because it's better with the missing characters then having
no PDF at all?
those are so-called Katakana and
what this log shows is vlgothic is not used for them;

set****font vars are also needed in addition to setCJK****font
as xsl:otherwise clause is not applied there
--
victory
no need to CC me :-)
Holger Wansing
2017-06-18 21:10:01 UTC
Permalink
Hi,
Post by victory
On Thu, 15 Jun 2017 22:05:17 +0200
Post by Holger Wansing
Character U+30B1 (ケ) not in font '[lmmono10-italic]'
Character U+30B8 (ã‚ž) not in font '[lmmono10-italic]'
Character U+30C3 (ッ) not in font '[lmmono10-italic]'
Character U+30D1 (パ) not in font '[lmmono10-italic]'
Character U+30FC (ヌ) not in font '[lmmono10-italic]'
What are these characters? Can you see places, where they are missing?
And even if they are missing somewhere, maybe we can enable the PDF build
nevertheless, because it's better with the missing characters then having
no PDF at all?
those are so-called Katakana and
what this log shows is vlgothic is not used for them;
set****font vars are also needed in addition to setCJK****font
as xsl:otherwise clause is not applied there
Yes, you are right! I have added the lines from xsl:otherwise clause
to the ja clause, a new patch is attached.
That way the ja PDF builds without any error or notes. Many thanks!

I will send a new PDF to translator henrich for proofreading.


Holger
--
============================================================
Created with Sylpheed 3.5.0 under
D E B I A N L I N U X 8 . 0 " J E S S I E " .

Registered Linux User #311290 - https://linuxcounter.net/
============================================================
Hideki Yamane
2017-06-22 03:30:02 UTC
Permalink
Hi,

On Thu, 15 Jun 2017 22:05:17 +0200
Post by Holger Wansing
I have just sent the following mail to henrich.
Sending it to the mailinglist would not work IMO, because of too big
attachments. So I sent here only the patch.
I'll take time in this weekend and look into it.
--
Regards,

Hideki Yamane henrich @ debian.or.jp/org
http://wiki.debian.org/HidekiYaman
Holger Wansing
2017-07-13 20:10:02 UTC
Permalink
Hi,
Post by victory
Hi,
On Thu, 15 Jun 2017 22:05:17 +0200
Post by Holger Wansing
I have just sent the following mail to henrich.
Sending it to the mailinglist would not work IMO, because of too big
attachments. So I sent here only the patch.
I'll take time in this weekend and look into it.
Ping?
--
Holger Wansing <***@mailbox.org>
PGP-Finterprint: 496A C6E8 1442 4B34 8508 3529 59F1 87CA 156E B076
Loading...