ctests failing on current master

Scott Kostyshak skostysh at lyx.org
Mon Sep 2 20:28:40 UTC 2024


On Mon, Sep 02, 2024 at 01:20:33PM GMT, Udicoudco wrote:

> > > > > >> export/doc/ja/Customization_pdf5_systemF

> > > What fonts for example are you using for the japanese tests?
> > > What is the error you get with the Japanese Customization doc
> > > test?
> >
> > I get the following error:
> >
> >   ! Package polyglossia Error: The current main roman font, name, does not
> >   (polyglossia)                contain the "CJK" script!
> >   (polyglossia)                Please define \cjkfont with \newfontfamily
> >   (polyglossia)                command
> 
> Hmmm, and is this new?

I think so, the test passes on a build from 2024-07-13.

> > > Or even better, is there a way to manually run a specific test?
> >
> > I don't know if there is a general way.
> >
> > > If I simply open the Japanese customization guide and check
> > > the use non-TeX fonts box, I don't see any fonts selected,
> > > so I could not tell what fonts were being used in the test
> > > that was failing.
> >
> > Strange, when I click on the use non-TeX fonts box, I get the attached
> > (that is, I did not select those "IPA*" fonts myself). Maybe it is
> > because those fonts aren't installed on your system that LyX does not
> > show them to you?
> 
> I indeed do not have them installed. After installing the fonts, they
> do appear in the GUI.
> I remembered that LyX indicates such situation by showing the selected
> font in the GUI

> with a "not installed" string or something similar.

Yes that's what I remember also. I guess it didn't do it this time since
the check box wasn't already checked, but not sure what's best.

> In any case, Inspecting the font I see
> 
> otfinfo -s ipamincho.ttf
>     hani        CJK Ideographic
>     kana        Hiragana/Katakana
>     kana.JAN    Hiragana/Katakana/Japanese
>     latn        Latin
> 
> which means the font does contain the CJK script (hani),
> and I don't get any error compiling the Japanese Customization
> manual.
> 
> Can you inspect the font you have installed, Scott?

Interesting, I don't have any file on my computer named ipamincho.ttf.

$ locate -i ipamincho.ttf
$ locate -i mincho.ttf
/etc/alternatives/fonts-japanese-mincho.ttf
/usr/share/fonts/truetype/fonts-japanese-mincho.ttf
/usr/share/fonts/truetype/takao-mincho/TakaoMincho.ttf
/usr/share/fonts/truetype/takao-mincho/TakaoPMincho.ttf
/var/lib/dpkg/alternatives/fonts-japanese-mincho.ttf
$ 

$ otfinfo -s /usr/share/fonts/truetype/fonts-japanese-mincho.ttf
hani		CJK Ideographic
kana		Hiragana/Katakana
kana.JAN	Hiragana/Katakana/Japanese
latn		Latin

> I installed it from
> https://en.maisfontes.com/ipaexmincho.font

I installed it from the Ubuntu repositories. It looks like (https://gitlab.com/scottkosty/lyx-tester/-/blob/master/lyx-tester?ref_type=heads) I installed the following packages:

fonts-ipafont-mincho fonts-takao-mincho fonts-ipafont-nonfree-jisx0208 fonts-ipaexfont-mincho
fonts-ipafont fonts-hosny-amiri fonts-baekmuk fonts-unfonts-extra fonts-ipaexfont

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240902/79e92471/attachment.asc>


More information about the lyx-devel mailing list