Commit Graph

1511 Commits

Author SHA1 Message Date
Georg Baum
9245b426b3 Update file format for unicode
* src/buffer.C
	(LYX_FORMAT): update

	* src/bufferparams.h
	(inputenc): document

	* lib/lyx2lyx/LyX.py
	(format_relation): last format is now 249
	(get_encoding): return utf8 for formats > 248

	* lib/lyx2lyx/lyx_1_5.py
	(convert_utf8): don't change \inputencoding anymore
	(revert_utf8): new, revert encoding if possible

	* development/FORMAT: describe format 249


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14684 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-15 07:08:58 +00:00
José Matox
575ae4a8d7 Debris from earlier typo fix in file name.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14683 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 21:54:42 +00:00
José Matox
a1564186de rename generate_enconding_info.py to generate_encoding_info.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14673 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 15:11:57 +00:00
Georg Baum
f402dcb0bd * lib/doc/Extended.lyx: Remove the registered-sign from a heading,
since it can not be represented in the Czech sdoc_toc in latin2
	encoding.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14646 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 15:43:27 +00:00
Georg Baum
53e52f2df1 * lib/doc/doc_toc.py: Add language info for Czech
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14642 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 13:57:32 +00:00
Georg Baum
425dfd3a24 Fix bug 2289
* src/tex2lyx/text.C
	(void parse_noweb): new, parse a noweb code chunck
	(void parse_text): handle noweb <<xxx>>= and [[xxx]] constructs

	* src/tex2lyx/tex2lyx.[Ch]: new global variable noweb_mode and
	command line option to set it

	* src/tex2lyx/preamble.C
	(parse_preamble): prepend "literate-" to the textclass name in
	noweb mode

	* lib/configure.py
	(checkConverterEntries): fix literate -> lyx converter
	(checkConverterEntries): fix typo in latex -> sxw converter


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14635 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 09:46:28 +00:00
Michael Schmitt
783cb8f8bf * lib/chkconfig.ltx: fix comments ("LyXConfig.lyx.in" =>
LaTeXConfig.lyx.in")
        * lib/doc/LyXConfig.lyx.in: remove obsolete file
        * lib/doc/Makefile.am: remove LyXConfig.lyx.in from EXTRA_DIST


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14630 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-12 20:48:38 +00:00
Michael Schmitt
ee452c0f38 * src/tex2lyx/test.ltx:
* lib/layouts/revtex4.layout: refer to tex2lyx rather than
        reLyX in comments


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14627 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-12 20:05:28 +00:00
Jean-Marc Lasgouttes
8e836c60d8 * Customization.lyx:
* fr_Customization.lyx:
	* de_Customization.lyx: remove reference to reLyX.

	* Tutorial.lyx: rename sec:relyx label to sec:tex2lyx.
	* fr_Tutorial.lyx: ditto, and change references to reLyX




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14622 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-12 11:26:09 +00:00
Jean-Marc Lasgouttes
e658f6cd1f new Czech splash; update Czech tutorial
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14614 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-11 09:42:25 +00:00
Jean-Marc Lasgouttes
607fcadbeb add Sanda Pavel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14610 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-10 15:55:11 +00:00
Jean-Marc Lasgouttes
a7a2304327 update from Sanda Pavel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14603 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-10 09:23:52 +00:00
José Matox
50cebbc5b3 Add language and encoding information
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14599 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-09 22:22:59 +00:00
José Matox
ff7f289358 Add language attribute to default file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14598 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-09 22:18:27 +00:00
Jean-Marc Lasgouttes
652bed0aca add Kostantino
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14595 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-09 22:06:38 +00:00
José Matox
d401ee07c8 Add encoding to a default file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14594 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-09 21:56:12 +00:00
Jean-Marc Lasgouttes
0be91e7205 * lib/Makefile.am (dist_pkgdata_DATA): remove configure.py
(dist_pkgdata_PYTHON): and put it here
	(dist_scripts_DATA): rename to dist_scripts_PYTHON; this invokes
	automake's built-in python support.
	(install-data-hook): adapt to above change.

	* lib/lyx2lyx/Makefile.am (dist_lyx2lyx_DATA): rename to dist_lyx2lyx_PYTHON;
	this invokes automake's built-in python support.
	(install-data-hook): new target: sets executable bit on lyx2lyx.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14592 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-09 20:51:55 +00:00
Bo Peng
46212cf492 Keep a copy of output from lib/configure.py to configure.log
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14590 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-09 15:21:22 +00:00
Jean-Marc Lasgouttes
8d9e8f5097 fix the header of lyxrc.defaults
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14588 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-09 09:36:42 +00:00
Jean-Marc Lasgouttes
54d193a0a9 update to reflect the new menu structure
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14581 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-08 21:41:16 +00:00
Jean-Marc Lasgouttes
debd34424f remove remaining references to fig_copy.sh
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14579 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-08 21:12:50 +00:00
José Matox
a9f2042082 Update Makefile.am with new and renamed files.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14568 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-08 11:21:24 +00:00
José Matox
37dc5aeabe Convert python scripts to utf-8.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14565 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-08 10:42:59 +00:00
José Matox
6785e442cf Add support for input encoding handling by lyx2lyx.
Support all lyx files (support goes to lyx-0.6 the first public available lyx version).

Fine tune the guessing of the lyx version used to produce the document (only useful for 2.10 and 2.15 documents).

Support to convertion to utf-8 encoding was added but it is not (yet) active.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14558 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-07 14:10:41 +00:00
José Matox
9e832550ad generate_enconding_info.py parses lib/languages and generates lyx2lyx_lang.py
as a python dictionary, ready to be used by other python modules.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14557 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-07 14:05:07 +00:00
José Matox
de0c8aef7c Give to get value a default argument,
if the value is not found the default value is returned.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14556 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-07 13:59:01 +00:00
José Matox
7f552526fc string.join(lst) -> " ".join(lst) and not "".join(lst)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14538 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-02 16:13:01 +00:00
José Matox
26c0f379c7 Remove calls to deprecated module string.
The calls are now made to string methods, the advantage being that they work with
unicode strings.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14537 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-02 15:45:44 +00:00
José Matox
552a471c99 Start to consolidate the functions in parser tools.
Add a unit testing for parser tools functions.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14536 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-02 14:25:43 +00:00
José Matox
b00206e882 Small fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14535 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-02 14:23:45 +00:00
José Matox
695bfd88ed Convert all python files to utf-8.
Add a documentation string to each module.

Add a documentation string to every function in the modules.

file is a python reserved word => s/file/document/g as variable

add a new property to modules, supported_versions that holds
 the versions supported by that module

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14534 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-02 14:19:22 +00:00
José Matox
2987ccdd9e lyx2lyx: Remove -tt from header since it does not work.
Changed the enconding to utf-8.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14533 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-02 09:54:41 +00:00
José Matox
088bcef87b lyx_0_08.py:
lyx_0_10.py
LyX.py: add support for UserGuide convertion from lyx-0.8 (and 0.7).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14532 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-01 22:54:57 +00:00
José Matox
958eead216 Add module documentation to lyx_0_10.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14531 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-01 14:38:13 +00:00
José Matox
ddc31f7aee Rename files:
lyx_1_1_6.py		-> lyx_1_1_6_0.py
	lyx_1_1_6fix3.py	-> lyx_1_1_6_3.py

Change LyX.py accordingly.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14530 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-01 08:38:24 +00:00
Georg Baum
f3b66682f2 Add converter to plain text and fix child format buglet
* src/graph.C
	(Graph::getReachable): Only add a child format to only viewable
	formats if the child or parent has a viewer. Previously a child
	format was also added when there was no viewer at all.

	* lib/configure.py
	(checkFormatEntries): add text2, text3 and text4 formats
	(checkConverterEntries): add ps2ascii , pstotext and catdvi converters


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14528 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-31 17:43:59 +00:00
Georg Baum
437fcef400 Fix bug 2716:
* lib/external_templates
	(XFig): Require the color package, since xfig generates LaTeX
	code with \color.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14504 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-28 16:21:54 +00:00
José Matox
8fc2c1dd05 * LyX.py
* lyx_1_1_5.py
	* lyx_1_2.py
	* lyx_1_3.py
	* lyx_1_4.py
	* lyx_1_5.py

	* parser_tools.py: remove functions that are not generic, i.e.
assume a specific pattern for the file format, and move them to the
places where they are used.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14503 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-27 18:30:13 +00:00
Bo Peng
3181082c31 lib/configure.py: do not wait till the end of 'latex wrap_chkconfig.ltx' to display latex class availability info
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14501 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-27 14:18:47 +00:00
José Matox
857eb02a5c parser_tools.py (del_token): rename arguments to be coherent with other functions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14499 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-27 11:37:26 +00:00
Georg Baum
1632664595 Do not add backup .lyx~ files to lib/doc/Makefile.depend.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14493 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-22 15:17:27 +00:00
Bo Peng
2ae2c0db71 Remove hardcoded option -tt from python scripts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14478 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-17 19:41:32 +00:00
Bo Peng
da915923fd Change the encoding of some python scripts from ISO-8859-15 to ISO-8859-1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14477 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-17 19:37:24 +00:00
Michael Schmitt
3c9e9cf03a remove xforms and libXpm; fix gv's URL
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14455 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-14 08:58:32 +00:00
Michael Schmitt
c1bca32159 update to \lyxformat 245
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14454 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-14 08:56:07 +00:00
Georg Baum
c9c6ed0b7f Split clipboard and X selection
* src/LyXAction.C
	(LyXAction::init): handle new LFUN_CLIPBOARD_PASTE

	* src/insets/insettabular.C
	(InsetTabular::doDispatch): ditto

	* src/insets/insetbox.C
	(InsetBox::doDispatch): ditto

	* src/insets/insetert.C
	(InsetERT::doDispatch): ditto
	(InsetERT::getStatus): ditto

	* src/insets/insetcharstyle.C
	(InsetCharStyle::doDispatch): ditto

	* src/BufferView_pimpl.C
	(BufferView::Pimpl::selectionRequest): stuff selection, not clipboard

	* src/mathed/math_nestinset.C
	(MathNestInset::lfunMousePress): get stuff selection, not clipboard
	(MathNestInset::lfunMouseRelease): clipboard -> selection in
	commented code

	* src/CutAndPaste.C
	(cutSelection): ditto

	* src/frontends/{qt3,gtk}/GuiImplementation.C
	(GuiImplementation::newWorkArea): create new selection, not clipboard,
	since the clipboard is now an object
	(GuiImplementation::destroyWorkArea): destroy selection, not clipboard

	* src/frontends/{qt4,qt3,gtk}/GuiSelection.h: new, copied from
	GuiClipboard.h

	* src/frontends/{qt4,qt3,gtk}/GuiSelection.C: new, copied from
	GuiClipboard.C

	* src/frontends/{qt3,gtk}/GuiImplementation.h
	(selection): new accessor for selection_
	(selection_): new, the global selection object

	* src/frontends/{qt4,qt3,gtk}/Makefile.am: add GuiSelection.C and
	GuiSelection.h

	* src/frontends/{qt4,qt3,gtk}/GuiClipboard.C
	(GuiClipboard::get): return clipboard, not selection
	(GuiClipboard::put): stuff clipboard, not selection

	* src/frontends/{qt4,qt3,gtk}/GuiClipboard.h
	(haveSelection): remove (this is now in GuiSelection)

	* src/frontends/{qt3,gtk}/GuiClipboard.h
	(old_work_area_): remove, since it is not needed anymore

	* src/frontends/gtk/ghelpers.C
	(getGTKStockIcon): handle LFUN_CLIPBOARD_PASTE

	* src/frontends/Clipboard.h
	(haveSelection): remove (this is now in Selection)

	* src/frontends/qt4/GuiImplementation.[Ch]
	(GuiImplementation::selection): new accessor for selection_

	* src/frontends/Gui.h
	(selection): New accessor for the global selection object

	* src/frontends/Selection.h; new, copied from Clipboard.h

	* src/frontends/Makefile.am: add Selection.h

	* src/text3.C
	(various): s/clipboard().haveSelection/selection().haveSelection/

	(LyXText::dispatch): handle LFUN_CLIPBOARD_PASTE
	(LyXText::getStatus): ditto

	* src/lfuns.h: new lfun LFUN_CLIPBOARD_PASTE

	* lib/ui/stdmenus.ui: add new lfun LFUN_CLIPBOARD_PASTE


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14408 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-10 11:32:25 +00:00
Michael Schmitt
f8bfe2bc99 * src/lyxrc.C:
* src/lyxrc.h:
	* lib/lyxrc.example: remove wheel jump option


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14406 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-09 17:57:15 +00:00
Michael Schmitt
d4c773d845 * classic.ui:
* stdmenus.ui: remove menu entries for LaTeX preamble


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14402 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-09 17:25:55 +00:00
Georg Baum
149d7394bf fix image paths
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14394 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-09 10:14:04 +00:00
Bo Peng
f8404ec837 lib/configure.py: fix CheckTexPaths
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14370 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-08 02:50:24 +00:00