José Matos wrote:
Hello,
I propose to warn users of 1.5.0 regarding the downgrade to 1.4 and 1.3
documents.
I intend to commit the following patch and I would appreciate suggestion to
change the spelling, grammar and content of the note.
Regards,
Index: RELEASE-NOTES
===================================================================
--- RELEASE-NOTES (revision 19114)
+++ RELEASE-NOTES (working copy)
@@ -19,13 +19,13 @@
using the local encodings. LyX-1.5 now assumes that all layout files are
UTF-8 encoded. This means that non-ASCII style names are still allowed
but they nust be valid UTF-8 strings. One way of doing the conversion
-is to use iconv. Using bash, the script below should work:
-
-cd /path/to/layouts
-for l in *
-do
- cp $l tmp.txt
- iconv -f latin1 -t utf8 tmp.txt -o $l
+is to use iconv. Using bash, the script below should work:
+
+cd /path/to/layouts
+for l in *
+do
+ cp $l tmp.txt
+ iconv -f latin1 -t utf8 tmp.txt -o $l
done
rm tmp.txt
Attached is my take on it.
A.
Index: RELEASE-NOTES
===================================================================
--- RELEASE-NOTES (revision 19124)
+++ RELEASE-NOTES (working copy)
@@ -15,19 +15,21 @@
- User layout files must be converted to UTF-8
-In previous version, layout styles were allowed to use non-ASCII names
+In previous versions, layout styles were allowed to use non-ASCII names
using the local encodings. LyX-1.5 now assumes that all layout files are
UTF-8 encoded. This means that non-ASCII style names are still allowed
-but they nust be valid UTF-8 strings. One way of doing the conversion
-is to use iconv. Using bash, the script below should work:
-
-cd /path/to/layouts
-for l in *
-do
- cp $l tmp.txt
- iconv -f latin1 -t utf8 tmp.txt -o $l
+but they must be valid UTF-8 strings. One way of doing the conversion
+is to use iconv. Using bash, the script below should work:
+
+#! /bin/sh
+
+cd /path/to/layouts
+for l in *
+do
+ cp "$l" tmp.txt
+ iconv -f latin1 -t utf8 tmp.txt -o "$l"
done
-rm tmp.txt
+rm -f tmp.txt
- Cursor restoration problems with Multiple-View