Re: Forgotten format bump on transparency changes?
Koji Yokota <[email protected]> Thu, 30 Jul 2026 19:13:47 +0900
| Newsgroups | gmane.editors.lyx.devel |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail=_C61514F8-13C0-4615-972D-1DE8D351B8D4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > 2026/07/29 18:12=E3=80=81Pavel Sanda <[email protected]>=E3=81=AE=E3=83=A1=E3= =83=BC=E3=83=AB: >=20 > On Wed, Jul 29, 2026 at 08:43:42AM +0000, Udi Fogiel via lyx-devel = wrote: >> On Wednesday, July 29th, 2026 at 11:35 AM, Pavel Sanda = <[email protected]> wrote: >>=20 >>> So again - is there good reason to support alpha for documents? >>=20 >> To support transparency in the LaTeX output in the future? >=20 > I don't really have opinion about that and I leave that decision to = whoever is interested. > We just need to fix the master either way. I see that the multiple index feature saves color settings in the = document, so if there=E2=80=99s no strong objection, I=E2=80=99d like to = bump up the format number as attached. For backward compatibility, = transparent colors are simply converted to solid colors. =46rom the view point of users who don=E2=80=99t care about where = settings are saved, it would be better that the index color settings = also accepts the alpha values as other color settings. Also, it would be good for future extensions :) Koji --Apple-Mail=_C61514F8-13C0-4615-972D-1DE8D351B8D4 Content-Disposition: attachment; filename=bumpup.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="bumpup.patch" Content-Transfer-Encoding: quoted-printable diff=20--git=20a/development/FORMAT=20b/development/FORMAT=0Aindex=20= 9ffd2926b4..0e9e95f012=20100644=0A---=20a/development/FORMAT=0A+++=20= b/development/FORMAT=0A@@=20-7,6=20+7,14=20@@=20changes=20happened=20in=20= particular=20if=20possible.=20A=20good=20example=20would=20be=0A=20=0A=20= -----------------------=0A=20=0A+2026-07-30=20Koji=20Yokota=20= <[email protected]>=0A+=09*=20Format=20incremented=20to=20655:=0A+=09=20=20= Support=20ARGB=20colors.=20\color=20now=20takes=2032bit=20hexnames=20= instead=20of=2016bit=0A+=09=20=20in=20the=20form=20of:=0A+=09=20=20=20=20= =20\color=20<#AARRGGBB>=20<#AARRGGBB>=0A+=09=20=20where=20the=20first=20= and=20second=20arguments=20are=20light=20and=20dark=20colors,=0A+=09=20=20= respectively.=0A+=0A=202026-07-24=20J=C3=BCrgen=20Spitzm=C3=BCller=20= <[email protected]>=0A=20=09*=20Format=20incremented=20to=20654:=20Support=20= some=20specific=20minted=20languages.=0A=20=09=20=20-=20These=20have=20= other=20names=20than=20the=20listings=20ones=20or=20are=20categorized=20= as=20dialects.=0Adiff=20--git=20a/lib/lyx2lyx/lyx_2_6.py=20= b/lib/lyx2lyx/lyx_2_6.py=0Aindex=201f69a66711..68969a9191=20100644=0A---=20= a/lib/lyx2lyx/lyx_2_6.py=0A+++=20b/lib/lyx2lyx/lyx_2_6.py=0A@@=20-1525,6=20= +1525,49=20@@=20def=20revert_mintedlangs(document):=0A=20=20=20=20=20=20=20= =20=20=20=20=20=20lps_res.append(l)=0A=20=20=20=20=20=20=20=20=20= document.body[k]=20=3D=20"lstparams=20\"%s\""=20%=20",".join(lps_res)=0A=20= =0A+def=20revert_hex32colors(document):=0A+=20=20=20=20"""Revert=2032bit=20= ARGB=20hex=20colors=20to=2016bit=20RGB"""=0A+=20=20=20=20i=20=3D=200=0A+=20= =20=20=20while=20True:=0A+=20=20=20=20=20=20=20=20i=20=3D=20= find_token(document.header,=20"\\color",=20i=20+=201)=0A+=20=20=20=20=20=20= =20=20if=20i=20=3D=3D=20-1:=0A+=20=20=20=20=20=20=20=20=20=20=20=20break=0A= +=20=20=20=20=20=20=20=20cn=20=3D=20get_quoted_value(document.header,=20= "\\color",=20i,=20i=20+=201)=0A+=0A+=20=20=20=20=20=20=20=20hex32colors=20= =3D=20[]=0A+=20=20=20=20=20=20=20=20hex16colors=20=20=3D=20[]=0A+=20=20=20= =20=20=20=20=20hex32colors=20=3D=20cn.split()=0A+=20=20=20=20=20=20=20=20= for=20col=20in=20hex32colors:=0A+=20=20=20=20=20=20=20=20=20=20=20=20if=20= col.startswith("#"):=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= if=20len(col)=20=3D=3D=209:=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20hex16colors.append("#"=20+=20col[3:])=0A+=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20elif=20len(col)=20=3D=3D=207:=0A+=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= hex16colors.append(col)=0A+=20=20=20=20=20=20=20=20=20=20=20=20else:=0A+=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20hex16colors.append(col)=0A+=20= =20=20=20=20=20=20=20document.header[i]=20=3D=20"\\color=20%s"=20%=20'=20= '.join(hex16colors)=0A+=0A+=20=20=20=20i=20=3D=200=0A+=20=20=20=20while=20= True:=0A+=20=20=20=20=20=20=20=20i=20=3D=20find_token(document.body,=20= "\\color",=20i=20+=201)=0A+=20=20=20=20=20=20=20=20if=20i=20=3D=3D=20-1:=0A= +=20=20=20=20=20=20=20=20=20=20=20=20return=0A+=20=20=20=20=20=20=20=20= cn=20=3D=20get_quoted_value(document.body,=20"\\color",=20i,=20i=20+=20= 1)=0A+=0A+=20=20=20=20=20=20=20=20hex32colors=20=3D=20[]=0A+=20=20=20=20=20= =20=20=20hex16colors=20=20=3D=20[]=0A+=20=20=20=20=20=20=20=20= hex32colors=20=3D=20cn.split()=0A+=20=20=20=20=20=20=20=20for=20col=20in=20= hex32colors:=0A+=20=20=20=20=20=20=20=20=20=20=20=20if=20= col.startswith("#"):=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= if=20len(col)=20=3D=3D=209:=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20hex16colors.append("#"=20+=20col[3:])=0A+=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20elif=20len(col)=20=3D=3D=207:=0A+=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= hex16colors.append(col)=0A+=20=20=20=20=20=20=20=20=20=20=20=20else:=0A+=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20hex16colors.append(col)=0A+=20= =20=20=20=20=20=20=20document.body[i]=20=3D=20"\\color=20%s"=20%=20'=20= '.join(hex16colors)=0A+=0A+=0A=20##=0A=20#=20Conversion=20hub=0A=20#=0A= @@=20-1541,11=20+1584,13=20@@=20convert=20=3D=20[=0A=20=20=20=20=20[651,=20= []],=0A=20=20=20=20=20[652,=20[convert_removed_numeric]],=0A=20=20=20=20=20= [653,=20[]],=0A-=20=20=20=20[654,=20[]]=0A+=20=20=20=20[654,=20[]],=0A+=20= =20=20=20[655,=20[]]=0A=20]=0A=20=0A=20=0A=20revert=20=3D=20[=0A+=20=20=20= =20[654,=20[revert_hex32colors]],=0A=20=20=20=20=20[653,=20= [revert_mintedlangs]],=0A=20=20=20=20=20[652,=20[revert_specialfonts]],=0A= =20=20=20=20=20[651,=20[revert_numeric]],=0Adiff=20--git=20= a/src/version.h=20b/src/version.h=0Aindex=208b648d0726..8a494df25b=20= 100644=0A---=20a/src/version.h=0A+++=20b/src/version.h=0A@@=20-32,8=20= +32,8=20@@=20extern=20char=20const=20*=20const=20lyx_version_info;=0A=20=0A= =20//=20Do=20not=20remove=20the=20comment=20below,=20so=20we=20get=20= merge=20conflict=20in=0A=20//=20independent=20branches.=20Instead=20add=20= your=20own.=0A-#define=20LYX_FORMAT_LYX=20654=20//=20spitz:=20minted=20= langs=0A-#define=20LYX_FORMAT_TEX2LYX=20654=0A+#define=20LYX_FORMAT_LYX=20= 655=20//=20koji:=20ARGB=20colors=0A+#define=20LYX_FORMAT_TEX2LYX=20655=0A= =20=0A=20#if=20LYX_FORMAT_TEX2LYX=20!=3D=20LYX_FORMAT_LYX=0A=20#ifndef=20= _MSC_VER=0A= --Apple-Mail=_C61514F8-13C0-4615-972D-1DE8D351B8D4 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- lyx-devel mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-devel --Apple-Mail=_C61514F8-13C0-4615-972D-1DE8D351B8D4--