+2005-07-07 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
+
+ * FORMAT: document change to format 242.
+
2005-05-20 Michael Schmitt <michael.schmitt@teststep.org>
* Win32/fakeconfig/lyxrc.defaults: rename "ASCII"
LyX file-format changes
-----------------------
+2005-06-21 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
+
+ * format incremented to 242. There is no file format per
+ se, but the "frenchb" language has been removed from lib/language
+ and has to be translated to "french" by lyx2lyx.
+
2005-02-03 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* format incremented to 241.
+2005-06-16 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
+
+ * languages: remove language "frenchb"; with language "french"
+ provide default values for \og and \fg if needed; use babel option
+ "canadien" for French Canadian
+
2005-06-30 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* reLyX/syntax.default: recognize optional argument of \frame
british british "British" false iso8859-1 en_GB ""
bulgarian bulgarian "Bulgarian" false cp1251 bg_BG ""
canadian canadian "Canadian" false iso8859-1 en_CA ""
-canadien frenchb "French Canadian" false iso8859-1 fr_CA ""
+canadien canadien "French Canadian" false iso8859-1 fr_CA ""
catalan catalan "Catalan" false iso8859-1 ca_ES ""
croatian croatian "Croatian" false iso8859-2 hr_HR ""
czech czech "Czech" false iso8859-2 cs_CZ ""
#and what country code should esperanto have?? (Garst)
estonian estonian "Estonian" false iso8859-1 et_EE ""
finnish finnish "Finnish" false iso8859-1 fi_FI ""
-frenchb frenchb "French" false iso8859-1 fr_FR ""
-french french "French (GUTenberg)" false iso8859-1 fr_FR ""
+# We redefine \og and \fg (guillemets) for older french language definitions
+french french "French" false iso8859-1 fr_FR "\addto\extrasfrench{\providecommand{\og}{\leavevmode\flqq~}\providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}}"
galician galician "Galician" false iso8859-1 gl_ES ""
# There are two Galicia's one in Spain one in E.Europe. Because of
# the font encoding I am assuming this is the one in Spain. (Garst)
+2005-06-21 Georg Baum <Georg.Baum@post.rwth-aachen.de>
+
+ * lyx_1_4.py (convert_french): change language frenchb to french
+ for format 242.
+
2005-07-07 José Matos <jamatos@lyx.org>
* LyX.py (read): Ignore whitelines on header. Fix reading the
("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"]),
- ("1_4", range(223,242), ["1.4.0cvs","1.4"])]
+ ("1_4", range(223,243), ["1.4.0cvs","1.4"])]
def formats_list():
i = i + 1
+def convert_french(file):
+ regexp = re.compile(r'^\\language\s+frenchb')
+ i = find_re(file.header, regexp, 0)
+ if i != -1:
+ file.header[i] = "\\language french"
+
+
##
# Convertion hub
#
[238, [update_latexaccents]],
[239, [normalize_paragraph_params]],
[240, [convert_output_changes]],
- [241, [convert_ert_paragraphs]]]
+ [241, [convert_ert_paragraphs]],
+ [242, [convert_french]]]
-revert = [[240, [revert_ert_paragraphs]],
+revert = [[241, []],
+ [240, [revert_ert_paragraphs]],
[239, [revert_output_changes]],
[238, []],
[237, []],
+2005-06-21 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
+
+ * buffer.C: format incremented to 242. There is no file format per
+ se, but the "frenchb" language has been removed from lib/language
+ and has to be translated to "french" by lyx2lyx.
+
2005-07-06 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* cursor_slice.h, dociterator.h: add some documentation
namespace {
-int const LYX_FORMAT = 241;
+int const LYX_FORMAT = 242;
} // namespace anon
+2005-06-16 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
+
+ * insetquotes.C (latex): always use \og/\fg for the french
+ languages; test against the language code instead of the babel
+ name.
+
2005-07-06 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* insettabular.C (tabularFeatures): adjust cursor after adding a column
string qstr;
if (language_ == FrenchQ && times_ == DoubleQ
- && runparams.local_language == "frenchb") {
+ && prefixIs(runparams.local_language->code(), "fr")) {
if (side_ == LeftQ)
qstr = "\\og "; //the spaces are important here
else
qstr = " \\fg{}"; //and here
- } else if (language_ == FrenchQ && times_ == DoubleQ
- && runparams.local_language == "french") {
- if (side_ == LeftQ)
- qstr = "<< "; //the spaces are important here
- else
- qstr = " >>"; //and here
} else if (lyxrc.fontenc == "T1") {
qstr = latex_quote_t1[times_][quoteind];
#ifdef DO_USE_DEFAULT_LANGUAGE
class ExportData;
+class Language;
class OutputParams {
*/
bool intitle;
- /** the babel name of the language at the point where the inset is
+ /** the language at the point where the inset is
*/
- std::string local_language;
+ Language const * local_language;
/** Document language babel name
*/
if (output || running_change != Change::DELETED) {
OutputParams rp = runparams;
rp.free_spacing = style->free_spacing;
- rp.local_language = font.language()->babel();
+ rp.local_language = font.language();
rp.intitle = style->intitle;
pimpl_->simpleTeXSpecialChars(buf, bparams,
os, texrow, rp,