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)
Created attachment 335562 [details] emerge --info
Created attachment 335568 [details, diff] Add depend
We can do it if you think its standard way of dealing with cyrillic (no experience, sorry).
.. is "-2011" suffix really needed?
-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.
We will pull texlive-langcyrillic only in case latex use flag is used. Is everyone fine with the attached patch?
Created attachment 335982 [details, diff] new patch
(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.
That is possible, but it means +20 mb of useless deps to be installed with LyX :(
(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.
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
(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
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
(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?
as an orthogonal solution we could introduce metapackage latexlive-lang and move all langpack logic there.
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.
(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 :)
(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.
(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
(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
(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 ?
+*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