Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 451982 - app-office/lyx without dev-texlive/texlive-langcyrillic-2011 does not work with cyrillic text
Summary: app-office/lyx without dev-texlive/texlive-langcyrillic-2011 does not work wi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal minor (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-14 07:22 UTC by Anton Kropachev
Modified: 2013-02-15 20:44 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.txt,16.91 KB, text/plain)
2013-01-14 07:23 UTC, Anton Kropachev
Details
Add depend (lyx-2.0.4.patch,352 bytes, patch)
2013-01-14 07:40 UTC, Anton Kropachev
Details | Diff
new patch (ru.patch,328 bytes, patch)
2013-01-18 00:47 UTC, pavel sanda
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Kropachev 2013-01-14 07:22:12 UTC
app-office/lyx work fine, but only with english.
With cyrillic text it gives errors.
After installation dev-texlive/texlive-langcyrillic-2011 all work fine.

Maybe lyx must depend on this package if use linguas_ru given?

Reproducible: Always

Steps to Reproduce:
1. emerge lyx
2. enter or paste cyrillic text
3. try view document(Ctrl + R)
Comment 1 Anton Kropachev 2013-01-14 07:23:01 UTC
Created attachment 335562 [details]
emerge --info
Comment 2 Anton Kropachev 2013-01-14 07:40:47 UTC
Created attachment 335568 [details, diff]
Add depend
Comment 3 pavel sanda 2013-01-15 12:57:39 UTC
We can do it if you think its standard way of dealing with cyrillic (no experience, sorry).
Comment 4 pavel sanda 2013-01-15 12:58:34 UTC
.. is "-2011" suffix  really needed?
Comment 5 Alexander Vershilov (RETIRED) gentoo-dev 2013-01-16 05:40:20 UTC
-2011 suffix is not needed and simply wrong :)

About a standart way: afaik LINGUAS variable is used for interface settings, but in texlive package it's also used to install language packages (from texlive ebuild)

	linguas_ru?    ( >=${TEXLIVE_CAT}/texlive-langcyrillic-${PV} )

because lyx doesn't depend on texlive package (so problem is not automatically solved) we need to have similar fix in lyx package.
Comment 6 pavel sanda 2013-01-18 00:46:36 UTC
We will pull texlive-langcyrillic only in case latex use flag is used.
Is everyone fine with the attached patch?
Comment 7 pavel sanda 2013-01-18 00:47:11 UTC
Created attachment 335982 [details, diff]
new patch
Comment 8 Alexis Ballier gentoo-dev 2013-01-18 11:22:53 UTC
(In reply to comment #7)
> Created attachment 335982 [details, diff] [details, diff]
> new patch

I'd prefer lyx to depend on app-text/texlive instead of duplicating the logic there.
Comment 9 pavel sanda 2013-01-18 16:26:49 UTC
That is possible, but it means +20 mb of useless deps to be installed with LyX :(
Comment 10 Alexis Ballier gentoo-dev 2013-01-18 16:57:06 UTC
(In reply to comment #9)
> That is possible, but it means +20 mb of useless deps to be installed with
> LyX :(

like what ?
app-text/texlive is a meta package for users', so I have nothing against making more deps optional and controlled via useflags.
Comment 11 pavel sanda 2013-01-18 17:02:03 UTC
I don't  have fresh install, but at least that's what I see when emerging app-text/texlive on top of what I have:

[ebuild  N     ] app-text/t1utils-1.37  166 kB
[ebuild  N     ] dev-perl/Text-Unidecode-0.40.0  101 kB
[ebuild  N     ] dev-perl/libintl-perl-1.200.0  489 kB
[ebuild  N     ] media-gfx/sam2p-0.49.1  USE="gif -examples" 550 kB
[ebuild  N     ] dev-perl/Unicode-EastAsianWidth-1.320.0  29 kB
[ebuild  N     ] app-text/texi2html-5.0-r1  USE="unicode" 15,037 kB
[ebuild  NS    ] media-libs/freetype-1.4_pre20080316-r2:1 [2.4.9-r1:2] USE="kpathsea nls -doc" 1,172 kB
[ebuild  N     ] app-text/lcdf-typetools-2.92  USE="kpathsea" 575 kB
[ebuild  N     ] dev-texlive/texlive-metapost-2011  USE="-doc -source" 397 kB
[ebuild  N     ] dev-texlive/texlive-htmlxml-2011  USE="-doc -source" 2 kB
[ebuild  N     ] dev-tex/feynmf-1.08-r3  USE="-doc" 280 kB
[ebuild  N     ] app-text/texlive-2011  USE="X png truetype xml -cjk -context -detex -doc -dvi2tty -dvipdfm -extra -games -graphics -humanities -jadetex -luatex -music -omega -pdfannotextractor -pstricks -publishers -science -tex4ht -xetex -xindy" LINGUAS="-af -ar -as -bg -bn -bo -ca -cs -cy -da -de -el -en -en_GB -eo -es -et -eu -fa -fi -fr -ga -gl -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -kn -ko -la -lo -lt -lv -ml -mn -mr -nb -nl -nn -no -or -pa -pl -pt -ro -ru -sa_IN -sk -sl -sr -sv -ta -te -th -tk -tr -uk -vi -zh" 0 kB

Total: 12 packages (11 new, 1 in new slot), Size of downloads: 18,793 kB
Comment 12 Alexis Ballier gentoo-dev 2013-01-18 17:05:31 UTC
(In reply to comment #11)
> I don't  have fresh install, but at least that's what I see when emerging
> app-text/texlive on top of what I have:
> 
> [ebuild  N     ] app-text/t1utils-1.37  166 kB
> [ebuild  N     ] dev-perl/Text-Unidecode-0.40.0  101 kB
> [ebuild  N     ] dev-perl/libintl-perl-1.200.0  489 kB
> [ebuild  N     ] media-gfx/sam2p-0.49.1  USE="gif -examples" 550 kB
> [ebuild  N     ] dev-perl/Unicode-EastAsianWidth-1.320.0  29 kB
> [ebuild  N     ] app-text/texi2html-5.0-r1  USE="unicode" 15,037 kB
> [ebuild  NS    ] media-libs/freetype-1.4_pre20080316-r2:1 [2.4.9-r1:2]
> USE="kpathsea nls -doc" 1,172 kB
> [ebuild  N     ] app-text/lcdf-typetools-2.92  USE="kpathsea" 575 kB
> [ebuild  N     ] dev-texlive/texlive-metapost-2011  USE="-doc -source" 397 kB
> [ebuild  N     ] dev-texlive/texlive-htmlxml-2011  USE="-doc -source" 2 kB
> [ebuild  N     ] dev-tex/feynmf-1.08-r3  USE="-doc" 280 kB
> [ebuild  N     ] app-text/texlive-2011  USE="X png truetype xml -cjk
> -context -detex -doc -dvi2tty -dvipdfm -extra -games -graphics -humanities
> -jadetex -luatex -music -omega -pdfannotextractor -pstricks -publishers
> -science -tex4ht -xetex -xindy" LINGUAS="-af -ar -as -bg -bn -bo -ca -cs -cy
> -da -de -el -en -en_GB -eo -es -et -eu -fa -fi -fr -ga -gl -gu -he -hi -hr
> -hsb -hu -hy -ia -id -is -it -ja -kn -ko -la -lo -lt -lv -ml -mn -mr -nb -nl
> -nn -no -or -pa -pl -pt -ro -ru -sa_IN -sk -sl -sr -sv -ta -te -th -tk -tr
> -uk -vi -zh" 0 kB
> 
> Total: 12 packages (11 new, 1 in new slot), Size of downloads: 18,793 kB

you should try with USE=-* to see the real difference
Comment 13 pavel sanda 2013-01-18 17:15:58 UTC
then I get

[ebuild  N     ] app-text/t1utils-1.37  166 kB
[ebuild  N     ] dev-texlive/texlive-metapost-2011  USE="-doc -source" 397 kB
[ebuild  N     ] media-gfx/sam2p-0.49.1  USE="-examples -gif" 550 kB
[ebuild  N     ] dev-perl/libintl-perl-1.200.0  489 kB
[ebuild  N     ] dev-tex/feynmf-1.08-r3  USE="-doc" 280 kB
[ebuild  N     ] app-text/texi2html-5.0-r1  USE="-unicode" 15,037 kB
[ebuild  N     ] app-text/lcdf-typetools-2.92  USE="kpathsea" 575 kB
[ebuild  N     ] app-text/texlive-2011  USE="-X -cjk -context -detex -doc -dvi2t ty -dvipdfm -extra -games -graphics -humanities -jadetex -luatex -music -omega -
pdfannotextractor -png -pstricks -publishers -science -tex4ht -truetype -xetex -xindy -xml" LINGUAS="-af -ar -as -bg -bn -bo -ca -cs -cy -da -de -el -en -en_GB -eo -es -et -eu -fa -fi -fr -ga -gl -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it
 -ja -kn -ko -la -lo -lt -lv -ml -mn -mr -nb -nl -nn -no -or -pa -pl -pt -ro -ru -sa_IN -sk -sl -sr -sv -ta -te -th -tk -tr -uk -vi -zh" 0 kB

Total: 8 packages (8 new), Size of downloads: 17,491 kB
Comment 14 Alexis Ballier gentoo-dev 2013-01-18 17:56:54 UTC
(In reply to comment #13)
> then I get
> 
> [ebuild  N     ] app-text/t1utils-1.37  166 kB
> [ebuild  N     ] dev-texlive/texlive-metapost-2011  USE="-doc -source" 397 kB
> [ebuild  N     ] media-gfx/sam2p-0.49.1  USE="-examples -gif" 550 kB
> [ebuild  N     ] dev-perl/libintl-perl-1.200.0  489 kB
> [ebuild  N     ] dev-tex/feynmf-1.08-r3  USE="-doc" 280 kB
> [ebuild  N     ] app-text/texi2html-5.0-r1  USE="-unicode" 15,037 kB
> [ebuild  N     ] app-text/lcdf-typetools-2.92  USE="kpathsea" 575 kB
> [ebuild  N     ] app-text/texlive-2011  USE="-X -cjk -context -detex -doc
> -dvi2t ty -dvipdfm -extra -games -graphics -humanities -jadetex -luatex
> -music -omega -
> pdfannotextractor -png -pstricks -publishers -science -tex4ht -truetype
> -xetex -xindy -xml" LINGUAS="-af -ar -as -bg -bn -bo -ca -cs -cy -da -de -el
> -en -en_GB -eo -es -et -eu -fa -fi -fr -ga -gl -gu -he -hi -hr -hsb -hu -hy
> -ia -id -is -it
>  -ja -kn -ko -la -lo -lt -lv -ml -mn -mr -nb -nl -nn -no -or -pa -pl -pt -ro
> -ru -sa_IN -sk -sl -sr -sv -ta -te -th -tk -tr -uk -vi -zh" 0 kB
> 
> Total: 8 packages (8 new), Size of downloads: 17,491 kB

I should probably make texi2html optional

lyx doesn't use metapost ? I can make that optional too.

The rest seems to be font converters, which might be useful to lyx too, no?
Comment 15 Alexander Vershilov (RETIRED) gentoo-dev 2013-01-18 19:26:02 UTC
as an orthogonal solution we could introduce metapackage latexlive-lang and move all langpack logic there.
Comment 16 pavel sanda 2013-01-18 19:47:51 UTC
The only package I see as directly usable by LyX is perhaps feynmf.

I have no hard opinions about the solution and could live even with the full app-tex/texlive dep if you see it the least painful.
Comment 17 Alexis Ballier gentoo-dev 2013-01-18 19:56:21 UTC
(In reply to comment #15)
> as an orthogonal solution we could introduce metapackage latexlive-lang and
> move all langpack logic there.

I'd rather add more useflags to texlive than splitting it in two. But that could be an idea too.

(In reply to comment #16)
> The only package I see as directly usable by LyX is perhaps feynmf.

hmm, I didn't check in details but I'm pretty sure packages like lcdf-typetools can be called by latex to convert some fonts, so lyx can use them indirectly

> I have no hard opinions about the solution and could live even with the full
> app-tex/texlive dep if you see it the least painful.

making app-text/texlive more flexible is good and not painful :)
Comment 18 pavel sanda 2013-01-18 20:02:25 UTC
(In reply to comment #17)
> > The only package I see as directly usable by LyX is perhaps feynmf.
> 
> hmm, I didn't check in details but I'm pretty sure packages like
> lcdf-typetools can be called by latex to convert some fonts, so lyx can use
> them indirectly

Well, you can indirectly use any TeX construct within LyX, but it has to be manual and then you can go with manual packages selection as well...

> > I have no hard opinions about the solution and could live even with the full
> > app-tex/texlive dep if you see it the least painful.
> 
> making app-text/texlive more flexible is good and not painful :)

At the moment the worst look 15mb of texi2html and Unicode-EastAsianWidth with 1.5mb.
Comment 19 Alexis Ballier gentoo-dev 2013-01-18 20:07:36 UTC
(In reply to comment #16)
> The only package I see as directly usable by LyX is perhaps feynmf.

by the way, does this mean lyx can use metapost ?

(In reply to comment #18)
> (In reply to comment #17)
> > > The only package I see as directly usable by LyX is perhaps feynmf.
> > 
> > hmm, I didn't check in details but I'm pretty sure packages like
> > lcdf-typetools can be called by latex to convert some fonts, so lyx can use
> > them indirectly
> 
> Well, you can indirectly use any TeX construct within LyX, but it has to be
> manual and then you can go with manual packages selection as well...

yes, that's why depending on texlive directly can help here: you can control this via useflags not by manual installation

> > > I have no hard opinions about the solution and could live even with the full
> > > app-tex/texlive dep if you see it the least painful.
> > 
> > making app-text/texlive more flexible is good and not painful :)
> 
> At the moment the worst look 15mb of texi2html and Unicode-EastAsianWidth
> with 1.5mb.

these two should really be made optional, I'll have a look at it
Comment 20 pavel sanda 2013-01-18 20:44:22 UTC
(In reply to comment #19)
> (In reply to comment #16)
> > The only package I see as directly usable by LyX is perhaps feynmf.
> 
> by the way, does this mean lyx can use metapost ?

no, not out of the box.
(but of course but lyx is very powerful to include/use almost anything
if you take the trouble to write converter plugin, iirc there is even some user script roaming around the net)

> these two should really be made optional, I'll have a look at it

thanks
Comment 21 Alexis Ballier gentoo-dev 2013-01-21 10:49:17 UTC
(In reply to comment #20)
> > these two should really be made optional, I'll have a look at it
> 
> thanks

ok so I should have made these two optional, and also metapost, in texlive-2012. could you please check if it suits you better ?
Comment 22 Alexis Ballier gentoo-dev 2013-02-15 20:44:54 UTC
+*lyx-2.0.5.1-r1 (15 Feb 2013)
+
+  15 Feb 2013; Alexis Ballier <aballier@gentoo.org> +lyx-2.0.5.1-r1.ebuild:
+  Depend on app-text/texlive so that the linguas and useflag logic can be
+  reused from this ebuild. Thanks Pavel. Bug #451982
+



now you'll have the useflags from texlive itself