Ryan Lortie 9a7a98bf3b glib-compile-schemas: get strict about whitespace
It's important to have strict rules for handling of whitespace in
translated strings in GSettings schema files so that the tools
extracting the messages will end up with the same messages as the
runtime calling gettext().

The rules are designed to be simple and unambiguous yet cover most
normal uses in a convenient way.

Those rules are as follows (with rationale):

  - for <default> tags, the text content has its leading and trailing
    whitespace stripped off, but internal whitespace is not modified in
    any way.

    This allows for slightly more flexible use of whitespace without
    causing that whitespace to appear in the strings for translation.

  - for <summary> and <description> tags, the content is split into
    paragraphs.  Paragraphs are separated by two or more sequential
    newline characters.  Each paragraph has its leading and trailing
    whitespace removed and all other whitespace is normalised to a
    single ascii space character.  Finally, the paragraphs are rejoined,
    inserting exactly two newlines between them.

    This allows for longer explanations (particularly in the description
    tag) using a natural format that, when normalised, will display
    nicely in toolkits.

This patch implements the rules for <default> tags.  The schema compiler
currently ignores <summary> and <description> tags.
2012-01-28 01:23:05 +01:00
..
2012-01-25 21:05:27 -05:00
2010-09-02 22:36:47 +03:00
2011-09-04 17:50:41 -04:00
2012-01-18 13:28:00 -05:00
2011-06-04 10:45:54 -04:00
2009-03-31 19:39:16 -04:00
2011-12-10 17:23:28 -05:00
2011-12-10 17:23:28 -05:00
2011-12-10 17:23:28 -05:00
2011-12-08 18:05:14 -05:00
2011-10-18 17:12:33 +01:00
2010-07-12 18:30:14 -04:00
2011-10-18 17:12:33 +01:00
2010-07-05 00:56:12 -04:00
2011-08-29 14:49:32 -04:00
2010-03-26 09:30:25 -04:00
2010-07-12 18:30:14 -04:00
2010-07-12 18:30:14 -04:00
2011-08-29 14:49:32 -04:00
2010-07-12 18:30:14 -04:00
2011-06-14 21:06:17 -04:00
2011-12-10 20:47:22 -05:00
2011-10-18 17:12:33 +01:00
2010-07-07 19:53:22 -04:00
2011-08-29 14:49:32 -04:00
2012-01-01 19:01:14 +01:00
2011-08-29 14:49:32 -04:00
2010-01-12 16:34:18 +01:00
2012-01-25 21:05:27 -05:00
2011-06-07 08:55:31 +08:00
2011-08-29 14:49:32 -04:00
2012-01-13 17:12:45 +01:00
2011-08-29 14:49:32 -04:00
2010-07-07 19:53:22 -04:00
2011-02-08 10:05:00 -05:00
2011-12-21 12:36:19 +01:00
2011-12-08 18:05:13 -05:00
2011-12-08 18:05:12 -05:00
2011-12-10 21:46:39 -05:00
2011-12-10 21:46:39 -05:00
2011-02-08 10:05:00 -05:00
2010-06-04 19:03:38 +02:00
2010-11-28 23:55:43 -05:00
2011-06-04 18:48:19 -04:00
2010-08-19 16:32:37 -04:00
2011-08-29 14:49:32 -04:00
2012-01-13 17:12:45 +01:00
2012-01-13 17:12:57 +01:00
2011-01-09 21:45:20 +01:00
2011-08-29 14:49:32 -04:00
2010-04-16 23:23:40 -04:00
2012-01-20 08:03:38 -05:00
2012-01-27 03:00:23 -05:00
2011-12-08 18:05:14 -05:00
2012-01-06 16:58:57 +07:00
2011-10-16 21:41:15 -04:00
2011-08-04 08:54:55 +02:00
2011-10-02 22:33:10 -04:00
2011-06-14 18:51:57 -04:00
2011-05-05 14:09:11 -04:00
2011-10-03 14:06:47 -04:00
2011-10-03 14:06:47 -04:00
2012-01-13 17:12:57 +01:00
2009-07-05 22:35:55 -04:00
2011-08-29 14:49:32 -04:00
2012-01-25 21:05:27 -05:00
2010-07-07 19:53:22 -04:00
2011-08-29 14:49:32 -04:00