rename hyphenation-break to ligature-break

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2294 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2001-07-20 13:04:36 +00:00
parent ce00d69629
commit 0adacb84ba
9 changed files with 30 additions and 20 deletions

View File

@ -1,3 +1,7 @@
2001-07-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* ui/default.ui: change 'hyphenation break' to 'ligature break'.
2001-07-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr> 2001-07-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* ui/default.ui: change a shortcut * ui/default.ui: change a shortcut

View File

@ -217,7 +217,7 @@ Menuset
Item "Subscript|u" "command-sequence math-insert _;math-mode;" Item "Subscript|u" "command-sequence math-insert _;math-mode;"
Item "HFill|H" "hfill-insert" Item "HFill|H" "hfill-insert"
Item "Hyphenation Point|P" "hyphenation-point-insert" Item "Hyphenation Point|P" "hyphenation-point-insert"
Item "Hyphenation break|k" "hyphenation-break-insert" Item "Ligature break|k" "ligature-break-insert"
Item "Protected Blank|B" "protected-space-insert" Item "Protected Blank|B" "protected-space-insert"
Item "Linebreak|L" "break-line" Item "Linebreak|L" "break-line"
Item "Ellipsis|i" "dots-insert" Item "Ellipsis|i" "dots-insert"

View File

@ -1523,8 +1523,8 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
specialChar(InsetSpecialChar::HYPHENATION); specialChar(InsetSpecialChar::HYPHENATION);
break; break;
case LFUN_HYPHENATION_BREAK: case LFUN_LIGATURE_BREAK:
specialChar(InsetSpecialChar::HYPHENATION_BREAK); specialChar(InsetSpecialChar::LIGATURE_BREAK);
break; break;
case LFUN_LDOTS: case LFUN_LDOTS:

View File

@ -1,3 +1,10 @@
2001-07-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* LyXAction.C (init):
* commandtags.h:
* BufferView_pimpl.C (Dispatch): change HYPHENATION_BREAK to
LIGATURE_BREAK, since the name is so stupid.
2001-07-20 Angus Leeming <a.leeming@ic.ac.uk> 2001-07-20 Angus Leeming <a.leeming@ic.ac.uk>
* buffer.C (readInset): enable reading of new InsetNotes as well as old * buffer.C (readInset): enable reading of new InsetNotes as well as old
@ -5,12 +12,8 @@
* FontLoader.C: remove FORMS_H_LOCATION cruft. * FontLoader.C: remove FORMS_H_LOCATION cruft.
2001-07-20 Angus Leeming <a.leeming@ic.ac.uk>
* sp_form.[Ch]: remove. * sp_form.[Ch]: remove.
2001-07-20 Angus Leeming <a.leeming@ic.ac.uk>
* src/LColor.[Ch]: remove noteframe. Change note to "yellow". * src/LColor.[Ch]: remove noteframe. Change note to "yellow".
* src/BufferView_pimpl.C (insertNote): use InsetNote in place of * src/BufferView_pimpl.C (insertNote): use InsetNote in place of

View File

@ -232,8 +232,8 @@ void LyXAction::init()
{ LFUN_HTMLURL, "html-insert", "", Noop }, { LFUN_HTMLURL, "html-insert", "", Noop },
{ LFUN_HYPHENATION, "hyphenation-point-insert", { LFUN_HYPHENATION, "hyphenation-point-insert",
N_("Insert hyphenation point"), Noop }, N_("Insert hyphenation point"), Noop },
{ LFUN_HYPHENATION_BREAK, "hyphenation-break-insert", { LFUN_LIGATURE_BREAK, "ligature-break-insert",
N_("Insert hyphenation break"), Noop }, N_("Insert ligature break"), Noop },
{ LFUN_INDEX_CREATE, "index-insert", { LFUN_INDEX_CREATE, "index-insert",
N_("Insert index item"), Noop }, N_("Insert index item"), Noop },
{ LFUN_INDEX_INSERT_LAST, "index-insert-last", { LFUN_INDEX_INSERT_LAST, "index-insert-last",

View File

@ -51,7 +51,7 @@ enum kb_action {
LFUN_GOTONOTE, LFUN_GOTONOTE,
LFUN_INSET_TOGGLE, LFUN_INSET_TOGGLE,
LFUN_HYPHENATION, LFUN_HYPHENATION,
LFUN_HYPHENATION_BREAK, LFUN_LIGATURE_BREAK,
LFUN_HFILL, LFUN_HFILL,
LFUN_DEPTH, LFUN_DEPTH,
LFUN_FREE, // 30 LFUN_FREE, // 30

View File

@ -1,3 +1,8 @@
2001-07-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* insetspecialchar.[Ch]: change HYPHENATION_BREAK to
LIGATURE_BREAK, since the name is so stupid.
2001-07-20 Angus Leeming <a.leeming@ic.ac.uk> 2001-07-20 Angus Leeming <a.leeming@ic.ac.uk>
* insetnote.[Ch]: (insertInset, insetAllowed): removed. Note now uses * insetnote.[Ch]: (insertInset, insetAllowed): removed. Note now uses
@ -5,8 +10,6 @@
(write) output the name of the inset, not some silly hack for (write) output the name of the inset, not some silly hack for
compatability with the old InsetInfo. compatability with the old InsetInfo.
2001-07-20 Angus Leeming <a.leeming@ic.ac.uk>
* insetinfo.[Ch]: removed. * insetinfo.[Ch]: removed.
* insetnote.[Ch]: new files. InsetNote replaces InsetInfo. The inset is * insetnote.[Ch]: new files. InsetNote replaces InsetInfo. The inset is
now collapsable, but functionality is otherwise identical to InsetInfo. now collapsable, but functionality is otherwise identical to InsetInfo.

View File

@ -50,7 +50,7 @@ int InsetSpecialChar::width(BufferView *, LyXFont const & font) const
w -= 2; // to make it look shorter w -= 2; // to make it look shorter
return w; return w;
} }
case HYPHENATION_BREAK: case LIGATURE_BREAK:
{ {
return lyxfont::width('|', font); return lyxfont::width('|', font);
} }
@ -90,7 +90,7 @@ void InsetSpecialChar::draw(BufferView * bv, LyXFont const & f,
x += width(bv, font); x += width(bv, font);
break; break;
} }
case HYPHENATION_BREAK: case LIGATURE_BREAK:
{ {
font.setColor(LColor::special); font.setColor(LColor::special);
pain.text(int(x), baseline, "|", font); pain.text(int(x), baseline, "|", font);
@ -162,7 +162,7 @@ void InsetSpecialChar::write(Buffer const *, ostream & os) const
case HYPHENATION: case HYPHENATION:
command = "\\-"; command = "\\-";
break; break;
case HYPHENATION_BREAK: case LIGATURE_BREAK:
command = "\\textcompwordmark{}"; command = "\\textcompwordmark{}";
break; break;
case END_OF_SENTENCE: case END_OF_SENTENCE:
@ -192,7 +192,7 @@ void InsetSpecialChar::read(Buffer const *, LyXLex & lex)
if (command == "\\-") if (command == "\\-")
kind = HYPHENATION; kind = HYPHENATION;
else if (command == "\\textcompwordmark{}") else if (command == "\\textcompwordmark{}")
kind = HYPHENATION_BREAK; kind = LIGATURE_BREAK;
else if (command == "\\@.") else if (command == "\\@.")
kind = END_OF_SENTENCE; kind = END_OF_SENTENCE;
else if (command == "\\ldots{}") else if (command == "\\ldots{}")
@ -214,7 +214,7 @@ int InsetSpecialChar::latex(Buffer const *, ostream & os, bool /*fragile*/,
case HYPHENATION: case HYPHENATION:
os << "\\-"; os << "\\-";
break; break;
case HYPHENATION_BREAK: case LIGATURE_BREAK:
os << "\\textcompwordmark{}"; os << "\\textcompwordmark{}";
break; break;
case END_OF_SENTENCE: case END_OF_SENTENCE:
@ -238,7 +238,7 @@ int InsetSpecialChar::ascii(Buffer const *, ostream & os, int) const
{ {
switch (kind) { switch (kind) {
case HYPHENATION: case HYPHENATION:
case HYPHENATION_BREAK: case LIGATURE_BREAK:
break; break;
case END_OF_SENTENCE: case END_OF_SENTENCE:
os << "."; os << ".";

View File

@ -28,8 +28,8 @@ public:
enum Kind { enum Kind {
/// Optional hyphenation point (\-) /// Optional hyphenation point (\-)
HYPHENATION, HYPHENATION,
/// Hyphenation break point (\textcompwordmark) /// Ligature break point (\textcompwordmark)
HYPHENATION_BREAK, LIGATURE_BREAK,
/// ... (\ldots) /// ... (\ldots)
LDOTS, LDOTS,
/// End of sentence punctuation (\@) /// End of sentence punctuation (\@)