Am Samstag, 3. Juni 2006 11:31 schrieb Martin Vermeer:

> Index: lib/lyx2lyx/LyX.py
> ===================================================================
> --- lib/lyx2lyx/LyX.py  (revision 13989)
> +++ lib/lyx2lyx/LyX.py  (working copy)
> @@ -48,7 +48,8 @@ format_relation = [("0_10",  [210], ["0.
>                     ("1_1_6fix3", [218], 
["1.1.6fix3","1.1.6fix4","1.1"]),
>                     ("1_2", [220], 
["1.2.0","1.2.1","1.2.3","1.2.4","1.2"]),
>                     ("1_3", [221], 
["1.3.0","1.3.1","1.3.2","1.3.3","1.3.4","1.3.5","1.3.6","1.3"]),
> -                   ("1_4", range(222,246), ["1.4.0cvs","1.4"])]
> +                   ("1_4", range(222,245), 
["1.4.0", "1.4.1", "1.4.1svn"]),

I noticed too that range(222,246) would not work, but range(222,245) 
returns [222, 223, ... 244], so 245 is not handled now. José, could you 
please tell us the correct solution?

> Index: lib/lyx2lyx/lyx_1_5.py
> ===================================================================
> --- lib/lyx2lyx/lyx_1_5.py      (revision 13989)
> +++ lib/lyx2lyx/lyx_1_5.py      (working copy)
> @@ -16,10 +16,28 @@
>  # along with this program; if not, write to the Free Software
>  # Foundation, Inc., 59 Temple Place - Suite 330, Boston, 
MA  02111-1307, USA.
>  
> -# convert = [[246, [convert_function1]]]
> -convert = []
> -revert  = []
> +from parser_tools import find_tokens
>  
> +##
> +#  Notes: Framed/Shaded
> +#
> +
> +def revert_framed(file):
> +    i = 0
> +    while 1:
> +        i = find_tokens(file.body, ["\\begin_inset Note 
Framed", "\\begin_inset Note Shaded"], i)
> +
> +        if i == -1:
> +            return

Here I'd like a warning:
file.warning("Converting framed/shaded note to standard note'.")

> +        file.body[i] = "\\begin_inset Note"
> +        i = i + 1
> +

Please add also an entry to development/FORMAT. Apart from that I think 
that it can go in.


Georg

Reply via email to