mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
fix bug 2090 (remove param \quotes_times). File format is up to 245 now.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10549 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d7055d0a8e
commit
0ce45c32b6
@ -1,3 +1,7 @@
|
|||||||
|
2005-10-13 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||||
|
|
||||||
|
* FORMAT: document format change to 245.
|
||||||
|
|
||||||
2005-10-11 Bennet Helm <bennet.helm@fandm.edu>
|
2005-10-11 Bennet Helm <bennet.helm@fandm.edu>
|
||||||
|
|
||||||
* MacOSX/LyX.app/Contents/MacOS/lyxeditor: Use the new location of
|
* MacOSX/LyX.app/Contents/MacOS/lyxeditor: Use the new location of
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
LyX file-format changes
|
LyX file-format changes
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
|
2005-10-12 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||||
|
|
||||||
|
* format incremented to 245. The \quotes_times parameter
|
||||||
|
has been removed.
|
||||||
|
|
||||||
2005-09-24 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
2005-09-24 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||||
|
|
||||||
* format incremented to 244. Rename '\InsetSpace \,'
|
* format incremented to 244. Rename '\InsetSpace \,'
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2005-10-12 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||||
|
|
||||||
|
* LyX.py: enlarge range to current format (245);
|
||||||
|
do not use \quotes_times anymore on NewFile.
|
||||||
|
* lyx_1_4.py (remove_quotestimes): remove param \quotes_times (bug 2090).
|
||||||
|
|
||||||
2005-09-28 José Matos <jamatos@lyx.org>
|
2005-09-28 José Matos <jamatos@lyx.org>
|
||||||
|
|
||||||
* LyX.py: fix relation_format reversion
|
* LyX.py: fix relation_format reversion
|
||||||
|
@ -46,7 +46,7 @@ format_relation = [("0_10", [210], ["0.10.7","0.10"]),
|
|||||||
("1_1_6fix3", [218], ["1.1.6fix3","1.1.6fix4","1.1"]),
|
("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_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_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,245), ["1.4.0cvs","1.4"])]
|
("1_4", range(222,246), ["1.4.0cvs","1.4"])]
|
||||||
|
|
||||||
|
|
||||||
def formats_list():
|
def formats_list():
|
||||||
@ -481,7 +481,6 @@ class NewFile(LyX_Base):
|
|||||||
"\\paragraph_separation indent",
|
"\\paragraph_separation indent",
|
||||||
"\\defskip medskip",
|
"\\defskip medskip",
|
||||||
"\\quotes_language english",
|
"\\quotes_language english",
|
||||||
"\\quotes_times 2",
|
|
||||||
"\\papercolumns 1",
|
"\\papercolumns 1",
|
||||||
"\\papersides 1",
|
"\\papersides 1",
|
||||||
"\\paperpagestyle default",
|
"\\paperpagestyle default",
|
||||||
|
@ -2258,6 +2258,13 @@ def remove_paperpackage(file):
|
|||||||
file.header[i] = "\\papersize default"
|
file.header[i] = "\\papersize default"
|
||||||
|
|
||||||
|
|
||||||
|
def remove_quotestimes(file):
|
||||||
|
i = find_token(file.header, '\\quotes_times', 0)
|
||||||
|
if i == -1:
|
||||||
|
return
|
||||||
|
del file.header[i]
|
||||||
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# Convertion hub
|
# Convertion hub
|
||||||
#
|
#
|
||||||
@ -2286,9 +2293,11 @@ convert = [[222, [insert_tracking_changes, add_end_header]],
|
|||||||
[241, [convert_ert_paragraphs]],
|
[241, [convert_ert_paragraphs]],
|
||||||
[242, [convert_french]],
|
[242, [convert_french]],
|
||||||
[243, [remove_paperpackage]],
|
[243, [remove_paperpackage]],
|
||||||
[244, [rename_spaces]]]
|
[244, [rename_spaces]],
|
||||||
|
[245, [remove_quotestimes]]]
|
||||||
|
|
||||||
revert = [[243, [revert_space_names]],
|
revert = [[244, []],
|
||||||
|
[243, [revert_space_names]],
|
||||||
[242, []],
|
[242, []],
|
||||||
[241, []],
|
[241, []],
|
||||||
[240, [revert_ert_paragraphs]],
|
[240, [revert_ert_paragraphs]],
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2005-10-12 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||||
|
|
||||||
|
* buffer.C: version upgrade to 245.
|
||||||
|
* bufferparams.C: remove \quotes_times (bug 2090).
|
||||||
|
* text3.C (doDispatch): LFUN_QUOTE_INSERT has to output double
|
||||||
|
quotation marks as default.
|
||||||
|
|
||||||
2005-10-09 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
2005-10-09 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
||||||
|
|
||||||
* CutAndPaste.C (nrOfParagraphs): remove (unused)
|
* CutAndPaste.C (nrOfParagraphs): remove (unused)
|
||||||
|
@ -144,7 +144,7 @@ extern BufferList bufferlist;
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
int const LYX_FORMAT = 244;
|
int const LYX_FORMAT = 245;
|
||||||
|
|
||||||
} // namespace anon
|
} // namespace anon
|
||||||
|
|
||||||
|
@ -105,25 +105,6 @@ QuotesLangTranslator const & quoteslangtranslator()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Quote times
|
|
||||||
typedef Translator<int, InsetQuotes::quote_times> QuotesTimesTranslator;
|
|
||||||
|
|
||||||
|
|
||||||
QuotesTimesTranslator const init_quotestimestranslator()
|
|
||||||
{
|
|
||||||
QuotesTimesTranslator translator(1, InsetQuotes::SingleQ);
|
|
||||||
translator.addPair(2, InsetQuotes::DoubleQ);
|
|
||||||
return translator;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
QuotesTimesTranslator const & quotestimestranslator()
|
|
||||||
{
|
|
||||||
static QuotesTimesTranslator translator = init_quotestimestranslator();
|
|
||||||
return translator;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Paper size
|
// Paper size
|
||||||
typedef Translator<std::string, PAPER_SIZE> PaperSizeTranslator;
|
typedef Translator<std::string, PAPER_SIZE> PaperSizeTranslator;
|
||||||
|
|
||||||
@ -307,7 +288,6 @@ BufferParams::BufferParams()
|
|||||||
{
|
{
|
||||||
paragraph_separation = PARSEP_INDENT;
|
paragraph_separation = PARSEP_INDENT;
|
||||||
quotes_language = InsetQuotes::EnglishQ;
|
quotes_language = InsetQuotes::EnglishQ;
|
||||||
quotes_times = InsetQuotes::DoubleQ;
|
|
||||||
fontsize = "default";
|
fontsize = "default";
|
||||||
|
|
||||||
/* PaperLayout */
|
/* PaperLayout */
|
||||||
@ -460,10 +440,6 @@ string const BufferParams::readToken(LyXLex & lex, string const & token)
|
|||||||
string quotes_lang;
|
string quotes_lang;
|
||||||
lex >> quotes_lang;
|
lex >> quotes_lang;
|
||||||
quotes_language = quoteslangtranslator().find(quotes_lang);
|
quotes_language = quoteslangtranslator().find(quotes_lang);
|
||||||
} else if (token == "\\quotes_times") {
|
|
||||||
int qtimes;
|
|
||||||
lex >> qtimes;
|
|
||||||
quotes_times = quotestimestranslator().find(qtimes);
|
|
||||||
} else if (token == "\\papersize") {
|
} else if (token == "\\papersize") {
|
||||||
string ppsize;
|
string ppsize;
|
||||||
lex >> ppsize;
|
lex >> ppsize;
|
||||||
@ -663,9 +639,7 @@ void BufferParams::writeFile(ostream & os) const
|
|||||||
<< string_paragraph_separation[paragraph_separation]
|
<< string_paragraph_separation[paragraph_separation]
|
||||||
<< "\n\\defskip " << getDefSkip().asLyXCommand()
|
<< "\n\\defskip " << getDefSkip().asLyXCommand()
|
||||||
<< "\n\\quotes_language "
|
<< "\n\\quotes_language "
|
||||||
<< string_quotes_language[quotes_language] << '\n'
|
<< string_quotes_language[quotes_language]
|
||||||
<< "\\quotes_times "
|
|
||||||
<< quotestimestranslator().find(quotes_times)
|
|
||||||
<< "\n\\papercolumns " << columns
|
<< "\n\\papercolumns " << columns
|
||||||
<< "\n\\papersides " << sides
|
<< "\n\\papersides " << sides
|
||||||
<< "\n\\paperpagestyle " << pagestyle << '\n';
|
<< "\n\\paperpagestyle " << pagestyle << '\n';
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2005-10-12 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||||
|
|
||||||
|
* preamble.C: update format to 245 (do not output \quotes_times).
|
||||||
|
|
||||||
2005-08-19 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
2005-08-19 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
||||||
|
|
||||||
* text.C (parse_text): Output \item in list environments that are
|
* text.C (parse_text): Output \item in list environments that are
|
||||||
|
@ -82,7 +82,6 @@ string h_tocdepth = "3";
|
|||||||
string h_paragraph_separation = "indent";
|
string h_paragraph_separation = "indent";
|
||||||
string h_defskip = "medskip";
|
string h_defskip = "medskip";
|
||||||
string h_quotes_language = "english";
|
string h_quotes_language = "english";
|
||||||
string h_quotes_times = "2";
|
|
||||||
string h_papercolumns = "1";
|
string h_papercolumns = "1";
|
||||||
string h_papersides = string();
|
string h_papersides = string();
|
||||||
string h_paperpagestyle = "default";
|
string h_paperpagestyle = "default";
|
||||||
@ -233,7 +232,7 @@ void handle_package(string const & name, string const & opts)
|
|||||||
void end_preamble(ostream & os, LyXTextClass const & /*textclass*/)
|
void end_preamble(ostream & os, LyXTextClass const & /*textclass*/)
|
||||||
{
|
{
|
||||||
os << "#LyX file created by tex2lyx 0.1.2\n"
|
os << "#LyX file created by tex2lyx 0.1.2\n"
|
||||||
<< "\\lyxformat 243\n"
|
<< "\\lyxformat 245\n"
|
||||||
<< "\\begin_document\n"
|
<< "\\begin_document\n"
|
||||||
<< "\\begin_header\n"
|
<< "\\begin_header\n"
|
||||||
<< "\\textclass " << h_textclass << "\n"
|
<< "\\textclass " << h_textclass << "\n"
|
||||||
@ -257,7 +256,6 @@ void end_preamble(ostream & os, LyXTextClass const & /*textclass*/)
|
|||||||
<< "\\paragraph_separation " << h_paragraph_separation << "\n"
|
<< "\\paragraph_separation " << h_paragraph_separation << "\n"
|
||||||
<< "\\defskip " << h_defskip << "\n"
|
<< "\\defskip " << h_defskip << "\n"
|
||||||
<< "\\quotes_language " << h_quotes_language << "\n"
|
<< "\\quotes_language " << h_quotes_language << "\n"
|
||||||
<< "\\quotes_times " << h_quotes_times << "\n"
|
|
||||||
<< "\\papercolumns " << h_papercolumns << "\n"
|
<< "\\papercolumns " << h_papercolumns << "\n"
|
||||||
<< "\\papersides " << h_papersides << "\n"
|
<< "\\papersides " << h_papersides << "\n"
|
||||||
<< "\\paperpagestyle " << h_paperpagestyle << "\n"
|
<< "\\paperpagestyle " << h_paperpagestyle << "\n"
|
||||||
|
@ -960,12 +960,10 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
|
|||||||
cur.insert(new InsetQuotes(c,
|
cur.insert(new InsetQuotes(c,
|
||||||
bufparams.quotes_language,
|
bufparams.quotes_language,
|
||||||
InsetQuotes::SingleQ));
|
InsetQuotes::SingleQ));
|
||||||
else if (arg == "double")
|
else
|
||||||
cur.insert(new InsetQuotes(c,
|
cur.insert(new InsetQuotes(c,
|
||||||
bufparams.quotes_language,
|
bufparams.quotes_language,
|
||||||
InsetQuotes::DoubleQ));
|
InsetQuotes::DoubleQ));
|
||||||
else
|
|
||||||
cur.insert(new InsetQuotes(c, bufparams));
|
|
||||||
cur.posRight();
|
cur.posRight();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user